Spaces:
Running
Running
Build a modern, minimalistic website that acts as a directory for AI-generated image prompt components and their corresponding output images.
c00d809 verified | class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| margin-top: 4rem; | |
| } | |
| footer { | |
| background: rgba(255, 255, 255, 0.8); | |
| backdrop-filter: blur(10px); | |
| border-top: 1px solid rgba(0, 0, 0, 0.05); | |
| padding: 2rem 0; | |
| } | |
| .dark footer { | |
| background: rgba(15, 15, 15, 0.8); | |
| border-top: 1px solid rgba(255, 255, 255, 0.05); | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 1rem; | |
| } | |
| .footer-content { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 1.5rem; | |
| } | |
| .ascii-divider { | |
| font-family: monospace; | |
| letter-spacing: -0.2em; | |
| opacity: 0.3; | |
| } | |
| .footer-links { | |
| display: flex; | |
| gap: 1.5rem; | |
| } | |
| .footer-links a { | |
| color: #6b7280; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .dark .footer-links a { | |
| color: #9ca3af; | |
| } | |
| .footer-links a:hover { | |
| color: #111827; | |
| } | |
| .dark .footer-links a:hover { | |
| color: #f9fafb; | |
| } | |
| .copyright { | |
| color: #9ca3af; | |
| font-size: 0.875rem; | |
| } | |
| .dark .copyright { | |
| color: #6b7280; | |
| } | |
| </style> | |
| <footer> | |
| <div class="container"> | |
| <div class="footer-content"> | |
| <div class="ascii-divider">+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+</div> | |
| <div class="footer-links"> | |
| <a href="#">Terms</a> | |
| <a href="#">Privacy</a> | |
| <a href="#">Contact</a> | |
| <a href="#">GitHub</a> | |
| </div> | |
| <div class="copyright">© 2023 PromptForge. All rights reserved.</div> | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |