feat: T5DE's website: landing page, download, changelog and FAQ
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
commit
8401f30f78
35 files changed
+2216
No files matched your search
@@ -0,0 +1,21 @@
|
||||
"use client";
|
||||
import Link from "next/link";
|
||||
import { usePathname } from "next/navigation";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
/** A link in the navigation bar, marked when it's the current page. */
|
||||
export function NavLink({ href, children }: { href: string; children: React.ReactNode }) {
|
||||
const here = usePathname() === href;
|
||||
return (
|
||||
<Link
|
||||
href={href}
|
||||
aria-current={here ? "page" : undefined}
|
||||
className={cn(
|
||||
"rounded-md px-2.5 py-1.5 text-muted-foreground transition-colors hover:text-foreground",
|
||||
here && "bg-muted text-foreground",
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user