Skip to content

WIRXL

websites · web apps · side projects

wirxl.com // websites // bright-switch

Bright Switch Electrical

[ business tool ] for sale

What it is

A website for Bright Switch Electrical, a small domestic electrician in a made-up town called Larkmoor. It opens in the dark, with a torch glow following your mouse or finger and a wall switch beside the heading. Flick it and the light spreads out from the switch across the page while the lamps in the drawings warm up. It stays lit until you turn it off again.

Why I built it

Most electricians’ websites could belong to any trade. Swap the stock photo and the logo and you’d never know. I wanted one where the job itself was the idea, and for an electrician the light switch was sitting right there. It’s a sample, so a real electrician can have one like it: everything they’d change sits in one content file and one file of colours.

How it works

The switch is drawn in CSS and the click is made in Web Audio as it plays, two short bursts of filtered noise and a low knock, so there’s no sound file to load. The flood of light uses the View Transitions API. The page swaps to its lit colours and the new version is revealed through a circle that grows out of the switch. Browsers without it get a plain fade, and so does anyone who has asked for less motion.

The torch was the fiddly part. A dark overlay that hid the words would have failed on contrast, so it’s two big gradient layers moved with a transform: one darkens the room just enough, the other is screen-blended, which warms the background inside the beam without washing out the text.

The rough price builder is a fuse board. Each job is a breaker, and flicking one on picks a sensible default so the meter moves on the first click. Prices are ranges, summed and rounded outwards to the nearest £10, and the result can go off as an enquiry.

The owner’s admin is a demo. One tap gets you in. Edits stay in your browser (photos go in IndexedDB) and are merged over the site’s content everywhere. Send an enquiry and it turns up in the admin’s messages.

What I’d change

On a phone the torch only moves when you touch the screen. That’s right for a phone, but it loses some of the effect, and I’d like it to drift a little on its own.

▚ stack

ViteReactTypeScriptReact RouterVitest

added

This one is for sale. The demo runs in your browser with made-up data, so try anything. There are two ways to have it:

  • Just for you. Your name and colours, on your own address, and it's never sold to anyone else.
  • A copy. The same, with your name and colours, for less. Other businesses can buy a copy too.

Either way I can host it and look after it for a monthly fee, or hand everything over. Ask for a price.

Try the demo Ask about buying it