Spaces:
Running
Running
File size: 3,021 Bytes
9ff6a28 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
margin-top: 4rem;
}
footer {
background: rgba(17, 24, 39, 0.9);
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding: 2rem 0;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
.footer-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
}
.footer-logo {
display: flex;
align-items: center;
gap: 0.75rem;
font-weight: 700;
font-size: 1.25rem;
background: linear-gradient(90deg, #3b82f6, #8b5cf6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.footer-links {
display: flex;
gap: 2rem;
flex-wrap: wrap;
justify-content: center;
}
.footer-links a {
color: #9ca3af;
text-decoration: none;
transition: color 0.3s ease;
}
.footer-links a:hover {
color: #3b82f6;
}
.copyright {
color: #6b7280;
text-align: center;
font-size: 0.875rem;
}
@media (max-width: 768px) {
.footer-links {
gap: 1rem;
}
}
</style>
<footer>
<div class="container">
<div class="footer-content">
<div class="footer-logo">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M11.767 19.089c4.924.868 6.14-6.025 1.216-6.894m-1.216 6.894L5.86 18.047m5.908 1.042-.347 1.97m1.563-8.864c4.924.869 6.14-6.025 1.215-6.893m-1.215 6.893-3.94-.695m5.155-6.2-.347-1.97m-5.807 4.048c4.924.868 6.14-6.026 1.215-6.894m-1.215 6.894L5.86 5.953m5.908-1.042-.347-1.97M7.48 9.855c-4.924-.868-6.14 6.026-1.215 6.894m1.215-6.894l5.908 1.042m-5.908-1.042-.347 1.97"/>
</svg>
Bitcoin Transfer Pro
</div>
<div class="footer-links">
<a href="#">Documentation</a>
<a href="#">API Reference</a>
<a href="#">Security</a>
<a href="#">Privacy Policy</a>
<a href="#">Terms of Service</a>
</div>
<div class="copyright">
© 2023 Bitcoin Transfer Pro. All rights reserved. Securely transfer your Bitcoin assets.
</div>
</div>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter); |