import { useState, useEffect } from "react";
import { motion, AnimatePresence } from "framer-motion";
/* ============================================================
DATA
============================================================ */
const NAV_ITEMS = [
{ id: "home", label: "Home" },
{ id: "menu", label: "Menu" },
{ id: "about", label: "About" },
{ id: "contact", label: "Contact" },
];
const DISHES = [
{
name: "Divyesh Special Galouti",
price: "₹ 620",
desc: "Melt-in-the-mouth minced lamb kebab, slow-pounded with over twenty spices, served on a warm ulta tawa paratha.",
icon: (
),
},
{
name: "Nalli Nihari",
price: "₹ 780",
desc: "Bone-in lamb shank, simmered overnight over embers with saffron and slow-fried onions, finished tableside.",
icon: (
),
},
{
name: "Lasooni Paneer Angara",
price: "₹ 540",
desc: "House paneer marinated in charred garlic and Kashmiri chilli, finished in the tandoor with a whisper of smoke.",
icon: (
),
},
];
const MENU_CATEGORIES = [
{
id: "starters",
label: "Beginnings",
items: [
{ veg: true, name: "Amritsari Aloo Tikki", desc: "Spiced potato patties, tamarind & mint chutney, whipped yoghurt.", price: "₹ 320" },
{ veg: true, name: "Tandoori Mushroom Malai", desc: "Button mushrooms marinated in cream and cheese, char-grilled.", price: "₹ 380" },
{ veg: false, name: "Murgh Malai Kebab", desc: "Chicken thigh marinated in cream, cashew and green chilli, tandoor-roasted.", price: "₹ 460" },
{ veg: false, name: "Machli Amritsari", desc: "Ajwain-batter fried fish, crisp on the outside, delicate within.", price: "₹ 520" },
],
},
{
id: "tandoor",
label: "Tandoor & Grill",
items: [
{ veg: true, name: "Lasooni Paneer Angara", desc: "House paneer, charred garlic, Kashmiri chilli, tandoor smoke.", price: "₹ 540" },
{ veg: false, name: "Divyesh Special Galouti", desc: "Slow-pounded minced lamb kebab, twenty spices, ulta tawa paratha.", price: "₹ 620" },
{ veg: false, name: "Tandoori Prawns", desc: "Jumbo prawns, carom seed marinade, finished over live coals.", price: "₹ 780" },
{ veg: false, name: "Whole Tandoori Chicken", desc: "Overnight-marinated, roasted whole, served with mint chutney.", price: "₹ 690" },
],
},
{
id: "mains",
label: "Curries & Mains",
items: [
{ veg: false, name: "Nalli Nihari", desc: "Bone-in lamb shank, saffron, slow-fried onions, overnight simmer.", price: "₹ 780" },
{ veg: true, name: "Shahi Paneer Makhmali", desc: "Paneer in a velvet tomato-cashew gravy, finished with saffron cream.", price: "₹ 560" },
{ veg: false, name: "Butter Chicken Darbari", desc: "Tandoor-charred chicken, tomato-butter gravy, fenugreek.", price: "₹ 620" },
{ veg: true, name: "Dal Divyesh", desc: "Black lentils, slow-simmered overnight with butter and cream.", price: "₹ 420" },
],
},
{
id: "biryani",
label: "Biryani & Rice",
items: [
{ veg: false, name: "Lucknowi Gosht Biryani", desc: "Lamb, aged basmati, dum-sealed with saffron and rose water.", price: "₹ 680" },
{ veg: true, name: "Subz Dum Biryani", desc: "Seasonal vegetables, aromatic basmati, sealed and slow-cooked.", price: "₹ 480" },
{ veg: true, name: "Jeera Rice", desc: "Basmati tempered with cumin and ghee.", price: "₹ 260" },
],
},
{
id: "breads",
label: "Breads",
items: [
{ veg: true, name: "Butter Garlic Naan", desc: "Tandoor-baked, brushed with garlic butter.", price: "₹ 140" },
{ veg: true, name: "Laccha Paratha", desc: "Layered wholewheat flatbread, ghee-roasted.", price: "₹ 130" },
{ veg: true, name: "Ulta Tawa Paratha", desc: "Thin, crisp flatbread cooked on an inverted griddle.", price: "₹ 120" },
],
},
{
id: "desserts",
label: "Sweet Endings",
items: [
{ veg: true, name: "Gulab Jamun Tart", desc: "Warm milk-solid dumplings in saffron syrup, on a crisp tart base.", price: "₹ 280" },
{ veg: true, name: "Kesar Pista Kulfi", desc: "Saffron and pistachio frozen milk dessert, slow-set the traditional way.", price: "₹ 260" },
],
},
{
id: "beverages",
label: "Beverages",
items: [
{ veg: true, name: "Masala Chaas", desc: "Spiced buttermilk, curry leaf tempering.", price: "₹ 140" },
{ veg: true, name: "Rose Lassi", desc: "Thick yoghurt churned with rose syrup.", price: "₹ 180" },
{ veg: true, name: "Masala Chai", desc: "Slow-brewed with cardamom, ginger and clove.", price: "₹ 110" },
],
},
];
const TIMELINE = [
{ yr: "Founding", title: "The First Tandoor", desc: "A single oven and a family recipe book laid the foundation for everything that followed." },
{ yr: "Second Generation", title: "The Dining Room Expands", desc: "What was once a family kitchen grew into a proper dining room, welcoming guests from across the city." },
{ yr: "Third Generation", title: "A Refined Table", desc: "The current kitchen carries the same recipes forward, plated with a quieter, more considered elegance." },
{ yr: "Today", title: "Divyesh Restaurant", desc: "Every dish still begins the same way it always has — with time, patience, and a well-worn recipe book." },
];
const INFO = [
{
label: "Address",
value: "Divyesh Restaurant, Ring Road, Surat, Gujarat 395002",
icon: (
),
},
{
label: "Phone",
value: "+91 99999 99999",
href: "tel:+919999999999",
icon: (
),
},
{
label: "Email",
value: "hello@divyeshrestaurant.com",
href: "mailto:hello@divyeshrestaurant.com",
icon: (
),
},
{
label: "Hours",
value: "Every day, 12:00 pm – 3:00 pm & 7:00 pm – 11:00 pm",
icon: (
),
},
];
/* ============================================================
SHARED PIECES
============================================================ */
function Divider() {
return (
);
}
function Reveal({ children, delay = 0, className = "" }) {
return (
{children}
);
}
function ArchFrame({ children, delay = 0 }) {
return (
{children}
);
}
function Hero({ eyebrow, title, tagline, big = false, children }) {
return (
{eyebrow}
{title}
{tagline}
{children}
);
}
function Nav({ page, goTo, mobileOpen, setMobileOpen }) {
return (
);
}
function Footer({ goTo }) {
return (
);
}
function FormField({ id, label, error, children }) {
return (
{label}
{children}
{error && (
{error}
)}
);
}
/* ============================================================
PAGES
============================================================ */
function HomePage({ goTo }) {
return (
<>
goTo("menu")}>
View Menu
goTo("contact")}>
Reserve a Table
Signature Dishes
From the Tandoor & Beyond
Three dishes our regulars never let us take off the menu.
{DISHES.map((d, i) => (
{d.name}
{d.price}
{d.desc}
))}
Our Story
Three generations, one kitchen
Divyesh Restaurant began as a single tandoor oven and a family recipe book. Today, the same slow
methods — hand-ground spices, dum-cooked biryanis, bread proofed overnight — shape every plate that
leaves our kitchen.
goTo("about")}>
Read Our Story
"Every dish arrives as if it has been waiting all evening just for you. This is the most gracious
Indian dining room in the city."
— Priya Mehta, Food Columnist
>
);
}
function MenuPage() {
const [active, setActive] = useState(MENU_CATEGORIES[0].id);
const activeCat = MENU_CATEGORIES.find((c) => c.id === active);
return (
<>
Every dish is prepared fresh, to order. Vegetarian
Non-Vegetarian
>
}
/>
{MENU_CATEGORIES.map((cat) => (
setActive(cat.id)}
>
{cat.label}
))}
{activeCat.label}
{activeCat.items.map((item, i) => (
{item.price}
))}
>
);
}
function AboutPage({ goTo }) {
return (
<>
Chapter One
Where it began
Divyesh Restaurant opened its doors with one tandoor oven, a handwritten recipe book, and a belief
that good food takes time. What started as a modest family kitchen has grown into a dining room
known across Surat for its patience — dishes that are dum-cooked, slow-simmered, and never rushed.
Every recipe on our menu traces back to that first oven, adjusted only in scale, never in spirit.
Milestones
A journey, one dish at a time
{TIMELINE.map((t, i) => (
{t.yr}
{t.title}
{t.desc}
))}
"We don't cook to impress. We cook the way our grandmother did — slowly, generously, and with a great
deal of patience."
— The Divyesh Kitchen
>
);
}
const EMPTY_FORM = { name: "", phone: "", guests: "2", date: "", time: "", notes: "" };
function ContactPage() {
const [form, setForm] = useState(EMPTY_FORM);
const [errors, setErrors] = useState({});
const [submittedName, setSubmittedName] = useState(null);
function handleChange(e) {
const { id, value } = e.target;
setForm((f) => ({ ...f, [id]: value }));
if (errors[id]) setErrors((er) => ({ ...er, [id]: null }));
}
function validate() {
const er = {};
if (!form.name.trim()) er.name = "Please enter your name.";
if (!form.phone.trim()) er.phone = "Please enter a phone number.";
else if (!/^[0-9+\-\s]{7,15}$/.test(form.phone)) er.phone = "That doesn't look like a valid phone number.";
if (!form.date) er.date = "Please choose a date.";
if (!form.time) er.time = "Please choose a time.";
return er;
}
function handleSubmit(e) {
e.preventDefault();
const er = validate();
setErrors(er);
if (Object.keys(er).length === 0) {
setSubmittedName(form.name);
setForm(EMPTY_FORM);
setTimeout(() => setSubmittedName(null), 6000);
}
}
return (
<>
Find Us
Get in Touch
Map — Ring Road, Surat, Gujarat
{INFO.map((item) => (
{item.icon}
))}
Reserve a Table
Book Your Evening
>
);
}
/* ============================================================
APP
============================================================ */
const CSS = `
@import url('https://fonts.googleapis.com/css2?family=Yatra+One&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,500&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');
.site-root{
--maroon-deep:#2B0A10; --maroon-mid:#3E1119; --maroon-soft:#4A1420; --charcoal:#180C0A;
--gold:#C9A24B; --gold-light:#E8D9A0; --gold-dim:#8C6A3F; --ivory:#F3E8D6; --ivory-dim:#CBB79E;
--veg:#2E7D32; --nonveg:#8A3324; --maxw:1180px;
background:var(--maroon-deep); color:var(--ivory); font-family:'EB Garamond', serif;
font-size:18px; line-height:1.7; -webkit-font-smoothing:antialiased;
background-image:
radial-gradient(ellipse at top, rgba(201,162,75,0.06), transparent 60%),
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84'%3E%3Cg fill='none' stroke='%23C9A24B' stroke-opacity='0.06' stroke-width='1'%3E%3Ccircle cx='42' cy='42' r='16'/%3E%3Cpath d='M42 6 L42 78 M6 42 L78 42 M14 14 L70 70 M70 14 L14 70'/%3E%3C/g%3E%3C/svg%3E");
min-height:100vh;
}
.site-root *,.site-root *::before,.site-root *::after{box-sizing:border-box;}
.site-root h1,.site-root h2,.site-root h3,.site-root h4{
font-family:'Cormorant Garamond', serif; color:var(--gold-light); font-weight:600; margin:0 0 .4em; letter-spacing:.01em;
}
.site-root .logotype{font-family:'Yatra One', cursive; letter-spacing:.03em;}
.site-root a{color:inherit; text-decoration:none; cursor:pointer;}
.site-root .eyebrow{
font-family:'Cormorant Garamond', serif; font-style:italic; font-weight:500;
letter-spacing:.28em; text-transform:uppercase; color:var(--gold); font-size:14px;
}
/* Header / Nav */
.site-root header.site{
position:sticky; top:0; z-index:50; background:rgba(24,12,10,0.92); backdrop-filter:blur(6px);
border-bottom:1px solid rgba(201,162,75,0.25);
}
.site-root .nav-row{display:flex; align-items:center; justify-content:space-between; padding:18px 32px; max-width:var(--maxw); margin:0 auto;}
.site-root .brand{font-family:'Yatra One', cursive; font-size:26px; color:var(--gold-light); display:flex; align-items:center; gap:10px;}
.site-root .brand .mark{color:var(--gold); font-size:20px;}
.site-root nav.links{display:flex; gap:34px; align-items:center;}
.site-root nav.links a{
font-family:'Cormorant Garamond', serif; font-size:17px; letter-spacing:.08em; text-transform:uppercase;
color:var(--ivory-dim); position:relative; padding:4px 0; transition:color .25s ease;
}
.site-root nav.links a:hover, .site-root nav.links a.active{color:var(--gold-light);}
.site-root .nav-indicator{position:absolute; left:0; right:0; bottom:-4px; height:1px; background:var(--gold);}
.site-root .btn{
display:inline-block; padding:12px 28px; border:1px solid var(--gold); color:var(--gold-light);
font-family:'Cormorant Garamond', serif; font-size:16px; letter-spacing:.12em; text-transform:uppercase;
transition:background .25s ease, color .25s ease; background:transparent; cursor:pointer;
}
.site-root .btn:hover{background:var(--gold); color:var(--charcoal);}
.site-root .btn.solid{background:var(--gold); color:var(--charcoal);}
.site-root .btn.solid:hover{background:var(--gold-light);}
.site-root .nav-toggle{display:none; background:none; border:1px solid var(--gold-dim); color:var(--gold-light); font-size:20px; padding:6px 12px;}
.site-root .mobile-links{
position:absolute; top:100%; left:0; right:0; background:var(--charcoal);
display:flex; flex-direction:column; border-bottom:1px solid rgba(201,162,75,0.2); overflow:hidden;
}
.site-root .mobile-links a{
padding:16px 32px; border-top:1px solid rgba(201,162,75,0.1);
font-family:'Cormorant Garamond'; letter-spacing:.08em; text-transform:uppercase; color:var(--ivory-dim); font-size:16px;
}
.site-root .mobile-links a.active{color:var(--gold-light);}
@media (max-width:860px){
.site-root .desktop-links{display:none;}
.site-root .nav-toggle{display:block;}
}
/* Arch motif */
.site-root .arch-frame{
position:relative; border:1px solid var(--gold-dim); border-radius:180px 180px 8px 8px; padding:3px;
background:linear-gradient(180deg, rgba(201,162,75,0.08), transparent 40%);
}
.site-root .arch-inner{
border:1px solid rgba(201,162,75,0.5); border-radius:170px 170px 4px 4px; min-height:220px;
display:flex; align-items:center; justify-content:center; padding:28px; text-align:center; background:var(--maroon-mid);
}
.site-root .arch-inner svg{width:64px; height:64px; opacity:.85;}
.site-root .divider{display:flex; align-items:center; justify-content:center; gap:18px; margin:0 auto; padding:64px 0 40px; color:var(--gold-dim);}
.site-root .divider .line{width:120px; height:1px; background:linear-gradient(90deg, transparent, var(--gold-dim));}
.site-root .divider .line.rev{background:linear-gradient(90deg, var(--gold-dim), transparent);}
.site-root .divider svg{width:22px; height:22px;}
/* Hero */
.site-root .hero{position:relative; padding:120px 32px 100px; text-align:center; overflow:hidden;}
.site-root .hero.hero-sub{padding:80px 32px 60px;}
.site-root .hero::before{content:''; position:absolute; inset:24px; border:1px solid rgba(201,162,75,0.35); pointer-events:none;}
.site-root .hero::after{content:''; position:absolute; inset:34px; border:1px solid rgba(201,162,75,0.18); pointer-events:none;}
.site-root .hero h1{font-size:clamp(48px, 8vw, 92px); margin:18px 0 8px; line-height:1;}
.site-root .hero.hero-sub h1{font-size:clamp(40px,6vw,64px);}
.site-root .hero .tagline{font-size:20px; font-style:italic; color:var(--ivory-dim); max-width:560px; margin:0 auto 40px;}
.site-root .hero .cta-row{display:flex; gap:22px; justify-content:center; flex-wrap:wrap;}
/* Sections */
.site-root section{padding:0 32px 40px;}
.site-root .section-head{text-align:center; max-width:640px; margin:0 auto 56px;}
.site-root .section-head h2{font-size:clamp(32px,4vw,48px);}
.site-root .section-head p{color:var(--ivory-dim); font-size:19px;}
.site-root .grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap:34px; max-width:var(--maxw); margin:0 auto;}
.site-root .grid-2{display:grid; grid-template-columns:1fr 1fr; gap:60px; max-width:var(--maxw); margin:0 auto; align-items:center;}
@media (max-width:860px){ .site-root .grid-3{grid-template-columns:1fr;} .site-root .grid-2{grid-template-columns:1fr;} }
.site-root .dish-card{text-align:center;}
.site-root .dish-card h3{font-size:26px; margin-top:22px;}
.site-root .dish-card .price{color:var(--gold); font-family:'Cormorant Garamond'; font-style:italic;}
.site-root .dish-card p.desc{color:var(--ivory-dim); font-size:16px;}
.site-root .quote-block{max-width:760px; margin:0 auto; text-align:center;}
.site-root .quote-block blockquote{
font-family:'Cormorant Garamond', serif; font-style:italic; font-size:clamp(22px,3vw,30px);
color:var(--gold-light); margin:0 0 18px; line-height:1.5;
}
.site-root .quote-block cite{color:var(--ivory-dim); font-size:15px; letter-spacing:.1em; text-transform:uppercase; font-style:normal;}
/* Footer */
.site-root footer.site{background:var(--charcoal); border-top:1px solid rgba(201,162,75,0.25); padding:64px 32px 32px; margin-top:60px;}
.site-root .footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:48px; max-width:var(--maxw); margin:0 auto 40px;}
@media (max-width:860px){ .site-root .footer-grid{grid-template-columns:1fr; gap:32px;} }
.site-root footer.site h4{font-size:20px; margin-bottom:14px;}
.site-root footer.site p, .site-root footer.site a{color:var(--ivory-dim); font-size:16px;}
.site-root footer.site a:hover{color:var(--gold-light);}
.site-root .footer-bottom{text-align:center; padding-top:28px; border-top:1px solid rgba(201,162,75,0.12); max-width:var(--maxw); margin:0 auto; color:var(--gold-dim); font-size:14px; letter-spacing:.05em;}
/* Menu page */
.site-root .menu-tabs{display:flex; flex-wrap:wrap; gap:14px; justify-content:center; max-width:var(--maxw); margin:0 auto 56px;}
.site-root .menu-tabs button{
background:transparent; border:1px solid var(--gold-dim); color:var(--ivory-dim); padding:10px 22px;
font-family:'Cormorant Garamond'; letter-spacing:.08em; text-transform:uppercase; cursor:pointer; transition:all .2s ease;
}
.site-root .menu-tabs button.active, .site-root .menu-tabs button:hover{background:var(--gold); color:var(--charcoal); border-color:var(--gold);}
.site-root .menu-category{max-width:820px; margin:0 auto 70px;}
.site-root .menu-category h2{text-align:center; margin-bottom:36px;}
.site-root .menu-item{display:flex; justify-content:space-between; gap:20px; padding:20px 0; border-bottom:1px dashed rgba(201,162,75,0.25);}
.site-root .menu-item .name-row{display:flex; align-items:center; gap:10px;}
.site-root .menu-item h3{font-size:22px; margin:0;}
.site-root .menu-item .desc{color:var(--ivory-dim); font-size:16px; margin-top:4px; max-width:480px;}
.site-root .menu-item .price{color:var(--gold); font-family:'Cormorant Garamond'; font-style:italic; font-size:20px; white-space:nowrap;}
.site-root .veg-mark, .site-root .nonveg-mark{width:14px; height:14px; border:1.5px solid; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0;}
.site-root .veg-mark{border-color:var(--veg);}
.site-root .veg-mark::after{content:''; width:6px; height:6px; border-radius:50%; background:var(--veg);}
.site-root .nonveg-mark{border-color:var(--nonveg);}
.site-root .nonveg-mark::after{content:''; width:0; height:0; border-left:5px solid transparent; border-right:5px solid transparent; border-bottom:8px solid var(--nonveg);}
/* About page */
.site-root .timeline{max-width:720px; margin:0 auto; position:relative;}
.site-root .timeline::before{content:''; position:absolute; left:11px; top:0; bottom:0; width:1px; background:linear-gradient(180deg, transparent, var(--gold-dim), transparent);}
.site-root .timeline-item{position:relative; padding-left:44px; margin-bottom:44px;}
.site-root .timeline-item::before{content:''; position:absolute; left:0; top:6px; width:22px; height:22px; border:1px solid var(--gold); border-radius:50%; background:var(--maroon-deep);}
.site-root .timeline-item h4{margin-bottom:6px; font-size:22px;}
.site-root .timeline-item .yr{color:var(--gold); font-style:italic; font-size:15px;}
/* Contact page */
.site-root .contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:56px; max-width:var(--maxw); margin:0 auto;}
@media (max-width:860px){ .site-root .contact-grid{grid-template-columns:1fr;} }
.site-root .info-list{list-style:none; margin:0; padding:0;}
.site-root .info-list li{display:flex; gap:16px; margin-bottom:28px; align-items:flex-start;}
.site-root .info-list svg{width:24px; height:24px; flex-shrink:0; margin-top:2px; color:var(--gold);}
.site-root .info-list h4{margin-bottom:2px; font-size:19px;}
.site-root .info-list p{margin:0; color:var(--ivory-dim);}
.site-root .form-field{margin-bottom:22px;}
.site-root .form-field label{display:block; font-family:'Cormorant Garamond'; letter-spacing:.08em; text-transform:uppercase; font-size:14px; color:var(--gold); margin-bottom:8px;}
.site-root .form-field input, .site-root .form-field textarea, .site-root .form-field select{
width:100%; background:var(--maroon-mid); border:1px solid var(--gold-dim); color:var(--ivory);
padding:12px 14px; font-family:'EB Garamond'; font-size:17px;
}
.site-root .form-field input:focus, .site-root .form-field textarea:focus, .site-root .form-field select:focus{outline:2px solid var(--gold); outline-offset:1px;}
.site-root .field-error{font-size:14px; color:var(--nonveg); margin:8px 0 0; overflow:hidden;}
.site-root .form-note{font-size:14px; color:var(--ivory-dim); margin-top:8px;}
.site-root .form-note.success{color:var(--gold);}
.site-root .map-embed{border:1px solid var(--gold-dim); height:260px; margin-bottom:32px; display:flex; align-items:center; justify-content:center; color:var(--gold-dim); font-style:italic; background:var(--maroon-mid);}
@media (prefers-reduced-motion: reduce){
.site-root *{animation-duration:.01ms !important; transition-duration:.01ms !important;}
}
`;
export default function App() {
const [page, setPage] = useState("home");
const [mobileOpen, setMobileOpen] = useState(false);
function goTo(p) {
setPage(p);
setMobileOpen(false);
}
useEffect(() => {
window.scrollTo({ top: 0, behavior: "smooth" });
}, [page]);
const pageEl =
page === "home" ? :
page === "menu" ? :
page === "about" ? :
;
return (
);
}