A dark one-page website for an electrician, lit by a single bare filament: services as a circuit chart, a 24/7 call band, jobs drawn as wiring plans and a quote form.
React + HTML
$69
Adresse de la page : /
Suite plus bas ↓
Intégré
Ce que vous obtenez
Sombre uniquementConçu pour une page sombre
Ordinateur, tablette et téléphoneLes écrans pour lesquels il est conçu
Paquets…
Taille du code…
Économe en batterie30 i/s, au repos quand rien ne bouge
Pause quand masquéHors écran ou autre onglet
Mouvement réduitCalme pour ceux qui le demandent
Vérifié à chaque modification
Vérification des typesTypeScript strict
Lint et formatESLint · Prettier
Tests et buildCaptures claires et sombres
Audit de sécuritéAucune vulnérabilité élevée ou critique
Ancienneté des paquetsChaque version publique depuis 7 jours ou plus
CPU au reposMoins d’un demi-cœur au repos, ≤ 30 i/s
Code
Un problème avec ce template ? Envoyer un avis ›
electrician-glowHTML
index.htmlpageThe page and all its text, one marked block per section.
theme.cssthemeThe colors and fonts in one place.
send.jsformThe one function the form calls: plug in your form endpoint here.
sectionssectionsOne file per page section.
about.csssectionThe story, three numbers that count up, and the company's details set on a riveted rating plate.
emergency.csssectionThe band for the night something trips: one number, and what calling it costs, so nobody has to guess at 2am.
footer.csssectionThe footer: the brand and its area, three columns of links, and the legal line.
hero.csssectionThe first screen: a bare filament hanging from the top edge is the only light on the page, the giant headline beneath it.
hero.jssectionThe hero lamp: draws the coiled filament, strikes the headline up like a tube on load, and runs the wall switch. Also rests your background's drift off screen.
nav.csssectionThe top bar: stays at the top while you scroll, folds its links into a menu on narrow screens.
nav.jssectionThe top bar's menu on narrow screens: opens and closes, closes on Escape and when a link in it is picked.
process.csssectionThe four steps of a job, joined by one wire: across on wide screens, down the side on narrow ones.
quote.csssectionThe quote section: the form, or once it's sent, what happens next, with the other ways to reach the business beside it.
quote.jssectionThe quote form: checks each required field, sends with send.js, then shows what happens next or the couldn't-send line.
reviews.csssectionWhat customers say: the score counted up, one long review set large and two short ones beside it.
services.csssectionThe services as the circuit chart inside a fuse board door: one row per circuit, its price where the rating goes.
work.csssectionRecent jobs, each shown as the plan it was wired from on squared paper, the new circuit in the accent color.
work.jssectionThe job plans: each draws itself like a pen the first time it scrolls into view.
partspartsWhat several sections share.
count-up.jspartCounts every [data-count-up] number up from zero the first time it scrolls into view (About, Reviews).
live-wire.csspartThe live wire down the left of the page, and where each section joins it: a terminal, its circuit label and a top edge.
live-wire.jspartThe live wire: draws itself down the page as you scroll, a spark rides its tip, and every section it reaches powers on.
motion.jspartThe motion helpers the other scripts share, as the page's one global: window.electricianGlow.
page.csspartWhat every section shares: the reset, the page column, section titles, the two buttons and the focus ring.
index.html
The page and all its text, one marked block per section.
Chargement…
Idéal pour
Electricians and other local trades that want a full website: services, emergency number, past jobs, reviews and quotes.
Fonctionnement
The filament warms up on load and a wall switch turns it off. The quote form checks name, phone and ZIP code, then shows what happens next.
Utilisation
Ouvrez index.html, ou placez le dossier sur n’importe quel serveur statique. Les textes sont dans index.html, les couleurs et les polices dans theme.css, la fonction d’envoi du formulaire dans send.js. La partie HTML simple de README.md donne le reste.
Aucun paquet en plusReact seulement, rien d’autre
26,7 ko gzippé · 24 fichiersLe téléchargement complet