chore: extract header and footer

This commit is contained in:
Alexander Daichendt 2022-08-05 12:49:35 +02:00
parent cb856ad213
commit 5e5106d2cd
3 changed files with 153 additions and 128 deletions

View file

@ -0,0 +1,47 @@
<script context="module">
const year = new Date().getFullYear();
</script>
<script>
import { mdiCopyright } from '@mdi/js';
import Icon from 'mdi-svelte';
import Link from './Link.svelte';
</script>
<footer>
<!-- container class inherited from __layout-->
<div class="container">
<p>Copyright <Icon path={mdiCopyright} size="1rem" /> {year} Alexander Daichendt</p>
<div class="footerLinks">
<Link href="/cat">Meeeeeow</Link>
<Link href="/privacy">Privacy Policy</Link>
<Link href="/impressum">Impressum</Link>
<Link href="https://github.com/AlexDaichendt/site">Source</Link>
</div>
</div>
</footer>
<style>
footer {
background-color: var(--special-bg-color);
padding: 2rem;
margin-top: 4rem;
}
@media screen and (max-width: 500px) {
.footerLinks {
flex-direction: column;
}
}
.footerLinks {
display: flex;
justify-content: space-between;
}
:global(footer div a) {
color: var(--text-soft-color) !important;
}
:global(footer div a:hover) {
color: var(--light-color) !important;
}
</style>