WordPress site · Mont-Royal, Montréal
A bilingual site with a private age check
AirVape has two counters on Avenue du Mont-Royal Est, inside Mon General and at Maison LeRoy. We built their WordPress site in French and English: a custom block theme with both addresses, hours that update themselves and an 18+ check that never sends a birth date anywhere.
Live at airvape.ca · For adults 18 and over
Languages, French and English
Birth dates sent to the server
Before the age check asks again
Small script. The rest is plain HTML
Old enough? Your browser decides
The site carries information about vaping, so it opens on a date-of-birth check for adults 18 and over. The check runs in the visitor's browser. The date of birth is never sent to the shop or stored, and a small cookie remembers a pass for 30 days.
Runs in the browser
No birth date kept
30-day pass
Français and English
French first, English at /en/
French is the default at airvape.ca and English lives at /en/, with hreflang tags so search engines send each visitor to their own language. The age check, its error messages and the open or closed sign all speak both.
fr-CA and en-CA
hreflang
Bilingual age check
Bilingual hours
A real dialog, not a pop-up
The check is the browser's own modal dialog. It holds keyboard focus, makes the page behind it inert and ignores Esc, so a keypress can't skip it. An impossible date, like 31 February, gets its own message, separate from too young.
Native dialog
Focus trapped
Esc can't skip it
Clear error messages
Small site, done properly
A sign that keeps itself
The open or closed sign reads each shop's own hours table in Montréal time and marks today's row. Change the table and the sign follows.
Two shops, lined up
CSS subgrid keeps the two shops' hours tables and maps level, however long each shop's text runs.
Readable on a phone
On a small screen the map shows its middle, where the shop and street names are, instead of shrinking past reading size.
Plain HTML
One small script for the hours and the age check. Everything else on the site is plain HTML.
One font, self-hosted
Outfit is served from the site itself, not from a font service.
A WordPress block theme
Colours, the font and sizes live in theme.json, so pages are edited in the WordPress block editor.
Your birthday stays with you
The age check needs a date of birth. The site doesn't. The arithmetic happens in the visitor's browser, and the only thing kept is a cookie that says the check passed.
Need a site that does it properly?
AirVape is live at airvape.ca, for adults 18 and over. Tell us what your shop needs and we'll show you what we'd build.