File size: 3,838 Bytes
2bb61c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
class CustomFooter extends HTMLElement {
    connectedCallback() {
        this.attachShadow({ mode: 'open' });
        this.shadowRoot.innerHTML = `
            <style>
                .footer {
                    background-color: #f9fafb;
                    border-top: 1px solid #e5e7eb;
                }
                .footer-link {
                    transition: color 0.2s ease;
                }
                .footer-link:hover {
                    color: #3b82f6;
                }
            </style>
            <footer class="footer py-8">
                <div class="container mx-auto px-4">
                    <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                        <div>
                            <h3 class="text-lg font-semibold text-gray-800 mb-4">BuilderTools</h3>
                            <p class="text-gray-600 mb-4">Powerful development tools for modern web applications.</p>
                            <div class="flex space-x-4">
                                <a href="#" class="text-gray-500 hover:text-blue-600"><i data-feather="twitter"></i></a>
                                <a href="#" class="text-gray-500 hover:text-blue-600"><i data-feather="github"></i></a>
                                <a href="#" class="text-gray-500 hover:text-blue-600"><i data-feather="linkedin"></i></a>
                            </div>
                        </div>
                        
                        <div>
                            <h3 class="text-lg font-semibold text-gray-800 mb-4">Product</h3>
                            <ul class="space-y-2">
                                <li><a href="#" class="footer-link text-gray-600">Features</a></li>
                                <li><a href="#" class="footer-link text-gray-600">Pricing</a></li>
                                <li><a href="#" class="footer-link text-gray-600">Documentation</a></li>
                                <li><a href="#" class="footer-link text-gray-600">Releases</a></li>
                            </ul>
                        </div>
                        
                        <div>
                            <h3 class="text-lg font-semibold text-gray-800 mb-4">Company</h3>
                            <ul class="space-y-2">
                                <li><a href="#" class="footer-link text-gray-600">About</a></li>
                                <li><a href="#" class="footer-link text-gray-600">Blog</a></li>
                                <li><a href="#" class="footer-link text-gray-600">Careers</a></li>
                                <li><a href="#" class="footer-link text-gray-600">Contact</a></li>
                            </ul>
                        </div>
                        
                        <div>
                            <h3 class="text-lg font-semibold text-gray-800 mb-4">Legal</h3>
                            <ul class="space-y-2">
                                <li><a href="#" class="footer-link text-gray-600">Privacy</a></li>
                                <li><a href="#" class="footer-link text-gray-600">Terms</a></li>
                                <li><a href="#" class="footer-link text-gray-600">Cookie Policy</a></li>
                                <li><a href="#" class="footer-link text-gray-600">GDPR</a></li>
                            </ul>
                        </div>
                    </div>
                    
                    <div class="border-t border-gray-200 mt-8 pt-8 text-center text-gray-500">
                        <p>© ${new Date().getFullYear()} BuilderTools. All rights reserved.</p>
                    </div>
                </div>
            </footer>
            <script>feather.replace();</script>
        `;
    }
}
customElements.define('custom-footer', CustomFooter);