From 1a3fe6bb26d6af9d02ac6f034b7b9c032af084d3 Mon Sep 17 00:00:00 2001 From: Erzbir Date: Thu, 9 Apr 2026 14:18:03 +0800 Subject: [PATCH] feat: support friends page --- i18n/default.properties | 1 + i18n/en.properties | 1 + i18n/es.properties | 1 + i18n/zh_CN.properties | 1 + i18n/zh_TW.properties | 1 + src/styles/friends.scss | 28 ++++++++++++++++++++++ src/styles/style.scss | 3 ++- templates/friends.html | 53 +++++++++++++++++++++++++++++++++++++++++ 8 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 src/styles/friends.scss create mode 100644 templates/friends.html diff --git a/i18n/default.properties b/i18n/default.properties index 751f42a..2d06dd1 100644 --- a/i18n/default.properties +++ b/i18n/default.properties @@ -5,6 +5,7 @@ page.tags.title=Tags page.tag.title=Tag page.categories.title=Categories page.category.title=Category +page.friends.title=Friends page.pagination.prev=Prev page.pagination.next=Next page.post.more=READ MORE diff --git a/i18n/en.properties b/i18n/en.properties index 751f42a..2d06dd1 100644 --- a/i18n/en.properties +++ b/i18n/en.properties @@ -5,6 +5,7 @@ page.tags.title=Tags page.tag.title=Tag page.categories.title=Categories page.category.title=Category +page.friends.title=Friends page.pagination.prev=Prev page.pagination.next=Next page.post.more=READ MORE diff --git a/i18n/es.properties b/i18n/es.properties index d6312cf..f710dcc 100644 --- a/i18n/es.properties +++ b/i18n/es.properties @@ -5,6 +5,7 @@ page.tags.title=Etiquetas page.tag.title=Etiqueta page.categories.title=Categorías page.category.title=Categoría +page.friends.title=Amigos page.pagination.prev=Anterior page.pagination.next=Siguiente page.post.more=LEER MÁS diff --git a/i18n/zh_CN.properties b/i18n/zh_CN.properties index 44e594b..f919bd3 100644 --- a/i18n/zh_CN.properties +++ b/i18n/zh_CN.properties @@ -5,6 +5,7 @@ page.tags.title=标签 page.tag.title=标签 page.categories.title=分类 page.category.title=分类 +page.friends.title=朋友 page.pagination.prev=上一页 page.pagination.next=下一页 page.post.more=阅读更多 diff --git a/i18n/zh_TW.properties b/i18n/zh_TW.properties index 80d8c7e..144d96b 100644 --- a/i18n/zh_TW.properties +++ b/i18n/zh_TW.properties @@ -5,6 +5,7 @@ page.tags.title=標籤 page.tag.title=標籤 page.categories.title=分類 page.category.title=分類 +page.friends.title=朋友 page.pagination.prev=上一頁 page.pagination.next=下一頁 page.post.more=閱讀更多 diff --git a/src/styles/friends.scss b/src/styles/friends.scss new file mode 100644 index 0000000..6a27707 --- /dev/null +++ b/src/styles/friends.scss @@ -0,0 +1,28 @@ +.friend-post-list { + padding: 0; +} + +.friend-post-title { + margin-bottom: calc(var(--size-theme-font) * .3125); + padding: 0; +} + +.friend-post-meta { + margin-bottom: calc(var(--size-theme-font) * .3125); + padding: 0; +} + +.friend-author { + display: inline-flex; + align-items: center; + gap: calc(var(--size-theme-font) * 0.35); + color: var(--color-theme-meta); + text-decoration: none; +} + +.friend-post-desc { + margin: 0; + padding: 0; + color: var(--color-theme-foreground); + font-size: calc(var(--size-theme-font) * 0.875); +} \ No newline at end of file diff --git a/src/styles/style.scss b/src/styles/style.scss index 12ccdb2..cc1d73b 100644 --- a/src/styles/style.scss +++ b/src/styles/style.scss @@ -14,4 +14,5 @@ @use "theme"; @use "toc"; @use "sns"; -@use "typed-text"; \ No newline at end of file +@use "typed-text"; +@use "friends"; \ No newline at end of file diff --git a/templates/friends.html b/templates/friends.html new file mode 100644 index 0000000..64b0bf0 --- /dev/null +++ b/templates/friends.html @@ -0,0 +1,53 @@ + + + + + + + + \ No newline at end of file