wellnesswave / components /footer.js
SEVAQWERTY's picture
добавь пайтон код
831fdd1 verified
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
}
.footer {
background-color: #1f2937;
color: #d1d5db;
padding: 4rem 0 2rem;
border-top: 1px solid #374151;
}
.footer-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
.footer-grid {
display: grid;
grid-template-columns: repeat(1, 1fr);
gap: 2rem;
margin-bottom: 3rem;
}
@media (min-width: 768px) {
.footer-grid {
grid-template-columns: repeat(4, 1fr);
}
}
.footer-col h3 {
color: #0d9488;
margin-bottom: 1.5rem;
font-size: 1.25rem;
font-weight: 600;
}
.footer-links {
list-style: none;
padding: 0;
}
.footer-links li {
margin-bottom: 0.75rem;
}
.footer-links a {
color: #9ca3af;
text-decoration: none;
transition: color 0.3s ease;
}
.footer-links a:hover {
color: #0d9488;
}
.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.social-link {
display: flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
background-color: #374151;
color: #d1d5db;
transition: all 0.3s ease;
}
.social-link:hover {
background-color: #0d9488;
transform: translateY(-3px);
}
.copyright {
text-align: center;
padding-top: 2rem;
border-top: 1px solid #374151;
color: #9ca3af;
font-size: 0.875rem;
}
.newsletter-form {
display: flex;
margin-top: 1rem;
}
.newsletter-form input {
flex: 1;
padding: 0.5rem 1rem;
border: 1px solid #4b5563;
border-radius: 4px 0 0 4px;
background-color: #111827;
color: #f3f4f6;
}
.newsletter-form button {
background-color: #0d9488;
color: white;
border: none;
padding: 0 1rem;
border-radius: 0 4px 4px 0;
cursor: pointer;
transition: background-color 0.3s ease;
}
.newsletter-form button:hover {
background-color: #0f766e;
}
</style>
<footer class="footer">
<div class="footer-container">
<div class="footer-grid">
<div class="footer-col">
<h3>WellnessWave</h3>
<p>Your journey to holistic health and wellness starts here. Personalized plans, expert guidance, and community support.</p>
<div class="social-links">
<a href="#" class="social-link">
<i data-feather="facebook" class="w-4 h-4"></i>
</a>
<a href="#" class="social-link">
<i data-feather="instagram" class="w-4 h-4"></i>
</a>
<a href="#" class="social-link">
<i data-feather="twitter" class="w-4 h-4"></i>
</a>
<a href="#" class="social-link">
<i data-feather="youtube" class="w-4 h-4"></i>
</a>
</div>
</div>
<div class="footer-col">
<h3>Services</h3>
<ul class="footer-links">
<li><a href="#">Nutrition Plans</a></li>
<li><a href="#">Fitness Programs</a></li>
<li><a href="#">Mental Wellness</a></li>
<li><a href="#">Health Coaching</a></li>
<li><a href="#">Corporate Wellness</a></li>
</ul>
</div>
<div class="footer-col">
<h3>Resources</h3>
<ul class="footer-links">
<li><a href="#">Blog</a></li>
<li><a href="#">Success Stories</a></li>
<li><a href="#">Wellness Tips</a></li>
<li><a href="#">Nutrition Guides</a></li>
<li><a href="#">Workout Plans</a></li>
</ul>
</div>
<div class="footer-col">
<h3>Newsletter</h3>
<p>Subscribe to get health tips and wellness inspiration</p>
<form class="newsletter-form">
<input type="email" placeholder="Your email" required>
<button type="submit">
<i data-feather="send" class="w-4 h-4"></i>
</button>
</form>
</div>
</div>
<div class="copyright">
<p>&copy; 2023 WellnessWave. All rights reserved. Designed with <i data-feather="heart" class="w-4 h-4 text-red-500 inline"></i> for your health.</p>
</div>
</div>
</footer>
`;
// Initialize Feather icons
feather.replace();
}
}
customElements.define('custom-footer', CustomFooter);