world-game/src/components/layout/Footer.svelte

74 lines
1.3 KiB
Svelte
Raw Normal View History

<script>
import { siteStore } from '@stores/site'
$: siteTitle = $siteStore.title || 'World Game'
$: currentYear = new Date().getFullYear()
</script>
<footer class="footer">
<div class="footer__container">
<div class="footer__brand">
<p class="footer__title">{siteTitle}</p>
<p class="footer__tagline">Play to Engage</p>
</div>
<div class="footer__copyright">
<p>&copy; {currentYear} {siteTitle}. Tous droits réservés.</p>
</div>
</div>
</footer>
<style>
.footer {
background: #000;
color: #fff;
padding: 3rem 2rem 2rem;
margin-top: auto;
}
.footer__container {
max-width: 1400px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
gap: 2rem;
}
.footer__brand {
flex: 1;
}
.footer__title {
font-size: 1.5rem;
font-weight: 700;
margin: 0 0 0.5rem;
}
.footer__tagline {
color: #04fea0;
margin: 0;
font-size: 0.9rem;
}
.footer__copyright {
font-size: 0.85rem;
color: rgba(255, 255, 255, 0.6);
}
.footer__copyright p {
margin: 0;
}
@media (max-width: 768px) {
.footer__container {
flex-direction: column;
text-align: center;
}
.footer__copyright {
order: 2;
}
}
</style>