| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: rgba(0, 0, 0, 0.3); | |
| backdrop-filter: blur(10px); | |
| border-top: 1px solid rgba(255, 255, 255, 0.2); | |
| color: white; | |
| padding: 2rem; | |
| text-align: center; | |
| margin-top: auto; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .footer-links { | |
| display: flex; | |
| justify-content: center; | |
| gap: 2rem; | |
| flex-wrap: wrap; | |
| } | |
| .footer-links a { | |
| color: rgba(255, 255, 255, 0.7); | |
| text-decoration: none; | |
| transition: color 0.3s ease; | |
| } | |
| .footer-links a:hover { | |
| color: white; | |
| } | |
| @media (max-width: 768px) { | |
| footer { | |
| padding: 1.5rem 1rem; | |
| } | |
| .footer-links { | |
| gap: 1rem; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div class="footer-links"> | |
| <a href="/">Home</a> | |
| <a href="/timeline.html">Timeline</a> | |
| <a href="/features.html">Features</a> | |
| <a href="/changelog.html">Full Log</a> | |
| </div> | |
| <p>© 2024 JCode Evolution Tracker. Tracking the journey of visual programming innovation.</p> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |