A light one-page website for a specialty coffee shop and roastery: a latte that pours its own rosetta, a roast dial that darkens the beans as you drag, drawn drinks to add to a bag, and order ahead.
React + HTML
$69
Адрес страницы: /
Ещё ниже ↓
Уже внутри
Что вы получаете
Только светлаяСделано для светлой страницы
ПК, планшет и телефонЭкраны, для которых сделано
Пакеты…
Размер кода…
Бережёт батарею30 кадров/с, в покое простаивает
Пауза в фонеВне экрана или в другой вкладке
Меньше анимацииСпокойно для тех, кто просит
Проверяется при каждом изменении
Проверка типовСтрогий TypeScript
Линтер и форматESLint · Prettier
Тесты и сборкаСкриншоты в светлой и тёмной теме
Аудит безопасностиНет уязвимостей высокого и критического уровня
Возраст пакетовКаждая версия опубликована 7+ дней назад
Загрузка в покоеМеньше половины ядра в покое, ≤ 30 кадров/с
Код
Что-то не так с этим шаблоном? Отправить отзыв ›
crema-roastHTML
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.
beans.csssectionThe beans on a dark espresso band: the roast dial and its readout, then the shelf of three bags.
beans.jssectionThe roast dial: drag a bean along the roast curve (or tap it, use the arrow keys, or the three roast buttons) and the beans, heat, cracks, tasting notes and matching bag follow.
cafe.csssectionThe café: the drawn bar beside a short story, a checklist, three counted-up numbers and the opening hours.
footer.csssectionThe footer on an espresso band: the Tuesday letter sign-up, link groups, contact details and the legal line.
footer.jssectionThe Tuesday letter: checks the email address, then shows the thank-you line. Also writes this year in the legal line.
hero.csssectionThe first screen: the headline runs across, half over the cup's tomato disc; on a phone the cup sits between the headline and the rest.
hero.jssectionThe hero cup turns a little as the page scrolls, on its own layer; sizes are never read while scrolling. Reduced motion: it stays still.
menu.csssectionPopular picks: the title with two step arrows, then a row of drink cards that snaps card by card.
menu.jssectionThe drink row's two arrows: each steps one card along, and greys out at either end.
nav.csssectionThe top bar: logo, section links and the bag with its count; 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.
order.csssectionOrder ahead: the bag with steppers and a total beside the pickup form, then the "order in" view.
order.jssectionOrder ahead: draws the bag with its steppers and total, checks the form, sends it with send.js, then shows the "order in" view.
perks.csssectionThe perks: a tomato band of four reasons to order, their icons popping in one after another.
partspartsWhat several sections share.
art.csspartThe drawings' colors: cr-f-<color> fills, cr-s-<color> strokes, a -NN suffix for strength; all from theme.css.
bag.jspartThe order bag the menu, the beans, the top bar and the order form share; every [data-add] button adds to it and flies a bean up into the top bar's bag.
count-up.jspartNumbers that count up from zero when they scroll into view: every [data-count] with its data-suffix.
motion.csspartThe page's motion: reveals, crema rings, the latte art pour, steam, ice, the espresso drip, the lamps and the gauge. Sections with data-reveal wait (data-armed) until they scroll into view (data-shown); motion.js sets both.
motion.jspartThe motion helpers the other scripts share, as the page's one global: window.cremaRoast. Also plays every [data-reveal] section as it scrolls in.
page.csspartWhat every section shares: the reset, the page column, section titles and marks, the buttons, cards, fields and the focus ring.
index.html
The page and all its text, one marked block per section.
Загрузка…
Подходит для
Coffee shops, cafés and small roasteries that sell drinks to order ahead and bags of beans to take home.
Как это работает
Drag the roast dial and the beans, heat and tasting notes change. Add drinks or bags, then order ahead with a pickup time.
Как использовать
Откройте index.html или положите папку на любой статический сервер. Тексты лежат в index.html, цвета и шрифты в theme.css, функция отправки формы в send.js. Остальное смотрите в части Plain HTML файла README.md.