A five-page website for a seaside coffee house and roastery: night-blue waves drift down every page, photos sit in glowing swells under still glass cards, a cup turns on its saucer, and drinks go into an order ahead.
React + HTML
5 pages
$69
Adresse de la page : /
Suite plus bas ↓
Intégré
Ce que vous obtenez
Clair et sombreUtilise les couleurs de votre thème
Ordinateur, tablette et téléphoneLes écrans pour lesquels il est conçu
Paquets…
Taille du code…
Économe en batterie30 i/s, au repos quand rien ne bouge
Pause quand masquéHors écran ou autre onglet
Mouvement réduitCalme pour ceux qui le demandent
Vérifié à chaque modification
Vérification des typesTypeScript strict
Lint et formatESLint · Prettier
Tests et buildCaptures claires et sombres
Audit de sécuritéAucune vulnérabilité élevée ou critique
Ancienneté des paquetsChaque version publique depuis 7 jours ou plus
CPU au reposMoins d’un demi-cœur au repos, ≤ 30 i/s
Code
Un problème avec ce template ? Envoyer un avis ›
coffee-tideHTML
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.
drink.htmlpageThe drink page and all its text, one marked block per section.
about.htmlpageThe about page and all its text, one marked block per section.
visit.htmlpageThe visit 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.
brew.csssectionThe brew methods: five copper line drawings in circles, the picked one lit; beside them its photo in an arched frame cut by a wave, and a glass panel over it with how the bar makes it.
brew.jssectionThe brew methods: a radio group (arrow keys move the pick and the focus along the row); picking one swaps in its photo and its glass panel.
closing.csssectionThe closing call: the pour at the bar across the whole width, cut by a wave above (the footer's wave cuts it below), a soft scrim and the last invitation.
drink.csssectionA drink's page: its photo cut into a glowing swell with a picker, then on an overlapping glass panel its name, price, story and tasting notes, the picks as pills, how many and add to order.
drink.jssectionA drink's page (drink.html?drink=<slug>): fills in its pictures, words and picks from parts/drinks.js, the live price and add to order, and three drinks that go with it.
footer.csssectionThe foot of every page: the logo and a line about the shop, the pages, where to find it, the hours and the legal line, on the deep water.
hero.csssectionThe home page's first screen: the giant headline on the night water, the cup turning inside a big glowing wave, the day's facts on glass and dots afloat.
hero.jssectionThe hero's cup: the photo turns slowly on its saucer and tilts toward the mouse anywhere over the hero, both on the shared 30-a-second clock (not with reduced motion).
menu.csssectionThe menu: the drink-type pills and the hot or iced switch, the count, the grid of drink cards and the note when nothing matches.
menu.jssectionThe menu's filters: drink type and hot or iced show the matching cards (they slide in), the count, and a note with a reset when nothing matches.
nav.csssectionThe top bar: the logo, the page links with the current one marked by a glowing dot, order ahead, the order button and tray, and the phone menu.
nav.jssectionThe top bar: the phone menu (closes on Escape, focus back on its button) and the order button with its count, which opens the order tray.
origins.csssectionThe beans: three tall farm photos stepped like a coastline, each with a glass plate over its foot holding the process, altitude, roast and tasting notes.
reviews.csssectionWhat the regulars say: a photo from the bar in a soft blob frame with the rating counted up on glass over it, and the quotes beside it as glass cards, the first one large.
roastery.csssectionThe roastery: a wide photo of the bar cut by a wave with three numbers counted up on glass over it, then the four steps from green bean to cup.
story.csssectionOur story: four years down a line, each lighting its glowing dot as the tide reaches it, beside two photos from the bar stacked over each other.
team.csssectionThe team: four people behind the bar on glass cards stepped over a band of lighter water, each with their initials in a copper ring, a role and one line.
today.csssectionToday at the bar: a staggered row of glass cards over a curving band of water — the pastry of the day and beans to take home with their photos cut by a wave, the story, and this week's hours with today lit.
visit-map.csssectionWhere to find us: a drawn map of the waterfront with the shop's glowing pin, and over its edge on glass the address and ways in, and this week's hours with today marked.
visit-order.csssectionOrder ahead: the drinks so far beside the pickup form, its errors and sending, and the thank-you.
visit-order.jssectionOrder ahead: the drinks so far beside the pickup form; checks each field (its data-pattern) and that the order has a drink, sends with sendOrder, then shows the thank-you.
partspartsWhat several sections share.
card.csspartA drink as a card: its photo with hot or iced, and over the photo's foot a glass plate with its name, line and price, a link over the whole card and a quick add; the grid of them, and the signature row stepped over a lit band of water.
card.jspartA drink card's quick add: one in the order (its smallest size, whole milk) and the button says so for a moment.
count-up.jspartCounts every [data-count-up] number up from zero the first time it scrolls into view (the rating, the roastery's numbers).
drinks.jspartThe drinks, the same as drinks.ts: each drink's words, price and picks, the sizes, milks and extras, and what a cup costs with its picks.
motion.jspartThe shared helpers, as the site's one global: window.coffeeTide (motion checks, the words scripts write, money).
order.jspartThe order: the drinks added on any page, kept in the browser and shared by every page; draws its lines into any list that shows them.
page-head.csspartThe top of an inner page (menu, about, visit): its giant title on the night water, and its photo cut into a big glowing swell with dots afloat.
page.csspartWhat every page shares: the reset, the page column, the type, the buttons and pills, glass cards, fields, 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.
scroll-rail.jspartFollows the reading line down an element as you scroll: what drives a page-wide motif, with no look of its own.
sea.jspartThe one clock every moving part shares: 30 frames a second at most, and only while something that moves is on screen.
tide.csspartThe page-wide tide: drifting wave edges, still waves that cut the photos, the lit bands of water, glowing dots afloat, the tide gauge and the small one-shot moves. Nothing here loops: the edges, dots and hero cup move on the shared 30-a-second clock (parts/sea.js).
tide.jspartRuns the tide down the page: drifts the wave edges and bobs the glowing dots on the shared clock, raises each edge as the reading line reaches it, moves the tide gauge and wires the pause buttons.
today.jspartMarks today in every list of opening hours ([data-day], 0 is Sunday): highlighted, with its "Today" word shown.
photosphotosThe photos the page shows.
about-roastery.jpgphotoA photo the page shows.
beans-pile.jpgphotoA photo the page shows.
cta-pour.jpgphotoA photo the page shows.
drink-cappuccino.jpgphotoA photo the page shows.
drink-chai.jpgphotoA photo the page shows.
drink-cold-brew.jpgphotoA photo the page shows.
drink-cortado.jpgphotoA photo the page shows.
drink-espresso.jpgphotoA photo the page shows.
drink-flat-white.jpgphotoA photo the page shows.
drink-honey-latte.jpgphotoA photo the page shows.
drink-iced-latte.jpgphotoA photo the page shows.
drink-latte.jpgphotoA photo the page shows.
drink-mocha.jpgphotoA photo the page shows.
drink-nitro.jpgphotoA photo the page shows.
drink-tonic.jpgphotoA photo the page shows.
hero-cup.jpgphotoA photo the page shows.
origin-colombia.jpgphotoA photo the page shows.
origin-ethiopia.jpgphotoA photo the page shows.
origin-sumatra.jpgphotoA photo the page shows.
pastry-croissant.jpgphotoA photo the page shows.
visit-storefront.jpgphotoA photo the page shows.
index.html
The home page and all its text, one marked block per section.
Chargement…
Idéal pour
Coffee houses, cafés, espresso bars and small roasteries that take orders ahead for pickup.
Fonctionnement
Waves rise in as you scroll, the cup tilts to your pointer, brew methods swap in, and drinks go into an order with a pickup time.
Utilisation
Ouvrez index.html, ou placez le dossier sur n’importe quel serveur statique. Les textes sont dans index.html, les couleurs et les polices dans theme.css, la fonction d’envoi du formulaire dans send.js. La partie HTML simple de README.md donne le reste.
Aucun paquet en plusReact seulement, rien d’autre
3 270,6 ko gzippé · 73 fichiersLe téléchargement complet