summaryrefslogtreecommitdiff
path: root/src/components/Footer.astro
blob: 2a5307e9ea1a9f13a87fa55f9acad0a82155c593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
import translate from '$i18n/translate';
import tSite from '$i18n/translations/site';
import getLocaleFromPath from '$lib/getLocaleFromPath';
import Button from './Button.astro';

const locale = getLocaleFromPath(Astro.url.pathname);
const t = translate(locale);
---

<footer>
  <Button layoutClasses="grid-span-3 grid-end" href="#top">
    ▴ {t(tSite, { key: 'back-to-top' })}
  </Button>
</footer>