website/src/lib/Footer.svelte

75 lines
1.2 KiB
Svelte
Raw Normal View History

<script>
import IconDiscord from "~icons/simple-icons/discord";
import IconMatrix from "~icons/simple-icons/matrix";
import IconGitHub from "~icons/simple-icons/github";
import IconSignal from "~icons/fa6-solid/signal";
2022-06-19 19:30:18 +05:30
import * as strings from "$lib/strings";
</script>
<footer>
<hr />
<div class="content">
2022-06-19 19:30:18 +05:30
<span>{strings.COPYRIGHT}</span>
<div class="links">
2022-06-19 19:30:18 +05:30
<a href={strings.MATRIX_INVITE}>
<IconMatrix />
</a>
2022-06-19 19:30:18 +05:30
<a href={strings.DISCORD_INVITE}>
<IconDiscord />
</a>
2022-06-19 19:30:18 +05:30
<a href={strings.GITHUB}>
<IconGitHub />
</a>
2022-06-19 19:30:18 +05:30
<a href={strings.STATUS}>
<IconSignal />
</a>
</div>
</div>
</footer>
<style>
footer {
padding: 1rem;
display: flex;
flex-direction: column;
font-size: 20px;
position: absolute;
bottom: 0;
width: calc(100vw - 2rem);
}
hr {
color: var(--accent-primary);
width: 100%;
margin-left: 0;
}
div.content {
display: flex;
justify-content: space-between;
}
div.links {
display: flex;
gap: 12px;
margin-left: 8px;
}
.links a {
text-decoration: none;
}
@media only screen and (max-width: 500px) {
.content {
display: flex;
flex-direction: column;
gap: 8px;
}
div.links {
margin-left: 0;
}
}
</style>