| class CustomFooter extends HTMLElement { |
| connectedCallback() { |
| this.attachShadow({ mode: 'open' }); |
| this.shadowRoot.innerHTML = ` |
| <style> |
| footer { |
| background: #0d1f0d; |
| color: #a0aec0; |
| padding: 2rem 1rem; |
| text-align: center; |
| margin-top: auto; |
| border-top: 1px solid rgba(255, 255, 255, 0.1); |
| } |
| |
| .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 { |
| color: white; |
| font-size: 1.1rem; |
| margin-bottom: 1rem; |
| font-weight: 600; |
| } |
| |
| .footer-section ul { |
| list-style: none; |
| padding: 0; |
| margin: 0; |
| } |
| |
| .footer-section li { |
| margin-bottom: 0.5rem; |
| } |
| |
| .footer-section a { |
| color: #a0aec0; |
| text-decoration: none; |
| transition: color 0.2s; |
| } |
| |
| .footer-section a:hover { |
| color: white; |
| } |
| |
| .social-links { |
| display: flex; |
| gap: 1rem; |
| margin-top: 1rem; |
| } |
| |
| .social-links a { |
| color: #a0aec0; |
| transition: color 0.2s; |
| } |
| |
| .social-links a:hover { |
| color: white; |
| } |
| |
| .copyright { |
| margin-top: 2rem; |
| padding-top: 1rem; |
| border-top: 1px solid rgba(255, 255, 255, 0.1); |
| font-size: 0.9rem; |
| } |
| |
| @media (max-width: 640px) { |
| .footer-content { |
| grid-template-columns: 1fr; |
| text-align: center; |
| } |
| |
| .social-links { |
| justify-content: center; |
| } |
| } |
| </style> |
| <footer> |
| <div class="footer-content"> |
| <div class="footer-section"> |
| <h3>Game Modes</h3> |
| <ul> |
| <li><a href="#quick-match">Quick Match</a></li> |
| <li><a href="#daily-challenge">Daily Challenge</a></li> |
| <li><a href="#training">Training Mode</a></li> |
| <li><a href="#tournaments">Tournaments</a></li> |
| </ul> |
| </div> |
| |
| <div class="footer-section"> |
| <h3>Community</h3> |
| <ul> |
| <li><a href="#multiplayer">Multiplayer</a></li> |
| <li><a href="#leagues">Leagues</a></li> |
| <li><a href="#leaderboards">Leaderboards</a></li> |
| <li><a href="#social">Social Media</a></li> |
| </ul> |
| </div> |
| |
| <div class="footer-section"> |
| <h3>Resources</h3> |
| <ul> |
| <li><a href="#shop">Shop</a></li> |
| <li><a href="#cards">Player Cards</a></li> |
| <li><a href="#stats">Statistics</a></li> |
| <li><a href="#settings">Settings</a></li> |
| </ul> |
| </div> |
| |
| <div class="footer-section"> |
| <h3>Connect With Us</h3> |
| <div class="social-links"> |
| <a href="#"><i data-feather="twitter"></i></a> |
| <a href="#"><i data-feather="facebook"></i></a> |
| <a href="#"><i data-feather="instagram"></i></a> |
| <a href="#"><i data-feather="youtube"></i></a> |
| <a href="#"><i data-feather="discord"></i></a> |
| </div> |
| </div> |
| </div> |
| |
| <div class="copyright"> |
| © 2024 PenaltyPro: Shootout Showdown. All rights reserved. |
| </div> |
| </footer> |
| `; |
| } |
| } |
|
|
| customElements.define('custom-footer', CustomFooter); |