monsefyoussef's picture
Can you create a web react native app ?
4717971 verified
Raw History Blame Contribute Delete
3.25 kB
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);