summaryrefslogtreecommitdiff
path: root/src/components/Footer.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Footer.astro')
-rw-r--r--src/components/Footer.astro25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/components/Footer.astro b/src/components/Footer.astro
new file mode 100644
index 0000000..1eaed7e
--- /dev/null
+++ b/src/components/Footer.astro
@@ -0,0 +1,25 @@
+---
+const commitSha =
+ import.meta.env.CF_PAGES_COMMIT_SHA || import.meta.env.COMMIT_SHA;
+const repositoryUrl = "https://github.com/getchoo/website";
+---
+
+<footer>
+ {
+ commitSha && (
+ <p>
+ Site version
+ <a href={`${repositoryUrl}/commit/${commitSha}`}>
+ {commitSha.substring(0, 7)}
+ </a>
+ .
+ </p>
+ )
+ }
+ <p>Content is All Rights Reserved.</p>
+ <p>
+ The <a href={repositoryUrl}>source code</a> is available under the <a
+ href="https://spdx.org/licenses/MIT.html">MIT License</a
+ >.
+ </p>
+</footer>