Wayz22's picture
<!DOCTYPE html>
c3c8feb verified
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background: #1a202c;
color: white;
padding: 2rem;
text-align: center;
margin-top: auto;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
text-align: left;
}
.footer-section h3 {
font-size: 1.25rem;
margin-bottom: 1rem;
color: #f6e05e;
}
.footer-section ul {
list-style: none;
padding: 0;
margin: 0;
}
.footer-section li {
margin-bottom: 0.5rem;
}
.footer-section a {
color: #cbd5e0;
text-decoration: none;
transition: color 0.2s;
}
.footer-section a:hover {
color: #f6e05e;
}
.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.social-links a {
color: white;
background: #2d3748;
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.social-links a:hover {
background: #f6e05e;
color: #1a202c;
transform: translateY(-2px);
}
.copyright {
margin-top: 2rem;
padding-top: 2rem;
border-top: 1px solid #2d3748;
color: #a0aec0;
font-size: 0.875rem;
}
@media (max-width: 768px) {
.footer-content {
grid-template-columns: 1fr;
}
}
</style>
<footer>
<div class="footer-content">
<div class="footer-section">
<h3>Quacky Code Conjurer</h3>
<p>Making coding magical and ducky since 2024. Generate scripts with a quack!</p>
<div class="social-links">
<a href="#"><i data-feather="twitter"></i></a>
<a href="#"><i data-feather="github"></i></a>
<a href="#"><i data-feather="linkedin"></i></a>
</div>
</div>
<div class="footer-section">
<h3>Quick Links</h3>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/about.html">About</a></li>
<li><a href="/saved.html">Saved Scripts</a></li>
</ul>
</div>
<div class="footer-section">
<h3>Resources</h3>
<ul>
<li><a href="#">Documentation</a></li>
<li><a href="#">API Reference</a></li>
<li><a href="#">GitHub Repository</a></li>
</ul>
</div>
</div>
<div class="copyright">
<p>&copy; 2024 Quacky Code Conjurer. All rights reserved. Made with 🦆 and ❤️</p>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);