Spaces:
Running
Running
File size: 4,009 Bytes
19ba7fe 999ee93 19ba7fe 999ee93 19ba7fe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
* { font-family: 'Inter', sans-serif; }
footer {
position: relative;
bottom: 0;
left: 0;
right: 0;
background: rgba(9, 9, 11, 0.9);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding: 0.75rem 2rem;
z-index: 30;
display: flex;
align-items: center;
justify-content: space-between;
}
.footer-links {
display: flex;
align-items: center;
gap: 2rem;
}
.footer-link {
color: #71717a;
text-decoration: none;
font-size: 0.875rem;
transition: color 0.2s ease;
}
.footer-link:hover {
color: #ffffff;
}
.footer-info {
display: flex;
align-items: center;
gap: 2rem;
color: #71717a;
font-size: 0.75rem;
}
.status-indicator {
display: flex;
align-items: center;
gap: 0.5rem;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #10b981;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
@media (max-width: 768px) {
footer {
padding: 0.75rem 1rem;
flex-direction: column;
gap: 0.5rem;
}
.footer-links {
gap: 1rem;
flex-wrap: wrap;
justify-content: center;
}
.footer-info {
gap: 1rem;
font-size: 0.625rem;
}
}
</style>
<footer>
<div class="footer-links">
<a href="/privacy" class="footer-link">Privacy Policy</a>
<a href="/terms" class="footer-link">Terms of Service</a>
<a href="/contact" class="footer-link">Contact Us</a>
<a href="/docs" class="footer-link">API Docs</a>
<a href="/blog" class="footer-link">Blog</a>
</div>
<div class="footer-info">
<div class="status-indicator">
<div class="status-dot"></div>
<span>All systems operational</span>
</div>
<span>© 2024 Neural Nexus AI</span>
<span>Version 2.0.1</span>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);
// Footer link handlers
function handleFooterLink(link) {
// Smooth scroll or navigation logic
console.log('Navigating to:', link);
} |