Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| background: var(--primary-color); | |
| color: white; | |
| padding: 3rem 0 1rem; | |
| } | |
| .footer-container { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 2rem; | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 2rem; | |
| } | |
| .footer-logo { | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| margin-bottom: 1rem; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .footer-logo i { | |
| color: var(--accent-color); | |
| } | |
| .footer-about p { | |
| color: rgba(255, 255, 255, 0.7); | |
| line-height: 1.6; | |
| margin-bottom: 1rem; | |
| } | |
| .footer-social { | |
| display: flex; | |
| gap: 1rem; | |
| } | |
| .footer-social a { | |
| color: white; | |
| font-size: 1.2rem; | |
| transition: color 0.3s; | |
| } | |
| .footer-social a:hover { | |
| color: var(--accent-color); | |
| } | |
| .footer-column h3 { | |
| font-size: 1.2rem; | |
| margin-bottom: 1.5rem; | |
| position: relative; | |
| padding-bottom: 0.5rem; | |
| } | |
| .footer-column h3::after { | |
| content: ''; | |
| position: absolute; | |
| bottom: 0; | |
| left: 0; | |
| width: 50px; | |
| height: 2px; | |
| background-color: var(--accent-color); | |
| } | |
| .footer-links { | |
| list-style: none; | |
| padding: 0; | |
| margin: 0; | |
| } | |
| .footer-links li { | |
| margin-bottom: 0.8rem; | |
| } | |
| .footer-links a { | |
| color: rgba(255, 255, 255, 0.7); | |
| text-decoration: none; | |
| transition: color 0.3s; | |
| } | |
| .footer-links a:hover { | |
| color: white; | |
| } | |
| .footer-bottom { | |
| text-align: center; | |
| padding-top: 2rem; | |
| margin-top: 2rem; | |
| border-top: 1px solid rgba(255, 255, 255, 0.1); | |
| color: rgba(255, 255, 255, 0.5); | |
| font-size: 0.9rem; | |
| } | |
| @media (max-width: 768px) { | |
| .footer-container { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| </style> | |
| <div class="footer-container"> | |
| <div class="footer-about"> | |
| <div class="footer-logo"> | |
| <i class="fas fa-chart-pie"></i> NASKSOFT | |
| </div> | |
| <p>AI-powered data analytics platform that helps businesses make data-driven decisions.</p> | |
| <div class="footer-social"> | |
| <a href="#"><i class="fab fa-twitter"></i></a> | |
| <a href="#"><i class="fab fa-linkedin"></i></a> | |
| <a href="#"><i class="fab fa-github"></i></a> | |
| <a href="#"><i class="fab fa-facebook"></i></a> | |
| </div> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Quick Links</h3> | |
| <ul class="footer-links"> | |
| <li><a href="/">Home</a></li> | |
| <li><a href="dashboard.html">Dashboard</a></li> | |
| <li><a href="upload.html">Upload Data</a></li> | |
| <li><a href="about.html">About</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Company</h3> | |
| <ul class="footer-links"> | |
| <li><a href="#">Careers</a></li> | |
| <li><a href="#">Blog</a></li> | |
| <li><a href="#">Press</a></li> | |
| <li><a href="#">Partners</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Legal</h3> | |
| <ul class="footer-links"> | |
| <li><a href="#">Privacy Policy</a></li> | |
| <li><a href="#">Terms of Service</a></li> | |
| <li><a href="#">Cookie Policy</a></li> | |
| <li><a href="#">GDPR</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="footer-bottom"> | |
| © ${new Date().getFullYear()} NASKSOFT. All rights reserved. | |
| </div> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |