- Index:
- 04
- Sector:
- Hospitality & Restaurants
- Type:
- Website redesign
- Year:
- 2026
The Thai
The Thai is a bar and restaurant in Shawlands, Glasgow. Its old WordPress site hid the menu inside a PDF that search engines could not read and phones displayed badly, and reservations went through a third-party widget. We rebuilt thethai.uk with the menu as proper web pages, bookings taken on the site itself, and the navy and gold of the printed menu carried onto the web.A statically generated Next.js rebuild of thethai.uk that turned a PDF-only menu into 42 crawlable dishes, moved 28 blog posts off WordPress without dropping a URL, and brought the navy and gold of the printed menu onto the web.
Read it your way. You are reading the plain-English version. Flip to Technical for how it is built.You are reading the technical version: architecture, integrations and engineering detail.

Shawlands, Glasgow Bar & Restaurant 2026
The printed menu,now on the web.
A menu you can read, a table you can book, and not one old link lost.
The Thai is a bar and restaurant in Shawlands, on the south side of Glasgow. Its old website kept the menu inside a PDF that search engines could not read and phones showed badly, and its bookings went through somebody else's widget. We rebuilt it so the menu is real pages, bookings land on the restaurant's own site, and it finally looks like the room: navy and gold, straight off the printed menu.
A from-scratch rebuild of thethai.uk, replacing WordPress with a statically generated Next.js 16 App Router build. The menu moved from a wp-content PDF into typed data rendered as HTML and emitted as Menu JSON-LD; 28 posts moved to Markdown behind 25 permanent redirects; bookings moved off a third-party widget onto first-party routes backed by Postgres via Drizzle, with a staff diary and First Table emails parsed onto it.
- Dishes indexed
- 42
- Posts migrated
- 28
- Redirect rules
- 25
- Allergen filters
- 11
The numbers behind the rebuild
The brief
The best thing in the room was the hardest thing to find.
People visit a restaurant's website for the menu. On the old site the menu was a PDF, the blog's links were tied to WordPress, the bookings belonged to someone else and none of it looked like The Thai.
The old thethai.uk was WordPress, and its menu was a PDF. Every dish, every price and every allergen note sat inside a file that search engines cannot read as a menu and that a phone will not display well, so the single thing most people arrive at a restaurant site to look at was effectively invisible. The blog was the other half of the problem. Twenty-eight posts had built up on WordPress URL shapes, /uncategorized/ post paths, category and author archives, per-post RSS feeds and year, month and day date archives, and a rebuild that changed the URL structure would have thrown away whatever those links were worth. On top of that, the site did not look like the restaurant: the printed menu in the room was navy and gold, and the website was not.
Course IThe menu
BeforeA PDF download. Search engines could not read it as a menu, and phones showed it badly.
A PDF under wp-content. No HTML, no structured data, nothing a crawler maps to dishes or prices.
Now42 dishes as real web pages, with prices, allergens and filters a guest can use.
42 dishes across nine sections, typed data rendered as HTML with Menu JSON-LD and client-side filters.
Course IIThe links
Before28 blog posts sitting on WordPress addresses, archives, feeds and date pages.
/uncategorized/ post paths, category and author archives, per-post RSS feeds and Y/M/D date archives.
NowEvery old address sends people to the right new page, so old links still work.
25 permanent redirect rules in the Next.js config, including the wp-content menu PDF.
Course IIIThe look
BeforeA website that did not look like the restaurant.
A theme, not a brand: nothing shared with the printed material in the room.
NowNavy and gold, taken straight off the printed menu on the tables.
Navy and gold tokens as CSS variables, Marcellus and Figtree via next/font.
Course IVThe bookings
BeforeReservations handed to somebody else’s widget.
A third-party reservation widget embedded in the page.
NowBookings on the restaurant’s own site, with a staff diary behind them.
First-party booking against tables and areas in Postgres, a staff diary, and First Table emails parsed onto it.
PDF to page
The menu was a picture of a menu.
On the old site the menu was a PDF. On a phone it was a page to pinch and squint at. To a search engine it was a file, not a menu. Slide it open and watch every dish become something both can read.
The menu is typed data read at build time and rendered as semantic HTML: 42 dishes across nine sections, with per-variant pricing and allergen labels. The same data emits Menu JSON-LD, a MenuSection per course and an Offer per price, so crawlers read a menu rather than a link to a download. Below the demo: the JSON-LD, the data shape and the loader's build check.
Sample Menu
Starters
- Golden BagsVegetarian option£7.50
Contains: Gluten
- Chicken Satay£8.50
Contains: Peanuts
- Sesame Prawn Toast£8.90
Contains: Crustaceans, Gluten, Sesame, Eggs
- Thai Fish CakesMedium£8.90
Contains: Fish, Eggs
Mains
- Pad ThaiVegetarian optionMild£15 to £18
Contains: Peanuts, Eggs, Fish, Soya
- Green CurryVegetarian optionMedium£15 to £18
Contains: Fish
- Massaman CurryVegetarian optionMild£15 to £18
Contains: Fish, Tree nuts
- Weeping TigerMedium£26
Contains: Fish, Soya, Sulphites, Molluscs
Sample dishes, for illustration
Unfold the menu
0/8
dishes a search engine can read as a menu. The PDF menu.
- Read as a menu by search
- No
- On a phone
- Pinch and zoom
- Tofu, chicken or prawn
- One blurred line
- Allergens
- Inside the file
{
"@context": "https://schema.org",
"@type": "Menu",
"name": "Sample menu",
"hasMenuSection": [
{
"@type": "MenuSection",
"name": "Starters",
"hasMenuItem": [
{
"@type": "MenuItem",
"name": "Golden Bags",
"description": "Crisp pastry parcels of sweetcorn and water chestnut, sweet chilli dip.",
"offers": [
{
"@type": "Offer",
"price": "7.50",
"priceCurrency": "GBP"
}
]
},
{
"@type": "MenuItem",
"name": "Chicken Satay",
"description": "Grilled skewers, turmeric and lemongrass, house peanut sauce.",
"offers": [
{
"@type": "Offer",
"price": "8.50",
"priceCurrency": "GBP"
}
]
},
{
"@type": "MenuItem",
"name": "Sesame Prawn Toast",
"description": "Minced prawn on toast, rolled in sesame, cucumber relish.",
"offers": [
{
"@type": "Offer",
"price": "8.90",
"priceCurrency": "GBP"
}
]
},
{
"@type": "MenuItem",
"name": "Thai Fish Cakes",
"description": "Red curry paste and long bean, sweet cucumber dip.",
"offers": [
{
"@type": "Offer",
"price": "8.90",
"priceCurrency": "GBP"
}
]
}
]
},
{
"@type": "MenuSection",
"name": "Mains",
"hasMenuItem": [
{
"@type": "MenuItem",
"name": "Pad Thai",
"description": "Rice noodles, tamarind, egg, bean sprouts and crushed peanuts.",
"offers": [
{
"@type": "Offer",
"name": "Tofu",
"price": "15.00",
"priceCurrency": "GBP"
},
{
"@type": "Offer",
"name": "Chicken",
"price": "16.00",
"priceCurrency": "GBP"
},
{
"@type": "Offer",
"name": "Prawn",
"price": "18.00",
"priceCurrency": "GBP"
}
]
},
{
"@type": "MenuItem",
"name": "Green Curry",
"description": "Coconut milk, Thai aubergine, bamboo shoot and sweet basil.",
"offers": [
{
"@type": "Offer",
"name": "Tofu",
"price": "15.00",
"priceCurrency": "GBP"
},
{
"@type": "Offer",
"name": "Chicken",
"price": "16.00",
"priceCurrency": "GBP"
},
{
"@type": "Offer",
"name": "Prawn",
"price": "18.00",
"priceCurrency": "GBP"
}
]
},
{
"@type": "MenuItem",
"name": "Massaman Curry",
"description": "Slow cooked with potato, star anise and toasted cashews.",
"offers": [
{
"@type": "Offer",
"name": "Tofu",
"price": "15.00",
"priceCurrency": "GBP"
},
{
"@type": "Offer",
"name": "Chicken",
"price": "16.00",
"priceCurrency": "GBP"
},
{
"@type": "Offer",
"name": "Prawn",
"price": "18.00",
"priceCurrency": "GBP"
}
]
},
{
"@type": "MenuItem",
"name": "Weeping Tiger",
"description": "Grilled sirloin, roasted rice and a sharp tamarind dip.",
"offers": [
{
"@type": "Offer",
"price": "26.00",
"priceCurrency": "GBP"
}
]
}
]
}
]
}A MenuSection per course and an Offer per price, so a dish served as tofu, chicken or prawn carries three offers. Generated from the same typed data that renders the HTML, so the markup and the page can never disagree.
Allergen filter
Eleven allergens. One tap each.
Guests with allergies used to ring ahead or hunt through small print. Now they tap what they cannot eat and the menu sets those dishes aside, right there on the page, with no waiting. Each chip even says how many dishes it would take away. Try it on our sample menu.
Filtering runs entirely client-side over the statically rendered menu: vegetarian, mild or no spice, and exclusion of any of the eleven allergens present in the data. No server call and no reload; the filter enhances HTML that already lists every dish with its allergen labels, so the page works before any JavaScript arrives.
Filter the menu
Leave out (11 allergens)
Celery, lupin and mustard are on the UK list of fourteen too, but nothing on this menu contains them, so there is no chip to press.
16 of 16 dishes
Showing 16 of 16 dishes. No filters on.
Starters4/4
- Golden BagsVegetarian option£7.50
Crisp pastry parcels of sweetcorn and water chestnut, sweet chilli dip.
Contains: Gluten
- Chicken Satay£8.50
Grilled skewers, turmeric and lemongrass, house peanut sauce.
Contains: Peanuts
- Sesame Prawn Toast£8.90
Minced prawn on toast, rolled in sesame, cucumber relish.
Contains: Crustaceans, Gluten, Sesame, Eggs
- Thai Fish CakesMedium£8.90
Red curry paste and long bean, sweet cucumber dip.
Contains: Fish, Eggs
Soups2/2
- Tom YumVegetarian optionHot£9.50 to £10.50
Hot and sour broth of lemongrass, galangal and lime leaf.
- Tofu £9.50
- Chicken £9.50
- Prawn £10.50
Contains: Fish
- Tom KhaVegetarian optionMild£9.50 to £10.50
Coconut, galangal and mushroom, gentle and sour.
- Tofu £9.50
- Chicken £9.50
- Prawn £10.50
Contains: Fish
Salads2/2
- Som TumHot£12
Green papaya pounded with lime, chilli and roasted peanuts.
Contains: Fish, Peanuts, Crustaceans
- Glass Noodle SaladMedium£13.50
Mung bean noodles, prawn, coriander and a chilli lime dressing.
Contains: Crustaceans, Fish, Soya
Mains5/5
- Pad ThaiVegetarian optionMild£15 to £18
Rice noodles, tamarind, egg, bean sprouts and crushed peanuts.
- Tofu £15
- Chicken £16
- Prawn £18
Contains: Peanuts, Eggs, Fish, Soya
- Green CurryVegetarian optionMedium£15 to £18
Coconut milk, Thai aubergine, bamboo shoot and sweet basil.
- Tofu £15
- Chicken £16
- Prawn £18
Contains: Fish
- Massaman CurryVegetarian optionMild£15 to £18
Slow cooked with potato, star anise and toasted cashews.
- Tofu £15
- Chicken £16
- Prawn £18
Contains: Fish, Tree nuts
- Weeping TigerMedium£26
Grilled sirloin, roasted rice and a sharp tamarind dip.
Contains: Fish, Soya, Sulphites, Molluscs
- Drunken NoodlesVegetarian optionHot£15 to £18
Wide rice noodles, holy basil, bird’s-eye chilli and oyster sauce.
- Tofu £15
- Chicken £16
- Prawn £18
Contains: Gluten, Soya, Molluscs, Eggs
Desserts3/3
- Mango Sticky RiceVegetarian option£8.50
Sweet coconut sticky rice, ripe mango, toasted sesame.
Contains: Sesame
- Banana FrittersVegetarian option£7.90
Light coconut batter, honey and vanilla ice cream.
Contains: Gluten, Milk, Eggs
- Pandan CustardVegetarian option£7.50
Baked pandan and coconut custard, palm sugar caramel.
Contains: Milk, Eggs
Sample menu and allergens, for illustration. Always check with the restaurant.
{
"vegetarian": false,
"mild": false,
"exclude": []
}
// shown: 16 hidden: 0
// network requests: 0// Runs in the browser on every tap. No request, no reload.
function setAsideReasons(item: MenuItem, f: MenuFilter): string[] {
const reasons: string[] = [];
if (f.vegetarian && !item.vegetarian) reasons.push('not vegetarian');
if (f.mild && item.spice > 1) reasons.push('too hot');
for (const a of f.exclude)
if (item.allergens.includes(a)) reasons.push(`contains ${a}`);
return reasons; // empty: the dish stays on the page
}Book a table
Bookings that land on the restaurant's own site.
The old site sent guests off to someone else's booking widget. Now they book on The Thai's own website, the site checks the restaurant's own tables to see what is free, and the booking drops straight into the diary the staff work from. Bookings from First Table arrive in the same diary. Try a busy Saturday.
First-party booking: availability is computed from the tables and areas held in Postgres via Drizzle, with the booking and admin routes dynamic while the marketing site stays static. Guests amend or cancel through a tokenised link with no account; First Table reservation emails are polled from the restaurant mailbox over IMAP and parsed onto the same diary. Vitest covers slot generation and the booking API's validation.
Book a table
Table M3, Main room
2 guests, Friday at 7pm. Held for 90 minutes.
- Your table
- Booked then
- Free
Staff diary · Friday
11 bookings · 41 covers · 3 from First Table
- W1 ·2Nguyen · 2Chen · 2FT
- W2 ·2Grant · 2
- W3 ·4Patel · 4FTFraser · 4
- M1 ·4Murray · 4Singh · 3
- M2 ·4Okafor · 4
- M3 ·2
- M4 ·6Ross · 6Ahmed · 5
- M5 ·4
- S1 ·8Campbell · 5FT
- B1 ·2
- B2 ·2
Solid: booked on the websiteDashed, FT: arrived from First Table by emailGold: yours
Sample tables, guests and bookings, for illustration
Your own bookings
Guests book on your site, under your name, not on someone else’s.
One diary
Web bookings and First Table emails land in the same list for the staff.
Easy changes
Every confirmation has a link to amend or cancel. No logins.
// Tables, areas and bookings. Simplified for illustration.
export const areas = pgTable('areas', {
id: uuid('id').primaryKey().defaultRandom(),
name: text('name').notNull(),
});
export const tables = pgTable('tables', {
id: uuid('id').primaryKey().defaultRandom(),
areaId: uuid('area_id').notNull().references(() => areas.id),
label: text('label').notNull(),
seats: integer('seats').notNull(),
minCovers: integer('min_covers').notNull(),
});
export const bookings = pgTable('bookings', {
id: uuid('id').primaryKey().defaultRandom(),
tableId: uuid('table_id').notNull().references(() => tables.id),
startsAt: timestamp('starts_at', { withTimezone: true }).notNull(),
endsAt: timestamp('ends_at', { withTimezone: true }).notNull(),
covers: integer('covers').notNull(),
source: bookingSource('source').notNull(), // 'web' | 'first_table'
manageToken: text('manage_token').notNull().unique(),
});// Same request, same table: deterministic, so it can be tested.
function allocate(tables, bookings, covers, start, duration = 90) {
return tables
.filter((t) => t.seats >= covers && t.minCovers <= covers)
.filter((t) => !bookings.some((b) =>
b.tableId === t.id && b.start < start + duration && start < b.start + b.duration))
.sort((a, b) =>
a.seats - b.seats || // tightest fit
AREA_PREFERENCE[a.areaId] - AREA_PREFERENCE[b.areaId] ||
a.id.localeCompare(b.id))[0] ?? null; // null: slot is full
}{
"covers": 2,
"evening": "Friday",
"start": "19:00",
"end": "20:30",
"tableId": "M3",
"source": "web",
"manageUrl": "/booking/manage/<signed token>"
}Old links kept
Twenty-eight posts moved, old links forwarded.
Years of blog posts had built up links all over the internet, in address shapes only WordPress used. Change the addresses and every one of those links breaks, along with whatever it was worth. Now each old address forwards to the right new page. Pick an old one, or type your own.
28 posts moved to Markdown with Article structured data. 25 permanent redirects in the Next.js config cover the /uncategorized/ post paths, category and author archives, per-post RSS feeds, year, month and day archives, and the wp-content menu PDF that every old Menu link pointed at. No plugin, no .htaccess.
/uncategorized/what-is-pad-kra-pao/feed
lands on /news/what-is-pad-kra-pao
Moved for good, so search engines carry the old link's standing across. Caught by the rule for a post’s RSS feed.
Old WordPress
New pages
- /news/what-is-pad-kra-pao
- /news/thai-new-year-menu
- /news
- /menu
- A post’s RSS feed/uncategorized/:slug/feed
- A blog post/uncategorized/:slug
- A category archive/category/:name
- An author archive/author/:name
- A day archive/:year(\d{4})/:month(\d{2})/:day(\d{2})
- A month archive/:year(\d{4})/:month(\d{2})
- A year archive/:year(\d{4})
- The old menu PDF/wp-content/uploads/:path*/menu.pdf
Sample addresses in the real patterns. The live site has 25 rules.
// next.config.ts
async redirects() {
return [
// ...
{
source: '/uncategorized/:slug/feed',
destination: '/news/:slug',
permanent: true, // 308: browsers and crawlers update the link
},
];
}GET /uncategorized/what-is-pad-kra-pao/feed HTTP/1.1
Host: thethai.uk
HTTP/1.1 308 Permanent Redirect
Location: /news/what-is-pad-kra-pao
// Handled by Next.js config at the edge:
// no plugin, no .htaccess, no WordPress.The look
Taken off the printed menu, not invented.
The restaurant already had a brand: the navy and gold of the menu on every table. We built the website from it, so the site and the room finally match.
Brand tokens taken from the printed menu: navy and gold as CSS variables under Tailwind CSS 4, with Marcellus for display and Figtree for body through next/font, self-hosted and subset. Photography and video come from a Vercel Blob store through next/image, keeping large media out of the repository.


- Navy
- Backgrounds
- Midnight
- Panels and cards
- Gold
- Rules, prices, buttons
- Cream
- Type on navy
The live site sets its headings in Marcellus and its text in Figtree. This page borrows a classic serif for the same feel without loading another font.
- 01The PDF menu became 42 dishes on real web pages, each with its description, price, a price for each version and its allergensA PDF-only menu replaced by 42 dishes across nine sections as crawlable HTML, each with description, price, variant pricing and allergen labels
- 02Search engines can read the menu dish by dish, prices included, instead of finding a file to downloadMenu JSON-LD emitted per section and per dish, including prices, so the menu is machine-readable rather than a link to a download
- 03Guests can show only vegetarian dishes, only mild ones, or leave out any of eleven allergens, instantly, without the page reloadingClient-side filters for vegetarian dishes, mild or no spice, and exclusion of any of eleven allergens, with no page reload
- 0428 blog posts moved across, with 25 redirects so every old link, archive, feed and the old menu PDF still lands on the right page28 blog posts migrated off WordPress with 25 redirect rules covering post URLs, category and author archives, per-post RSS feeds, date archives and the old menu PDF
- 05Search engines are told the restaurant’s address, location, opening hours and award, and every page is set up to be foundRestaurant JSON-LD carrying address, geo, opening hours and award, alongside per-page metadata, sitemap and robots
- 06A navy and gold look taken from the printed menu, so the website and the room finally matchNavy and gold rebrand taken from the printed menu, so the site and the room finally match
- 07Bookings taken on the restaurant’s own site, with free tables worked out from its own floor, and a staff diary behind themBookings taken on the site itself, with availability computed from the restaurant tables and a staff diary behind it, replacing the third-party reservation widget
- 08First Table reservations that arrive by email land in the same diary as bookings made on the websiteFirst Table reservations that arrive by email parsed and landed on the same diary as web bookings
- 09Photos and video are kept in cloud storage built for the job, so the website itself stays lightPhotography and video served from Vercel Blob rather than committed to the repository
Need a website redesign?
If your business needs a website redesign like The Thai's, tell us about it. We reply with a fixed written quote after a short discovery call, so you know the price before any work starts.
Website redesign from £1,500
Prices, timelines and what is included: Website redesign in Glasgow.
Studio: Unit 204b, 36-38 Washington Street, Glasgow G3 8AZ. Phone 0141 345 5841.
The architecture, integrations, performance numbers and code standards behind this project live in the technical version, for whoever looks after your IT.
A statically generated Next.js rebuild of thethai.uk that turned a PDF-only menu into 42 crawlable dishes, moved 28 blog posts off WordPress without dropping a URL, and brought the navy and gold of the printed menu onto the web.
- Framework
- Next.js 16 with React 19, App Router and React Server Components
- Rendering
- Static generation for the marketing site, with the booking and admin routes dynamic
- Content
- Menu as typed JSON and blog posts as Markdown, both read at build time, no CMS
- Database
- PostgreSQL via Drizzle ORM for tables, areas, bookings and the staff diary
- Styling
- Tailwind CSS 4 with navy and gold brand tokens as CSS variables
- Deployment
- Vercel, with large media in a Vercel Blob store rather than git
- Structured Data
- Restaurant JSON-LD in the layout, Menu JSON-LD on the menu, Article on each post
- First Table
- Reservation emails polled from the restaurant mailbox over IMAP and parsed onto the diary
- Vercel Blob
- Photography and video served from a dedicated blob store, referenced through next/image
- Maps
- Google Maps link and embed on the contact page, matching the geo in the structured data
- Menu
- Rendered at build time from typed data, filtering happens in the browser with no server call
- Images
- next/image against the blob store, with the repository kept free of large media
- Fonts
- Marcellus and Figtree loaded through next/font, self-hosted and subset
- Redirects
- Handled at the edge by Next.js config rather than by a plugin or a htaccess file
- →TypeScript strict mode throughout
- →Menu data typed and read through a single loader, so a malformed dish fails the build
- →Vitest coverage over booking slot generation and booking API validation
- →Secrets in environment variables only, never in the repository
- →Semantic HTML for the menu, so the filter enhances a page that already works without it
- Next.js 16
- React 19
- TypeScript
- Tailwind CSS 4
- Drizzle ORM
- PostgreSQL
- Vercel Blob
- Vitest
- Vercel
Questions about The Thai
What did Glasgow GFX build for The Thai, Bar & Restaurant?
The Thai is a bar and restaurant in Shawlands, Glasgow. Its old WordPress site hid the menu inside a PDF that search engines could not read and phones displayed badly, and reservations went through a third-party widget. We rebuilt thethai.uk with the menu as proper web pages, bookings taken on the site itself, and the navy and gold of the printed menu carried onto the web.
How is it built, in plain terms?
A fast, pre-built website with a small database behind the bookings, photography served from cloud storage, and every old blog and menu link redirected so nothing was lost.
What changed for The Thai, Bar & Restaurant?
Bookings taken on the restaurant's own site instead of a third-party widget, and a PDF menu turned into 42 dishes search engines can read.
How much does a website redesign like this cost?
Website redesign projects start from £1,500. We reply with a fixed written quote after a short discovery call, so you know the price before any work starts.
Where is Glasgow GFX based?
Our studio is at Unit 204b, 36-38 Washington Street, Glasgow G3 8AZ, and we work with businesses across the UK. Phone 0141 345 5841.
Flora & Fable Floristry
Brand identity, bespoke e-commerce storefront, postcode delivery engine, and self-service admin dashboard for a Glasgow floristry business.

Have a project?
Websites, web apps and bespoke software for businesses across the UK, built in Glasgow. Tell us what you need and we will come back with a fixed written quote after a discovery call.
Glasgow GFX Studio
- Visit
- The Pentagon Business Centre
Unit 204b, 36-38 Washington Street
Glasgow G3 8AZ - Call
- 0141 345 5841
- Hours
- Mon to Fri 9:00 to 18:00
Sat 10:00 to 18:00
Sun closed - Clients
- Web and software clients across the UK, from the Washington Street studio in Glasgow.