Spaces:
Running
Running
| class AppFooter extends HTMLElement { | |
| constructor() { | |
| super(); | |
| this.attachShadow({ mode: 'open' }); | |
| } | |
| connectedCallback() { | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| margin-top: auto; | |
| } | |
| footer { | |
| background: #0f172a; | |
| color: #cbd5e1; | |
| padding: 3rem 1rem 1.5rem; | |
| } | |
| .container { | |
| max-width: 80rem; | |
| margin: 0 auto; | |
| } | |
| .grid { | |
| display: grid; | |
| grid-template-columns: repeat(2, 1fr); | |
| gap: 1.5rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| @media (min-width: 768px) { | |
| .grid { | |
| grid-template-columns: repeat(4, 1fr); | |
| gap: 2rem; | |
| margin-bottom: 2rem; | |
| } | |
| } | |
| .brand-section { | |
| grid-column: 1 / -1; | |
| } | |
| @media (min-width: 768px) { | |
| .brand-section { | |
| grid-column: auto; | |
| } | |
| } | |
| .brand-section h3 { | |
| color: white; | |
| font-size: 1.25rem; | |
| font-weight: 800; | |
| margin-bottom: 0.75rem; | |
| background: linear-gradient(135deg, #34d399 0%, #fbbf24 100%); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| } | |
| @media (min-width: 768px) { | |
| .brand-section h3 { | |
| font-size: 1.5rem; | |
| margin-bottom: 1rem; | |
| } | |
| } | |
| .brand-section p { | |
| line-height: 1.6; | |
| font-size: 0.8125rem; | |
| } | |
| @media (min-width: 768px) { | |
| .brand-section p { | |
| font-size: 0.875rem; | |
| } | |
| } | |
| .links-section h4 { | |
| color: white; | |
| font-weight: 600; | |
| margin-bottom: 0.75rem; | |
| font-size: 0.9375rem; | |
| } | |
| @media (min-width: 768px) { | |
| .links-section h4 { | |
| margin-bottom: 1rem; | |
| font-size: 1rem; | |
| } | |
| } | |
| .links-section ul { | |
| list-style: none; | |
| padding: 0; | |
| margin: 0; | |
| } | |
| .links-section li { | |
| margin-bottom: 0.375rem; | |
| } | |
| @media (min-width: 768px) { | |
| .links-section li { | |
| margin-bottom: 0.5rem; | |
| } | |
| } | |
| .links-section a { | |
| color: #94a3b8; | |
| text-decoration: none; | |
| font-size: 0.8125rem; | |
| transition: color 0.2s; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| @media (min-width: 768px) { | |
| .links-section a { | |
| font-size: 0.875rem; | |
| } | |
| } | |
| .links-section a:hover { | |
| color: #34d399; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 0.75rem; | |
| margin-top: 0.75rem; | |
| } | |
| @media (min-width: 768px) { | |
| .social-links { | |
| gap: 1rem; | |
| margin-top: 1rem; | |
| } | |
| } | |
| .social-links a { | |
| width: 2.25rem; | |
| height: 2.25rem; | |
| background: rgba(255, 255, 255, 0.1); | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: all 0.2s; | |
| } | |
| @media (min-width: 768px) { | |
| .social-links a { | |
| width: 2.5rem; | |
| height: 2.5rem; | |
| } | |
| } | |
| .social-links a:hover { | |
| background: #059669; | |
| transform: translateY(-2px); | |
| } | |
| .divider { | |
| height: 1px; | |
| background: rgba(255, 255, 255, 0.1); | |
| margin: 1.5rem 0; | |
| } | |
| @media (min-width: 768px) { | |
| .divider { | |
| margin: 2rem 0; | |
| } | |
| } | |
| .bottom-row { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.75rem; | |
| align-items: center; | |
| text-align: center; | |
| font-size: 0.8125rem; | |
| } | |
| @media (min-width: 768px) { | |
| .bottom-row { | |
| flex-direction: row; | |
| justify-content: space-between; | |
| text-align: left; | |
| font-size: 0.875rem; | |
| gap: 1rem; | |
| } | |
| } | |
| .eco-tag { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.25rem; | |
| background: rgba(52, 211, 153, 0.2); | |
| color: #34d399; | |
| padding: 0.2rem 0.625rem; | |
| border-radius: 9999px; | |
| font-size: 0.6875rem; | |
| font-weight: 600; | |
| } | |
| @media (min-width: 768px) { | |
| .eco-tag { | |
| padding: 0.25rem 0.75rem; | |
| font-size: 0.75rem; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="container"> | |
| <div class="grid"> | |
| <div class="brand-section"> | |
| <h3>π RideShare Zen</h3> | |
| <p>Making travel sustainable, affordable, and social. Join thousands of commuters sharing rides and reducing carbon emissions every day.</p> | |
| <div class="social-links"> | |
| <a href="#" aria-label="Twitter"> | |
| <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path> | |
| </svg> | |
| </a> | |
| <a href="#" aria-label="Instagram"> | |
| <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect> | |
| <path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path> | |
| <line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line> | |
| </svg> | |
| </a> | |
| <a href="#" aria-label="LinkedIn"> | |
| <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | |
| <path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path> | |
| <rect x="2" y="9" width="4" height="12"></rect> | |
| <circle cx="4" cy="4" r="2"></circle> | |
| </svg> | |
| </a> | |
| </div> | |
| </div> | |
| <div class="links-section"> | |
| <h4>Company</h4> | |
| <ul> | |
| <li><a href="#">About Us</a></li> | |
| <li><a href="#">Careers</a></li> | |
| <li><a href="#">Press</a></li> | |
| <li><a href="#">Blog</a></li> | |
| </ul> | |
| </div> | |
| <div class="links-section"> | |
| <h4>Support</h4> | |
| <ul> | |
| <li><a href="#">Help Center</a></li> | |
| <li><a href="#">Safety</a></li> | |
| <li><a href="#">Cancellation Options</a></li> | |
| <li><a href="#">COVID-19 Measures</a></li> | |
| </ul> | |
| </div> | |
| <div class="links-section"> | |
| <h4>Legal</h4> | |
| <ul> | |
| <li><a href="#">Terms of Service</a></li> | |
| <li><a href="#">Privacy Policy</a></li> | |
| <li><a href="#">Cookie Policy</a></li> | |
| <li><a href="#">Insurance</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="divider"></div> | |
| <div class="bottom-row"> | |
| <div> | |
| <span class="eco-tag">π± Carbon Neutral Platform</span> | |
| </div> | |
| <div> | |
| Β© 2024 RideShare Zen. All rights reserved. | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('app-footer', AppFooter); |