File size: 4,513 Bytes
2d0df50 |
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 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
background-color: #020617;
color: #94a3b8;
padding: 3rem 0;
border-top: 1px solid rgba(109, 40, 217, 0.2);
}
.footer-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.footer-logo {
font-family: 'Space Grotesk', sans-serif;
font-weight: 700;
font-size: 1.5rem;
color: white;
margin-bottom: 1rem;
display: inline-block;
}
.footer-highlight {
color: #6d28d9;
}
.footer-about p {
margin-bottom: 1.5rem;
line-height: 1.6;
}
.footer-links h3 {
color: white;
margin-bottom: 1.5rem;
font-size: 1.2rem;
}
.footer-links ul {
list-style: none;
padding: 0;
}
.footer-links li {
margin-bottom: 0.75rem;
}
.footer-links a {
color: #94a3b8;
text-decoration: none;
transition: color 0.3s ease;
}
.footer-links a:hover {
color: #6d28d9;
}
.social-links {
display: flex;
gap: 1rem;
margin-top: 1.5rem;
}
.social-link {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: rgba(109, 40, 217, 0.1);
color: #94a3b8;
transition: all 0.3s ease;
}
.social-link:hover {
background-color: #6d28d9;
color: white;
transform: translateY(-3px);
}
.copyright {
text-align: center;
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid rgba(109, 40, 217, 0.2);
font-size: 0.9rem;
}
@media (max-width: 768px) {
.footer-container {
grid-template-columns: 1fr;
}
}
</style>
<div class="footer-container">
<div class="footer-about">
<a href="#hero" class="footer-logo">
<span class="footer-highlight">Quantum</span>Coder
</a>
<p>Building intelligent systems that understand and generate human language.</p>
<div class="social-links">
<a href="#" class="social-link">
<i data-feather="github"></i>
</a>
<a href="#" class="social-link">
<i data-feather="linkedin"></i>
</a>
<a href="#" class="social-link">
<i data-feather="twitter"></i>
</a>
<a href="#" class="social-link">
<i data-feather="mail"></i>
</a>
</div>
</div>
<div class="footer-links">
<h3>Quick Links</h3>
<ul>
<li><a href="#about">About Me</a></li>
<li><a href="#skills">Skills</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
<div class="footer-links">
<h3>Technologies</h3>
<ul>
<li><a href="#">Machine Learning</a></li>
<li><a href="#">Large Language Models</a></li>
<li><a href="#">Natural Language Processing</a></li>
<li><a href="#">Software Development</a></li>
</ul>
</div>
<div class="footer-links">
<h3>Contact Info</h3>
<ul>
<li><a href="mailto:hello@quantumcoder.com">hello@quantumcoder.com</a></li>
<li><a href="#">San Francisco, CA</a></li>
<li><a href="#">Available for freelance</a></li>
</ul>
</div>
</div>
<div class="copyright">
© ${new Date().getFullYear()} Quantum Coder. All rights reserved.
</div>
`;
}
}
customElements.define('custom-footer', CustomFooter); |