Files
better-auth/docs/components/nav-bar.tsx
Kinfe Michael Tariku 854b7f342e fix/ui ux (#3)
* feat: hero section revamp

* fix: lines and border issue

* fix: changelog ux

* fix: better

* fix: ui revamp

* fix: font

---------

Co-authored-by: Bereket Engida <86073083+Bekacru@users.noreply.github.com>
2024-09-17 17:47:43 +03:00

72 lines
1.6 KiB
TypeScript

import Link from "next/link";
import { ThemeToggle } from "@/components/theme-toggler";
import Image from "next/image";
import { NavbarMobileBtn } from "./nav-mobile";
import { NavLink } from "./nav-link";
import { Logo } from "./logo";
import { PulicBetaBadge } from "./beta/badge";
const hideNavbar = process.env.NODE_ENV === "production"
export const Navbar = () => {
return (
<nav className="md:grid grid-cols-12 border-b sticky top-0 flex items-center justify-end bg-background backdrop-blur-md z-50">
<Link
href="/"
className="md:border-r md:px-5 px-2.5 py-4 text-foreground md:col-span-4 lg:col-span-2 shrink-0 transition-colors min-w-[--fd-sidebar-width]"
>
<div className="flex items-center gap-2">
<Logo />
<p>BETTER-AUTH.</p>
<PulicBetaBadge />
</div>
</Link>
<div className="md:col-span-9 lg:col-span-10 flex items-center justify-end ">
<ul className="md:flex items-center divide-x w-max border-r hidden shrink-0">
{
hideNavbar ? null : navMenu.map((menu, i) => (
<NavLink key={menu.name} href={menu.path}>
{menu.name}
</NavLink>
))
}
</ul>
<ThemeToggle />
<NavbarMobileBtn />
</div>
</nav>
);
};
export const navMenu = [
{
name: "helo_",
path: "/",
},
{
name: "docs",
path: "/docs",
},
// {
// name: "plugins",
// path: "/plugins",
// },
// {
// name: "pre-made ui",
// path: "/ui",
// },
// {
// name: "security",
// path: "/security",
// },
{
name: "changelogs",
path: "/changelogs",
},
// {
// name: "resources",
// path: "/resources",
// },
];