From 20d185adb7f7926445a84b369270f7a3e0570838 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita Date: Thu, 16 Apr 2026 22:20:09 +0300 Subject: [PATCH] update footer --- public/images/email.svg | 1 + public/images/github-outline-7.svg | 1 + src/components/BuildHashBlocks.astro | 11 +++- src/components/Footer.astro | 88 +++++++++++++++++++++++++--- src/i18n/en.ts | 2 +- src/i18n/zh.ts | 2 +- 6 files changed, 91 insertions(+), 14 deletions(-) create mode 100644 public/images/email.svg create mode 100644 public/images/github-outline-7.svg diff --git a/public/images/email.svg b/public/images/email.svg new file mode 100644 index 0000000..cd78d4f --- /dev/null +++ b/public/images/email.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/github-outline-7.svg b/public/images/github-outline-7.svg new file mode 100644 index 0000000..2ab205c --- /dev/null +++ b/public/images/github-outline-7.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/BuildHashBlocks.astro b/src/components/BuildHashBlocks.astro index c6f703d..5c0a4ac 100644 --- a/src/components/BuildHashBlocks.astro +++ b/src/components/BuildHashBlocks.astro @@ -20,6 +20,7 @@ const blocks: string[] = Array.from({ length: blockCount }, (_, i) => { title={`Build ${safeHash}`} aria-label={`Build ${safeHash}`} > +
Astro Build
{ blocks.map((color: string) => ( @@ -28,15 +29,19 @@ const blocks: string[] = Array.from({ length: blockCount }, (_, i) => { diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 0836412..df7648d 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -7,19 +7,79 @@ const t = getTranslations(lang); ---
-

-

+ + +

+ + + - {commit.slice(0, 7)}
diff --git a/src/i18n/en.ts b/src/i18n/en.ts index d294470..69350fa 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -43,7 +43,7 @@ export default { '· Parsifal\'s Blog', "· And some other websites whose names I have unfortunately forgotten", "Thank you for your ideas and passion!", - "In addition, this blog is fully open source. You can find its source code through the link in the footer.", + "In addition, this blog is open source under MIT License. You can find its source code through the link in the footer.", ] }, tags: { diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts index 593d874..b0b72fc 100644 --- a/src/i18n/zh.ts +++ b/src/i18n/zh.ts @@ -43,7 +43,7 @@ export default { '· Parsifal\'s Blog', "· 还有一些已经忘记名字的网站", "谢谢你们的想法和热情!", - "此外,这个博客完全开源,你可以从页脚的链接处获取它的源代码。", + "此外,这个博客的源码使用 MIT 协议开源,你可以从页脚的链接处获取它的源代码。", ] }, tags: {