A light five-page website for a South Indian banana-leaf restaurant: drawn dishes, red and white temple-wall stripes, a kolam that draws itself down every page, and a leaf you serve yourself.
React + HTML
5 páginas
$69
Endereço da página: /
Mais abaixo ↓
Já incluído
O que você recebe
Só claroFeito para uma página clara
Desktop, tablet e celularAs telas para as quais foi feito
Pacotes…
Tamanho do código…
Leve para a bateria30 fps, em repouso quando parado
Pausa quando ocultoFora da tela ou em outra aba
Reduzir movimentoCalmo para quem pede
Verificado a cada mudança
Verificação de tiposTypeScript strict
Lint e formataçãoESLint · Prettier
Testes e buildCapturas de tela claras e escuras
Auditoria de segurançaSem alertas de gravidade alta ou crítica
Idade dos pacotesToda versão pública há 7+ dias
CPU em repousoMenos de meio núcleo em repouso, ≤ 30 fps
Código
Algo errado com este modelo? Enviar feedback ›
meals-kolamHTML
index.htmlpageThe home page and all its text, one marked block per section.
menu.htmlpageThe menu page and all its text, one marked block per section.
reservations.htmlpageThe reservations page and all its text, one marked block per section.
about.htmlpageThe about page and all its text, one marked block per section.
contact.htmlpageThe contact page and all its text, one marked block per section.
theme.cssthemeThe colors and fonts in one place.
send.jsformThe one function the form calls: plug in your form endpoint here.
sectionssectionsOne file per page section.
about-place.csssectionThe room on Tannery Row: the drawn shopfront beside three notes on the place.
about-story.csssectionThe restaurant's story as a timeline of years, then the numbers that count up on a green band.
about-team.csssectionThe four people who run the place, drawn, with what each one does.
book-band.csssectionThe closing band: a kaavi temple wall between stripes, asking to book.
booking.csssectionThe booking form: numbered steps (days, times, party, details) beside the dark summary, and the confirmation slip the kolam draws round.
booking.jssectionThe booking form: the day strip, the time slots of the picked day, the party as a row of leaves, the checks, then the confirmation in its place.
contact-form.csssectionThe write-to-us section: the title beside the form (topic chips, name, email, message), and the thank-you in its place.
contact-form.jssectionThe contact form: checks each field, sends with sendMessage, and swaps in the thank-you (or shows the couldn't-send line).
contact-hours.csssectionOpening hours by day, today's row in ink, and the open-now line beside the title.
contact-hours.jssectionReads the restaurant's own clock: marks today's row and says whether a sitting is on right now, checked again every minute.
contact-map.csssectionHow to get here: the drawn map with the walk drawing itself from the station, the steps in order, and the ways to call or write.
guest-words.csssectionWhat guests said at the table: three short quotes set large.
home-hero.csssectionThe home page's first screen: the giant headline, two buttons and the meal laid on its leaf over a kolam.
kitchen-today.csssectionThree dishes from today's kitchen, set like a menu board with dotted leaders to the price.
menu-board.csssectionThe menu: the sticky filter bar, then each section's drawn dishes on paper cards, and the nothing-matches way out.
menu-board.jssectionThe menu's filters: each chip keeps the dishes that pass it, kept in the browser; jump buttons, the count and the nothing-matches way out.
serve-leaf.csssectionThe signature: an empty banana leaf on a deep green band, served dish by dish from the buttons under it.
serve-leaf.jssectionThe signature: each dish button lays its dish on its spot of the leaf (or takes it back); a full leaf offers a booking.
sittings.csssectionThe three sittings of the day, each with its dish drawn, then the numbers that count up.
partspartsWhat several sections share.
art.csspartThe drawings (parts/art.js): how they size, the leaf's dishes waiting above their spots, and the full leaf's tilt.
art.jspartEvery drawing without words, by name: the leaf, the page kolams, the dishes and the team; each [data-art] element gets its drawing.
backdrop.csspartThe hero's ground from a background of yours (data-follow-background).
backdrop.jspartRests your background's drift while the hero's ground is off screen.
calendar.jspartThe booking calendar: the next days in the restaurant's own clock, their labels, and which times are taken.
count-up.jspartCounts every [data-count-up] number up from zero the first time it scrolls into view.
fields.jspartChecks a form's fields against their data-pattern, shows each data-error under its field, and hands back the first wrong one.
footer.csspartThe foot of every page: the brand, the page links, the address and the hours, and the legal line, on banana-leaf green.
form.csspartA form field: its label, the input or textarea on paper with an ink line, and its error line; an error turns it kaavi.
header.csspartThe top of every page: the stripe band, then the logo, the page links and the booking button; a menu on phones.
header.jspartThe phone menu: opens and closes from its button, closes on Escape (focus back on the button) and when a link is picked.
kolam.csspartThe kolam motif: the line down the gutter, the small kolam on each title, and the page kolams that draw themselves in.
kolam.jspartThe page-wide motif: a kolam chain that draws itself down the gutter as you read, and closes a small kolam on each title.
motion.jspartThe shared helpers, as the site's one global: window.mealsKolam (motion checks, run-once-in-view, browser storage, the clock).
page-head.csspartThe top of an inner page: its giant title and intro beside the page's kolam drawing itself in.
page.csspartWhat every page shares: the reset, the column, titles, buttons, chips, fields, the focus ring, the reveals and the temple-wall stripes.
reveal.jspartHolds back every [data-reveal] element below the fold until it scrolls into view; each one's CSS says how it arrives.
scroll-rail.jspartFollows the reading line down an element as you scroll: what drives the kolam line, with no look of its own.
index.html
The home page and all its text, one marked block per section.
Carregando…
Ideal para
Restaurants, canteens and cafés that want a full site: home, menu with filters, table booking, their story and how to find them.
Como funciona
A kolam line draws down each page as you read, dishes drop onto a banana leaf as you serve them, and the booking confirms in place.
Como usar
Abra o index.html ou coloque a pasta em qualquer servidor estático. Os textos estão em index.html, as cores e fontes em theme.css e a função de envio do formulário em send.js. O restante está na parte Plain HTML do README.md.