| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: rgba(17, 24, 39, 0.8); | |
| color: white; | |
| padding: 3rem 2rem; | |
| text-align: center; | |
| 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(250px, 1fr)); | |
| gap: 2rem; | |
| text-align: left; | |
| } | |
| .footer-logo { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| font-size: 1.25rem; | |
| font-weight: bold; | |
| margin-bottom: 1rem; | |
| } | |
| .footer-links h3 { | |
| font-size: 1rem; | |
| font-weight: 600; | |
| margin-bottom: 1rem; | |
| color: rgba(255, 255, 255, 0.9); | |
| } | |
| .footer-links ul { | |
| list-style: none; | |
| padding: 0; | |
| margin: 0; | |
| } | |
| .footer-links li { | |
| margin-bottom: 0.5rem; | |
| } | |
| .footer-links a { | |
| color: rgba(255, 255, 255, 0.6); | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-links a:hover { | |
| color: #8b5cf6; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| margin-top: 1rem; | |
| } | |
| .social-links a { | |
| color: rgba(255, 255, 255, 0.6); | |
| transition: color 0.2s; | |
| } | |
| .social-links a:hover { | |
| color: #8b5cf6; | |
| } | |
| .copyright { | |
| margin-top: 3rem; | |
| padding-top: 1.5rem; | |
| border-top: 1px solid rgba(255, 255, 255, 0.1); | |
| color: rgba(255, 255, 255, 0.5); | |
| font-size: 0.875rem; | |
| } | |
| @media (max-width: 768px) { | |
| .footer-content { | |
| grid-template-columns: 1fr; | |
| text-align: center; | |
| } | |
| .social-links { | |
| justify-content: center; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div> | |
| <div class="footer-logo"> | |
| <i data-feather="terminal"></i> | |
| OpenCoder | |
| </div> | |
| <p class="text-gray-400">The open source AI coding agent for your terminal.</p> | |
| <div class="social-links"> | |
| <a href="#"><i data-feather="twitter"></i></a> | |
| <a href="#"><i data-feather="github"></i></a> | |
| <a href="#"><i data-feather="discord"></i></a> | |
| </div> | |
| </div> | |
| <div class="footer-links"> | |
| <h3>Product</h3> | |
| <ul> | |
| <li><a href="#features">Features</a></li> | |
| <li><a href="https://opencode.ai/docs">Documentation</a></li> | |
| <li><a href="https://github.com/sst/opencode/releases">Releases</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-links"> | |
| <h3>Community</h3> | |
| <ul> | |
| <li><a href="https://github.com/sst/opencode">GitHub</a></li> | |
| <li><a href="#">Discord</a></li> | |
| <li><a href="#">Twitter</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-links"> | |
| <h3>Legal</h3> | |
| <ul> | |
| <li><a href="#">Privacy</a></li> | |
| <li><a href="#">Terms</a></li> | |
| <li><a href="#">License</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| © ${new Date().getFullYear()} OpenCode. All rights reserved. | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |