learncode's picture
navigation links ot working like about, coaching and all
cc63908 verified
Raw History Blame Contribute Delete
6.92 kB
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
background-color: #0F172A;
color: white;
padding: 3rem 0;
}
.footer-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 3rem;
}
.footer-logo {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 1rem;
display: flex;
align-items: center;
}
.footer-logo-chess {
color: #D4AF37;
margin-right: 0.5rem;
}
.footer-about {
max-width: 300px;
}
.footer-heading {
font-size: 1.2rem;
font-weight: 600;
margin-bottom: 1.5rem;
color: #D4AF37;
}
.footer-links {
display: flex;
flex-direction: column;
gap: 0.8rem;
}
.footer-link {
color: #E2E8F0;
text-decoration: none;
transition: color 0.3s;
}
.footer-link:hover {
color: #D4AF37;
}
.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.social-link {
width: 40px;
height: 40px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s;
}
.social-link:hover {
background-color: #D4AF37;
transform: translateY(-3px);
}
.footer-bottom {
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
flex-direction: column;
gap: 1rem;
text-align: center;
font-size: 0.9rem;
color: #94A3B8;
}
@media (max-width: 768px) {
.footer-content {
grid-template-columns: 1fr;
}
}
</style>
<div class="footer-container">
<div class="footer-content">
<div class="footer-about">
<div class="footer-logo">
<span class="footer-logo-chess">♟️</span> Chess Titans
</div>
<p>Transforming chess players into champions through personalized coaching and proven strategies.</p>
<div class="social-links">
<a href="#" class="social-link">
<i data-feather="facebook"></i>
</a>
<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="youtube"></i>
</a>
</div>
</div>
<div>
<h3 class="footer-heading">Quick Links</h3>
<div class="footer-links">
<a href="index.html" class="footer-link">Home</a>
<a href="about.html" class="footer-link">About Us</a>
<a href="coaching.html" class="footer-link">Coaching Programs</a>
<a href="courses.html" class="footer-link">Online Courses</a>
<a href="resources.html" class="footer-link">Free Resources</a>
<a href="contact.html" class="footer-link">Contact Us</a>
</div>
</div>
<div>
<h3 class="footer-heading">Courses</h3>
<div class="footer-links">
<a href="#" class="footer-link">Beginner's Guide</a>
<a href="#" class="footer-link">Intermediate Tactics</a>
<a href="#" class="footer-link">Advanced Strategy</a>
<a href="#" class="footer-link">Endgame Mastery</a>
<a href="#" class="footer-link">Tournament Preparation</a>
</div>
</div>
<div>
<h3 class="footer-heading">Contact</h3>
<div class="footer-links">
<a href="mailto:coach@chesstitans.com" class="footer-link">coach@chesstitans.com</a>
<a href="tel:+11234567890" class="footer-link">+1 (123) 456-7890</a>
<p>123 Chess Avenue<br>New York, NY 10001</p>
</div>
</div>
</div>
<div class="footer-bottom">
<p>&copy; ${new Date().getFullYear()} Chess Titans. All rights reserved.</p>
<div>
<a href="#" class="footer-link">Privacy Policy</a> |
<a href="#" class="footer-link">Terms of Service</a>
</div>
</div>
</div>
`;
}
}
customElements.define('custom-footer', CustomFooter);