Skip to content

Commit

Permalink
feat: migrate nav element, add border-b
Browse files Browse the repository at this point in the history
  • Loading branch information
wackerow committed Sep 8, 2024
1 parent 5cdb1c0 commit 46cc6fb
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/components/Nav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import Search from "@/components/Search"

import { isDesktop } from "@/lib/utils/isDesktop"

import { NAV_PY } from "@/lib/constants"

import DesktopNavMenu from "./Desktop"
import Menu from "./Menu"
import { useNav } from "./useNav"
Expand All @@ -30,17 +28,10 @@ const Nav = () => {

return (
<Box position="sticky" top={0} zIndex="sticky" width="full">
<Flex
<nav
className="flex h-19 justify-center border-b border-b-disabled bg-background p-4 xl:px-8"
ref={navWrapperRef}
as="nav"
aria-label={t("nav-primary")}
bg="background.base"
borderBottom="1px"
borderColor="rgba(0, 0, 0, 0.1)"
height="4.75rem"
justifyContent="center"
py={NAV_PY}
px={{ base: 4, xl: 8 }}
>
<Flex
alignItems={{ base: "center", md: "normal" }}
Expand Down Expand Up @@ -94,7 +85,7 @@ const Nav = () => {
</Flex>
</Flex>
</Flex>
</Flex>
</nav>
</Box>
)
}
Expand Down

0 comments on commit 46cc6fb

Please sign in to comment.