Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ export default function Router() {

function LoadingScreen() {
return (
<div className="min-h-screen flex items-center justify-center bg-slate-50">
<div className="min-h-screen flex items-center justify-center bg-cream">
<div className="text-center">
<div className="w-8 h-8 border-4 border-orange-500 border-t-transparent rounded-full animate-spin mx-auto" />
<p className="mt-3 text-sm text-slate-500">Loading...</p>
<div className="w-8 h-8 border-4 border-brand-600 border-t-transparent rounded-full animate-spin mx-auto" />
<p className="mt-3 text-sm text-brand-800/75">Loading…</p>
</div>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/components/landing/Features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default function Features() {
<f.icon className="w-5 h-5 text-brand-600" />
</div>
<h3 className="text-base font-bold text-brand-900 mb-1.5">{f.title}</h3>
<p className="text-sm text-brand-800/60 leading-relaxed">{f.desc}</p>
<p className="text-sm text-brand-800/75 leading-relaxed">{f.desc}</p>
</div>
))}
</div>
Expand Down Expand Up @@ -100,7 +100,7 @@ export default function Features() {
{v.points.map((pt, j) => (
<li key={j} className="flex items-start gap-3">
<Check className="w-4 h-4 text-brand-600 mt-0.5 shrink-0" />
<span className="text-sm text-brand-800/70 leading-snug">{pt}</span>
<span className="text-sm text-brand-800/75 leading-snug">{pt}</span>
</li>
))}
</ul>
Expand Down
8 changes: 4 additions & 4 deletions src/components/landing/FinalCTA.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function FinalCTA() {
return (
<section className="py-24 sm:py-32 bg-cream">
<div ref={ref} className="reveal max-w-7xl mx-auto px-5 sm:px-8">
<div className="relative overflow-hidden rounded-3xl bg-gradient-to-br from-brand-800 to-brand-900 px-8 py-16 sm:px-16 sm:py-20 text-center">
<div className="on-dark relative overflow-hidden rounded-3xl bg-gradient-to-br from-brand-800 to-brand-900 px-8 py-16 sm:px-16 sm:py-20 text-center">
<div className="absolute inset-0 pointer-events-none">
<div className="absolute -top-20 -right-20 w-72 h-72 bg-brand-500/15 rounded-full blur-[100px]" />
<div className="absolute -bottom-20 -left-20 w-60 h-60 bg-brand-400/15 rounded-full blur-[100px]" />
Expand All @@ -25,14 +25,14 @@ export default function FinalCTA() {
<span className="text-brand-300">Did you catch it?</span>
</h2>

<p className="mt-5 text-lg text-cream/60 leading-relaxed">
<p className="mt-5 text-lg text-cream/70 leading-relaxed">
Start your free trial — upload your first invoice in 60 seconds. No credit card. No setup fee. No commitment.
</p>

<div className="mt-10 flex flex-col sm:flex-row items-center justify-center gap-4">
<a
href="/app"
className="group inline-flex items-center justify-center gap-2 px-8 py-4 rounded-xl bg-cream text-brand-900 font-semibold text-base hover:bg-white transition-all hover:-translate-y-0.5"
className="press group inline-flex items-center justify-center gap-2 px-8 py-4 rounded-xl bg-cream text-brand-900 font-semibold text-base hover:bg-white hover:-translate-y-0.5"
>
Start Free Trial
<ArrowRight className="w-4 h-4 transition-transform group-hover:translate-x-1" />
Expand All @@ -41,7 +41,7 @@ export default function FinalCTA() {
href={DEMO_BOOKING_URL}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center justify-center gap-2 px-8 py-4 rounded-xl bg-white/[0.08] border border-cream/20 text-cream font-medium text-base hover:bg-white/[0.14] transition-all"
className="press inline-flex items-center justify-center gap-2 px-8 py-4 rounded-xl bg-white/[0.08] border border-cream/20 text-cream font-medium text-base hover:bg-white/[0.14]"
>
Book a 30-Min Demo
</a>
Expand Down
8 changes: 4 additions & 4 deletions src/components/landing/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ export default function Footer() {
ChefCode<span className="text-brand-600">.ai</span>
</span>
</a>
<p className="text-sm text-brand-800/60 leading-relaxed max-w-xs">
<p className="text-sm text-brand-800/75 leading-relaxed max-w-xs">
AI-powered invoice intelligence for food service teams. Save time, catch overcharges, export clean data.
</p>
</div>

{/* Link columns */}
{columns.map((col, i) => (
<div key={i}>
<h4 className="text-xs font-semibold text-brand-800/50 uppercase tracking-widest mb-4">{col.title}</h4>
<h4 className="text-xs font-semibold text-brand-800/75 uppercase tracking-widest mb-4">{col.title}</h4>
<ul className="space-y-2.5">
{col.links.map((link, j) => (
<li key={j}>
Expand All @@ -84,7 +84,7 @@ export default function Footer() {
</div>

<div className="mt-14 pt-8 border-t border-cream-200 flex flex-col sm:flex-row items-center justify-between gap-4">
<p className="text-xs text-brand-800/50">&copy; {new Date().getFullYear()} ChefCode.ai. All rights reserved.</p>
<p className="text-xs text-brand-800/75">&copy; {new Date().getFullYear()} ChefCode.ai. All rights reserved.</p>
<div className="flex items-center gap-6">
{[
{ label: 'Privacy', href: '/privacy' },
Expand All @@ -94,7 +94,7 @@ export default function Footer() {
<a
key={l.href}
href={l.href}
className="text-xs text-brand-800/70 hover:text-brand-700 transition-colors rounded focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand-600"
className="text-xs text-brand-800/75 hover:text-brand-700 transition-colors rounded focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand-600"
>
{l.label}
</a>
Expand Down
15 changes: 9 additions & 6 deletions src/components/landing/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function Hero() {
<span className="text-gradient">in seconds.</span>
</h1>

<p className="mt-6 text-lg text-brand-800/70 leading-relaxed max-w-lg">
<p className="mt-6 text-lg text-brand-800/75 leading-relaxed max-w-lg">
ChefCode reads your supplier invoices, assigns the right GL codes,
and flags vendor overcharges — automatically. In under 60 seconds,
not 24 hours.
Expand All @@ -37,21 +37,21 @@ export default function Hero() {
<div className="mt-9 flex flex-col sm:flex-row gap-4">
<a
href="/app"
className="group inline-flex items-center justify-center gap-2 px-7 py-3.5 rounded-xl bg-brand-600 text-cream font-semibold text-base hover:bg-brand-700 transition-all hover:-translate-y-0.5 shadow-lg shadow-brand-600/20"
className="press group inline-flex items-center justify-center gap-2 px-7 py-3.5 rounded-xl bg-brand-600 text-cream font-semibold text-base hover:bg-brand-700 hover:-translate-y-0.5 shadow-lg shadow-brand-600/20"
>
Start Free Trial
<ArrowRight className="w-4 h-4 transition-transform group-hover:translate-x-1" />
</a>
<a
href="#how-it-works"
className="group inline-flex items-center justify-center gap-2 px-7 py-3.5 rounded-xl bg-white border border-cream-300 text-brand-800 font-medium text-base hover:border-brand-300 transition-all"
className="press group inline-flex items-center justify-center gap-2 px-7 py-3.5 rounded-xl bg-white border border-cream-300 text-brand-800 font-medium text-base hover:border-brand-300"
>
<Play className="w-4 h-4 text-brand-600" />
See How It Works
</a>
</div>

<p className="mt-5 text-sm text-brand-800/50">15-day free trial · no credit card</p>
<p className="mt-5 text-sm text-brand-800/75">15-day free trial · no credit card</p>

{/* Origin story, not invented logos.
This replaced a stack of four fake monograms (UC/HG/DM/RK) over
Expand All @@ -67,8 +67,11 @@ export default function Hero() {
</div>
</div>

{/* ── Right: Invoice demo ── */}
<div className="hidden lg:block">
{/* ── Right: Invoice demo ──
Was `hidden lg:block`, so phone visitors never saw the product at
all — the single most persuasive element on the page was desktop
only. It stacks under the copy on small screens. */}
<div className="mt-4 lg:mt-0">
<InvoiceDemo />
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/landing/HowItWorks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function HowItWorks() {
<h2 className="text-3xl sm:text-4xl font-extrabold text-brand-900 tracking-tight">
Three steps. Under a minute.
</h2>
<p className="mt-4 text-lg text-brand-800/60 leading-relaxed">
<p className="mt-4 text-lg text-brand-800/75 leading-relaxed">
No training required. If your team can take a photo, they can use ChefCode.
</p>
</div>
Expand All @@ -38,7 +38,7 @@ export default function HowItWorks() {
</div>

<h3 className="text-xl font-bold text-brand-900 mb-2">{s.title}</h3>
<p className="text-sm text-brand-800/60 leading-relaxed max-w-xs mx-auto">{s.desc}</p>
<p className="text-sm text-brand-800/75 leading-relaxed max-w-xs mx-auto">{s.desc}</p>

{i < steps.length - 1 && (
<ArrowRight className="hidden md:block absolute top-16 -right-6 w-5 h-5 text-brand-300" />
Expand Down
10 changes: 5 additions & 5 deletions src/components/landing/InvoiceDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ export default function InvoiceDemo() {
<FileText className="w-4 h-4 text-brand-600" />
<span className="text-sm font-semibold text-brand-900">Invoice #INV-2847</span>
</div>
<span className="text-xs font-medium text-brand-800/50">Sysco Foods</span>
<span className="text-xs font-medium text-brand-800/75">Sysco Foods</span>
</div>

{/* ── Body ── */}
<div className="p-5">
<div className="grid grid-cols-[1fr_auto_auto_auto] gap-3 text-[10px] font-semibold uppercase tracking-wider text-brand-800/40 mb-3 px-1">
<div className="grid grid-cols-[1fr_auto_auto_auto] gap-3 text-[10px] font-semibold uppercase tracking-wider text-brand-800/75 mb-3 px-1">
<span>Item</span>
<span className="text-right">Qty</span>
<span className="text-right">Price</span>
Expand All @@ -50,10 +50,10 @@ export default function InvoiceDemo() {
)}
<span className="text-xs text-brand-900 truncate">{item.name}</span>
</div>
<span className="text-xs text-brand-800/50 text-right">{item.qty}</span>
<span className="text-xs text-brand-800/75 text-right">{item.qty}</span>
<div className="text-right">
<span className="text-xs text-brand-900">{item.price}</span>
{item.spike && <span className="ml-1.5 text-[10px] font-bold text-amber-600">{item.spike}</span>}
{item.spike && <span className="ml-1.5 text-[10px] font-bold text-amber-800">{item.spike}</span>}
</div>
<span className="text-[10px] text-brand-600 text-right font-mono font-semibold">{item.gl}</span>
</div>
Expand All @@ -76,7 +76,7 @@ export default function InvoiceDemo() {

{/* ── Footer ── */}
<div className="px-5 py-3 border-t border-cream-100 bg-cream-50 flex items-center justify-between">
<span className="text-[10px] text-brand-800/50">Processed in 47 seconds</span>
<span className="text-[10px] text-brand-800/75">Processed in 47 seconds</span>
<span className="text-[10px] font-medium text-brand-600">98% confidence</span>
</div>
</div>
Expand Down
55 changes: 46 additions & 9 deletions src/components/landing/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@ export default function Navbar() {
return () => window.removeEventListener('scroll', onScroll);
}, []);

// While the sheet is open the page behind it must not scroll — otherwise
// the content slides around under a menu that looks fixed. Escape closes it,
// because a panel you can open from the keyboard you must be able to leave.
useEffect(() => {
if (!mobileOpen) return;
const prev = document.body.style.overflow;
document.body.style.overflow = 'hidden';
const onKey = (e: KeyboardEvent) => { if (e.key === 'Escape') setMobileOpen(false); };
window.addEventListener('keydown', onKey);
return () => {
document.body.style.overflow = prev;
window.removeEventListener('keydown', onKey);
};
}, [mobileOpen]);

return (
<nav
className={`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${
Expand All @@ -36,34 +51,57 @@ export default function Navbar() {
{/* ── Desktop links ── */}
<div className="hidden md:flex items-center gap-8">
{links.map((l) => (
<a key={l.href} href={l.href} className="text-sm font-medium text-brand-800/70 hover:text-brand-600 transition-colors">
<a key={l.href} href={l.href} className="text-sm font-medium text-brand-800/75 hover:text-brand-600 transition-colors">
{l.label}
</a>
))}
</div>

{/* ── CTA buttons ── */}
<div className="hidden md:flex items-center gap-3">
<a href="/app" className="text-sm font-medium px-4 py-2 text-brand-800 hover:text-brand-600 transition-colors">
<a href="/app" className="press text-sm font-medium px-4 py-2 text-brand-800 hover:text-brand-600">
Sign In
</a>
<a
href="/app"
className="text-sm font-semibold px-5 py-2.5 rounded-xl bg-brand-600 text-cream hover:bg-brand-700 transition-colors"
className="press text-sm font-semibold px-5 py-2.5 rounded-xl bg-brand-600 text-cream hover:bg-brand-700"
>
Start Free Trial
</a>
</div>

{/* ── Mobile toggle ── */}
<button className="md:hidden p-2 text-brand-800" onClick={() => setMobileOpen(!mobileOpen)} aria-label="Toggle menu">
<button
className="press md:hidden p-2 text-brand-800"
onClick={() => setMobileOpen(!mobileOpen)}
aria-label={mobileOpen ? 'Close menu' : 'Open menu'}
aria-expanded={mobileOpen}
aria-controls="mobile-menu"
>
{mobileOpen ? <X className="w-6 h-6" /> : <Menu className="w-6 h-6" />}
</button>
</div>

{/* ── Mobile menu ── */}
{mobileOpen && (
<div className="md:hidden bg-cream border-t border-cream-200 shadow-xl animate-fade-in-down">
{/* ── Mobile menu ──
Kept mounted and toggled with classes rather than conditionally
rendered, so it animates on the way out as well as in — a panel that
slides open and then vanishes reads as broken. The scrim dims the page
behind it and closes on tap. */}
<div
onClick={() => setMobileOpen(false)}
aria-hidden="true"
className={`md:hidden fixed inset-0 top-[72px] bg-brand-900/20 transition-opacity duration-200 ${
mobileOpen ? 'opacity-100' : 'opacity-0 pointer-events-none'
}`}
/>
<div
id="mobile-menu"
className={`md:hidden relative bg-cream border-t border-cream-200 shadow-xl origin-top transition-all duration-200 ease-out ${
mobileOpen
? 'opacity-100 translate-y-0'
: 'opacity-0 -translate-y-2 pointer-events-none invisible'
}`}
>
<div className="px-5 py-4 space-y-1">
{links.map((l) => (
<a
Expand All @@ -84,8 +122,7 @@ export default function Navbar() {
</a>
</div>
</div>
</div>
)}
</div>
</nav>
);
}
4 changes: 2 additions & 2 deletions src/components/landing/PainPoints.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function PainPoints() {
<h2 className="text-3xl sm:text-4xl font-extrabold text-brand-900 tracking-tight">
Your invoices are costing you more than you think
</h2>
<p className="mt-4 text-lg text-brand-800/60 leading-relaxed">
<p className="mt-4 text-lg text-brand-800/75 leading-relaxed">
Food service teams lose thousands every month to invisible inefficiencies.
</p>
</div>
Expand All @@ -45,7 +45,7 @@ export default function PainPoints() {
<p.icon className="w-6 h-6 text-brand-600" />
</div>
<h3 className="text-lg font-bold text-brand-900 mb-2">{p.title}</h3>
<p className="text-sm text-brand-800/60 leading-relaxed">{p.desc}</p>
<p className="text-sm text-brand-800/75 leading-relaxed">{p.desc}</p>
</div>
))}
</div>
Expand Down
Loading
Loading