File size: 4,429 Bytes
0a5aed0 | 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 | 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>© ${new Date().getFullYear()} Student Wizard. All rights reserved.</p>
</div>
</div>
</footer>
<script>feather.replace();</script>
`;
}
}
customElements.define('custom-footer', CustomFooter); |