Skip to content
Blog Post
Bolt & Brass: A Neon Website Template for a 24-Hour Locksmith

Bolt & Brass: A Neon Website Template for a 24-Hour Locksmith

Bolt & Brass Locksmiths is one of my website templates. The firm, the town of Hollowmere, the areas and the prices are all made up, so it can show what a site for a real locksmith could look like.

A locksmith's busiest customer is someone standing on their own doorstep at midnight, holding a phone. So the site does three things for that person first: it puts the phone number in front of them, it tells them whether the firm covers their postcode, and it tells them what a lock-out will cost at this time of night. Services, areas, FAQs and booking for jobs that can wait come after.

The look is neon at night: a dark blue page, a pink "LOCKED OUT?" that lights up letter by letter, cyan neon icons, and a little OPEN sign hung over real night-time photos of doors and locks.

The stack

  • Framework: Next.js 15 (App Router), React 19 and TypeScript
  • Styling: plain CSS in one file, no CSS framework
  • Fonts: Monoton for the sign lettering, Tilt Neon and Manrope, loaded with next/font
  • Content: the firm's details, services, prices, areas and FAQs all live in lib/site.ts
  • Photos: free-licence photos from Flickr, credited in the footer

A neon headline with no images

The headline isn't a picture. It's ordinary text, split into one <span> per letter. Each letter gets its position as a CSS variable, and the stylesheet uses that number to start each letter's "power on" a little later than the one before:

.neon-head .on {
  color: #fff;
  text-shadow: 0 0 4px #fff, 0 0 12px var(--pink), 0 0 28px var(--pink), 0 0 56px var(--pink);
  animation: power 0.5s steps(2, jump-none) both;
  animation-delay: calc(var(--i) * 90ms + 200ms);
}

The stacked text-shadow gives the glow: a tight white halo, then wider and wider pink ones. The steps(2) timing makes each letter jump from dim to lit rather than fade, which is closer to how a real tube strikes.

One letter (the eighth, by default) gets a second animation, flick, that runs every seven seconds. For most of the cycle it does nothing, then near the end it dips twice in quick succession. It reads as a slightly tired tube rather than a blinking banner.

Screen readers get the words once, through an aria-label, not letter by letter. For anyone who has asked their device for reduced motion, all of it switches off and the letters are simply lit.

Neon icons drawn in code

The icons (a door, a lock cylinder, a shield, a key, a padlock and so on) are SVG paths in components/Neon.tsx. Each one is drawn twice: first as a thick stroke in the tube's colour with a blur filter on it, then as a thin near-white line on top. That's the trick that makes it look like lit glass: a coloured glow around a bright core. Because they're code, not image files, they stay sharp at any size and their colour is a single setting.

The phone number never goes away

On a computer, the header sticks to the top of the screen as you scroll, and it carries a "Locked out?" button with the number. On a phone, that button is hidden and a pink call bar is fixed to the bottom of the screen instead: "Locked out? Call 01632 960 927". Tapping it starts the call.

The number also sits large in the hero, and the booking form, which is for jobs that can wait, opens with a note telling anyone locked out right now to ring instead.

"Do you cover my area?"

The postcode check takes whatever someone types, uppercases it and pulls out the district with a small regular expression, so "hm4 2ab" becomes HM4. It then looks that district up in a list of areas, each with a typical time to get there:

export function coverage(input: string) {
  const district = (input.trim().toUpperCase().match(/^[A-Z]{1,2}\d{1,2}/) ?? [""])[0];
  return district && areas[district]
    ? { district, ...areas[district] }
    : { district, name: "", mins: 0, out: true };
}

If it's covered, the answer says so with the area's name and roughly how many minutes away it is. If not, it says the firm can't promise a fast call-out and gives the number to ring for an honest answer. It runs in the browser, so the answer is instant, and the booking form uses the same function.

Prices by time of day

Lock-out prices are shown as three rows on a price board: daytime, evening and night, each with its hours and its price. They come from one small list in lib/site.ts, so a firm changes its prices in one place.

Why this suits a locksmith

Someone locked out isn't browsing. They want to know three things: can you come, how soon, and how much. The template answers all three before they've scrolled, and the number to ring is never more than a tap away.

The price board and the "How to spot a cowboy locksmith" section are there for the same reason. A clear price before anyone sets off is the thing that separates a local firm from the call centres that quote low and charge high on the doorstep.

See it for yourself

You can try the live demo of Bolt & Brass, or see the details on its design page. It starts at £119, and I make it yours: your name, your number, your areas and your prices.

If you run a locksmith or another call-out trade and want something like this, get in touch.

Thanks for reading! Got a question or an idea for a build? Get in touch.