Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Unbork mobile nav
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 87b7d0f commit 8c24923
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 29 deletions.
52 changes: 24 additions & 28 deletions components/Navigation.tsx
Expand Up @@ -68,20 +68,13 @@ export default function (props: {

return (
<>
<style media="(min-width: 1281px)">
<style media="all and (min-width: 1281px)">
{`
#nav-menu {
display: none
}
`}
</style>
<style media="(max-width: 1280px)">
{`
#nav-links {
display: none
}
`}
</style>
<Box as="section" pb={{ base: "6" }}>
<Box as="nav" boxSizing="unset">
<Container display="grid" maxW="container.xl" py={{ base: "6" }}>
Expand All @@ -104,26 +97,29 @@ export default function (props: {
</a>
<Spacer />
<Spacer />
<Flex alignItems="center" className="nav-links">
<HStack gap="3rem" whiteSpace="nowrap">
<Link href="/about" size="lg">
About Us
</Link>
<Link href="/team" size="lg">
Our Team
</Link>
<Link href="/support" size="lg">
Support
</Link>
<Link
display={hasMod() ? undefined : "none"}
href="/mod-queue"
size="lg"
>
Moderation
</Link>
</HStack>
</Flex>
<HStack
alignItems="center"
gap="3rem"
whiteSpace="nowrap"
className="nav-links"
>
<Link href="/about" size="lg">
About Us
</Link>
<Link href="/team" size="lg">
Our Team
</Link>
<Link href="/support" size="lg">
Support
</Link>
<Link
display={hasMod() ? undefined : "none"}
href="/mod-queue"
size="lg"
>
Moderation
</Link>
</HStack>
<Spacer />
<Spacer />
<div className="nav-links">
Expand Down
2 changes: 1 addition & 1 deletion index.css
Expand Up @@ -84,6 +84,6 @@ button:focus-visible {

@media (max-width: 1280px) {
.nav-links {
display: none;
display: none !important;
}
}

0 comments on commit 8c24923

Please sign in to comment.