/challenge
The site had to work in Indonesian and English without layout shift. Indonesian copy runs longer than English, and a line breaking in the wrong place mid-paragraph throws off the rhythm of the page. So we typeset both languages and treated them as one design, rather than dropping a translation onto an English layout.
There was also a performance budget for 3G. PT Tirtanet's buyers work at plants and field sites, far from an office fiber line.
/solution
We built an Astro shell with i18n routing. The site detects the visitor's language, and a language toggle sits in a sticky bar at the bottom. Switching languages keeps the visitor on the same page.
- WebP hero images under 100 KB, with an AVIF fallback
- Fluid type with CSS
clamp(), from 320px screens up to 4K - Components designed for touch first, such as swipeable service cards and a CTA with haptic feedback
- One Markdown CMS where editors write ID and EN side by side, so nothing has to be entered twice
/outcome
- Lighthouse mobile score of 99OK
- 0 CLS at every breakpointOK
- an editor update takes under 5 min and covers both languages in one commitOK

