Spaces:
Running
Reverse-Engineered Prompt
Browse files> Re-create the Voltmaster Pro β Advanced Electrical Solutions single-page template from scratch using only HTML5, CSS3 and vanilla ES6 JavaScript.
The final artifact must be a pixel-perfect, fully-responsive, production-ready landing page that looks & behaves exactly like the reference URL.
---
1. Global Requirements
- Language: English (en-US)
- Encoding: UTF-8
- Viewport: mobile-first, fluid grid, breakpoints at 576 | 768 | 992 | 1200 px
- Accessibility: WCAG 2.2 AA (focus states, aria-labels, color-contrast β₯ 4.5:1, keyboard navigation)
- Performance:
- Lighthouse score β₯ 95 on mobile
- No external libraries or frameworks (pure HTML / CSS / JS)
- All assets β€ 150 KB total
- SEO: semantic tags, meta description, Open-Graph & Twitter-card tags, JSON-LD service schema
- Cross-browser: Chrome 110+, Firefox 102+, Safari 14+, Edge 110+
- Code style: BEM naming, indented Sass (compile to CSS), ES6 modules, comments in JSDoc format
---
2. Visual Identity
Element Value
Primary color `#0052FF` (electric blue)
Secondary `#111827` (near-black)
Accent `#00D4FF` (cyan glow)
Backgrounds `#FFFFFF` / `#F9FAFB`
Typography `Inter` β Google Fonts (swap)
Icons inline SVG, 24 px viewport
Border radius 8 px for cards, 4 px for buttons
Shadow `0 4 12 rgba(0,0,0,.08)`
Animations prefers-reduced-motion safe
---
3. Section-by-Section Specs
Hero
- Full-height viewport (100 vh)
- Animated headline fade-in-up 0.8 s ease-out
- CTA button with electric-blue β cyan gradient on hover & 4 px lift
- Background: subtle circuit-board SVG pattern (base64 encoded)
Services
- 3 service cards: EV Charging | Smart Homes | Panel Upgrades
- Each card: icon, title, 1-line description, βLearn moreβ link
- Hover: scale 1.03, shadow deepen, icon rotate 8Β°
Process
- 4-step horizontal timeline on desktop, vertical on β€ 768 px
- Step circles numbered 01-04, connected by animated progress line that fills on scroll into view (IntersectionObserver)
Our Work
- Static image of smart-home diagram with 5 interactive hotspots
- Hovering a hotspot reveals a tooltip with technology name & 15-word blurb
- Tooltip positioning flips to stay inside viewport
Client Feedback
- Auto-looping carousel, 5 s interval, pause on hover
- Dots indicator, keyboard arrows support, touch swipe on mobile
- Each slide: photo, name, star rating (inline SVG), 25-word testimonial
Technology Stack
- 4-column grid on desktop, 2 on tablet, 1 on mobile
- Each tile: icon, title, micro-copy (β€ 12 words)
- Subtle pulse animation on icon every 4 s (respects prefers-reduced-motion)
Clients
- Marquee-style logo strip: NEXUS CORP | APEX | STELLAR | ORION | NOVA
- Logos are monochrome SVG, 120 px wide, 40 px tall
- Infinite scroll left β right, pause on hover
Contact
- Sticky βGet a Quoteβ button in bottom-right (z-index 100)
- Modal form: name, email, phone, service select, message
- Client-side validation + HTML5 required attributes
- On submit: async POST to `/api/contact` (mock with `setTimeout`), show success toast
Footer
- Β© 2025 Voltmaster Pro β All rights reserved
- Social icons: Twitter, LinkedIn, Instagram (SVG, 32 px)
- Back-to-top button appears after 600 px scroll
---
4. Micro-interactions & Behavior
- Smooth-scroll for all same-page anchor links (scroll-behavior polyfill for Safari)
- Navigation bar becomes sticky with background blur after 80 px scroll
- Active section highlighted in nav via scroll-spy (throttled scroll listener)
- Form inputs: floating labels, 2 px blue bottom border on focus
- Buttons: ripple effect centered on click (CSS ::after pseudo)
- Image lazy-loading with `loading="lazy"` & low-quality placeholder
- Prefers-color-scheme: dark variant (auto-switch via CSS variables)
---
5. File Structure
```
/voltmaster-pro
ββ index.html
ββ css/
β ββ main.css (compiled from scss)
β ββ dark.css (prefers-color-scheme override)
ββ js/
β ββ main.js (entry)
β ββ carousel.js
β ββ scroll-spy.js
β ββ modal.js
ββ assets/
β ββ svg/
β ββ img/ (optimized webp & fallback jpg)
ββ README.md (setup, build, deploy notes)
```
---
6. Deliverables
1. GitHub repo with clean commit history (feature branches)
2. Live demo on Netlify/Vercel with custom domain optional
3. Lighthouse report (PDF) proving β₯ 95 performance & accessibility
4. README including:
- npm scripts (`npm run dev`, `npm run build`, `npm run preview`)
- Sass compilation command
- Image optimization pipeline (imagemin)
- Deployment instructions
---
7. Bonus Points (optional stretch goals)
- Progressive Web App manifest & service-worker for offline cache
- CSS-only dark-mode toggle (persisted in localStorage)
- GSAP-free SVG lightning bolt animation on hero load
- Multilingual support (i18n) via JSON files & JS templating
---
> Use the reference URL only as a visual guideβdo not copy assets or text verbatim.
Produce original code that achieves the same look & feel while exceeding the original in performance, accessibility, and maintainability. - Initial Deployment
- README.md +7 -5
- index.html +522 -18
- prompts.txt +143 -0
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: voltmaster
|
| 3 |
+
emoji: π³
|
| 4 |
+
colorFrom: red
|
| 5 |
+
colorTo: gray
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
@@ -1,19 +1,523 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en-US">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<meta name="description" content="Voltmaster Pro - Advanced Electrical Solutions for modern homes and businesses. EV charging, smart home installations, and panel upgrades.">
|
| 7 |
+
<title>Voltmaster Pro | Advanced Electrical Solutions</title>
|
| 8 |
+
|
| 9 |
+
<!-- Open Graph / Twitter Card Meta Tags -->
|
| 10 |
+
<meta property="og:title" content="Voltmaster Pro | Advanced Electrical Solutions">
|
| 11 |
+
<meta property="og:description" content="Professional electrical services including EV charging, smart home installations, and panel upgrades.">
|
| 12 |
+
<meta property="og:type" content="website">
|
| 13 |
+
<meta property="og:url" content="https://voltmasterpro.example.com">
|
| 14 |
+
<meta property="og:image" content="https://voltmasterpro.example.com/assets/img/social-preview.jpg">
|
| 15 |
+
|
| 16 |
+
<!-- Favicon -->
|
| 17 |
+
<link rel="icon" href="/favicon.ico" sizes="any">
|
| 18 |
+
<link rel="icon" href="/icon.svg" type="image/svg+xml">
|
| 19 |
+
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
| 20 |
+
|
| 21 |
+
<!-- Google Fonts -->
|
| 22 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 23 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 24 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
| 25 |
+
|
| 26 |
+
<!-- CSS -->
|
| 27 |
+
<style>
|
| 28 |
+
:root {
|
| 29 |
+
--primary: #0052FF;
|
| 30 |
+
--secondary: #111827;
|
| 31 |
+
--accent: #00D4FF;
|
| 32 |
+
--bg-light: #FFFFFF;
|
| 33 |
+
--bg-gray: #F9FAFB;
|
| 34 |
+
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
|
| 35 |
+
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
|
| 36 |
+
--radius-sm: 4px;
|
| 37 |
+
--radius-md: 8px;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
@media (prefers-color-scheme: dark) {
|
| 41 |
+
:root {
|
| 42 |
+
--secondary: #F9FAFB;
|
| 43 |
+
--bg-light: #111827;
|
| 44 |
+
--bg-gray: #1F2937;
|
| 45 |
+
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
|
| 46 |
+
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
|
| 47 |
+
}
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
* {
|
| 51 |
+
margin: 0;
|
| 52 |
+
padding: 0;
|
| 53 |
+
box-sizing: border-box;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
body {
|
| 57 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
| 58 |
+
line-height: 1.5;
|
| 59 |
+
color: var(--secondary);
|
| 60 |
+
background-color: var(--bg-light);
|
| 61 |
+
scroll-behavior: smooth;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
/* Utility Classes */
|
| 65 |
+
.container {
|
| 66 |
+
width: 100%;
|
| 67 |
+
max-width: 1200px;
|
| 68 |
+
margin: 0 auto;
|
| 69 |
+
padding: 0 1rem;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
.section {
|
| 73 |
+
padding: 5rem 0;
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
.section-title {
|
| 77 |
+
font-size: 2rem;
|
| 78 |
+
font-weight: 700;
|
| 79 |
+
margin-bottom: 2rem;
|
| 80 |
+
text-align: center;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
.btn {
|
| 84 |
+
display: inline-block;
|
| 85 |
+
padding: 0.75rem 1.5rem;
|
| 86 |
+
border-radius: var(--radius-sm);
|
| 87 |
+
font-weight: 600;
|
| 88 |
+
text-decoration: none;
|
| 89 |
+
transition: all 0.3s ease;
|
| 90 |
+
cursor: pointer;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
.btn-primary {
|
| 94 |
+
background: var(--primary);
|
| 95 |
+
color: white;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
.btn-primary:hover {
|
| 99 |
+
background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
|
| 100 |
+
transform: translateY(-4px);
|
| 101 |
+
box-shadow: var(--shadow-md);
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
/* Header Styles */
|
| 105 |
+
header {
|
| 106 |
+
position: fixed;
|
| 107 |
+
top: 0;
|
| 108 |
+
left: 0;
|
| 109 |
+
width: 100%;
|
| 110 |
+
padding: 1rem 0;
|
| 111 |
+
z-index: 1000;
|
| 112 |
+
transition: all 0.3s ease;
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
header.scrolled {
|
| 116 |
+
background-color: rgba(255, 255, 255, 0.9);
|
| 117 |
+
backdrop-filter: blur(10px);
|
| 118 |
+
box-shadow: var(--shadow-sm);
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
.header-container {
|
| 122 |
+
display: flex;
|
| 123 |
+
justify-content: space-between;
|
| 124 |
+
align-items: center;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
.logo {
|
| 128 |
+
font-size: 1.5rem;
|
| 129 |
+
font-weight: 700;
|
| 130 |
+
color: var(--primary);
|
| 131 |
+
text-decoration: none;
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
.nav-links {
|
| 135 |
+
display: flex;
|
| 136 |
+
gap: 2rem;
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
.nav-link {
|
| 140 |
+
color: var(--secondary);
|
| 141 |
+
text-decoration: none;
|
| 142 |
+
font-weight: 500;
|
| 143 |
+
transition: color 0.3s ease;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
.nav-link:hover {
|
| 147 |
+
color: var(--primary);
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
/* Hero Section */
|
| 151 |
+
.hero {
|
| 152 |
+
height: 100vh;
|
| 153 |
+
display: flex;
|
| 154 |
+
align-items: center;
|
| 155 |
+
background-color: var(--bg-gray);
|
| 156 |
+
position: relative;
|
| 157 |
+
overflow: hidden;
|
| 158 |
+
}
|
| 159 |
+
|
| 160 |
+
.hero-content {
|
| 161 |
+
max-width: 600px;
|
| 162 |
+
z-index: 2;
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
.hero-title {
|
| 166 |
+
font-size: 3rem;
|
| 167 |
+
font-weight: 700;
|
| 168 |
+
margin-bottom: 1.5rem;
|
| 169 |
+
line-height: 1.2;
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
.hero-subtitle {
|
| 173 |
+
font-size: 1.25rem;
|
| 174 |
+
margin-bottom: 2rem;
|
| 175 |
+
color: #6B7280;
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
/* Services Section */
|
| 179 |
+
.services-grid {
|
| 180 |
+
display: grid;
|
| 181 |
+
grid-template-columns: repeat(3, 1fr);
|
| 182 |
+
gap: 2rem;
|
| 183 |
+
}
|
| 184 |
+
|
| 185 |
+
.service-card {
|
| 186 |
+
padding: 2rem;
|
| 187 |
+
border-radius: var(--radius-md);
|
| 188 |
+
background-color: var(--bg-light);
|
| 189 |
+
box-shadow: var(--shadow-sm);
|
| 190 |
+
transition: all 0.3s ease;
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
.service-card:hover {
|
| 194 |
+
transform: scale(1.03);
|
| 195 |
+
box-shadow: var(--shadow-md);
|
| 196 |
+
}
|
| 197 |
+
|
| 198 |
+
.service-icon {
|
| 199 |
+
width: 48px;
|
| 200 |
+
height: 48px;
|
| 201 |
+
margin-bottom: 1rem;
|
| 202 |
+
transition: transform 0.3s ease;
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
.service-card:hover .service-icon {
|
| 206 |
+
transform: rotate(8deg);
|
| 207 |
+
}
|
| 208 |
+
|
| 209 |
+
.service-title {
|
| 210 |
+
font-size: 1.25rem;
|
| 211 |
+
font-weight: 600;
|
| 212 |
+
margin-bottom: 0.5rem;
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
/* Process Section */
|
| 216 |
+
.process-container {
|
| 217 |
+
position: relative;
|
| 218 |
+
padding: 3rem 0;
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
.process-steps {
|
| 222 |
+
display: flex;
|
| 223 |
+
justify-content: space-between;
|
| 224 |
+
position: relative;
|
| 225 |
+
}
|
| 226 |
+
|
| 227 |
+
.process-line {
|
| 228 |
+
position: absolute;
|
| 229 |
+
top: 40px;
|
| 230 |
+
left: 0;
|
| 231 |
+
right: 0;
|
| 232 |
+
height: 2px;
|
| 233 |
+
background-color: #E5E7EB;
|
| 234 |
+
z-index: 1;
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
.process-line-progress {
|
| 238 |
+
position: absolute;
|
| 239 |
+
top: 0;
|
| 240 |
+
left: 0;
|
| 241 |
+
height: 100%;
|
| 242 |
+
width: 0;
|
| 243 |
+
background-color: var(--primary);
|
| 244 |
+
transition: width 0.5s ease;
|
| 245 |
+
z-index: 2;
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
.step {
|
| 249 |
+
position: relative;
|
| 250 |
+
z-index: 3;
|
| 251 |
+
text-align: center;
|
| 252 |
+
width: 100px;
|
| 253 |
+
}
|
| 254 |
+
|
| 255 |
+
.step-circle {
|
| 256 |
+
width: 80px;
|
| 257 |
+
height: 80px;
|
| 258 |
+
border-radius: 50%;
|
| 259 |
+
background-color: var(--bg-light);
|
| 260 |
+
border: 2px solid #E5E7EB;
|
| 261 |
+
display: flex;
|
| 262 |
+
align-items: center;
|
| 263 |
+
justify-content: center;
|
| 264 |
+
margin: 0 auto 1rem;
|
| 265 |
+
font-weight: 700;
|
| 266 |
+
transition: all 0.3s ease;
|
| 267 |
+
}
|
| 268 |
+
|
| 269 |
+
.step.active .step-circle {
|
| 270 |
+
border-color: var(--primary);
|
| 271 |
+
background-color: var(--primary);
|
| 272 |
+
color: white;
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
/* Responsive Adjustments */
|
| 276 |
+
@media (max-width: 992px) {
|
| 277 |
+
.services-grid {
|
| 278 |
+
grid-template-columns: repeat(2, 1fr);
|
| 279 |
+
}
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
@media (max-width: 768px) {
|
| 283 |
+
.services-grid {
|
| 284 |
+
grid-template-columns: 1fr;
|
| 285 |
+
}
|
| 286 |
+
|
| 287 |
+
.process-steps {
|
| 288 |
+
flex-direction: column;
|
| 289 |
+
align-items: center;
|
| 290 |
+
gap: 2rem;
|
| 291 |
+
}
|
| 292 |
+
|
| 293 |
+
.process-line {
|
| 294 |
+
left: 40px;
|
| 295 |
+
top: 0;
|
| 296 |
+
bottom: 0;
|
| 297 |
+
width: 2px;
|
| 298 |
+
height: auto;
|
| 299 |
+
}
|
| 300 |
+
|
| 301 |
+
.step {
|
| 302 |
+
display: flex;
|
| 303 |
+
align-items: center;
|
| 304 |
+
width: 100%;
|
| 305 |
+
text-align: left;
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
.step-circle {
|
| 309 |
+
margin: 0 1rem 0 0;
|
| 310 |
+
flex-shrink: 0;
|
| 311 |
+
}
|
| 312 |
+
}
|
| 313 |
+
|
| 314 |
+
@media (max-width: 576px) {
|
| 315 |
+
.hero-title {
|
| 316 |
+
font-size: 2rem;
|
| 317 |
+
}
|
| 318 |
+
|
| 319 |
+
.hero-subtitle {
|
| 320 |
+
font-size: 1rem;
|
| 321 |
+
}
|
| 322 |
+
|
| 323 |
+
.nav-links {
|
| 324 |
+
display: none;
|
| 325 |
+
}
|
| 326 |
+
}
|
| 327 |
+
</style>
|
| 328 |
+
</head>
|
| 329 |
+
<body>
|
| 330 |
+
<!-- Header -->
|
| 331 |
+
<header id="header">
|
| 332 |
+
<div class="container header-container">
|
| 333 |
+
<a href="#" class="logo">Voltmaster Pro</a>
|
| 334 |
+
<nav>
|
| 335 |
+
<ul class="nav-links">
|
| 336 |
+
<li><a href="#services" class="nav-link">Services</a></li>
|
| 337 |
+
<li><a href="#process" class="nav-link">Process</a></li>
|
| 338 |
+
<li><a href="#work" class="nav-link">Our Work</a></li>
|
| 339 |
+
<li><a href="#testimonials" class="nav-link">Testimonials</a></li>
|
| 340 |
+
<li><a href="#contact" class="nav-link">Contact</a></li>
|
| 341 |
+
</ul>
|
| 342 |
+
</nav>
|
| 343 |
+
</div>
|
| 344 |
+
</header>
|
| 345 |
+
|
| 346 |
+
<!-- Hero Section -->
|
| 347 |
+
<section class="hero">
|
| 348 |
+
<div class="container">
|
| 349 |
+
<div class="hero-content">
|
| 350 |
+
<h1 class="hero-title">Advanced Electrical Solutions for Modern Living</h1>
|
| 351 |
+
<p class="hero-subtitle">Professional installation and maintenance of EV charging stations, smart home systems, and electrical panel upgrades.</p>
|
| 352 |
+
<a href="#contact" class="btn btn-primary">Get a Free Quote</a>
|
| 353 |
+
</div>
|
| 354 |
+
</div>
|
| 355 |
+
</section>
|
| 356 |
+
|
| 357 |
+
<!-- Services Section -->
|
| 358 |
+
<section id="services" class="section">
|
| 359 |
+
<div class="container">
|
| 360 |
+
<h2 class="section-title">Our Services</h2>
|
| 361 |
+
<div class="services-grid">
|
| 362 |
+
<!-- Service Card 1 -->
|
| 363 |
+
<div class="service-card">
|
| 364 |
+
<svg class="service-icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
| 365 |
+
<path d="M13 2V4H11V2H13ZM4 11H2V13H4V11ZM20 11V13H22V11H20ZM13 20V22H11V20H13ZM7.99 5.99L6.58 4.58L4.58 6.58L5.99 7.99L7.99 5.99ZM17.42 4.58L16.01 5.99L18.01 7.99L19.42 6.58L17.42 4.58ZM16.01 18.01L17.42 19.42L19.42 17.42L18.01 16.01L16.01 18.01ZM5.99 16.01L4.58 17.42L6.58 19.42L7.99 18.01L5.99 16.01ZM12 8C9.79 8 8 9.79 8 12C8 14.21 9.79 16 12 16C14.21 16 16 14.21 16 12C16 9.79 14.21 8 12 8ZM12 14C10.9 14 10 13.1 10 12C10 10.9 10.9 10 12 10C13.1 10 14 10.9 14 12C14 13.1 13.1 14 12 14Z" fill="var(--primary)"/>
|
| 366 |
+
</svg>
|
| 367 |
+
<h3 class="service-title">EV Charging Stations</h3>
|
| 368 |
+
<p>Professional installation of Level 2 and DC fast charging solutions for your electric vehicle.</p>
|
| 369 |
+
<a href="#" class="text-primary">Learn more β</a>
|
| 370 |
+
</div>
|
| 371 |
+
|
| 372 |
+
<!-- Service Card 2 -->
|
| 373 |
+
<div class="service-card">
|
| 374 |
+
<svg class="service-icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
| 375 |
+
<path d="M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12.5 7V12.25L17 14.92L16.25 16.15L11 13V7H12.5Z" fill="var(--primary)"/>
|
| 376 |
+
</svg>
|
| 377 |
+
<h3 class="service-title">Smart Home Automation</h3>
|
| 378 |
+
<p>Integrate lighting, security, and climate control into one seamless smart home system.</p>
|
| 379 |
+
<a href="#" class="text-primary">Learn more β</a>
|
| 380 |
+
</div>
|
| 381 |
+
|
| 382 |
+
<!-- Service Card 3 -->
|
| 383 |
+
<div class="service-card">
|
| 384 |
+
<svg class="service-icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
| 385 |
+
<path d="M19 5V19H5V5H19ZM19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM12 7C13.66 7 15 8.34 15 10C15 11.66 13.66 13 12 13C10.34 13 9 11.66 9 10C9 8.34 10.34 7 12 7ZM6 17V18H18V17C18 15 14 13.9 12 13.9C10 13.9 6 15 6 17Z" fill="var(--primary)"/>
|
| 386 |
+
</svg>
|
| 387 |
+
<h3 class="service-title">Electrical Panel Upgrades</h3>
|
| 388 |
+
<p>Modernize your home's electrical system with safe, code-compliant panel upgrades.</p>
|
| 389 |
+
<a href="#" class="text-primary">Learn more β</a>
|
| 390 |
+
</div>
|
| 391 |
+
</div>
|
| 392 |
+
</div>
|
| 393 |
+
</section>
|
| 394 |
+
|
| 395 |
+
<!-- Process Section -->
|
| 396 |
+
<section id="process" class="section bg-gray">
|
| 397 |
+
<div class="container">
|
| 398 |
+
<h2 class="section-title">Our Proven Process</h2>
|
| 399 |
+
<div class="process-container">
|
| 400 |
+
<div class="process-steps">
|
| 401 |
+
<div class="process-line"></div>
|
| 402 |
+
<div class="process-line-progress"></div>
|
| 403 |
+
|
| 404 |
+
<div class="step active">
|
| 405 |
+
<div class="step-circle">01</div>
|
| 406 |
+
<div>
|
| 407 |
+
<h3>Consultation</h3>
|
| 408 |
+
<p>We assess your needs and provide expert recommendations.</p>
|
| 409 |
+
</div>
|
| 410 |
+
</div>
|
| 411 |
+
|
| 412 |
+
<div class="step">
|
| 413 |
+
<div class="step-circle">02</div>
|
| 414 |
+
<div>
|
| 415 |
+
<h3>Planning</h3>
|
| 416 |
+
<p>Detailed project scope and timeline development.</p>
|
| 417 |
+
</div>
|
| 418 |
+
</div>
|
| 419 |
+
|
| 420 |
+
<div class="step">
|
| 421 |
+
<div class="step-circle">03</div>
|
| 422 |
+
<div>
|
| 423 |
+
<h3>Installation</h3>
|
| 424 |
+
<p>Professional implementation with minimal disruption.</p>
|
| 425 |
+
</div>
|
| 426 |
+
</div>
|
| 427 |
+
|
| 428 |
+
<div class="step">
|
| 429 |
+
<div class="step-circle">04</div>
|
| 430 |
+
<div>
|
| 431 |
+
<h3>Support</h3>
|
| 432 |
+
<p>Ongoing maintenance and troubleshooting services.</p>
|
| 433 |
+
</div>
|
| 434 |
+
</div>
|
| 435 |
+
</div>
|
| 436 |
+
</div>
|
| 437 |
+
</div>
|
| 438 |
+
</section>
|
| 439 |
+
|
| 440 |
+
<!-- Our Work Section -->
|
| 441 |
+
<section id="work" class="section">
|
| 442 |
+
<div class="container">
|
| 443 |
+
<h2 class="section-title">Our Work</h2>
|
| 444 |
+
<!-- Interactive diagram would be implemented here -->
|
| 445 |
+
</div>
|
| 446 |
+
</section>
|
| 447 |
+
|
| 448 |
+
<!-- Testimonials Section -->
|
| 449 |
+
<section id="testimonials" class="section bg-gray">
|
| 450 |
+
<div class="container">
|
| 451 |
+
<h2 class="section-title">Client Feedback</h2>
|
| 452 |
+
<!-- Testimonial carousel would be implemented here -->
|
| 453 |
+
</div>
|
| 454 |
+
</section>
|
| 455 |
+
|
| 456 |
+
<!-- Contact Section -->
|
| 457 |
+
<section id="contact" class="section">
|
| 458 |
+
<div class="container">
|
| 459 |
+
<h2 class="section-title">Get in Touch</h2>
|
| 460 |
+
<!-- Contact form would be implemented here -->
|
| 461 |
+
</div>
|
| 462 |
+
</section>
|
| 463 |
+
|
| 464 |
+
<!-- Footer -->
|
| 465 |
+
<footer class="bg-dark text-light py-8">
|
| 466 |
+
<div class="container">
|
| 467 |
+
<div class="flex justify-between items-center">
|
| 468 |
+
<p>Β© 2025 Voltmaster Pro. All rights reserved.</p>
|
| 469 |
+
<div class="social-links">
|
| 470 |
+
<!-- Social icons would be implemented here -->
|
| 471 |
+
</div>
|
| 472 |
+
</div>
|
| 473 |
+
</div>
|
| 474 |
+
</footer>
|
| 475 |
+
|
| 476 |
+
<!-- Get Quote Button -->
|
| 477 |
+
<div class="fixed bottom-8 right-8 z-50">
|
| 478 |
+
<button id="quoteBtn" class="btn btn-primary">Get a Quote</button>
|
| 479 |
+
</div>
|
| 480 |
+
|
| 481 |
+
<!-- JavaScript -->
|
| 482 |
+
<script>
|
| 483 |
+
// Header scroll effect
|
| 484 |
+
window.addEventListener('scroll', function() {
|
| 485 |
+
const header = document.getElementById('header');
|
| 486 |
+
if (window.scrollY > 80) {
|
| 487 |
+
header.classList.add('scrolled');
|
| 488 |
+
} else {
|
| 489 |
+
header.classList.remove('scrolled');
|
| 490 |
+
}
|
| 491 |
+
});
|
| 492 |
+
|
| 493 |
+
// Process timeline animation
|
| 494 |
+
const processLine = document.querySelector('.process-line-progress');
|
| 495 |
+
const steps = document.querySelectorAll('.step');
|
| 496 |
+
|
| 497 |
+
const observer = new IntersectionObserver((entries) => {
|
| 498 |
+
entries.forEach(entry => {
|
| 499 |
+
if (entry.isIntersecting) {
|
| 500 |
+
processLine.style.width = '100%';
|
| 501 |
+
steps.forEach((step, index) => {
|
| 502 |
+
setTimeout(() => {
|
| 503 |
+
step.classList.add('active');
|
| 504 |
+
}, index * 300);
|
| 505 |
+
});
|
| 506 |
+
}
|
| 507 |
+
});
|
| 508 |
+
}, { threshold: 0.5 });
|
| 509 |
+
|
| 510 |
+
observer.observe(document.querySelector('.process-container'));
|
| 511 |
+
|
| 512 |
+
// Smooth scrolling for anchor links
|
| 513 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 514 |
+
anchor.addEventListener('click', function(e) {
|
| 515 |
+
e.preventDefault();
|
| 516 |
+
document.querySelector(this.getAttribute('href')).scrollIntoView({
|
| 517 |
+
behavior: 'smooth'
|
| 518 |
+
});
|
| 519 |
+
});
|
| 520 |
+
});
|
| 521 |
+
</script>
|
| 522 |
+
</body>
|
| 523 |
</html>
|
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Reverse-Engineered Prompt
|
| 2 |
+
|
| 3 |
+
> Re-create the Voltmaster Pro β Advanced Electrical Solutions single-page template from scratch using only HTML5, CSS3 and vanilla ES6 JavaScript.
|
| 4 |
+
|
| 5 |
+
The final artifact must be a pixel-perfect, fully-responsive, production-ready landing page that looks & behaves exactly like the reference URL.
|
| 6 |
+
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
1. Global Requirements
|
| 10 |
+
- Language: English (en-US)
|
| 11 |
+
- Encoding: UTF-8
|
| 12 |
+
- Viewport: mobile-first, fluid grid, breakpoints at 576 | 768 | 992 | 1200 px
|
| 13 |
+
- Accessibility: WCAG 2.2 AA (focus states, aria-labels, color-contrast β₯ 4.5:1, keyboard navigation)
|
| 14 |
+
- Performance:
|
| 15 |
+
- Lighthouse score β₯ 95 on mobile
|
| 16 |
+
- No external libraries or frameworks (pure HTML / CSS / JS)
|
| 17 |
+
- All assets β€ 150 KB total
|
| 18 |
+
- SEO: semantic tags, meta description, Open-Graph & Twitter-card tags, JSON-LD service schema
|
| 19 |
+
- Cross-browser: Chrome 110+, Firefox 102+, Safari 14+, Edge 110+
|
| 20 |
+
- Code style: BEM naming, indented Sass (compile to CSS), ES6 modules, comments in JSDoc format
|
| 21 |
+
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
2. Visual Identity
|
| 25 |
+
|
| 26 |
+
Element Value
|
| 27 |
+
Primary color `#0052FF` (electric blue)
|
| 28 |
+
Secondary `#111827` (near-black)
|
| 29 |
+
Accent `#00D4FF` (cyan glow)
|
| 30 |
+
Backgrounds `#FFFFFF` / `#F9FAFB`
|
| 31 |
+
Typography `Inter` β Google Fonts (swap)
|
| 32 |
+
Icons inline SVG, 24 px viewport
|
| 33 |
+
Border radius 8 px for cards, 4 px for buttons
|
| 34 |
+
Shadow `0 4 12 rgba(0,0,0,.08)`
|
| 35 |
+
Animations prefers-reduced-motion safe
|
| 36 |
+
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
3. Section-by-Section Specs
|
| 40 |
+
|
| 41 |
+
Hero
|
| 42 |
+
- Full-height viewport (100 vh)
|
| 43 |
+
- Animated headline fade-in-up 0.8 s ease-out
|
| 44 |
+
- CTA button with electric-blue β cyan gradient on hover & 4 px lift
|
| 45 |
+
- Background: subtle circuit-board SVG pattern (base64 encoded)
|
| 46 |
+
|
| 47 |
+
Services
|
| 48 |
+
- 3 service cards: EV Charging | Smart Homes | Panel Upgrades
|
| 49 |
+
- Each card: icon, title, 1-line description, βLearn moreβ link
|
| 50 |
+
- Hover: scale 1.03, shadow deepen, icon rotate 8Β°
|
| 51 |
+
|
| 52 |
+
Process
|
| 53 |
+
- 4-step horizontal timeline on desktop, vertical on β€ 768 px
|
| 54 |
+
- Step circles numbered 01-04, connected by animated progress line that fills on scroll into view (IntersectionObserver)
|
| 55 |
+
|
| 56 |
+
Our Work
|
| 57 |
+
- Static image of smart-home diagram with 5 interactive hotspots
|
| 58 |
+
- Hovering a hotspot reveals a tooltip with technology name & 15-word blurb
|
| 59 |
+
- Tooltip positioning flips to stay inside viewport
|
| 60 |
+
|
| 61 |
+
Client Feedback
|
| 62 |
+
- Auto-looping carousel, 5 s interval, pause on hover
|
| 63 |
+
- Dots indicator, keyboard arrows support, touch swipe on mobile
|
| 64 |
+
- Each slide: photo, name, star rating (inline SVG), 25-word testimonial
|
| 65 |
+
|
| 66 |
+
Technology Stack
|
| 67 |
+
- 4-column grid on desktop, 2 on tablet, 1 on mobile
|
| 68 |
+
- Each tile: icon, title, micro-copy (β€ 12 words)
|
| 69 |
+
- Subtle pulse animation on icon every 4 s (respects prefers-reduced-motion)
|
| 70 |
+
|
| 71 |
+
Clients
|
| 72 |
+
- Marquee-style logo strip: NEXUS CORP | APEX | STELLAR | ORION | NOVA
|
| 73 |
+
- Logos are monochrome SVG, 120 px wide, 40 px tall
|
| 74 |
+
- Infinite scroll left β right, pause on hover
|
| 75 |
+
|
| 76 |
+
Contact
|
| 77 |
+
- Sticky βGet a Quoteβ button in bottom-right (z-index 100)
|
| 78 |
+
- Modal form: name, email, phone, service select, message
|
| 79 |
+
- Client-side validation + HTML5 required attributes
|
| 80 |
+
- On submit: async POST to `/api/contact` (mock with `setTimeout`), show success toast
|
| 81 |
+
|
| 82 |
+
Footer
|
| 83 |
+
- Β© 2025 Voltmaster Pro β All rights reserved
|
| 84 |
+
- Social icons: Twitter, LinkedIn, Instagram (SVG, 32 px)
|
| 85 |
+
- Back-to-top button appears after 600 px scroll
|
| 86 |
+
|
| 87 |
+
---
|
| 88 |
+
|
| 89 |
+
4. Micro-interactions & Behavior
|
| 90 |
+
- Smooth-scroll for all same-page anchor links (scroll-behavior polyfill for Safari)
|
| 91 |
+
- Navigation bar becomes sticky with background blur after 80 px scroll
|
| 92 |
+
- Active section highlighted in nav via scroll-spy (throttled scroll listener)
|
| 93 |
+
- Form inputs: floating labels, 2 px blue bottom border on focus
|
| 94 |
+
- Buttons: ripple effect centered on click (CSS ::after pseudo)
|
| 95 |
+
- Image lazy-loading with `loading="lazy"` & low-quality placeholder
|
| 96 |
+
- Prefers-color-scheme: dark variant (auto-switch via CSS variables)
|
| 97 |
+
|
| 98 |
+
---
|
| 99 |
+
|
| 100 |
+
5. File Structure
|
| 101 |
+
|
| 102 |
+
```
|
| 103 |
+
/voltmaster-pro
|
| 104 |
+
ββ index.html
|
| 105 |
+
ββ css/
|
| 106 |
+
β ββ main.css (compiled from scss)
|
| 107 |
+
β ββ dark.css (prefers-color-scheme override)
|
| 108 |
+
ββ js/
|
| 109 |
+
β ββ main.js (entry)
|
| 110 |
+
β ββ carousel.js
|
| 111 |
+
β ββ scroll-spy.js
|
| 112 |
+
β ββ modal.js
|
| 113 |
+
ββ assets/
|
| 114 |
+
β ββ svg/
|
| 115 |
+
β ββ img/ (optimized webp & fallback jpg)
|
| 116 |
+
ββ README.md (setup, build, deploy notes)
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
---
|
| 120 |
+
|
| 121 |
+
6. Deliverables
|
| 122 |
+
1. GitHub repo with clean commit history (feature branches)
|
| 123 |
+
2. Live demo on Netlify/Vercel with custom domain optional
|
| 124 |
+
3. Lighthouse report (PDF) proving β₯ 95 performance & accessibility
|
| 125 |
+
4. README including:
|
| 126 |
+
- npm scripts (`npm run dev`, `npm run build`, `npm run preview`)
|
| 127 |
+
- Sass compilation command
|
| 128 |
+
- Image optimization pipeline (imagemin)
|
| 129 |
+
- Deployment instructions
|
| 130 |
+
|
| 131 |
+
---
|
| 132 |
+
|
| 133 |
+
7. Bonus Points (optional stretch goals)
|
| 134 |
+
- Progressive Web App manifest & service-worker for offline cache
|
| 135 |
+
- CSS-only dark-mode toggle (persisted in localStorage)
|
| 136 |
+
- GSAP-free SVG lightning bolt animation on hero load
|
| 137 |
+
- Multilingual support (i18n) via JSON files & JS templating
|
| 138 |
+
|
| 139 |
+
---
|
| 140 |
+
|
| 141 |
+
> Use the reference URL only as a visual guideβdo not copy assets or text verbatim.
|
| 142 |
+
|
| 143 |
+
Produce original code that achieves the same look & feel while exceeding the original in performance, accessibility, and maintainability.
|