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
Адрес страницы: /
Ещё ниже ↓
Уже внутри
Что вы получаете
Только тёмнаяСделано для тёмной страницы
ПК, планшет и телефонЭкраны, для которых сделано
Пакеты…
Размер кода…
Бережёт батарею30 кадров/с, в покое простаивает
Пауза в фонеВне экрана или в другой вкладке
Меньше анимацииСпокойно для тех, кто просит
Проверяется при каждом изменении
Проверка типовСтрогий TypeScript
Линтер и форматESLint · Prettier
Тесты и сборкаСкриншоты в светлой и тёмной теме
Аудит безопасностиНет уязвимостей высокого и критического уровня
Возраст пакетовКаждая версия опубликована 7+ дней назад
Загрузка в покоеМеньше половины ядра в покое, ≤ 30 кадров/с
Код
Что-то не так с этим шаблоном? Отправить отзыв ›
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.
Загрузка…
Подходит для
Electricians and other local trades that want a full website: services, emergency number, past jobs, reviews and quotes.
Как это работает
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.
Как использовать
Откройте index.html или положите папку на любой статический сервер. Тексты лежат в index.html, цвета и шрифты в theme.css, функция отправки формы в send.js. Остальное смотрите в части Plain HTML файла README.md.