Spaces:
Running
Running
Download components/footer.js from Roman125orlov/ready-coder-ninja: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/spaces/Roman125orlov/ready-coder-ninja/resolve/main/components/footer.js
- Command line
-
hf download hf://spaces/Roman125orlov/ready-coder-ninja/components/footer.js
-
curl -L -o footer.js https://huggingface.co/spaces/Roman125orlov/ready-coder-ninja/resolve/main/components/footer.js
1.31 kB
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: #1e3a8a; | |
| color: white; | |
| padding: 2rem; | |
| text-align: center; | |
| margin-top: 3rem; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| } | |
| .social-links { | |
| display: flex; | |
| justify-content: center; | |
| gap: 1rem; | |
| margin: 1rem 0; | |
| } | |
| .social-links a { | |
| color: white; | |
| font-size: 1.5rem; | |
| } | |
| .copyright { | |
| margin-top: 1rem; | |
| font-size: 0.9rem; | |
| opacity: 0.8; | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <h3>Крым - Жемчужина России</h3> | |
| <div class="social-links"> | |
| <a href="#"><i class="fab fa-vk"></i></a> | |
| <a href="#"><i class="fab fa-telegram"></i></a> | |
| <a href="#"><i class="fab fa-youtube"></i></a> | |
| </div> | |
| <p class="copyright">© ${new Date().getFullYear()} Все права защищены</p> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |