-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
218 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import Link from 'next/link'; | ||
|
||
export default function DefaultRoutes({ onClick }: { onClick?: () => any }) { | ||
return ( | ||
<> | ||
<span className="relative"> | ||
<Link onClick={onClick} href="#info"> | ||
Thông tin | ||
</Link> | ||
</span> | ||
<span className="relative"> | ||
<Link onClick={onClick} href="#agenda"> | ||
Lịch trình | ||
</Link> | ||
</span> | ||
<span className="relative"> | ||
<Link onClick={onClick} href="#speakers"> | ||
Diễn giả | ||
</Link> | ||
</span> | ||
<span className="relative"> | ||
<Link onClick={onClick} href="#joinus"> | ||
Tham gia | ||
</Link> | ||
</span> | ||
<span className="relative"> | ||
<Link onClick={onClick} href="#contacts"> | ||
Liên hệ | ||
</Link> | ||
</span> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import Link from 'next/link'; | ||
import Image from 'next/image'; | ||
import logo from '@/public/logo.png'; | ||
import logo_white from '@/public/logo_white.png'; | ||
import ThemeSwitcher from '@/components/ThemeSwitcher'; | ||
import DefaultRoutes from './DefaultRoutes'; | ||
export default function NavBar() { | ||
return ( | ||
<div className="inset-x-0 top-0 max-lg:hidden dark:text-white"> | ||
<nav className="mx-auto max-w-6xl px-4 flex flex-1 items-center gap-8 py-2.5"> | ||
<Link href={'/'}> | ||
<span className="relative"> | ||
<Image | ||
className="dark:hidden w-64" | ||
src={logo} | ||
alt="Google I/O Extended Cloud Hanoi 2024" | ||
/> | ||
<Image | ||
className="hidden dark:inline w-64" | ||
src={logo_white} | ||
alt="Google I/O Extended Cloud Hanoi 2024" | ||
/> | ||
</span> | ||
</Link> | ||
<div className="max-lg:hidden h-6 w-px bg-zinc-950/10 dark:bg-white/10"></div> | ||
<div className="max-lg:hidden flex items-center gap-8"> | ||
<DefaultRoutes /> | ||
</div> | ||
<div className="-ml-4 flex-1"></div> | ||
<div className="flex items-center gap-4"> | ||
<ThemeSwitcher /> | ||
</div> | ||
</nav> | ||
</div> | ||
); | ||
} |