Alexander1337's picture
<!DOCTYPE html>
99a0edc verified
class FooterComponent extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
margin-top: auto;
}
footer {
background: #1e293b;
color: #cbd5e1;
padding: 3rem 0 2rem;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.footer-section h3 {
color: white;
margin-bottom: 1.5rem;
font-size: 1.3rem;
}
.footer-section p {
margin-bottom: 1rem;
line-height: 1.6;
}
.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.social-links a {
display: inline-flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
border-radius: 50%;
color: white;
transition: transform 0.2s, box-shadow 0.2s;
text-decoration: none;
font-size: 24px;
}
.social-links a:hover {
transform: scale(1.2);
}
.social-links .tiktok {
background: #010101;
}
.social-links .facebook {
background: #1877F2;
}
.social-links .youtube {
background: #FF0000;
}
.social-links .instagram {
background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.footer-bottom {
text-align: center;
padding-top: 2rem;
margin-top: 2rem;
border-top: 1px solid #334155;
color: #94a3b8;
font-size: 0.9rem;
}
@media (max-width: 768px) {
.footer-content {
grid-template-columns: 1fr;
}
}
</style>
<footer>
<div class="footer-content">
<div class="footer-section">
<h3>Om oss</h3>
<p>Vi skapar fantastiska digitala upplevelser med fokus på användarvänlighet och modern design.</p>
<div class="social-links">
<a href="https://www.tiktok.com/@ptalexanderadolfsson?lang=sv-SE" target="_blank" class="tiktok">
<i class="fab fa-tiktok"></i>
</a>
<a href="https://www.facebook.com/profile.php?id=61583938018630" target="_blank" class="facebook">
<i class="fab fa-facebook-f"></i>
</a>
<a href="https://www.youtube.com/@alexanderadolfsson9295" target="_blank" class="youtube">
<i class="fab fa-youtube"></i>
</a>
<a href="https://www.instagram.com/ptalexadolfsson/" target="_blank" class="instagram">
<i class="fab fa-instagram"></i>
</a>
</div>
</div>
<div class="footer-section">
<h3>Kontakt</h3>
<p><i data-feather="map-pin"></i> Stockholm, Sverige</p>
<p><i data-feather="mail"></i> info@minhemsida.se</p>
<p><i data-feather="phone"></i> +46 8 123 456</p>
</div>
<div class="footer-section">
<h3>Nyhetsbrev</h3>
<p>Prenumerera på vårt nyhetsbrev för de senaste uppdateringarna.</p>
<form>
<input type="email" placeholder="Din e-post" class="w-full px-4 py-2 rounded-lg mb-2 text-gray-800">
<button type="submit" class="w-full bg-indigo-600 text-white py-2 rounded-lg hover:bg-indigo-700 transition">Prenumerera</button>
</form>
</div>
</div>
<div class="footer-bottom">
<p>Alexander Adolfsson Coaching | Hem | Om mig | Tjänster | Priser | Boka | Galleri | Kontakt</p>
<p>📸 Instagram: <a href="https://www.instagram.com/ptalexadolfsson/" target="_blank">@ptalexadolfsson</a> | 🎵 TikTok: <a href="https://www.tiktok.com/@ptalexanderadolfsson?lang=sv-SE" target="_blank">@ptalexanderadolfsson</a> | 📘 Facebook: <a href="https://www.facebook.com/profile.php?id=61583938018630" target="_blank">Alexander Adolfsson</a> | ▶️ YouTube: <a href="https://www.youtube.com/@alexanderadolfsson9295" target="_blank">Alexander Adolfsson</a></p>
<p>&copy; 2026 Alexander Adolfsson Coaching. Alla rättigheter reserverade.</p>
</div>
</footer>
`;
}
}
customElements.define('footer-component', FooterComponent);