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
2 changes: 1 addition & 1 deletion components/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ export const Login: React.FC<LoginProps> = ({ onLogin }) => {
<Zap size={14} className="text-violet-600" />
<div>
<p className="text-xs font-bold text-slate-800">Need Enterprise?</p>
<p className="text-[10px] text-slate-500">Unlimited locations + SSO + EDI</p>
<p className="text-[10px] text-slate-500">Unlimited locations + custom integrations</p>
</div>
</div>
<a href={DEMO_BOOKING_URL} target="_blank" rel="noopener noreferrer" className="text-[11px] font-bold text-violet-700 hover:text-violet-900 underline">
Expand Down
29 changes: 7 additions & 22 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
<link rel="apple-touch-icon" href="/logo.svg" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<title>ChefCode.ai — AI Invoice Coding</title>

<!-- Search + link previews. This is a client-rendered SPA, so the crawler
Expand All @@ -31,31 +31,16 @@
<meta name="twitter:title" content="ChefCode.ai — AI Invoice Coding" />
<meta name="twitter:description" content="ChefCode reads your supplier invoices, assigns the right GL codes, and flags vendor overcharges — automatically. Built for food service teams." />
<meta name="twitter:image" content="https://www.chefcode.cc/og-image.png" />
<!-- Tailwind is compiled by the Vite build (src/index.css + tailwind.config.js),
which scans the whole app. The old cdn.tailwindcss.com runtime shim has
been retired; `cyan` is remapped to brand green in tailwind.config.js. -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
}
/* Painted inline so the very first frame is already the brand cream.
The compiled stylesheet arrives a moment later; without this the page
flashed a cool grey (bg-slate-50) before switching to cream. */
html, body { background: #faf6e8; color: #123a2c; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
</style>
<script type="importmap">
{
"imports": {
"@google/genai": "https://esm.sh/@google/genai@^1.41.0",
"react-dom/": "https://esm.sh/react-dom@^19.2.4/",
"react/": "https://esm.sh/react@^19.2.4/",
"react": "https://esm.sh/react@^19.2.4",
"lucide-react": "https://esm.sh/lucide-react@^0.574.0",
"recharts": "https://esm.sh/recharts@^3.7.0",
"jspdf": "https://esm.sh/jspdf@^2.5.1",
"@supabase/supabase-js": "https://esm.sh/@supabase/supabase-js@2"
}
}
</script>
</head>
<body class="bg-slate-50 text-slate-900 antialiased">
<body class="antialiased">
<div id="root"></div>
<script type="module" src="/index.tsx"></script>
</body>
Expand Down
Binary file added public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
User-agent: *
Allow: /

# The signed-in product. To a crawler it is only a login screen, and indexing
# it would put a sign-in form in search results instead of the landing page.
Disallow: /app

Sitemap: https://www.chefcode.cc/sitemap.xml
9 changes: 9 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url><loc>https://www.chefcode.cc/</loc><changefreq>weekly</changefreq><priority>1.0</priority></url>
<url><loc>https://www.chefcode.cc/setup</loc><changefreq>monthly</changefreq><priority>0.6</priority></url>
<url><loc>https://www.chefcode.cc/security</loc><changefreq>monthly</changefreq><priority>0.6</priority></url>
<url><loc>https://www.chefcode.cc/privacy</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://www.chefcode.cc/terms</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
<url><loc>https://www.chefcode.cc/dpa</loc><changefreq>yearly</changefreq><priority>0.3</priority></url>
</urlset>
41 changes: 27 additions & 14 deletions src/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ const Privacy = lazy(() => import('./pages/Privacy'));
const Terms = lazy(() => import('./pages/Terms'));
const SecurityOverview = lazy(() => import('./pages/SecurityOverview'));
const DataProcessing = lazy(() => import('./pages/DataProcessing'));
const NotFound = lazy(() => import('./pages/NotFound'));

// Policy pages. Longest-prefix-free: none of these is a prefix of another, and
// none collides with the landing page's #security anchor (that's a hash, not a
// path). Kept in one table so adding a page is a single line.
// Policy pages, matched exactly. None collides with the landing page's
// #security anchor — that's a hash, not a path. Kept in one table so adding a
// page is one line here plus one entry in vercel.json's rewrites.
const LEGAL_ROUTES: Array<[string, React.LazyExoticComponent<() => JSX.Element>]> = [
['/privacy', Privacy],
['/terms', Terms],
Expand All @@ -33,26 +34,30 @@ export default function Router() {
return () => window.removeEventListener('popstate', onNav);
}, []);

// Any path starting with /app loads the existing product
if (path.startsWith('/app')) {
// Matching is exact, not prefix. With startsWith, /setupfoo or
// /security-team rendered a real page while the server (vercel.json) answered
// the same URL with a 404 — two halves of the site disagreeing about which
// pages exist. These rules must stay in step with the rewrites there.
const clean = path.length > 1 ? path.replace(/\/+$/, '') : path;

// The product: /app, plus anything beneath it (auth redirects land on /app).
if (clean === '/app' || clean.startsWith('/app/')) {
return (
<Suspense fallback={<LoadingScreen />}>
<ExistingApp />
</Suspense>
);
}

// Setup guide page
if (path.startsWith('/setup')) {
if (clean === '/setup') {
return (
<Suspense fallback={<LoadingScreen />}>
<SetupGuide />
</Suspense>
);
}

// Policy pages
const legal = LEGAL_ROUTES.find(([prefix]) => path.startsWith(prefix));
const legal = LEGAL_ROUTES.find(([route]) => clean === route);
if (legal) {
const Page = legal[1];
return (
Expand All @@ -62,20 +67,28 @@ export default function Router() {
);
}

// Everything else shows the landing page
if (clean === '/' || clean === '/index.html') {
return (
<Suspense fallback={<LoadingScreen />}>
<LandingPage />
</Suspense>
);
}

// Anything else is not a page.
return (
<Suspense fallback={<LoadingScreen />}>
<LandingPage />
<NotFound />
</Suspense>
);
}

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
22 changes: 11 additions & 11 deletions src/components/landing/Features.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import {
Scan, TrendingUp, BookOpen, Users, Bell, BarChart3,
Scan, TrendingUp, BookOpen, Users, CopyCheck, BarChart3,
GraduationCap, Hotel, Check,
} from 'lucide-react';
import { useReveal } from '../../hooks/useReveal';

const features = [
{ icon: Scan, title: 'AI invoice extraction', desc: 'Upload any format — PDF, photo, email attachment. Line items extracted in seconds with 98% accuracy.' },
{ icon: TrendingUp, title: 'Price spike detection', desc: 'Automatic alerts when a vendor raises prices above your threshold. Catch overcharges before they hit your P&L.' },
{ icon: Scan, title: 'AI invoice extraction', desc: 'Upload a PDF or snap a photo on your phone. Every line item is read and structured in seconds, ready for you to review.' },
{ icon: TrendingUp, title: 'Price change detection', desc: 'Every line is checked against what you last paid for that item. Anything more than 10% higher is flagged while you review.' },
{ icon: BookOpen, title: 'Auto GL coding', desc: 'Every line item auto-categorized to your chart of accounts. No more back-and-forth with accounting.' },
{ icon: Users, title: 'Role-based access', desc: 'Owner, Manager, Chef, Viewer — each role sees exactly what they need. Nothing more, nothing less.' },
{ icon: Bell, title: 'Approval workflow', desc: 'Invoices flow from upload to review to approval. Notifications keep the right people in the loop.' },
{ icon: BarChart3, title: 'Spend analytics', desc: 'Monthly spend by category, vendor, and location. Spot trends. Make data-driven purchasing decisions.' },
{ icon: CopyCheck, title: 'Duplicate detection', desc: 'Upload the same invoice twice and ChefCode catches it, so nothing gets coded — or paid — twice.' },
{ icon: BarChart3, title: 'Spend analytics', desc: 'Monthly spend broken down by GL category, with every flagged price change on one screen.' },
];

const verticals = [
Expand All @@ -23,17 +23,17 @@ const verticals = [
'GL code mapping for institutional accounting',
'Works alongside CBORD & Computrition',
'FERPA-safe — zero student data touched',
'Full audit trail for compliance reviews',
'Every invoice traceable to who processed it',
],
},
{
icon: Hotel,
title: 'Hotels & Hospitality',
color: 'from-brand-600 to-brand-400',
points: [
'Multi-property invoice consolidation',
'Role-based access (GM, Chef, Controller)',
'Price spike alerts across all vendors',
'Invoices tracked per property',
'Role-based access for GMs, chefs and controllers',
'Price change flags across every vendor',
'Sysco, US Foods, Freshpoint pre-loaded',
'Encrypted data with SOC 2 compliant hosting',
],
Expand Down 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
22 changes: 14 additions & 8 deletions src/components/landing/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ArrowRight, Play, GraduationCap } from 'lucide-react';
import { ArrowRight, ArrowDown, GraduationCap } from 'lucide-react';
import InvoiceDemo from './InvoiceDemo';

export default function Hero() {
Expand Down 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,24 @@ 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" />
{/* Was a play triangle, which promises a video. There is no
video — this scrolls to the three-step explainer — so the
icon now says what the button actually does. */}
<ArrowDown 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 +70,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
Loading
Loading