A dark one-page website for a neighborhood sourdough bakery: score the raw dough yourself and bake it, breads that brown as they scroll in, and a crust whose cut splits open at every section.
React + HTML
$69
Адрес страницы: /
Ещё ниже ↓
Уже внутри
Что вы получаете
Только тёмнаяСделано для тёмной страницы
ПК, планшет и телефонЭкраны, для которых сделано
Пакеты…
Размер кода…
Бережёт батарею30 кадров/с, в покое простаивает
Пауза в фонеВне экрана или в другой вкладке
Меньше анимацииСпокойно для тех, кто просит
Проверяется при каждом изменении
Проверка типовСтрогий TypeScript
Линтер и форматESLint · Prettier
Тесты и сборкаСкриншоты в светлой и тёмной теме
Аудит безопасностиНет уязвимостей высокого и критического уровня
Возраст пакетовКаждая версия опубликована 7+ дней назад
Загрузка в покоеМеньше половины ядра в покое, ≤ 30 кадров/с
Код
Что-то не так с этим шаблоном? Отправить отзыв ›
sourdough-scoreHTML
index.htmlpageThe 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.
bakers.csssectionThe bakers: the two people behind the bread, Maud the starter in her jar, and three numbers that count up.
bakes.csssectionToday's bake: six drawn breads on the cane-brown shelf, each with its price and when it usually sells out.
footer.csssectionThe footer: the last step's score cut, the bakery's name set huge, the section links, how to reach it and the legal line.
hero.csssectionThe first screen: the giant headline, the two actions and the loaf you score and bake yourself.
hero.jssectionThe signature: score the raw dough with a drag or a pattern, then bake it and watch the cuts open.
nav.csssectionThe top bar: stays at the top while you scroll, folds its links into a menu on narrow screens.
nav.jssectionThe top bar's menu on narrow screens: opens and closes, closes on Escape and when a link in it is picked.
preorder.csssectionPre-order for pickup: the form or, once sent, the bag set aside on the shelf with the order's name on it.
preorder.jssectionThe pre-order: steppers and the running total, the field checks, sending with send.js, then the bag on the shelf.
schedule.csssectionWhen the oven opens: the day's batches in time order, with the next one out marked from the visitor's clock.
schedule.jssectionWhen the oven opens: marks the next batch out and fills the day line from the visitor's clock, each minute.
visit.csssectionVisit: the opening hours with today marked, the address and phone, and the drawn shopfront whose sign lights when it is open.
visit.jssectionVisit: marks today in the hours and lights the shop's sign when it is open now, from the visitor's clock, each minute.
partspartsWhat several sections share.
count-up.jspartCounts every [data-count-up] number up from zero the first time it scrolls into view (About).
flour-dust.jspartFlour sifted over the hero loaf: a canvas of specks that drift down and settle on the board.
motif.jspartRuns the page motif: opens each section's score cut as the reading line reaches it.
motion.csspartThe page's drawn motion: the hero's entrance and bake, the score cuts, and each drawing's scroll-in.
motion.jspartThe motion helpers the other scripts share, as the page's one global: window.sourdoughScore.
page.csspartWhat every section shares: the reset, the page column, section titles, the buttons and pill choices, the focus ring and the reveals.
reveal.jspartHolds back every [data-reveal] element below the fold until it scrolls into view; each one's CSS says how it arrives.
score-cut.csspartThe page motif: the numbered bread step and the long crust at the top of each section, whose cut opens as you scroll (parts/motif.js).
scroll-rail.jspartFollows the reading line down an element as you scroll: what drives a page-wide motif, with no look of its own.
index.html
The page and all its text, one marked block per section.
Загрузка…
Подходит для
Sourdough and artisan bakeries with daily bakes, oven times through the day, pre-orders for pickup and a shop to visit.
Как это работает
Drag across the dough to score it, then bake: the crust browns and the cuts open. Each section's crust splits as you scroll.
Как использовать
Откройте index.html или положите папку на любой статический сервер. Тексты лежат в index.html, цвета и шрифты в theme.css, функция отправки формы в send.js. Остальное смотрите в части Plain HTML файла README.md.