File size: 1,847 Bytes
d0d30e5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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);