Appearance

Visual style

Mode
Theme
Accent
Advanced
Text sizeScales the whole site
16 px
Reduce motionReduce animations or match your system
Separate light and darkChoose a theme, accent and font for each
50

Case study · Website rebuild & migration

Eastern Condiments Website Rebuild

A complete rebuild of a large WordPress brand site as a static Astro site: every page, product, recipe, store and document preserved, every original URL kept or redirected, with immersive motion.

Type
Website rebuild & migration
Industry
Retail & Consumer Brands
Role
Designer & developer · Sole developer
Status
Live preview
Year
2026

Deployed to a preview address; it is not live on the brand's own domain.

Eastern Condiments rebuilt website
Eastern Condiments rebuilt website. Screenshot of the deployed build.

The project

Eastern Condiments is an Indian spice and food brand with a large WordPress website: a product catalogue, recipes, a cookbook, company history, events, contests, a store locator and statutory documents. This project is a complete rebuild of that site as a static Astro site with a premium, editorial, motion-led experience. It is deployed to a preview address and is not the live eastern.in.

The challenge

The brief was a complete rebuild, not a homepage redesign. Two goals pulled against each other:

  • Preserve everything. Every page, product, recipe, store and document had to survive, at its original URL where possible, so search rankings and inbound links weren’t lost.
  • Raise the experience to the visual and interaction quality of a reference food brand’s site: big type, pinned sections, image reveals, stacked cards and drag galleries.

The approach

Inventory before design. The existing site was crawled and inventoried first: pages, products, recipes, stores and assets, documented in a page mapping, a migration checklist and an asset inventory. Design decisions came after, so nothing was dropped because it didn’t fit the first concept.

Content stored as reviewed data. Verbatim extracts from the original site were turned into typed content files and reviewed. Copy is edited in src/content/, never in components. The 41 cookbook cards were transcribed by hand and checked.

Original URLs preserved. Routes mirror the original WordPress URLs with trailingSlash: "always". Retired URLs get permanent redirects, emitted as a _redirects file for hosts that support it, with Astro redirect pages as a fallback.

Motion layered on top of content. GSAP with ScrollTrigger, Lenis and Matter.js power the pinned sections, colour-flood range bands, stacked cards, drag galleries and the falling-shapes contact page, but every module is lazy-loaded and does nothing under reduced motion.

Verification

Tests were written to prove the migration, not just the code:

  • Unit tests assert that every original product is present with unique slugs and valid categories, that pack sizes and retailer links are byte-identical to the source, that every product has a cut-out image, that every recipe links only to existing products, and that every URL in the original sitemap is rebuilt or redirected to a real page.
  • They also assert that claims hidden on the live site aren’t published and that no placeholder copy exists.
  • End-to-end tests run on desktop and a Pixel 7 profile: menu behaviour, client-side navigation, product search, store-locator filters, click-to-load video, reduced motion, no horizontal overflow at 320 px on seven templates, and a 200 response for every sitemap URL.

Engineering decisions

  • Split positioning and animation layers. An early bug came from GSAP overwriting a positioning transform; animated elements now have separate wrappers for layout and motion.
  • Font substitutes chosen by render. The reference’s Adobe-licensed fonts were replaced with Fraunces and Figtree after side-by-side renders, with metric-matched fallbacks to limit layout shift. Swapping in licensed fonts later is a token change.
  • Performance changes measured before shipping. Inlining all stylesheets halved first contentful paint, but made largest contentful paint worse on five of six pages, so it wasn’t shipped. The rule (both metrics must improve in the median) was set before measuring.

Known gaps

The rebuild’s own validation report lists what’s still different from the reference: no WebGL label spin on product packs (packs are flat, so they turn in 2D), and substitute fonts unless Eastern licenses the originals.

Highlights

Key implementation details

  • Content preserved: products, video recipes, cookbook recipes, milestones, stories, events, contests, stores and statutory documents.
  • Retired URLs become real 301s via a _redirects file, with static redirect pages as a fallback.
  • Motion modules (GSAP, ScrollTrigger, Lenis, Matter.js) lazy-loaded via data-* hooks, all respecting prefers-reduced-motion.
  • YouTube video loads from youtube-nocookie only on click.
  • A pinned Lighthouse and touch-scroll performance harness with interleaved runs and medians.
  • Visual validation in stepped-scroll captures at desktop and mobile sizes, fixed round by round.

Results

Documented outcomes

  • 520 HTML pages built, including 59 redirect pages.
  • All 442 URLs in the original sitemap rebuilt or redirected; every redirect lands on a real page.
  • 141 original products present, with pack sizes and retailer links byte-identical to the source.
  • 108 stores with coordinates, 36 video recipes and 40 cookbook recipes; all 17 statutory documents published.
  • Type check 0 errors; 14/14 unit tests and 26/26 end-to-end tests passing (desktop 1440 px and Pixel 7).

Planning something similar?

Tell me about your project and what you want it to achieve. I'll reply with a suggested approach, scope and timeline.