can you take a look at the website on this url: electrician-template.framer.website and replicate it completely, in as much detail as you can
d0d30e5 verified Download components/hero.js from GD-Huggingfaces/sparkwire-electrics: direct link, hf CLI and curl.
- Browser
- Download file 1.85 kB
-
https://huggingface.co/spaces/GD-Huggingfaces/sparkwire-electrics/resolve/main/components/hero.js
- Command line
-
hf download hf://spaces/GD-Huggingfaces/sparkwire-electrics/components/hero.js
-
curl -L -o hero.js https://huggingface.co/spaces/GD-Huggingfaces/sparkwire-electrics/resolve/main/components/hero.js
1.85 kB
| class CustomHero extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| .hero-content { | |
| min-height: calc(100vh - 64px); | |
| } | |
| </style> | |
| <section class="hero-gradient text-white pt-16"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 hero-content flex items-center"> | |
| <div class="py-12 md:py-20"> | |
| <h1 class="text-4xl md:text-6xl font-bold mb-6">Professional Electrical Services</h1> | |
| <p class="text-xl md:text-2xl mb-8 max-w-3xl">24/7 emergency electrical services for residential and commercial properties. Licensed, insured, and ready to help.</p> | |
| <div class="flex flex-col sm:flex-row gap-4"> | |
| <a href="#contact" class="btn-primary bg-white text-primary-600 px-6 py-3 rounded-md text-lg font-semibold shadow-sm hover:shadow-md transition duration-150 ease-in-out flex items-center justify-center"> | |
| <i data-feather="message-circle" class="mr-2"></i> | |
| Get a Free Quote | |
| </a> | |
| <a href="tel:+15551234567" class="btn-primary border-2 border-white text-white px-6 py-3 rounded-md text-lg font-semibold hover:bg-white hover:text-primary-600 transition duration-150 ease-in-out flex items-center justify-center"> | |
| <i data-feather="phone" class="mr-2"></i> | |
| Call Now | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-hero', CustomHero); |