StealThis .dev
Pages Medium

D2C — Coffee / Beverage Landing

A warm, craft-forward direct-to-consumer landing page for a fictional specialty coffee brand. Built with semantic HTML, kraft-paper and espresso styling, and vanilla JavaScript, it pairs an origin-story hero and product-bag mockup with an interactive roast-level selector, flavor-note grid, a four-step pour-over guide, a subscribe-versus-one-time pricing toggle, verified reviews, a sustainability section, an accordion FAQ, a sticky cart, and a footer.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Coffee / Beverage Landing

A complete one-page direct-to-consumer landing for Driftwood Roasters, a fictional small-batch specialty coffee brand. The visual identity leans on a kraft-paper and espresso-brown palette with cream accents, a rugged serif (Bitter) for headlines paired with a clean sans (Work Sans) for body copy, and a mono accent for technical labels — an artisanal, warm, craft mood throughout. The hero opens with an origin-story hook and an animated coffee-bag product mockup complete with drifting steam.

Every section is self-contained and responsive down to ~360px. Highlights include an interactive roast-level selector that recolors a coffee bean and updates body, acidity and sweetness meters as you drag the slider; a flavor-notes grid; a four-step pour-over brewing guide; a subscribe-vs-one-time pricing toggle that swaps prices live and saves 20%; verified-style reviews; a sustainability panel with sourcing stats; and an accordion FAQ. A sticky cart slides up as you add bags, with a toast helper confirming each action.

The interactions are written in dependency-free vanilla JavaScript: sticky-nav state, mobile menu toggle, smooth scrolling with a nav offset, IntersectionObserver scroll-reveal, the roast slider, the pricing toggle, the FAQ accordion, and the cart/sticky-cart/toast logic. All copy, brands and testimonials are realistic but fictional, with no placeholder text.

Illustrative UI only — fictional brand, not a real product.