Spaces:
Running
Running
Download components/footer.js from LilanJ/cloudy-code-commander: direct link, hf CLI and curl.
- Browser
- Download file 3.47 kB
-
https://huggingface.co/spaces/LilanJ/cloudy-code-commander/resolve/main/components/footer.js
- Command line
-
hf download hf://spaces/LilanJ/cloudy-code-commander/components/footer.js
-
curl -L -o footer.js https://huggingface.co/spaces/LilanJ/cloudy-code-commander/resolve/main/components/footer.js
3.47 kB
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| background-color: #1F2937; | |
| color: #F3F4F6; | |
| padding: 3rem 0; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 2rem; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| text-align: center; | |
| } | |
| .footer-logo { | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| margin-bottom: 1.5rem; | |
| } | |
| .footer-logo span { | |
| color: #3B82F6; | |
| } | |
| .footer-links { | |
| display: flex; | |
| gap: 2rem; | |
| margin-bottom: 2rem; | |
| } | |
| .footer-links a { | |
| color: #D1D5DB; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-links a:hover { | |
| color: #3B82F6; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1.5rem; | |
| margin-bottom: 2rem; | |
| } | |
| .social-links a { | |
| color: #D1D5DB; | |
| transition: color 0.2s; | |
| } | |
| .social-links a:hover { | |
| color: #3B82F6; | |
| } | |
| .copyright { | |
| color: #9CA3AF; | |
| font-size: 0.875rem; | |
| } | |
| </style> | |
| <div class="footer-content"> | |
| <div class="footer-logo">Lilan<span>.</span></div> | |
| <div class="footer-links"> | |
| <a href="#about">About</a> | |
| <a href="#work">Work</a> | |
| <a href="#certifications">Certifications</a> | |
| <a href="#contact">Contact</a> | |
| </div> | |
| <div class="social-links"> | |
| <a href="https://linkedin.com/in/lilan-jayasuriya" aria-label="LinkedIn"> | |
| <i data-feather="linkedin"></i> | |
| </a> | |
| <a href="https://github.com/lilan" aria-label="GitHub"> | |
| <i data-feather="github"></i> | |
| </a> | |
| <a href="https://twitter.com/lilan" aria-label="Twitter"> | |
| <i data-feather="twitter"></i> | |
| </a> | |
| <a href="https://dribbble.com/lilan" aria-label="Dribbble"> | |
| <i data-feather="dribbble"></i> | |
| </a> | |
| </div> | |
| <div class="copyright"> | |
| © ${new Date().getFullYear()} Lilan Jayasuriya. All rights reserved. | |
| </div> | |
| </div> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |