muhammadsaadkhatri's picture
build an
0a5aed0 verified
Raw History Blame Contribute Delete
4.43 kB
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
.footer {
background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}
.footer-link {
transition: all 0.3s ease;
}
.footer-link:hover {
transform: translateY(-2px);
opacity: 0.8;
}
</style>
<footer class="footer text-white mt-auto">
<div class="container mx-auto px-4 py-8">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div>
<h3 class="text-xl font-bold mb-4">Student Wizard</h3>
<p class="opacity-80 mb-4">A modern student management system built with Python OOP principles and Streamlit.</p>
<div class="flex space-x-4">
<a href="#" class="footer-link">
<i data-feather="github" class="w-5 h-5"></i>
</a>
<a href="#" class="footer-link">
<i data-feather="twitter" class="w-5 h-5"></i>
</a>
<a href="#" class="footer-link">
<i data-feather="linkedin" class="w-5 h-5"></i>
</a>
</div>
</div>
<div>
<h4 class="font-semibold mb-4">Resources</h4>
<ul class="space-y-2">
<li>
<a href="documentation.html" class="footer-link flex items-center space-x-2 opacity-80 hover:opacity-100">
<i data-feather="file-text" class="w-4 h-4"></i>
<span>Documentation</span>
</a>
</li>
<li>
<a href="https://streamlit.io" target="_blank" class="footer-link flex items-center space-x-2 opacity-80 hover:opacity-100">
<i data-feather="external-link" class="w-4 h-4"></i>
<span>Streamlit</span>
</a>
</li>
<li>
<a href="https://python.org" target="_blank" class="footer-link flex items-center space-x-2 opacity-80 hover:opacity-100">
<i data-feather="external-link" class="w-4 h-4"></i>
<span>Python</span>
</a>
</li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-4">Contact</h4>
<ul class="space-y-2">
<li class="flex items-center space-x-2 opacity-80">
<i data-feather="mail" class="w-4 h-4"></i>
<span>contact@studentwizard.com</span>
</li>
<li class="flex items-center space-x-2 opacity-80">
<i data-feather="globe" class="w-4 h-4"></i>
<span>www.studentwizard.com</span>
</li>
</ul>
</div>
</div>
<div class="border-t border-white/20 mt-8 pt-6 text-center opacity-70 text-sm">
<p>&copy; ${new Date().getFullYear()} Student Wizard. All rights reserved.</p>
</div>
</div>
</footer>
<script>feather.replace();</script>
`;
}
}
customElements.define('custom-footer', CustomFooter);