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.

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.
- 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.
- 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.
- 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.
- 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.
- 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.