From facb2b0f99d63a45dfb21501f04d27a3976c2350 Mon Sep 17 00:00:00 2001 From: June Date: Wed, 19 Nov 2025 12:14:31 +1300 Subject: [PATCH] update post info to use border separators --- web/src/components/post/postInfo.astro | 32 ++++++++++++++-------- web/src/components/postList/postCard.astro | 15 +++++----- web/src/styles/global.css | 4 +++ 3 files changed, 31 insertions(+), 20 deletions(-) diff --git a/web/src/components/post/postInfo.astro b/web/src/components/post/postInfo.astro index 3566d75..4ebbbc4 100644 --- a/web/src/components/post/postInfo.astro +++ b/web/src/components/post/postInfo.astro @@ -3,15 +3,23 @@ import { getFormattedDate } from '@utils/date' const { publishDate, wordCount, readTime, tags } = Astro.props --- - | -{readTime} min. read | -{ - tags.map((tag, i) => ( - <> - - #{tag} - - {i < tags.length - 1 && ", "} - - )) -} \ No newline at end of file +
+ + + + + {readTime} min. read + + + + { + tags.map((tag, i) => ( + <> + + #{tag} + + {i < tags.length - 1 && ", "} + + )) + } +
diff --git a/web/src/components/postList/postCard.astro b/web/src/components/postList/postCard.astro index 20c2418..7f02979 100644 --- a/web/src/components/postList/postCard.astro +++ b/web/src/components/postList/postCard.astro @@ -22,14 +22,13 @@ const readTime = calcReadTime(wordCount);

{p.description}

} -
- -
+ + diff --git a/web/src/styles/global.css b/web/src/styles/global.css index 1045905..948b42d 100644 --- a/web/src/styles/global.css +++ b/web/src/styles/global.css @@ -56,6 +56,10 @@ } } +.tag-separator { + @apply border-l border-gray-400; +} + .content-panel { @apply w-full md:w-[68%] py-8 md:py-14 px-6 md:pl-10 md:pr-0; }