Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| constructor() { | |
| super(); | |
| } | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.render(); | |
| } | |
| render() { | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| width: 100%; | |
| } | |
| .footer { | |
| background: #050508; | |
| border-top: 1px solid #00a2ff; | |
| padding: 3rem 0 2rem; | |
| margin-top: 4rem; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 1rem; | |
| } | |
| .footer-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | |
| gap: 2rem; | |
| margin-bottom: 2rem; | |
| } | |
| .footer-section h3 { | |
| font-family: Orbitron, monospace; | |
| color: #00ff88; | |
| margin-bottom: 1rem; | |
| font-size: 1.125rem; | |
| } | |
| .footer-links { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .footer-link { | |
| color: #94a3b8; | |
| text-decoration: none; | |
| transition: color 0.3s ease; | |
| } | |
| .footer-link:hover { | |
| color: #00ff88; | |
| } | |
| .footer-bottom { | |
| border-top: 1px solid #1a1a2e; | |
| padding-top: 2rem; | |
| text-align: center; | |
| color: #64748b; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| margin-top: 1rem; | |
| } | |
| .social-link { | |
| width: 40px; | |
| height: 40px; | |
| border-radius: 8px; | |
| background: #1a1a2e; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: all 0.3s ease; | |
| } | |
| .social-link:hover { | |
| background: #00ff88; | |
| color: #050508; | |
| transform: translateY(-2px); | |
| } | |
| </style> | |
| <footer class="footer"> | |
| <div class="footer-content"> | |
| <div class="footer-grid"> | |
| <div class="footer-section"> | |
| <h3>Singularity Nexus</h3> | |
| <p class="text-gray-400"> | |
| Технологический портал Алексея Малышева. | |
| Исследования, инсайты и трансформации цифрового мира. | |
| </p> | |
| <div class="social-links"> | |
| <a href="https://t.me/tsingular" class="social-link" target="_blank"> | |
| <i data-feather="send"></i> | |
| </a> | |
| <a href="#" class="social-link"> | |
| <i data-feather="youtube"></i> | |
| </a> | |
| <a href="#" class="social-link"> | |
| <i data-feather="github"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Разделы</h3> | |
| <div class="footer-links"> | |
| <a href="/news" class="footer-link">Новости технологий</a> | |
| <a href="/learning" class="footer-link">Образовательные курсы</a> | |
| <a href="/resources" class="footer-link">Полезные ресурсы</a> | |
| <a href="/talks" class="footer-link">Записи докладов</a> | |
| <a href="/demos" class="footer-link">Демо проекты</a> | |
| </div> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Поддержка</h3> | |
| <div class="footer-links"> | |
| <a href="/consultation" class="footer-link">Консультации</a> | |
| <a href="/about" class="footer-link">О проекте</a> | |
| <a href="/contact" class="footer-link">Контакты</a> | |
| <a href="/privacy" class="footer-link">Политика конфиденциальности</a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="footer-bottom"> | |
| <p>© 2024 Singularity Nexus. Все права в цифровом пространстве.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| // Replace feather icons after rendering | |
| setTimeout(() => { | |
| if (typeof feather !== 'undefined') { | |
| feather.replace(); | |
| } | |
| }, 100); | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |