- app/page.tsx: h2 uses heading-md (was text-2xl font-semibold) - app/not-found.tsx: h1 uses heading-xl (was text-4xl font-bold) - Header.tsx: logo uses heading-sm (was text-xl font-extrabold) - mdx-components.tsx: add h4/h5/h6 component overrides - Remove all ad-hoc font-sans from headings
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
"use client";
|
|
|
|
import Link from "next/link";
|
|
import { m } from "motion/react";
|
|
import { ThemeToggle } from "@/components/ui/ThemeToggle";
|
|
|
|
const navLinks = [
|
|
{ label: "Home", href: "/" },
|
|
{ label: "Posts", href: "/posts/" },
|
|
];
|
|
|
|
export function Header() {
|
|
return (
|
|
<m.nav
|
|
initial={{ opacity: 0, y: -12 }}
|
|
animate={{ opacity: 1, y: 0 }}
|
|
transition={{ duration: 0.4, ease: "easeOut" }}
|
|
className="sticky top-0 z-50 bg-canvas/80 backdrop-blur-sm border-b border-border"
|
|
>
|
|
<div className="max-w-4xl mx-auto px-6 py-4 flex items-center justify-between">
|
|
<Link href="/" className="heading-sm text-ink hover:text-accent transition-colors">
|
|
blog
|
|
</Link>
|
|
<div className="flex items-center gap-8">
|
|
{navLinks.map((link) => (
|
|
<Link
|
|
key={link.href}
|
|
href={link.href}
|
|
className="font-medium text-sm text-ink-soft hover:text-ink transition-colors"
|
|
>
|
|
{link.label}
|
|
</Link>
|
|
))}
|
|
<ThemeToggle />
|
|
</div>
|
|
</div>
|
|
</m.nav>
|
|
);
|
|
}
|