summaryrefslogtreecommitdiff
path: root/src/components/Footer.astro
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-31 10:28:09 +0100
committerGitHub <noreply@github.com>2023-08-31 10:28:09 +0100
commit244fda8c63356bfcc19a0ea437edf36458e4bc9b (patch)
treea54fe436f4d71cd9d735f34b4f7b8829b1af4456 /src/components/Footer.astro
parent73bbbe8307f9474e751236a44db2dcc6924c5035 (diff)
parent5bfb00f6cdbb369d834dbe27d213d80a821f8036 (diff)
Merge pull request #4 from Sycamost/dev
Changes site to scotsleidassocie.org
Diffstat (limited to 'src/components/Footer.astro')
-rw-r--r--src/components/Footer.astro13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/components/Footer.astro b/src/components/Footer.astro
index 62b3b82..40fdddb 100644
--- a/src/components/Footer.astro
+++ b/src/components/Footer.astro
@@ -1,6 +1,6 @@
---
import translate from '$i18n/translate';
-import tSite from '$i18n/translations/site';
+import tComponent from '$i18n/translations/components/footer';
import { getLocaleFromPathOrDefault } from '$lib/getLocaleFromPath';
import Button from './Button.astro';
@@ -9,7 +9,14 @@ const t = translate(locale);
---
<footer>
- <Button layoutClasses="grid-span-3 grid-end" href="#top">
- ▲ {t(tSite, { key: 'back-to-top' })}
+ <a href={`/${locale}/rss.xml`} class="footer__rss-button">
+ <span class="footer__rss-button__label">
+ {t(tComponent, { key: 'subscribe-to-rss' })}
+ </span>
+ <img class="footer__rss-button__img" src="/images/rss.svg" />
+ </a>
+
+ <Button classNames="footer__back-to-top" href="#top">
+ ▲ {t(tComponent, { key: 'back-to-top' })}
</Button>
</footer>