Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit fe3581c

Browse files
committed
nav wip
1 parent b9599c1 commit fe3581c

20 files changed

+1501
-427
lines changed

public/favicon.ico

-14.7 KB
Binary file not shown.

src/app/not-found.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { Button } from '@/components/Button'
21
import { HeroPattern } from '@/components/HeroPattern'
2+
import { Button } from '@/components/ui/button'
3+
import Link from 'next/link'
34

45
export default function NotFound() {
56
return (
@@ -15,8 +16,8 @@ export default function NotFound() {
1516
<p className="mt-2 text-base text-zinc-600 dark:text-zinc-400">
1617
Sorry, we couldn’t find the page you’re looking for.
1718
</p>
18-
<Button href="/" arrow="right" className="mt-8">
19-
Back to docs
19+
<Button className="mt-8" asChild>
20+
<Link href="/">Back to docs</Link>
2021
</Button>
2122
</div>
2223
</>

src/components/GitHubStarCount.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const GitHubStarCount = ({ className }: { className?: string }) => {
6262
}, [])
6363

6464
return (
65-
<div className={clsx('text-xs uppercase text-zinc-300', className)}>
65+
<div className={clsx('text-xs uppercase dark:text-zinc-300', className)}>
6666
{formatStarCount(starCount)}
6767
</div>
6868
)

src/components/HeroPattern.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export function HeroPattern() {
44
return (
55
<div className="absolute inset-0 -z-10 mx-0 max-w-none overflow-hidden">
66
<div className="absolute left-1/2 top-0 ml-[-38rem] h-[25rem] w-[81.25rem] dark:[mask-image:linear-gradient(white,transparent)]">
7-
<div className="absolute inset-0 bg-gradient-to-r from-[#36b49f] to-[#DBFF75] opacity-40 [mask-image:radial-gradient(farthest-side_at_top,white,transparent)] dark:from-[#36b49f]/30 dark:to-[#DBFF75]/30 dark:opacity-100">
7+
<div className="absolute inset-0 bg-gradient-to-r from-primary to-secondary opacity-40 [mask-image:radial-gradient(farthest-side_at_top,white,transparent)] dark:from-primary/30 dark:to-secondary/30 dark:opacity-100">
88
<GridPattern
99
width={72}
1010
height={56}

src/components/layout/BaseLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Link from 'next/link'
33
import { Footer } from '@/components/Footer'
44
import { Header } from '@/components/layout/Header'
55
import { Logo } from '@/components/Logo'
6-
import { Navigation } from '@/components/layout/Navigation'
6+
import { Navigation } from '@/components/nav/Navigation'
77

88
const experimentalRuntimes = ['go', 'dart']
99

src/components/layout/Header.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ import { Logo } from '@/components/Logo'
99
import {
1010
MobileNavigation,
1111
useIsInsideMobileNavigation,
12-
} from '@/components/MobileNavigation'
13-
import { useMobileNavigationStore } from '@/components/MobileNavigation'
12+
} from '@/components/nav/MobileNavigation'
13+
import { useMobileNavigationStore } from '@/components/nav/MobileNavigation'
1414
import { Search } from '@/components/layout/Search'
1515
import { ThemeToggle } from '@/components/ThemeToggle'
16-
import { FaDiscord } from 'react-icons/fa'
1716
import { cn } from '@/lib/utils'
1817
import GitHubStarCount from '../GitHubStarCount'
19-
import { StarIcon } from '@heroicons/react/24/outline'
2018
import { GitHubIcon } from '../icons/GitHubIcon'
2119

2220
function TopLevelNavItem({
@@ -72,7 +70,7 @@ export const Header = forwardRef<
7270
'bg-gray-800/7.5 dark:bg-white/7.5',
7371
)}
7472
/>
75-
<Link href="/" aria-label="Home">
73+
<Link href="/" aria-label="Home" className="hidden lg:block">
7674
<Logo className="h-6" />
7775
</Link>
7876
<div className="hidden lg:block">
@@ -106,7 +104,9 @@ export const Header = forwardRef<
106104
</ul>
107105
</nav>
108106
<div className="flex items-center gap-4">
109-
<div className="lg:hidden">{/* <Search /> */}</div>
107+
<div className="lg:hidden">
108+
<Search />
109+
</div>
110110
<ThemeToggle />
111111
</div>
112112
</div>

src/components/layout/Navigation.tsx

Lines changed: 0 additions & 239 deletions
This file was deleted.

0 commit comments

Comments
 (0)