blake4john3000's picture
can you add a blog page
2edf356 verified
Raw History Blame Contribute Delete
4.12 kB
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background: rgba(15, 23, 42, 0.9);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
color: white;
padding: 3rem 2rem;
border-top: 1px solid rgba(59, 130, 246, 0.2);
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
}
.footer-logo {
background: linear-gradient(90deg, #3b82f6 0%, #ef4444 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
font-weight: bold;
font-size: 1.5rem;
margin-bottom: 1rem;
display: inline-block;
}
.footer-links h3 {
color: #93c5fd;
margin-bottom: 1rem;
font-weight: 600;
}
.footer-links ul {
list-style: none;
padding: 0;
margin: 0;
}
.footer-links li {
margin-bottom: 0.5rem;
}
.footer-links a {
color: #e2e8f0;
text-decoration: none;
transition: color 0.2s;
}
.footer-links a:hover {
color: #3b82f6;
}
.social-icons {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.social-icons a {
color: white;
transition: color 0.2s, transform 0.2s;
}
.social-icons a:hover {
color: #3b82f6;
transform: translateY(-2px);
}
.copyright {
text-align: center;
margin-top: 3rem;
padding-top: 1.5rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
color: #94a3b8;
font-size: 0.875rem;
}
@media (max-width: 768px) {
.footer-content {
grid-template-columns: 1fr;
}
}
</style>
<footer>
<div class="footer-content">
<div class="footer-links">
<div class="footer-logo">BidelTech</div>
<p>Empowering the next generation of developers with cutting-edge education.</p>
<div class="social-icons">
<a href="#"><i data-feather="twitter"></i></a>
<a href="#"><i data-feather="github"></i></a>
<a href="#"><i data-feather="linkedin"></i></a>
<a href="#"><i data-feather="youtube"></i></a>
</div>
</div>
<div class="footer-links">
<h3>Courses</h3>
<ul>
<li><a href="#">Web Development</a></li>
<li><a href="#">Mobile Development</a></li>
<li><a href="#">Data Science</a></li>
<li><a href="#">Cyber Security</a></li>
<li><a href="#">Cloud Computing</a></li>
</ul>
</div>
<div class="footer-links">
<h3>Company</h3>
<ul>
<li><a href="/about.html">About Us</a></li>
<li><a href="#">Careers</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Press</a></li>
</ul>
</div>
<div class="footer-links">
<h3>Support</h3>
<ul>
<li><a href="/contact.html">Contact</a></li>
<li><a href="#">FAQ</a></li>
<li><a href="#">Help Center</a></li>
<li><a href="#">Community</a></li>
</ul>
</div>
</div>
<div class="copyright">
&copy; ${new Date().getFullYear()} BidelTech Code Academy. All rights reserved.
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);