mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 20:37:44 +00:00
59 lines
1.4 KiB
TypeScript
59 lines
1.4 KiB
TypeScript
import React from "react";
|
|
import Link from "next/link";
|
|
import { ThemeToggle } from "@/components/theme-toggler";
|
|
import { NavbarMobile, NavbarMobileBtn } from "./nav-mobile";
|
|
import { NavLink } from "./nav-link";
|
|
import { Logo } from "./logo";
|
|
|
|
export const Navbar = () => {
|
|
return (
|
|
<div className="flex flex-col sticky top-0 bg-background backdrop-blur-md z-30">
|
|
<nav className="md:grid grid-cols-12 md:border-b top-0 flex items-center justify-between ">
|
|
<Link
|
|
href="/"
|
|
className="md:border-r md:px-5 px-2.5 py-4 text-foreground md:col-span-2 shrink-0 transition-colors md:w-[--fd-sidebar-width]"
|
|
>
|
|
<div className="flex flex-col gap-2 w-full">
|
|
<div className="flex items-center gap-2">
|
|
<Logo />
|
|
<p>BETTER-AUTH.</p>
|
|
</div>
|
|
</div>
|
|
</Link>
|
|
<div className="md:col-span-10 flex items-center justify-end relative">
|
|
<ul className="md:flex items-center divide-x w-max border-r hidden shrink-0">
|
|
{navMenu.map((menu, i) => (
|
|
<NavLink key={menu.name} href={menu.path}>
|
|
{menu.name}
|
|
</NavLink>
|
|
))}
|
|
</ul>
|
|
<ThemeToggle />
|
|
<NavbarMobileBtn />
|
|
</div>
|
|
</nav>
|
|
<NavbarMobile />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export const navMenu = [
|
|
{
|
|
name: "helo_",
|
|
path: "/",
|
|
},
|
|
{
|
|
name: "docs",
|
|
path: "/docs",
|
|
},
|
|
|
|
{
|
|
name: "changelogs",
|
|
path: "/changelogs",
|
|
},
|
|
{
|
|
name: "community",
|
|
path: "https://discord.gg/GYC3W7tZzb",
|
|
},
|
|
];
|