<script src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.47.0/min/vs/loader.min.js"></script>
6a662eb
verified
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| width: 100%; | |
| background-color: #1e293b; | |
| color: #e2e8f0; | |
| padding: 2rem 1rem; | |
| margin-top: 2rem; | |
| } | |
| .footer-container { | |
| max-width: 1280px; | |
| margin: 0 auto; | |
| } | |
| .footer-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 2rem; | |
| } | |
| .footer-column h3 { | |
| color: white; | |
| font-weight: 600; | |
| margin-bottom: 1rem; | |
| font-size: 1.125rem; | |
| } | |
| .footer-links { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .footer-link { | |
| color: #94a3b8; | |
| transition: color 0.2s; | |
| } | |
| .footer-link:hover { | |
| color: #60a5fa; | |
| } | |
| .footer-bottom { | |
| margin-top: 2rem; | |
| padding-top: 1rem; | |
| border-top: 1px solid #334155; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| } | |
| .social-link { | |
| color: #94a3b8; | |
| transition: color 0.2s; | |
| } | |
| .social-link:hover { | |
| color: #60a5fa; | |
| } | |
| @media (max-width: 768px) { | |
| .footer-bottom { | |
| flex-direction: column; | |
| gap: 1rem; | |
| text-align: center; | |
| } | |
| } | |
| </style> | |
| <div class="footer-container"> | |
| <div class="footer-grid"> | |
| <div class="footer-column"> | |
| <h3>Product</h3> | |
| <div class="footer-links"> | |
| <a href="#" class="footer-link">Features</a> | |
| <a href="#" class="footer-link">Pricing</a> | |
| <a href="#" class="footer-link">Documentation</a> | |
| <a href="#" class="footer-link">Changelog</a> | |
| </div> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Resources</h3> | |
| <div class="footer-links"> | |
| <a href="#" class="footer-link">Templates</a> | |
| <a href="#" class="footer-link">Examples</a> | |
| <a href="#" class="footer-link">API Reference</a> | |
| <a href="#" class="footer-link">Community</a> | |
| </div> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Company</h3> | |
| <div class="footer-links"> | |
| <a href="#" class="footer-link">About</a> | |
| <a href="#" class="footer-link">Blog</a> | |
| <a href="#" class="footer-link">Careers</a> | |
| <a href="#" class="footer-link">Contact</a> | |
| </div> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Legal</h3> | |
| <div class="footer-links"> | |
| <a href="#" class="footer-link">Privacy</a> | |
| <a href="#" class="footer-link">Terms</a> | |
| <a href="#" class="footer-link">Security</a> | |
| <a href="#" class="footer-link">Cookies</a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="footer-bottom"> | |
| <div> | |
| © 2023 CodeCanvas. All rights reserved. | |
| </div> | |
| <div class="social-links"> | |
| <a href="#" class="social-link"><i data-feather="twitter"></i></a> | |
| <a href="#" class="social-link"><i data-feather="github"></i></a> | |
| <a href="#" class="social-link"><i data-feather="linkedin"></i></a> | |
| <a href="#" class="social-link"><i data-feather="youtube"></i></a> | |
| </div> | |
| </div> | |
| </div> | |
| `; | |
| feather.replace({ shadowRoot: this.shadowRoot }); | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |