File size: 3,536 Bytes
ac3b6d4
e15bd5e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ac3b6d4
 
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
class CustomFooter extends HTMLElement {
  connectedCallback() {
    this.attachShadow({ mode: 'open' });
    this.shadowRoot.innerHTML = `
      <style>
        :host {
          display: block;
          background: #1e293b;
          color: white;
          padding: 3rem 0;
        }
        .footer-container {
          max-width: 1200px;
          margin: 0 auto;
          padding: 0 2rem;
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
          gap: 3rem;
        }
        .footer-section h3 {
          font-size: 1.25rem;
          font-weight: 600;
          margin-bottom: 1rem;
          color: #e2e8f0;
        }
        .footer-links {
          display: flex;
          flex-direction: column;
          gap: 0.5rem;
        }
        .footer-link {
          color: #94a3b8;
          transition: color 0.2s;
        }
        .footer-link:hover {
          color: #60a5fa;
        }
        .social-links {
          display: flex;
          gap: 1rem;
          margin-top: 1rem;
        }
        .social-link {
          color: #94a3b8;
          font-size: 1.25rem;
          transition: all 0.2s;
        }
        .social-link:hover {
          color: #60a5fa;
          transform: translateY(-2px);
        }
        .copyright {
          text-align: center;
          margin-top: 3rem;
          padding-top: 2rem;
          border-top: 1px solid #334155;
          color: #94a3b8;
          font-size: 0.875rem;
        }
      </style>
      <div class="footer-container">
        <div class="footer-section">
          <h3>Bizrah Electronics</h3>
          <p>Your trusted source for premium electronics since 2015.</p>
          <div class="social-links">
            <a href="#" class="social-link"><i class="fab fa-facebook"></i></a>
            <a href="#" class="social-link"><i class="fab fa-twitter"></i></a>
            <a href="#" class="social-link"><i class="fab fa-instagram"></i></a>
            <a href="#" class="social-link"><i class="fab fa-linkedin"></i></a>
          </div>
        </div>
        <div class="footer-section">
          <h3>Shop</h3>
          <div class="footer-links">
            <a href="/products.html" class="footer-link">All Products</a>
            <a href="/category/smartphones" class="footer-link">Smartphones</a>
            <a href="/category/laptops" class="footer-link">Laptops</a>
            <a href="/category/audio" class="footer-link">Audio</a>
          </div>
        </div>
        <div class="footer-section">
          <h3>Support</h3>
          <div class="footer-links">
            <a href="/contact.html" class="footer-link">Contact Us</a>
            <a href="/faq.html" class="footer-link">FAQs</a>
            <a href="/shipping.html" class="footer-link">Shipping Policy</a>
            <a href="/returns.html" class="footer-link">Returns</a>
          </div>
        </div>
        <div class="footer-section">
          <h3>Company</h3>
          <div class="footer-links">
            <a href="/about.html" class="footer-link">About Us</a>
            <a href="/blog.html" class="footer-link">Blog</a>
            <a href="/careers.html" class="footer-link">Careers</a>
            <a href="/privacy.html" class="footer-link">Privacy Policy</a>
          </div>
        </div>
      </div>
      <div class="copyright">
        &copy; ${new Date().getFullYear()} Bizrah Electronics. All rights reserved.
      </div>
    `;
  }
}
customElements.define('custom-footer', CustomFooter);