Pho Kam Long — website
The restaurant's website at phokamlong.com, in English, French and Vietnamese, with a menu the staff edit themselves.
- Directive
- R-003
- Class
- Client
- Role
- Design and build
- Client
- Pho Kam Long
- Period
- Jan 2025 – Jun 2026
- Status
- Delivered
The account§ 01
The first site went up in January 2025. From January 2026 I rebuilt it on Next.js 16, Panda CSS and Sanity, so the staff edit the menu, hours and photographs in a studio instead of me changing code.
It reads in Canadian English, Canadian French and Vietnamese. It lives in one repository with the restaurant's POS and server, and shares their design tokens.
Outcomes
- Live at phokamlong.com.
- Three languages: en-CA, fr-CA and vi.
- Menu, hours and photographs edited by the restaurant in Sanity Studio.
Timeline
- First site
- Rebuild begins
- Joins the restaurant's monorepo
- Deployed on Vercel
In figures§ 02
- 3languages: English, French and Vietnamese
- 150+dishes on the menu, searched as you type
- 2faces, Playfair Display and Be Vietnam Pro
Why§ 03
When I started working with Pho Kam Long around December 2024, the restaurant had no website and little brand recognition. The goal was a proper web presence, brought up to date. The first site went up in January 2025, while the printed menus were still being revised.
That first site could only be edited by me. A restaurant changes its menu, prices, hours and holiday closures far more often than anyone wants to redeploy. So the rebuild's first goal was a site the restaurant edits itself, in a studio, with every change live within a minute.
The second goal was that it reads properly in all three languages: English and French for Ottawa, and Vietnamese for the dishes and the family. That means more than translated strings on an English layout. The layout has to hold up when the French runs long and the Vietnamese sets tall.
What it does§ 04
- Three languages
Every page in en-CA, fr-CA and vi, switched from the header, with a type pair that carries Vietnamese.
- Hours, live
The header knows whether the restaurant is open now and when it opens next.
- A searchable menu
Categories along the top and a search box that filters the dishes as you type.
- A page per dish
Each dish with its photograph, sizes and prices, and others like it.
- Find us
Hours by day, the address, a map and directions in one place.
- Edited by the restaurant
The menu, hours and photographs live in Sanity Studio, so the staff change them without code.
Where it got hard§ 05
- Open now, on a prerendered page
- Problem
- The header says whether the restaurant is open and when it opens next. But the page is static and cached. The visitor's clock is in their own timezone. Holidays close the restaurant on days the weekly hours say it's open. And with scripting off, there's nothing to work out the answer.
- Solution
- Every "today" on the site is measured in the restaurant's timezone. The status is worked out in the browser from the weekly hours and the holiday calendar. It renders through React's own browser() boundary, so the server never guesses. When scripting is unavailable, the placeholder is dropped instead of showing something wrong. A dev tool draws the hours timeline and the holiday calendar. That's how I found and fixed a closed day that disagreed with itself.
- Three languages at 320 pixels and 200% text
- Problem
- French runs a third longer than English, and Vietnamese sets tall. The dock labels wrapped and the hours rows overflowed. At 320 pixels under 200% zoom, the page grew a horizontal scrollbar.
- Solution
- I shortened the labels in French and Vietnamese and let the hours rows wrap. The type scale and control strokes are in relative units, and lint enforces logical properties. Vietnamese terms carry lang="vi" inline so screen readers pronounce them. A translation coverage tool, plus a schema rule that requires every locale on a field, keeps the three languages from drifting apart.
- Cached, but never stale
- Problem
- Fetching from Sanity on every request was slow, and it shipped Sanity's live client to every visitor. Prerendering everything went stale as soon as the staff edited the menu.
- Solution
- I moved the pages to cache components, with the Sanity fetches on use cache and tags scoped by document type. A webhook from the studio purges exactly what changed. A CI check fails the build if any locale route isn't fully prerendered, so the fast path can't quietly regress.
- Searching a hundred and fifty dishes as you type
- Problem
- The menu is long and grouped into sections and categories. People search by what they call a dish, and that's often the section's name, not the item's.
- Solution
- The search index is built from the items and from the section and category headers, so a search for soup finds the soups. The query stays in the URL. I lifted the result cap so header matches aren't cut off. Results are announced to assistive technology once, not on every keystroke.
Pages§ 06
Three languages§ 07
The same page in each of its languages, headings and slogans translated rather than left in English.
On a phone§ 08
Palette§ 09
From the site's design tokens, in OKLCH.
- Backgroundoklch(97.7% 0.0102 81.8)The page
- Surfaceoklch(94% 0.0165 79.35)Alternating sections
- Inkoklch(22.2% 0.011 60.87)Type, the footer, buttons
- Primaryoklch(54.3% 0.1556 34.13)Order Online, links, focus
- Accent softoklch(81.5% 0.0887 49.74)Highlights
- Openoklch(58.3% 0.1124 152.76)The open-now dot
How it fits together§ 10
- Restaurant staffChange the menu, hours and photographsEdits
- Sanity StudioThe content, in three languagesWebhook
- Next.js 16 on VercelPages rebuilt when the content changesHTTPS
- GuestsOn a phone or at a desk
Where it stands§ 11
Live at phokamlong.com. It's been on Vercel since June 2026 and was redesigned in September 2026. The staff edit the menu, hours and photographs themselves, in a Sanity studio with a custom structure made for them rather than the stock one.
Analytics go through PostHog on a first-party path, and contact details are redacted before an event leaves the browser. Errors go to Sentry. CI holds every route's first-load JavaScript to a ceiling.
What I learned§ 12
- Work out today in one place
Every date bug on the site came from a clock in the wrong timezone. Now one function answers what day it is in the restaurant's timezone, and everything else asks it.
- Translate the layout, not just the strings
Strings are the easy part. A layout that only works in English is an English site with French words on it.
- Share design tokens as a package
The palette and type scale live in a design-tokens package the POS reads too. So the till and the site are the same brand.
- Pick the CMS for whoever edits
Sanity's hosted studio was the right call here, because the editors are restaurant staff. On my own site I later chose Payload so the admin lives inside the app. The choice depends on who edits, not on which one is better.