Restaurant page with booking
A dark, warm restaurant site with a tabbed menu beside dish photos and a booking widget for guests, day and time.
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./restaurant-page.css";
/**
* RestaurantPage: a dark, warm page for a wood-fire restaurant ("Brasa", Porto).
* Its signature: a booking widget (party size, day, time) that builds a request
* you confirm in one step. It is a demo: connect `onConfirm` to your booking tool.
*/
const MENU = [
{
id: "small",
label: "Small plates",
image: "/images/landing-restaurant-dish-01.jpg",
alt: "Grilled sardines on charred bread with tomato and parsley on a stoneware plate",
dishes: [
{
name: "Sardines on ember toast",
text: "Tomato, garlic, parsley oil",
price: "9",
},
{ name: "Padrón peppers", text: "Smoked salt, lemon", price: "7" },
{
name: "Clams in vinho verde",
text: "Coriander, butter, bread for the broth",
price: "14",
},
],
},
{
id: "fire",
label: "From the fire",
image: "/images/landing-restaurant-dish-02.jpg",
alt: "Sliced dry-aged beef with a dark crust on a wooden board beside the grill",
dishes: [
{
name: "Dry-aged sirloin, 400 g",
text: "Bone marrow butter, burnt onion",
price: "38",
},
{
name: "Whole sea bream",
text: "Fennel, charred lemon, olive oil",
price: "29",
},
{
name: "Hispi cabbage",
text: "Miso, toasted almonds, brown butter",
price: "16",
},
],
},
{
id: "sweet",
label: "Dessert",
image: "/images/landing-restaurant-dish-03.jpg",
alt: "A slice of burnt Basque cheesecake with a dark caramelised top",
dishes: [
{ name: "Burnt cheesecake", text: "Port caramel", price: "8" },
{ name: "Grilled peach", text: "Bay leaf ice cream", price: "8" },
],
},
];
const DAYS = ["Thu 11", "Fri 12", "Sat 13", "Sun 14", "Wed 17"];
const TIMES = ["18:30", "19:00", "19:30", "20:00", "20:30", "21:00", "21:30"];
// Slots already taken in this demo, per day index
const TAKEN: Record<number, string[]> = {
1: ["20:00", "20:30"],
2: ["19:30", "20:00", "20:30", "21:00"],
3: ["19:00"],
};
/** Photo with a toned placeholder underneath until the file exists. */
function Photo({ src, alt, tone }: { src: string; alt: string; tone: string }) {
const img = useRef<HTMLImageElement>(null);
const [missing, setMissing] = useState(false);
useEffect(() => {
const el = img.current;
if (el && el.complete && el.naturalWidth === 0) setMissing(true);
}, []);
return (
<div
className="gu-brasa__photo"
style={{ "--tone": tone } as CSSProperties}
>
{!missing && (
<img
ref={img}
src={src}
alt={alt}
loading="lazy"
onError={() => setMissing(true)}
/>
)}
</div>
);
}
function Booking() {
const [guests, setGuests] = useState(2);
const [day, setDay] = useState(0);
const [time, setTime] = useState<string | null>(null);
const [sent, setSent] = useState(false);
const taken = TAKEN[day] ?? [];
if (sent)
return (
<div className="gu-brasa__book is-sent" role="status">
<p className="gu-brasa__book-title">Request sent</p>
<p>
A table for {guests} on {DAYS[day]} at {time}. We confirm by text
within the hour.
</p>
<button
type="button"
className="gu-brasa__link"
onClick={() => {
setSent(false);
setTime(null);
}}
>
Change the booking
</button>
</div>
);
return (
<form
className="gu-brasa__book"
aria-labelledby="gu-brasa-book"
onSubmit={(e) => {
e.preventDefault();
if (time) setSent(true);
}}
>
<p id="gu-brasa-book" className="gu-brasa__book-title">
Book a table
</p>
<div className="gu-brasa__field">
<span id="gu-brasa-guests">Guests</span>
<div
className="gu-brasa__stepper"
role="group"
aria-labelledby="gu-brasa-guests"
>
<button
type="button"
onClick={() => setGuests((g) => Math.max(1, g - 1))}
disabled={guests <= 1}
aria-label="One fewer guest"
>
−
</button>
<output aria-live="polite">{guests}</output>
<button
type="button"
onClick={() => setGuests((g) => Math.min(8, g + 1))}
disabled={guests >= 8}
aria-label="One more guest"
>
+
</button>
</div>
</div>
<fieldset className="gu-brasa__field">
<legend>Day</legend>
<div className="gu-brasa__chips">
{DAYS.map((d, i) => (
<label key={d} className="gu-brasa__chip">
<input
type="radio"
name="gu-brasa-day"
checked={day === i}
onChange={() => {
setDay(i);
setTime(null);
}}
/>
<span>{d}</span>
</label>
))}
</div>
</fieldset>
<fieldset className="gu-brasa__field">
<legend>Time</legend>
<div className="gu-brasa__chips">
{TIMES.map((t) => {
const off = taken.includes(t);
return (
<label key={t} className="gu-brasa__chip">
<input
type="radio"
name="gu-brasa-time"
checked={time === t}
disabled={off}
onChange={() => setTime(t)}
/>
<span>{t}</span>
</label>
);
})}
</div>
</fieldset>
<button type="submit" className="gu-brasa__btn" disabled={!time}>
{time ? `Request ${DAYS[day]} at ${time}` : "Choose a time"}
</button>
<p className="gu-brasa__small">
Tables of 9 or more: call us on +351 220 000 000.
</p>
</form>
);
}
export function RestaurantPage() {
const [tab, setTab] = useState(MENU[0].id);
const section = MENU.find((m) => m.id === tab)!;
return (
<div className="gu-brasa">
<header className="gu-brasa__hero">
<Photo
src="/images/landing-restaurant-room-04.jpg"
alt="A dim, candle-lit dining room with an open wood-fired grill glowing at the back"
tone="#6b2a12"
/>
<nav className="gu-brasa__nav" aria-label="Main">
<a href="#" className="gu-brasa__logo">
Brasa
</a>
<a href="#brasa-menu">Menu</a>
<a href="#brasa-book" className="gu-brasa__nav-cta">
Book
</a>
</nav>
<div className="gu-brasa__hero-text">
<p>Wood-fire kitchen, Rua das Flores, Porto</p>
<h1>Everything here has met the fire.</h1>
</div>
</header>
<section
id="brasa-menu"
className="gu-brasa__menu"
aria-labelledby="gu-brasa-menu"
>
<h2 id="gu-brasa-menu">Tonight’s menu</h2>
<div className="gu-brasa__tabs" role="group" aria-label="Menu section">
{MENU.map((m) => (
<button
key={m.id}
type="button"
aria-pressed={tab === m.id}
onClick={() => setTab(m.id)}
>
{m.label}
</button>
))}
</div>
<div className="gu-brasa__menu-body" key={tab}>
<Photo src={section.image} alt={section.alt} tone="#3a1a0e" />
<ul>
{section.dishes.map((d, i) => (
<li key={d.name} style={{ "--d": i } as CSSProperties}>
<span className="gu-brasa__dish">
{d.name}
<small>{d.text}</small>
</span>
<span className="gu-brasa__dots" aria-hidden="true" />
<span className="gu-brasa__price">€{d.price}</span>
</li>
))}
</ul>
</div>
</section>
<section className="gu-brasa__story" aria-labelledby="gu-brasa-story">
<Photo
src="/images/landing-restaurant-chef-05.jpg"
alt="A cook in a canvas apron turning fish over glowing oak embers"
tone="#8a3a14"
/>
<div>
<h2 id="gu-brasa-story">Oak, cork and a lot of patience.</h2>
<p>
We light the grill at two every afternoon with oak and cork-oak from
the Alentejo. By service the embers are right for fish; by nine they
are right for beef. The menu follows the fire.
</p>
<p className="gu-brasa__hours">
Wednesday to Sunday, 18:30 to 23:00
<br />
Rua das Flores 00, 4050 Porto
</p>
</div>
</section>
<section
id="brasa-book"
className="gu-brasa__booking"
aria-label="Reservations"
>
<h2>Come hungry.</h2>
<Booking />
</section>
<footer className="gu-brasa__foot">
<span>© 2026 Brasa</span>
<a href="#">Instagram</a>
<a href="#">Gift cards</a>
</footer>
</div>
);
}
Paste this into ChatGPT, Claude, Cursor, v0, Lovable or Bolt. It describes the layout, motion, colors and accessibility and includes the code, so the AI can rebuild it in any framework.
# Build this UI piece: Restaurant page with booking
You are a senior front-end engineer. Recreate the piece below in my project. If I don't say which framework I use, ask once, then build it in that framework (React, Vue, Svelte, Angular, Astro, plain HTML/CSS/JS or anything else). Keep the behavior, motion, colors, spacing and accessibility exactly as described. Keep the code clean and commented for beginners.
## What it is
A dark, warm one-page site for a wood-fire restaurant ("Brasa", Porto). Its signature: a booking widget where you pick guests, a day and a free time slot, then send the request in one step and see a confirmation. Sections: a full-bleed photo hero with nav and a serif headline, a menu with three sections (small plates, from the fire, dessert) shown beside a dish photo, a story block about the grill with opening hours, the booking widget, and a footer.
## Palette
Background #0e0e10, surface #18181b, text #f3eee3, muted #aea89c, lines rgba(243,238,227,0.16), accent #ff5a1f (Book button, chosen chips), focus ring #d7ff3a. Headings and dish names use a serif stack ("Iowan Old Style", "Palatino Linotype", Palatino, Georgia); everything else uses system-ui.
## Layout
- Root uses container queries (container-type: inline-size), side padding 5%.
- Hero: at least 620px tall, the photo covers it behind a dark gradient (stronger at the bottom). Nav at the top (italic serif logo, a menu link, an orange "Book" pill). At the bottom: a small address line and a serif headline up to 8.5rem, max 12ch.
- Menu: serif heading, three pill toggles (the pressed one fills cream), then at ≥720px two columns (0.8fr photo 4:5, 1.2fr list); on phones the photo is 3:2 above the list. Dish rows: serif name with a muted description below, a dotted leader line, then the price.
- Story: surface band, photo 4:5 beside a serif heading, a paragraph and the hours and address.
- Booking: at ≥760px a big serif "Come hungry." beside the widget card (28px radius, surface background).
- Guests: a pill stepper (−, number, +) from 1 to 8.
- Day and Time: fieldsets of chip radios at least 44px tall. Taken times are disabled, dashed and struck through. Picking a new day clears the time.
- Submit: full-width 56px pill. The label reads "Choose a time" while disabled, then "Request Sat 13 at 20:30".
- After sending, the card turns into a confirmation with an orange border, a summary sentence and a "Change the booking" link.
## Images
Five photos: the dining room with the grill (hero, wide), one dish per menu section (4:5), and a cook at the embers (4:5). Until a file exists, each frame shows a dark ember gradient.
## Motion
- The hero photo settles from 1.08 to 1 over 2.4s.
- Switching menu sections fades in the photo and rises the dishes 70ms apart. The confirmation fades in.
## Accessibility
- The booking is a real form: radio inputs in fieldsets with legends, the stepper is a labelled group with labelled buttons and a live output, the submit button is disabled until a time is picked, and the confirmation has role="status".
- Menu section buttons use aria-pressed. Photos have descriptive alt text.
- prefers-reduced-motion: no hero zoom, no fades, no row animation.
## Reference implementation
The original is written in React with one plain CSS file. Dependencies: none (plain React and CSS). Translate it faithfully; do not add new libraries unless my framework needs them.
### RestaurantPage.tsx
```tsx
"use client";
import { useEffect, useRef, useState, type CSSProperties } from "react";
import "./restaurant-page.css";
/**
* RestaurantPage: a dark, warm page for a wood-fire restaurant ("Brasa", Porto).
* Its signature: a booking widget (party size, day, time) that builds a request
* you confirm in one step. It is a demo: connect `onConfirm` to your booking tool.
*/
const MENU = [
{
id: "small",
label: "Small plates",
image: "/images/landing-restaurant-dish-01.jpg",
alt: "Grilled sardines on charred bread with tomato and parsley on a stoneware plate",
dishes: [
{
name: "Sardines on ember toast",
text: "Tomato, garlic, parsley oil",
price: "9",
},
{ name: "Padrón peppers", text: "Smoked salt, lemon", price: "7" },
{
name: "Clams in vinho verde",
text: "Coriander, butter, bread for the broth",
price: "14",
},
],
},
{
id: "fire",
label: "From the fire",
image: "/images/landing-restaurant-dish-02.jpg",
alt: "Sliced dry-aged beef with a dark crust on a wooden board beside the grill",
dishes: [
{
name: "Dry-aged sirloin, 400 g",
text: "Bone marrow butter, burnt onion",
price: "38",
},
{
name: "Whole sea bream",
text: "Fennel, charred lemon, olive oil",
price: "29",
},
{
name: "Hispi cabbage",
text: "Miso, toasted almonds, brown butter",
price: "16",
},
],
},
{
id: "sweet",
label: "Dessert",
image: "/images/landing-restaurant-dish-03.jpg",
alt: "A slice of burnt Basque cheesecake with a dark caramelised top",
dishes: [
{ name: "Burnt cheesecake", text: "Port caramel", price: "8" },
{ name: "Grilled peach", text: "Bay leaf ice cream", price: "8" },
],
},
];
const DAYS = ["Thu 11", "Fri 12", "Sat 13", "Sun 14", "Wed 17"];
const TIMES = ["18:30", "19:00", "19:30", "20:00", "20:30", "21:00", "21:30"];
// Slots already taken in this demo, per day index
const TAKEN: Record<number, string[]> = {
1: ["20:00", "20:30"],
2: ["19:30", "20:00", "20:30", "21:00"],
3: ["19:00"],
};
/** Photo with a toned placeholder underneath until the file exists. */
function Photo({ src, alt, tone }: { src: string; alt: string; tone: string }) {
const img = useRef<HTMLImageElement>(null);
const [missing, setMissing] = useState(false);
useEffect(() => {
const el = img.current;
if (el && el.complete && el.naturalWidth === 0) setMissing(true);
}, []);
return (
<div
className="gu-brasa__photo"
style={{ "--tone": tone } as CSSProperties}
>
{!missing && (
<img
ref={img}
src={src}
alt={alt}
loading="lazy"
onError={() => setMissing(true)}
/>
)}
</div>
);
}
function Booking() {
const [guests, setGuests] = useState(2);
const [day, setDay] = useState(0);
const [time, setTime] = useState<string | null>(null);
const [sent, setSent] = useState(false);
const taken = TAKEN[day] ?? [];
if (sent)
return (
<div className="gu-brasa__book is-sent" role="status">
<p className="gu-brasa__book-title">Request sent</p>
<p>
A table for {guests} on {DAYS[day]} at {time}. We confirm by text
within the hour.
</p>
<button
type="button"
className="gu-brasa__link"
onClick={() => {
setSent(false);
setTime(null);
}}
>
Change the booking
</button>
</div>
);
return (
<form
className="gu-brasa__book"
aria-labelledby="gu-brasa-book"
onSubmit={(e) => {
e.preventDefault();
if (time) setSent(true);
}}
>
<p id="gu-brasa-book" className="gu-brasa__book-title">
Book a table
</p>
<div className="gu-brasa__field">
<span id="gu-brasa-guests">Guests</span>
<div
className="gu-brasa__stepper"
role="group"
aria-labelledby="gu-brasa-guests"
>
<button
type="button"
onClick={() => setGuests((g) => Math.max(1, g - 1))}
disabled={guests <= 1}
aria-label="One fewer guest"
>
−
</button>
<output aria-live="polite">{guests}</output>
<button
type="button"
onClick={() => setGuests((g) => Math.min(8, g + 1))}
disabled={guests >= 8}
aria-label="One more guest"
>
+
</button>
</div>
</div>
<fieldset className="gu-brasa__field">
<legend>Day</legend>
<div className="gu-brasa__chips">
{DAYS.map((d, i) => (
<label key={d} className="gu-brasa__chip">
<input
type="radio"
name="gu-brasa-day"
checked={day === i}
onChange={() => {
setDay(i);
setTime(null);
}}
/>
<span>{d}</span>
</label>
))}
</div>
</fieldset>
<fieldset className="gu-brasa__field">
<legend>Time</legend>
<div className="gu-brasa__chips">
{TIMES.map((t) => {
const off = taken.includes(t);
return (
<label key={t} className="gu-brasa__chip">
<input
type="radio"
name="gu-brasa-time"
checked={time === t}
disabled={off}
onChange={() => setTime(t)}
/>
<span>{t}</span>
</label>
);
})}
</div>
</fieldset>
<button type="submit" className="gu-brasa__btn" disabled={!time}>
{time ? `Request ${DAYS[day]} at ${time}` : "Choose a time"}
</button>
<p className="gu-brasa__small">
Tables of 9 or more: call us on +351 220 000 000.
</p>
</form>
);
}
export function RestaurantPage() {
const [tab, setTab] = useState(MENU[0].id);
const section = MENU.find((m) => m.id === tab)!;
return (
<div className="gu-brasa">
<header className="gu-brasa__hero">
<Photo
src="/images/landing-restaurant-room-04.jpg"
alt="A dim, candle-lit dining room with an open wood-fired grill glowing at the back"
tone="#6b2a12"
/>
<nav className="gu-brasa__nav" aria-label="Main">
<a href="#" className="gu-brasa__logo">
Brasa
</a>
<a href="#brasa-menu">Menu</a>
<a href="#brasa-book" className="gu-brasa__nav-cta">
Book
</a>
</nav>
<div className="gu-brasa__hero-text">
<p>Wood-fire kitchen, Rua das Flores, Porto</p>
<h1>Everything here has met the fire.</h1>
</div>
</header>
<section
id="brasa-menu"
className="gu-brasa__menu"
aria-labelledby="gu-brasa-menu"
>
<h2 id="gu-brasa-menu">Tonight’s menu</h2>
<div className="gu-brasa__tabs" role="group" aria-label="Menu section">
{MENU.map((m) => (
<button
key={m.id}
type="button"
aria-pressed={tab === m.id}
onClick={() => setTab(m.id)}
>
{m.label}
</button>
))}
</div>
<div className="gu-brasa__menu-body" key={tab}>
<Photo src={section.image} alt={section.alt} tone="#3a1a0e" />
<ul>
{section.dishes.map((d, i) => (
<li key={d.name} style={{ "--d": i } as CSSProperties}>
<span className="gu-brasa__dish">
{d.name}
<small>{d.text}</small>
</span>
<span className="gu-brasa__dots" aria-hidden="true" />
<span className="gu-brasa__price">€{d.price}</span>
</li>
))}
</ul>
</div>
</section>
<section className="gu-brasa__story" aria-labelledby="gu-brasa-story">
<Photo
src="/images/landing-restaurant-chef-05.jpg"
alt="A cook in a canvas apron turning fish over glowing oak embers"
tone="#8a3a14"
/>
<div>
<h2 id="gu-brasa-story">Oak, cork and a lot of patience.</h2>
<p>
We light the grill at two every afternoon with oak and cork-oak from
the Alentejo. By service the embers are right for fish; by nine they
are right for beef. The menu follows the fire.
</p>
<p className="gu-brasa__hours">
Wednesday to Sunday, 18:30 to 23:00
<br />
Rua das Flores 00, 4050 Porto
</p>
</div>
</section>
<section
id="brasa-book"
className="gu-brasa__booking"
aria-label="Reservations"
>
<h2>Come hungry.</h2>
<Booking />
</section>
<footer className="gu-brasa__foot">
<span>© 2026 Brasa</span>
<a href="#">Instagram</a>
<a href="#">Gift cards</a>
</footer>
</div>
);
}
```
### restaurant-page.css
```css
/* RestaurantPage: change these colors and fonts to match your brand. */
.gu-brasa {
--bg: #0e0e10;
--surface: #18181b;
--text: #f3eee3;
--muted: #aea89c;
--line: rgb(243 238 227 / 0.16);
--accent: #ff5a1f;
--focus: #d7ff3a;
--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
--ease: cubic-bezier(0.16, 1, 0.3, 1);
container-type: inline-size;
overflow-x: clip;
background: var(--bg);
color: var(--text);
font-family: system-ui, sans-serif;
}
.gu-brasa a {
color: inherit;
text-decoration: none;
}
.gu-brasa :focus-visible {
outline: 2px solid var(--focus);
outline-offset: 3px;
}
.gu-brasa h1,
.gu-brasa h2,
.gu-brasa p {
margin: 0;
}
.gu-brasa h1,
.gu-brasa h2 {
font-family: var(--serif);
font-weight: 400;
letter-spacing: -0.02em;
}
.gu-brasa__photo {
position: relative;
overflow: hidden;
background:
radial-gradient(
60% 50% at 70% 80%,
color-mix(in srgb, var(--accent) 55%, transparent),
transparent
),
radial-gradient(
120% 90% at 30% 20%,
color-mix(in srgb, var(--tone) 70%, #000),
var(--tone)
);
}
.gu-brasa__photo img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
/* Hero: full-bleed photo with the line set over it */
.gu-brasa__hero {
position: relative;
display: grid;
min-height: 620px;
isolation: isolate;
}
.gu-brasa__hero > .gu-brasa__photo {
position: absolute;
inset: 0;
z-index: -1;
}
.gu-brasa__hero > .gu-brasa__photo::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
to top,
rgb(14 14 16 / 0.92),
rgb(14 14 16 / 0.15) 55%,
rgb(14 14 16 / 0.5)
);
}
.gu-brasa__hero > .gu-brasa__photo img {
animation: gu-brasa-settle 2.4s var(--ease) both;
}
@keyframes gu-brasa-settle {
from {
transform: scale(1.08);
}
}
.gu-brasa__nav {
display: flex;
align-items: center;
gap: 22px;
align-self: start;
padding: 18px 5%;
font-weight: 600;
}
.gu-brasa__logo {
margin-right: auto;
font-family: var(--serif);
font-size: 1.6rem;
font-style: italic;
font-weight: 400;
}
.gu-brasa__nav-cta {
display: inline-flex;
align-items: center;
min-height: 44px;
padding: 0 20px;
border-radius: 999px;
background: var(--accent);
color: var(--bg) !important;
font-weight: 800;
}
.gu-brasa__hero-text {
align-self: end;
padding: 0 5% 48px;
}
.gu-brasa__hero-text p {
margin-bottom: 14px !important;
font-weight: 600;
color: var(--muted);
}
.gu-brasa__hero h1 {
max-width: 12ch;
font-size: clamp(3rem, 10cqi, 8.5rem);
line-height: 0.92;
text-wrap: balance;
}
/* Menu */
.gu-brasa__menu {
padding: 72px 5%;
}
.gu-brasa__menu h2,
.gu-brasa__story h2,
.gu-brasa__booking h2 {
font-size: clamp(2.4rem, 6.4cqi, 5rem);
line-height: 0.95;
}
.gu-brasa__tabs {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 28px 0 32px;
}
.gu-brasa__tabs button {
min-height: 44px;
padding: 0 18px;
border: 1px solid var(--line);
border-radius: 999px;
background: transparent;
color: var(--muted);
font: inherit;
font-weight: 700;
cursor: pointer;
transition:
color 0.2s,
border-color 0.2s;
}
.gu-brasa__tabs button:hover {
color: var(--text);
}
.gu-brasa__tabs button[aria-pressed="true"] {
border-color: var(--text);
background: var(--text);
color: var(--bg);
}
.gu-brasa__menu-body {
display: grid;
gap: 32px;
}
@container (min-width: 720px) {
.gu-brasa__menu-body {
grid-template-columns: 0.8fr 1.2fr;
align-items: center;
}
}
.gu-brasa__menu-body .gu-brasa__photo {
aspect-ratio: 4 / 5;
border-radius: 24px;
animation: gu-brasa-fade 0.6s var(--ease);
}
@container (max-width: 719px) {
.gu-brasa__menu-body .gu-brasa__photo {
aspect-ratio: 3 / 2;
}
}
@keyframes gu-brasa-fade {
from {
opacity: 0;
}
}
.gu-brasa__menu ul {
margin: 0;
padding: 0;
list-style: none;
}
.gu-brasa__menu li {
display: grid;
grid-template-columns: auto 1fr auto;
align-items: baseline;
gap: 12px;
padding: 18px 0;
border-bottom: 1px solid var(--line);
animation: gu-brasa-row 0.6s var(--ease) both;
animation-delay: calc(var(--d) * 70ms);
}
@keyframes gu-brasa-row {
from {
opacity: 0;
transform: translateY(10px);
}
}
.gu-brasa__dish {
display: grid;
gap: 4px;
font-family: var(--serif);
font-size: clamp(1.3rem, 3cqi, 1.9rem);
}
.gu-brasa__dish small {
font-family: system-ui, sans-serif;
font-size: 0.92rem;
color: var(--muted);
}
.gu-brasa__dots {
align-self: center;
border-bottom: 2px dotted var(--line);
}
.gu-brasa__price {
font-family: var(--serif);
font-size: 1.3rem;
font-variant-numeric: tabular-nums;
}
/* Story */
.gu-brasa__story {
display: grid;
gap: 32px;
padding: 72px 5%;
background: var(--surface);
}
@container (min-width: 720px) {
.gu-brasa__story {
grid-template-columns: 1fr 1fr;
align-items: center;
}
}
.gu-brasa__story .gu-brasa__photo {
aspect-ratio: 4 / 5;
border-radius: 24px;
}
.gu-brasa__story p {
max-width: 40ch;
margin-top: 20px !important;
font-size: 1.08rem;
line-height: 1.6;
color: var(--muted);
}
.gu-brasa__story .gu-brasa__hours {
color: var(--text);
font-weight: 600;
}
/* Booking */
.gu-brasa__booking {
display: grid;
gap: 32px;
padding: 80px 5%;
}
@container (min-width: 760px) {
.gu-brasa__booking {
grid-template-columns: 1fr 1.1fr;
align-items: start;
}
}
.gu-brasa__book {
display: grid;
gap: 22px;
padding: 28px;
border: 1px solid var(--line);
border-radius: 28px;
background: var(--surface);
}
.gu-brasa__book.is-sent {
border-color: var(--accent);
animation: gu-brasa-fade 0.5s var(--ease);
}
.gu-brasa__book.is-sent p:not(.gu-brasa__book-title) {
font-size: 1.1rem;
line-height: 1.5;
}
.gu-brasa__book-title {
font-family: var(--serif);
font-size: 1.8rem;
}
.gu-brasa__field {
display: grid;
gap: 10px;
margin: 0;
padding: 0;
border: 0;
}
.gu-brasa__field > span,
.gu-brasa__field legend {
margin-bottom: 10px;
padding: 0;
font-weight: 700;
color: var(--muted);
}
.gu-brasa__field > span {
margin-bottom: 0;
}
.gu-brasa__stepper {
display: inline-flex;
align-items: center;
justify-self: start;
gap: 4px;
padding: 4px;
border: 1px solid var(--line);
border-radius: 999px;
}
.gu-brasa__stepper button {
width: 44px;
height: 44px;
border: 0;
border-radius: 50%;
background: transparent;
color: var(--text);
font: inherit;
font-size: 1.4rem;
cursor: pointer;
}
.gu-brasa__stepper button:hover:not(:disabled) {
background: var(--line);
}
.gu-brasa__stepper button:disabled {
opacity: 0.3;
cursor: not-allowed;
}
.gu-brasa__stepper output {
min-width: 2ch;
font-size: 1.3rem;
font-weight: 800;
text-align: center;
font-variant-numeric: tabular-nums;
}
.gu-brasa__chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.gu-brasa__chip {
position: relative;
}
.gu-brasa__chip input {
position: absolute;
opacity: 0;
inset: 0;
margin: 0;
cursor: pointer;
}
.gu-brasa__chip span {
display: inline-flex;
align-items: center;
min-height: 44px;
padding: 0 16px;
border: 1px solid var(--line);
border-radius: 12px;
font-weight: 700;
font-variant-numeric: tabular-nums;
transition:
background-color 0.2s,
color 0.2s,
border-color 0.2s;
}
.gu-brasa__chip:hover span {
border-color: var(--text);
}
.gu-brasa__chip input:checked + span {
border-color: var(--accent);
background: var(--accent);
color: var(--bg);
}
.gu-brasa__chip input:focus-visible + span {
outline: 2px solid var(--focus);
outline-offset: 2px;
}
.gu-brasa__chip input:disabled + span {
color: color-mix(in srgb, var(--muted) 50%, transparent);
text-decoration: line-through;
border-style: dashed;
}
.gu-brasa__chip input:disabled {
cursor: not-allowed;
}
.gu-brasa__btn {
min-height: 56px;
padding: 0 22px;
border: 0;
border-radius: 999px;
background: var(--text);
color: var(--bg);
font: inherit;
font-weight: 800;
cursor: pointer;
transition: transform 0.2s var(--ease);
}
.gu-brasa__btn:active:not(:disabled) {
transform: scale(0.98);
}
.gu-brasa__btn:disabled {
background: var(--line);
color: var(--muted);
cursor: not-allowed;
}
.gu-brasa__small {
font-size: 0.88rem;
color: var(--muted);
}
.gu-brasa__link {
justify-self: start;
min-height: 44px;
padding: 0;
border: 0;
background: none;
color: var(--text);
font: inherit;
font-weight: 700;
text-decoration: underline;
text-underline-offset: 4px;
cursor: pointer;
}
.gu-brasa__foot {
display: flex;
gap: 20px;
padding: 20px 5%;
border-top: 1px solid var(--line);
font-size: 0.85rem;
color: var(--muted);
}
.gu-brasa__foot span {
margin-right: auto;
}
@media (prefers-reduced-motion: reduce) {
.gu-brasa__hero > .gu-brasa__photo img,
.gu-brasa__menu-body .gu-brasa__photo,
.gu-brasa__menu li,
.gu-brasa__book.is-sent {
animation: none;
}
.gu-brasa__chip span,
.gu-brasa__btn,
.gu-brasa__tabs button {
transition: none;
}
}
```
You might also want
Next piece: Ribbon badgeBoutique hotel page with a sun-path day
Landing pages, advanced
Dental clinic landing page with a treatment finder
Landing pages, advanced
Coffee roaster subscription page
Landing pages, advanced


