Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: #1e293b; | |
| color: white; | |
| padding: 3rem 1rem; | |
| text-align: center; | |
| margin-top: auto; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 2rem; | |
| text-align: left; | |
| } | |
| .footer-section h3 { | |
| font-size: 1.2rem; | |
| margin-bottom: 1rem; | |
| color: #a5b4fc; | |
| } | |
| .footer-section a { | |
| color: #e2e8f0; | |
| display: block; | |
| margin-bottom: 0.5rem; | |
| transition: color 0.2s; | |
| } | |
| .footer-section a:hover { | |
| color: #818cf8; | |
| } | |
| .copyright { | |
| margin-top: 2rem; | |
| padding-top: 1.5rem; | |
| border-top: 1px solid #334155; | |
| color: #94a3b8; | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div class="footer-section"> | |
| <h3>Quick Links</h3> | |
| <a href="/catalog.html">Book Catalog</a> | |
| <a href="/members.html">Member Portal</a> | |
| <a href="/circulation.html">Circulation</a> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Resources</h3> | |
| <a href="#">Library Policies</a> | |
| <a href="#">Research Help</a> | |
| <a href="#">Digital Resources</a> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>About Us</h3> | |
| <a href="/about.html">Our Mission</a> | |
| <a href="#">Staff Directory</a> | |
| <a href="#">Volunteer</a> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Connect</h3> | |
| <a href="#"><i data-feather="mail"></i> Email Us</a> | |
| <a href="#"><i data-feather="phone"></i> Call Us</a> | |
| <a href="#"><i data-feather="map-pin"></i> Visit Us</a> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| © 2024 BookWorm Oasis. Powered by Odoo. All rights reserved. | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |