mirror of
https://github.com/karpathy/nanochat.git
synced 2026-05-22 07:37:58 +00:00
Landing page: warm gradient background, illustrations flanking hero text (180-220px), new tagline, features section with 3 cards, footer updated to "Built by Manmohan", gold CTA and nav buttons, toran moved to hero. Chat page: removed "Chat Completions" header, added samosa logo and bigger suggestion cards to empty state, sidebar empty state message, input area top border/shadow, more prominent new chat button. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
57 lines
2.1 KiB
TypeScript
57 lines
2.1 KiB
TypeScript
'use client';
|
|
|
|
import Link from 'next/link';
|
|
import { useAuth } from '@/hooks/useAuth';
|
|
|
|
export default function LandingNav() {
|
|
const { authenticated } = useAuth();
|
|
|
|
return (
|
|
<nav className="relative flex justify-between items-start px-4 md:px-9 pt-4 pb-2 z-10 flex-shrink-0">
|
|
<div className="flex items-center gap-2">
|
|
<Link href="/" aria-label="Home" className="transition-transform hover:scale-105">
|
|
<svg viewBox="0 0 30 30" width={30} height={30} fill="none" stroke="#444" strokeWidth={1.3} strokeLinecap="round" strokeLinejoin="round">
|
|
<path d="M4,16 L15.2,5 L26,16" />
|
|
<path d="M7,14.5 L7,26 L23,26 L23,14.5" />
|
|
<rect x="12" y="19" width="6" height="7" rx="0.5" />
|
|
<rect x="8.5" y="16" width="3" height="2.8" rx="0.3" />
|
|
<rect x="18.5" y="16" width="3" height="2.8" rx="0.3" />
|
|
</svg>
|
|
</Link>
|
|
<Link
|
|
href="/"
|
|
className="relative font-caveat text-[1.2rem] md:text-[1.35rem] font-semibold text-gray-800 after:content-[''] after:absolute after:-bottom-0.5 after:left-0 after:w-full after:h-[1.5px] after:bg-gray-500 after:rounded after:-rotate-[0.5deg]"
|
|
>
|
|
samosaChaat
|
|
</Link>
|
|
</div>
|
|
|
|
<div className="flex items-center gap-4 font-caveat text-[1.05rem] text-gray-600 pt-1">
|
|
<a
|
|
href="https://instagram.com/samosachaat.art"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="hidden sm:inline hover:text-brown transition-colors"
|
|
>
|
|
@samosachaat
|
|
</a>
|
|
{authenticated ? (
|
|
<Link
|
|
href="/chat"
|
|
className="px-5 py-2 rounded-full bg-gold text-white font-semibold hover:bg-gold-dark transition-colors shadow-sm"
|
|
>
|
|
Chat
|
|
</Link>
|
|
) : (
|
|
<Link
|
|
href="/login"
|
|
className="px-5 py-2 rounded-full bg-gold text-white font-semibold hover:bg-gold-dark transition-colors shadow-sm"
|
|
>
|
|
Sign in
|
|
</Link>
|
|
)}
|
|
</div>
|
|
</nav>
|
|
);
|
|
}
|