Emmanuel BalogunFrontend & Full-Stack Developer
--:--:-- WAT

07Beauty · Next.js storefront

Ẹwà

A Next.js skincare store for brown and deep skin

A storefront for five African skincare brands: browse eighteen products, build a routine with a short quiz, match a shade, and check out by card, transfer or pay on delivery — then follow the order from packing to the rider.

Year
2026
Role
Frontend developer
Stack
Next.js 16 (App Router) · React 19 · TypeScript · Zustand · CSS Modules · Route handlers · Service worker (PWA) · Vitest · Playwright + axe-core · GitHub Actions
Ẹwà’s home page: a serif headline reading “Skincare made for more melanin, by people who have it” beside a portrait of a woman with deep brown skin and a bestseller card
PlateHome on desktop. The brands are fictional; the photographs are real and credited.
A — The problem

Online beauty shops often treat deep skin as an afterthought, and generic checkouts ignore how delivery actually works in Nigeria. The store needed to help someone choose — a routine, a shade — and then price and deliver the order honestly.

B — What it does
  • 01Filter by concern, skin type, brand, price and stock, with filters in the URL so any view can be shared.
  • 02A six-question routine quiz that builds a morning and night routine with a reason for each step, keeping strong actives out of reactive or pregnant routines.
  • 03A two-question shade matcher (depth and undertone) for tinted products.
  • 04Checkout works out delivery from your state and the time of day, applies promo codes with their real conditions and tracks the order on a live timeline.
C — Decisions & trade-offs
  1. D-01

    Prices are never trusted from the client

    The bag stores only product slugs, variant ids and quantities. The checkout route handler prices everything again from the catalogue, re-checks stock and promo rules, and refuses quantities the UI would never send.

    Trade-offPrice logic runs twice, but a tampered cart cannot change what someone pays.

  2. D-02

    Prerender what is stable, stream what depends on the visitor

    Product pages are prerendered with generateStaticParams; the shop streams its results, and anything that reads the clock — same-day cut-off, order tracking — renders after hydration so the prerendered HTML never bakes in the build time.

    Trade-offA brief placeholder shows where time-sensitive content will appear, in exchange for fast, cacheable pages.

  3. D-03

    Business rules as plain functions

    Routine discounts, promo conditions, delivery windows, the quiz engine and shade ranking live in pure TypeScript with unit tests, separate from the components.

    Trade-offMore files than putting the logic in components, but each rule can be tested without a browser.

D — Outcome
18products from five brands, with routines, shades and reviews
Serverre-pricing and stock checks on every checkout
Offlinepages you have visited, your bag and wishlist keep working
E — Known limits
  • The catalogue and payment gateway are mocks; brands and products are fictional and nothing is charged.
  • Orders are stored on the device, so they do not follow you to another browser.