Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: #1a1a1a; | |
| border-top: 1px solid rgba(184, 134, 11, 0.3); | |
| color: #e0e0e0; | |
| } | |
| .footer-container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 3rem 2rem; | |
| display: grid; | |
| grid-template-columns: 2fr 1fr 1fr 1.5fr; | |
| gap: 3rem; | |
| } | |
| .footer-column { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1.5rem; | |
| } | |
| .footer-logo-text { | |
| font-family: 'Playfair Display', serif; | |
| font-size: 1.5rem; | |
| color: #f4f4f4; | |
| margin: 0; | |
| } | |
| .footer-tagline { | |
| font-family: 'Lato', sans-serif; | |
| font-size: 0.9rem; | |
| color: #999; | |
| line-height: 1.5; | |
| margin: 0; | |
| } | |
| .footer-title { | |
| font-family: 'Lato', sans-serif; | |
| font-size: 1.1rem; | |
| color: #b8860b; | |
| margin: 0 0 1rem 0; | |
| text-transform: uppercase; | |
| letter-spacing: 1px; | |
| } | |
| .footer-links { | |
| list-style: none; | |
| margin: 0; | |
| padding: 0; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.8rem; | |
| } | |
| .footer-link { | |
| font-family: 'Lato', sans-serif; | |
| color: #e0e0e0; | |
| text-decoration: none; | |
| font-size: 0.95rem; | |
| transition: all 0.3s ease; | |
| } | |
| .footer-link:hover { | |
| color: #b8860b; | |
| padding-left: 5px; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| } | |
| .social-link { | |
| color: #999; | |
| transition: all 0.3s ease; | |
| padding: 0.5rem; | |
| border-radius: 4px; | |
| } | |
| .social-link:hover { | |
| color: #b8860b; | |
| background: rgba(184, 134, 11, 0.1); | |
| } | |
| .contact-info { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .contact-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.8rem; | |
| margin: 0; | |
| font-size: 0.95rem; | |
| } | |
| .contact-icon { | |
| color: #b8860b; | |
| flex-shrink: 0; | |
| } | |
| .footer-bottom { | |
| border-top: 1px solid #333; | |
| padding: 1.5rem 0; | |
| } | |
| .footer-bottom-container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 2rem; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .copyright { | |
| font-family: 'Lato', sans-serif; | |
| font-size: 0.9rem; | |
| color: #999; | |
| margin: 0; | |
| } | |
| .legal-links { | |
| display: flex; | |
| gap: 1.5rem; | |
| } | |
| .legal-link { | |
| font-family: 'Lato', sans-serif; | |
| font-size: 0.8rem; | |
| color: #666; | |
| text-decoration: none; | |
| transition: color 0.3s ease; | |
| } | |
| .legal-link:hover { | |
| color: #b8860b; | |
| } | |
| @media (max-width: 968px) { | |
| .footer-container { | |
| grid-template-columns: 1fr 1fr; | |
| gap: 2rem; | |
| } | |
| } | |
| @media (max-width: 768px) { | |
| .footer-container { | |
| grid-template-columns: 1fr; | |
| gap: 2rem; | |
| padding: 2rem 1rem; | |
| } | |
| .footer-bottom-container { | |
| flex-direction: column; | |
| gap: 1rem; | |
| text-align: center; | |
| } | |
| .legal-links { | |
| justify-content: center; | |
| } | |
| } | |
| </style> | |
| <footer class="footer"> | |
| <div class="footer-container"> | |
| <div class="footer-column"> | |
| <div class="footer-logo"> | |
| <h3 class="footer-logo-text" data-i18n="site_title">La Fragua del Logos</h3> | |
| <p class="footer-tagline" data-i18n="footer_tagline">Forjando significado a trav茅s de las palabras y el pensamiento.</p> | |
| </div> | |
| <div class="social-links"> | |
| <a href="#" class="social-link" aria-label="LinkedIn"> | |
| <i data-feather="linkedin" class="w-5 h-5"></i> | |
| </a> | |
| <a href="#" class="social-link" aria-label="Twitter"> | |
| <i data-feather="twitter" class="w-5 h-5"></i> | |
| </a> | |
| <a href="#" class="social-link" aria-label="GitHub"> | |
| <i data-feather="github" class="w-5 h-5"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div class="footer-column"> | |
| <h4 class="footer-title" data-i18n="footer_navigation">Navegaci贸n</h4> | |
| <ul class="footer-links"> | |
| <li><a href="index.html" class="footer-link" data-i18n="nav_home">Inicio</a></li> | |
| <li><a href="#services" class="footer-link" data-i18n="nav_services">Servicios</a></li> | |
| <li><a href="blog.html" class="footer-link" data-i18n="nav_blog">Blog</a></li> | |
| <li><a href="#contact" class="footer-link" data-i18n="nav_contact">Contacto</a></li> | |
| <li><a href="about.html" class="footer-link subtle-link" data-i18n="nav_about">Sobre M铆</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-column"> | |
| <h4 class="footer-title" data-i18n="footer_services">Servicios</h4> | |
| <ul class="footer-links"> | |
| <li><a href="#services" class="footer-link" data-i18n="service1_title">Traducci贸n</a></li> | |
| <li><a href="#services" class="footer-link" data-i18n="service2_title">Transcripci贸n</a></li> | |
| <li><a href="#services" class="footer-link" data-i18n="service3_title">Subtitulaci贸n</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="footer-bottom"> | |
| <div class="footer-bottom-container"> | |
| <p class="copyright"> | |
| © <span id="currentYear"></span> <span data-i18n="footer_copyright">La Fragua del Logos. Todos los derechos reservados.</span> | |
| </p> | |
| <div class="legal-links"> | |
| <a href="privacy.html" class="legal-link" data-i18n="footer_privacy">Pol铆tica de Privacidad</a> | |
| <a href="terms.html" class="legal-link" data-i18n="footer_terms">T茅rminos</a> | |
| <a href="cookies.html" class="legal-link" data-i18n="footer_cookies">Cookies</a> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| document.getElementById('currentYear').textContent = new Date().getFullYear(); | |
| feather.replace(); | |
| </script> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |