StealThis .dev
Pages Medium

Shop — Grocery / Essentials Landing

A bright, fresh landing page for FreshCart, a fictional grocery delivery service, built entirely from CSS gradients, inline SVG and emoji instead of images. A hero pairs a 30-minute delivery promise with a working ZIP-code checker, backed by a category grid, a today's-deals row with live add-to-basket, a three-step how-it-works strip and an app sign-up call-to-action. Vanilla JS drives the cart counter, postcode lookup, toasts and smooth scroll.

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

Code

Grocery / Essentials Landing

A clean, friendly storefront landing for FreshCart, a fictional grocery and essentials delivery service. The look is white-and-ink with a fresh-green and orange accent system, set in Plus Jakarta Sans. Every visual — the produce-filled shopping bag, the phone mockup, the category tiles and deal cards — is drawn with CSS gradients, inline SVG and emoji, so there are no external images. A sticky header carries the brand, in-page nav, a live cart counter and a “deliver to” chip that fills in once you check your area.

The hero leads with a 30-minute delivery promise and a working ZIP / postcode checker: type a serviceable code (try 10001) and it confirms the neighbourhood and the next delivery slot, updating the header chip and firing a toast; unknown codes get a friendly, deterministic “coming soon” estimate instead. Below, a shop-by-category grid covers Produce, Dairy & Eggs, Bakery, Meat & Fish, Pantry, Beverages, Frozen and Household, and a deals today row renders discounted products from data with star ratings, review counts, stock chips and a one-tap add-to-basket button that bumps the cart and confirms the action.

A three-step how delivery works strip and a green app sign-up card round out the page, the latter validating a phone number before texting a (pretend) download link. Everything is vanilla JS: a toast() helper, money formatting, smooth in-page scrolling with focus management, and animations that respect prefers-reduced-motion. Controls are keyboard-usable with visible focus rings, contrast meets WCAG AA, and the layout reflows cleanly from wide screens down to ~360px.

Illustrative storefront UI only — fictional products, prices, and reviews. No real checkout.