Spaces:
Running
Running
File size: 2,268 Bytes
93cbe09 |
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 100 |
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
footer {
background-color: #0f172a;
color: #cbd5e1;
padding: 4rem 1rem 2rem;
}
.container {
max-width: 1280px;
margin: 0 auto;
}
.footer-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}
.footer-logo {
display: flex;
align-items: center;
gap: 0.75rem;
font-weight: 700;
font-size: 1.5rem;
color: white;
margin-bottom: 1rem;
text-decoration: none;
}
.footer-description {
color: #94a3b8;
margin-bottom: 1.5rem;
max-width: 300px;
}
.social-links {
display: flex;
gap: 1rem;
}
.social-link {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: #1e293b;
color: #cbd5e1;
transition: all 0.2s;
}
.social-link:hover {
background-color: #2563eb;
color: white;
transform: translateY(-2px);
}
.footer-heading {
color: white;
font-weight: 600;
margin-bottom: 1.5rem;
font-size: 1.125rem;
}
.footer-links {
list-style: none;
}
.footer-link {
margin-bottom: 0.75rem;
}
.footer-link a {
color: #94a3b8;
text-decoration: none;
transition: color 0.2s;
}
.footer-link a:hover {
color: #2563eb;
}
.copyright {
border-top: 1px solid #1e293b |