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 fps,静止时空闲
隐藏时暂停不在屏幕内或在其他标签页
减少动效尊重用户的减少动效设置
每次修改都会检查
类型检查TypeScript 严格模式
代码检查与格式化ESLint · Prettier
测试与构建浅色和深色截图
安全审计无高危或严重漏洞通告
依赖包发布时间每个版本都已公开 7 天以上
空闲 CPU静止时不到半个核心,≤ 30 fps
代码
这个模板有什么不对劲吗? 发送反馈 ›
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。其余内容见 README.md 的纯 HTML 部分。