Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: rgba(17, 24, 39, 0.8); | |
| color: white; | |
| padding: 2rem; | |
| text-align: center; | |
| margin-top: auto; | |
| border-top: 1px solid rgba(255,255,255,0.1); | |
| backdrop-filter: blur(10px); | |
| } | |
| .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: #a855f7; | |
| margin-bottom: 1rem; | |
| font-size: 1.1rem; | |
| } | |
| .footer-section ul { | |
| list-style: none; | |
| padding: 0; | |
| margin: 0; | |
| } | |
| .footer-section li { | |
| margin-bottom: 0.5rem; | |
| } | |
| .footer-section a { | |
| color: #d1d5db; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-section a:hover { | |
| color: #a855f7; | |
| } | |
| .copyright { | |
| margin-top: 2rem; | |
| padding-top: 1rem; | |
| border-top: 1px solid rgba(255,255,255,0.1); | |
| font-size: 0.9rem; | |
| color: #9ca3af; | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div class="footer-section"> | |
| <h3>Modules</h3> | |
| <ul> | |
| <li><a href="/injection-detection.html">SQL Injection</a></li> | |
| <li><a href="/access-anomalies.html">Access Patterns</a></li> | |
| <li><a href="/data-exfiltration.html">Data Exfiltration</a></li> | |
| <li><a href="/performance-anomalies.html">Performance</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Resources</h3> | |
| <ul> | |
| <li><a href="#">Documentation</a></li> | |
| <li><a href="#">API Reference</a></li> | |
| <li><a href="#">Tutorials</a></li> | |
| <li><a href="#">Blog</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Company</h3> | |
| <ul> | |
| <li><a href="#">About Us</a></li> | |
| <li><a href="#">Contact</a></li> | |
| <li><a href="#">Careers</a></li> | |
| <li><a href="#">Privacy Policy</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Connect</h3> | |
| <ul> | |
| <li><a href="#"><i data-feather="twitter"></i> Twitter</a></li> | |
| <li><a href="#"><i data-feather="github"></i> GitHub</a></li> | |
| <li><a href="#"><i data-feather="linkedin"></i> LinkedIn</a></li> | |
| <li><a href="#"><i data-feather="mail"></i> Email</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| © ${new Date().getFullYear()} Database Sentinel AI. All rights reserved. | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |