Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| width: 100%; | |
| margin-top: auto; | |
| } | |
| footer { | |
| background-color: #1f2937; | |
| color: white; | |
| padding: 2rem 0; | |
| margin-top: 4rem; | |
| } | |
| .footer-container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 1rem; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | |
| gap: 2rem; | |
| } | |
| .footer-section h3 { | |
| font-weight: 600; | |
| margin-bottom: 1rem; | |
| color: #e5e7eb; | |
| } | |
| .footer-links { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .footer-link { | |
| color: #9ca3af; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-link:hover { | |
| color: white; | |
| } | |
| .footer-bottom { | |
| text-align: center; | |
| padding-top: 2rem; | |
| margin-top: 2rem; | |
| border-top: 1px solid #374151; | |
| color: #9ca3af; | |
| } | |
| @media (max-width: 768px) { | |
| .footer-container { | |
| grid-template-columns: 1fr; | |
| text-align: center; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-container"> | |
| <div class="footer-section"> | |
| <h3>LifeTracker Pro</h3> | |
| <p>Track your daily activities and achieve your fitness goals with our comprehensive life management tool.</p |