A light five-page website for a cake shop: cream and dark chocolate, big serif capitals, handwritten notes, a flavor picker that swaps the hero cake and a cake you turn 360°.
React + HTML
5 halaman
$69
Alamat halaman: /
Selengkapnya di bawah ↓
Sudah termasuk
Yang Anda dapat
Hanya terangDibuat untuk halaman terang
Desktop, tablet, dan ponselLayar yang didukung
Paket…
Ukuran kode…
Hemat baterai30 fps, diam saat tidak bergerak
Berhenti saat tersembunyiDi luar layar atau tab lain
Kurangi gerakanTenang bagi yang memintanya
Dicek di setiap perubahan
Pengecekan tipeTypeScript strict
Lint dan formatESLint · Prettier
Tes dan buildTangkapan layar terang dan gelap
Audit keamananTanpa advisori tinggi atau kritis
Usia paketSetiap versi sudah publik 7+ hari
CPU saat diamDi bawah setengah core saat diam, ≤ 30 fps
Kode
Ada yang janggal dengan template ini? Kirim masukan ›
cake-ganacheHTML
index.htmlpageThe home page and all its text, one marked block per section.
cakes.htmlpageThe cakes page and all its text, one marked block per section.
cake.htmlpageThe cake page and all its text, one marked block per section.
about.htmlpageThe about page and all its text, one marked block per section.
order.htmlpageThe order 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.csssectionThe about page: the story beside the baker at work, then what the shop cares about and its numbers on the chocolate band.
build.csssectionThe cake comes alive: four build steps on the chocolate band that light up one by one as you scroll (sections/build.js).
build.jssectionLights the build steps one by one as the reading line passes through the band; the ones still to come wait, dimmed. Reduced motion: every step lit.
cake.csssectionA cake's page: its pictures, size and message, add to order, then what's inside and other cakes; a note when the cake is gone.
cake.jssectionFills a cake's page from the address (cake.html?cake=<slug>): pictures, words, price by size, the piped message preview, add to order, its layers and three other cakes.
closing.csssectionThe closing call: a big line over a dark still life, and the way to start an order.
dna.csssectionInside the cake: the slice, with numbered callouts whose leader lines draw in to each layer.
featured.csssectionThe cake of the month: the turntable you drag a full 360°, its story, price and add to order.
featured.jssectionThe turntable you drag (a flick keeps it turning) or turn with the arrow keys, and the cake of the month's add to order.
hero.csssectionThe first screen: the giant headline, and the cake on its stand that changes with the flavor you pick beside it.
hero.jssectionThe hero's flavor picker: picking a flavor cross-fades the cake on the stand and changes its name, price and link below.
menu.csssectionThe menu: the title, the flavor and mood filters, and the cakes that fit.
menu.jssectionThe menu's filters and grid: starts from the address (cakes.html?mood=love&flavor=fruit), then shows the cakes that fit each pick.
moods.csssectionChoose your mood: four arch cards on the chocolate band, each opening the menu filtered to that mood.
order.csssectionThe order page: the cake box and the pickup form side by side, the thanks once placed, and the shop's address, phone and email below.
order.jssectionThe order page: draws the cake box (counts, remove, total), checks the pickup form and places the order, then shows the thanks.
reviews.csssectionSweet words: review cards in a row you scroll sideways, with previous and next buttons.
reviews.jssectionThe reviews row's previous and next buttons: each moves the row by one card (scrolling only the row) and switches off at its ends.
partspartsWhat several sections share.
cakes.jspartThe cake case: every cake, the flavors and moods the menu filters by, the sizes, and each picture spot's photo.
card.csspartOne cake on the menu (parts/card.js): its picture under an arch, name, flavor and starting price.
card.jspartOne cake on the menu as an <li>: its picture under an arch, name, flavor and starting price, the whole card a link to its page.
cart.jspartThe cake box: the cakes added on any page, kept in the browser, and the count on the header's box.
count-up.jspartCounts every [data-count-up] number up from zero the first time it scrolls into view (About).
footer.csspartThe foot of every page, on deep chocolate: the shop, its hours, where to find it, the pages and back to top.
header.csspartThe top of every page: the logo, the page links with the current one marked, the cake box with its count and the phone menu.
header.jspartThe top bar's phone menu: opens and closes, closes on Escape (focus back on its button) and when a link is picked.
icing.csspartThe page-wide motif: a thin line of piped icing beads down the left edge of the page, in the side padding so it never crosses the words.
icing.jspartThe page-wide motif: a thin line of piped icing beads that pipes itself down the left edge of the page as you read.
motion.jspartThe shared helpers, as the site's one global: window.cakeGanache (motion checks, money, the words scripts write).
note.csspartA handwritten note with a curly arrow that draws itself when the note scrolls into view (it is a [data-reveal], parts/reveal.js).
page.csspartWhat every page shares: the reset, the root, the page column, titles, buttons, fields, chips, the focus ring, photos, the reveals and the one-off animations.
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 icing line and the build steps, with no look of its own.
photosphotosThe photos the page shows.
about-baker.jpgphotoA photo the page shows.
cake-berry.jpgphotoA photo the page shows.
cake-caramel.jpgphotoA photo the page shows.
cake-lemon.jpgphotoA photo the page shows.
cake-pistachio.jpgphotoA photo the page shows.
closing.jpgphotoA photo the page shows.
featured-overhead.jpgphotoA photo the page shows.
hero-chocolate.jpgphotoA photo the page shows.
hero-red-velvet.jpgphotoA photo the page shows.
hero-strawberry.jpgphotoA photo the page shows.
hero-vanilla.jpgphotoA photo the page shows.
slice.jpgphotoA photo the page shows.
step-base.jpgphotoA photo the page shows.
step-cream.jpgphotoA photo the page shows.
step-decoration.jpgphotoA photo the page shows.
step-ganache.jpgphotoA photo the page shows.
index.html
The home page and all its text, one marked block per section.
Memuat…
Cocok untuk
Cake shops, patisseries and home bakers that take orders: home, a filterable menu, cake pages with sizes and messages, their story and pickup orders.
Cara kerjanya
Pick a flavor to swap the hero cake, drag the cake of the month round, scroll to build a cake, then fill a cake box and book a pickup day.
Cara memakai
Buka index.html, atau taruh folder di server statis mana pun. Teksnya ada di index.html, warna dan font di theme.css, fungsi kirim formulir di send.js. Bagian Plain HTML di README.md berisi sisanya.