make the entire site blurry with transparency effects, add color picker. Overall it should be blurry
6245e6e
verified
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| background-color: rgba(15, 23, 42, 0.8); | |
| backdrop-filter: blur(10px); | |
| -webkit-backdrop-filter: blur(10px); | |
| color: white; | |
| padding: 3rem 1rem; | |
| } | |
| .footer-container { | |
| max-width: 1280px; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 2rem; | |
| } | |
| .footer-logo { | |
| display: flex; | |
| align-items: center; | |
| font-weight: 700; | |
| font-size: 1.25rem; | |
| color: white; | |
| margin-bottom: 1rem; | |
| } | |
| .footer-logo-icon { | |
| margin-right: 0.5rem; | |
| color: var(--primary-400); | |
| } | |
| .footer-description { | |
| color: var(--gray-400); | |
| margin-bottom: 1.5rem; | |
| line-height: 1.5; | |
| } | |
| .footer-heading { | |
| font-weight: 600; | |
| margin-bottom: 1rem; | |
| color: white; | |
| } | |
| .footer-links { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.75rem; | |
| } | |
| .footer-link { | |
| color: var(--gray-400); | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-link:hover { | |
| color: var(--primary-400); | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| margin-top: 1rem; | |
| } | |
| .social-link { | |
| color: var(--gray-400); | |
| transition: color 0.2s; | |
| } | |
| .social-link:hover { | |
| color: var(--primary-400); | |
| } | |
| .copyright { | |
| margin-top: 3rem; | |
| text-align: center; | |
| color: var(--gray-500); | |
| font-size: 0.875rem; | |
| } | |
| </style> | |
| <div class="footer-container"> | |
| <div> | |
| <div class="footer-logo"> | |
| <i data-feather="droplet" class="footer-logo-icon"></i> | |
| Pixel Palette | |
| </div> | |
| <p class="footer-description"> | |
| The ultimate color playground for designers and developers. Create, explore and share beautiful color palettes. | |
| </p> | |
| <div class="social-links"> | |
| <a href="#" class="social-link"><i data-feather="twitter"></i></a> | |
| <a href="#" class="social-link"><i data-feather="instagram"></i></a> | |
| <a href="#" class="social-link"><i data-feather="github"></i></a> | |
| <a href="#" class="social-link"><i data-feather="dribbble"></i></a> | |
| </div> | |
| </div> | |
| <div> | |
| <h4 class="footer-heading">Product</h4> | |
| <div class="footer-links"> | |
| <a href="#" class="footer-link">Features</a> | |
| <a href="#" class="footer-link">Pricing</a> | |
| <a href="#" class="footer-link">Examples</a> | |
| <a href="#" class="footer-link">Updates</a> | |
| </div> | |
| </div> | |
| <div> | |
| <h4 class="footer-heading">Resources</h4> | |
| <div class="footer-links"> | |
| <a href="#" class="footer-link">Documentation</a> | |
| <a href="#" class="footer-link">Tutorials</a> | |
| <a href="#" class="footer-link">Blog</a> | |
| <a href="#" class="footer-link">Support</a> | |
| </div> | |
| </div> | |
| <div> | |
| <h4 class="footer-heading">Company</h4> | |
| <div class="footer-links"> | |
| <a href="#" class="footer-link">About</a> | |
| <a href="#" class="footer-link">Careers</a> | |
| <a href="#" class="footer-link">Privacy</a> | |
| <a href="#" class="footer-link">Terms</a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| © ${new Date().getFullYear()} Pixel Palette Playground. All rights reserved. | |
| </div> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |