File size: 3,247 Bytes
4717971
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
class CustomFooter extends HTMLElement {
    connectedCallback() {
        this.attachShadow({ mode: 'open' });
        this.shadowRoot.innerHTML = `
            <style>
                .social-icon {
                    transition: transform 0.3s ease, color 0.3s ease;
                }
                .social-icon:hover {
                    transform: translateY(-3px);
                    color: #6366f1;
                }
            </style>
            <footer class="bg-gray-800 text-white py-8">
                <div class="container mx-auto px-4">
                    <div class="grid md:grid-cols-4 gap-8">
                        <div>
                            <h3 class="text-xl font-bold mb-4">React Native Web Wizard</h3>
                            <p class="text-gray-400">Build cross-platform mobile apps with React Native that run on the web too.</p>
                        </div>
                        <div>
                            <h4 class="font-semibold mb-4">Resources</h4>
                            <ul class="space-y-2">
                                <li><a href="#" class="text-gray-400 hover:text-white">Documentation</a></li>
                                <li><a href="#" class="text-gray-400 hover:text-white">Tutorials</a></li>
                                <li><a href="#" class="text-gray-400 hover:text-white">API Reference</a></li>
                                <li><a href="#" class="text-gray-400 hover:text-white">Blog</a></li>
                            </ul>
                        </div>
                        <div>
                            <h4 class="font-semibold mb-4">Community</h4>
                            <ul class="space-y-2">
                                <li><a href="#" class="text-gray-400 hover:text-white">GitHub</a></li>
                                <li><a href="#" class="text-gray-400 hover:text-white">Stack Overflow</a></li>
                                <li><a href="#" class="text-gray-400 hover:text-white">Discord</a></li>
                                <li><a href="#" class="text-gray-400 hover:text-white">Twitter</a></li>
                            </ul>
                        </div>
                        <div>
                            <h4 class="font-semibold mb-4">Connect</h4>
                            <div class="flex space-x-4">
                                <a href="#" class="social-icon text-gray-400"><i data-feather="github"></i></a>
                                <a href="#" class="social-icon text-gray-400"><i data-feather="twitter"></i></a>
                                <a href="#" class="social-icon text-gray-400"><i data-feather="linkedin"></i></a>
                                <a href="#" class="social-icon text-gray-400"><i data-feather="youtube"></i></a>
                            </div>
                        </div>
                    </div>
                    <div class="border-t border-gray-700 mt-8 pt-6 text-center text-gray-400">
                        <p>© ${new Date().getFullYear()} React Native Web Wizard. All rights reserved.</p>
                    </div>
                </div>
            </footer>
        `;
    }
}

customElements.define('custom-footer', CustomFooter);