Skip to content

Commit

Permalink
chore: fixing nav on storefront
Browse files Browse the repository at this point in the history
  • Loading branch information
BuyankhuuTsCAl committed Oct 24, 2023
1 parent b24fce7 commit 32da526
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
10 changes: 2 additions & 8 deletions src/app/storefront/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React, { useEffect, useState } from 'react';
import Link from 'next/link';
import Storefront from './storefrontItems';
import ProductButtons from './productButtons';

import NavBar from '@/components/NavBar';
import {
GlobalStyle,
ButtonsContainer,
Expand Down Expand Up @@ -67,13 +67,7 @@ export default function App() {
<main>
<GlobalStyle />
<StickyHeader>
<Img />
<NavButton>
<Link href="/checkout">Cart</Link>
</NavButton>
<NavButton>
<Link href="/profileScreen">Profile</Link>
</NavButton>
<NavBar />
<ButtonsContainer>
{buttons.map(type => (
<ProductButtons
Expand Down
3 changes: 3 additions & 0 deletions src/app/storefront/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ export const ButtonsContainer = styled.div`
flex-direction: row;
justify-content: center;
align-items: center;
z-index: 5;
transform: translate(0px, -180px);
`;
export const NavButton = styled.button`
margin-top: 30px;
Expand Down
2 changes: 1 addition & 1 deletion src/styles/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const NavBarComp = styled.nav`
justify-content: space-between;
padding-left: 30px;
padding-right: 30px;
height: 150px;
height: 200px;
padding-top: 20px;
width: 100%;
Expand Down

0 comments on commit 32da526

Please sign in to comment.