Objective
Showcase artist portfolios in two languages and route bookings to WhatsApp.
Challenges
- 01Blog slugs differ per language, which breaks hreflang links between versions
- 02Two locations with separate WhatsApp numbers, and each page needs its own message
- 03Google reviews must render even when the Places API is unavailable
How it was solved
- 01A shared translationSlug in the frontmatter maps each post to its translation
- 02One URL builder takes location, page context and locale and pre-fills the message
- 03Cached Places API responses, with bundled fallback reviews per language
Overview
The studio works from Playa del Carmen and Cancún. Visitors browse artists, services and aftercare guides in either language and book from the page they are on, without filling out a form.
Technical Implementation
Internationalization
next-intl handles the /es and /en prefixes, detects the preferred language and maps localized path segments (/artistas and /artists).
Content
Artist profiles and blog posts are MDX files per locale, with frontmatter validated before each build.
WhatsApp contact
Links are built per location and pre-fill the message with the service or artist being viewed, instead of a contact form.
Images
next/image serves AVIF and WebP with lazy loading and pre-generated blur placeholders.
Features
- Spanish and English with localized URLs
- Artist pages with portfolio lightbox
- Service pages for tattoos and piercings
- A page per location
- Context-aware WhatsApp links
- Aftercare blog in MDX
Technologies
- Next.js 16
- React 19
- TypeScript
- Tailwind CSS 4
- next-intl
- MDX
- next-mdx-remote
- Gray Matter
- next-sitemap
