RefreshBytes's picture
Please make a website for learning Japanese that is interactive with lots of animations that make it easy and not boring quickly using HTML, CSS, JS code.
9e01f6f verified
Raw History Blame Contribute Delete
2.56 kB
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
color: white;
padding: 3rem 2rem;
text-align: center;
margin-top: auto;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
}
.footer-links {
display: flex;
justify-content: center;
gap: 2rem;
margin-bottom: 2rem;
flex-wrap: wrap;
}
.footer-links a {
color: #cbd5e0;
text-decoration: none;
transition: color 0.3s ease;
}
.footer-links a:hover {
color: white;
}
.social-links {
display: flex;
justify-content: center;
gap: 1rem;
margin-bottom: 2rem;
}
.social-links a {
color: #cbd5e0;
transition: all 0.3s ease;
padding: 0.5rem;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
}
.social-links a:hover {
color: white;
background: rgba(255, 255, 255, 0.2);
transform: translateY(-2px);
}
.copyright {
color: #718096;
font-size: 0.875rem;
}
.ninja-message {
font-style: italic;
color: #ec4899;
margin-top: 1rem;
}
</style>
<footer>
<div class="footer-content">
<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="instagram"></i></a>
</div>
<div class="footer-links">
<a href="/about.html">About</a>
<a href="/contact.html">Contact</a>
<a href="/privacy.html">Privacy</a>
<a href="/terms.html">Terms</a>
</div>
<p class="copyright">
&copy; 2024 Nihongo Ninja Dojo. All rights reserved.
</p>
<p class="ninja-message">
頑張って!(Ganbatte! - Keep going!)
</p>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);