website/src/lib/Footer.svelte

76 lines
1.3 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";
import * as global from "../i18n/_global.json";
2022-06-22 12:27:47 +05:30
import { t } from "$lib/translations";
</script>
<footer>
<hr />
<div class="content">
2022-06-22 12:27:47 +05:30
<span>{$t("common.FOOTER_COPYRIGHT")}</span>
<div class="links">
<a href={global.MATRIX_INVITE}>
<IconMatrix />
</a>
<a href={global.DISCORD_INVITE}>
<IconDiscord />
</a>
<a href={global.GITHUB}>
<IconGitHub />
</a>
<a href={global.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>