Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background-color: #111827; | |
| color: #9ca3af; | |
| padding: 3rem 1rem; | |
| } | |
| .footer-container { | |
| max-width: 1280px; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 2rem; | |
| } | |
| .footer-logo { | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| color: #3b82f6; | |
| margin-bottom: 1rem; | |
| display: flex; | |
| align-items: center; | |
| } | |
| .footer-logo-icon { | |
| margin-right: 0.5rem; | |
| color: #f59e0b; | |
| } | |
| .footer-description { | |
| margin-bottom: 1.5rem; | |
| line-height: 1.6; | |
| } | |
| .footer-social { | |
| display: flex; | |
| gap: 1rem; | |
| } | |
| .social-link { | |
| color: #9ca3af; | |
| transition: color 0.2s; | |
| } | |
| .social-link:hover { | |
| color: #3b82f6; | |
| } | |
| .footer-heading { | |
| color: #f3f4f6; | |
| font-weight: 600; | |
| margin-bottom: 1rem; | |
| font-size: 1.1rem; | |
| } | |
| .footer-links { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.75rem; | |
| } | |
| .footer-link { | |
| color: #9ca3af; | |
| transition: color 0.2s; | |
| } | |
| .footer-link:hover { | |
| color: #f59e0b; | |
| } | |
| .footer-bottom { | |
| max-width: 1280px; | |
| margin: 2rem auto 0; | |
| padding-top: 2rem; | |
| border-top: 1px solid #1f2937; | |
| text-align: center; | |
| } | |
| @media (max-width: 768px) { | |
| .footer-container { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-container"> | |
| <div> | |
| <div class="footer-logo"> | |
| <i data-feather="cpu" class="footer-logo-icon"></i> | |
| RoboRumble | |
| </div> | |
| <p class="footer-description"> | |
| Transforming young minds into future innovators through hands-on robotics education. | |
| </p> | |
| <div class="footer-social"> | |
| <a href="#" class="social-link" aria-label="Twitter"> | |
| <i data-feather="twitter"></i> | |
| </a> | |
| <a href="#" class="social-link" aria-label="Instagram"> | |
| <i data-feather="instagram"></i> | |
| </a> | |
| <a href="#" class="social-link" aria-label="YouTube"> | |
| <i data-feather="youtube"></i> | |
| </a> | |
| <a href="#" class="social-link" aria-label="Facebook"> | |
| <i data-feather="facebook"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="footer-heading">Quick Links</h3> | |
| <div class="footer-links"> | |
| <a href="#about" class="footer-link">About</a> | |
| <a href="#curriculum" class="footer-link">Curriculum</a> | |
| <a href="#kit" class="footer-link">Kit Contents</a> | |
| <a href="#outcomes" class="footer-link">Learning Outcomes</a> | |
| <a href="#enroll" class="footer-link">Enrollment</a> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="footer-heading">Contact</h3> | |
| <div class="footer-links"> | |
| <a href="mailto:hello@roborumble.com" class="footer-link">hello@roborumble.com</a> | |
| <a href="tel:+1234567890" class="footer-link">+1 (234) 567-890</a> | |
| <div class="flex items-center"> | |
| <i data-feather="map-pin" class="mr-2" width="16"></i> | |
| <span>123 Tech Street, Innovation City</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="footer-bottom"> | |
| <p>© ${new Date().getFullYear()} RoboRumble. All rights reserved.</p> | |
| </div> | |
| </footer> | |
| `; | |
| // Initialize feather icons | |
| if (window.feather) { | |
| window.feather.replace(); | |
| } | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |