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 страниц
$69
Адрес страницы: /
Ещё ниже ↓
Уже внутри
Что вы получаете
Только светлаяСделано для светлой страницы
ПК, планшет и телефонЭкраны, для которых сделано
Пакеты…
Размер кода…
Бережёт батарею30 кадров/с, в покое простаивает
Пауза в фонеВне экрана или в другой вкладке
Меньше анимацииСпокойно для тех, кто просит
Проверяется при каждом изменении
Проверка типовСтрогий TypeScript
Линтер и форматESLint · Prettier
Тесты и сборкаСкриншоты в светлой и тёмной теме
Аудит безопасностиНет уязвимостей высокого и критического уровня
Возраст пакетовКаждая версия опубликована 7+ дней назад
Загрузка в покоеМеньше половины ядра в покое, ≤ 30 кадров/с
Код
Что-то не так с этим шаблоном? Отправить отзыв ›
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.
Загрузка…
Подходит для
Restaurants, canteens and cafés that want a full site: home, menu with filters, table booking, their story and how to find them.
Как это работает
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.
Как использовать
Откройте index.html или положите папку на любой статический сервер. Тексты лежат в index.html, цвета и шрифты в theme.css, функция отправки формы в send.js. Остальное смотрите в части Plain HTML файла README.md.