summaryrefslogtreecommitdiff
path: root/src/components/Footer.astro
diff options
context:
space:
mode:
authorseth <[email protected]>2024-10-09 10:59:13 -0400
committerGitHub <[email protected]>2024-10-09 10:59:13 -0400
commitd17bca56238e9ca326d60e58230d0d354f23bfe8 (patch)
tree12aee4c37a1490914e6307ce1b0023be2df93105 /src/components/Footer.astro
parent7d6495399d5e1ba429a339de1c3a00f121e89305 (diff)
back to astro for hopefully the last time (#146)
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>