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
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 ›
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.
Carregando…
Ideal para
Coffee shops, cafés and small roasteries that sell drinks to order ahead and bags of beans to take home.
Como funciona
Drag the roast dial and the beans, heat and tasting notes change. Add drinks or bags, then order ahead with a pickup time.
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.