From 102fac4f11317ae31ceae01c7cc94d44984ab461 Mon Sep 17 00:00:00 2001 From: AderKonstantin Date: Wed, 26 Mar 2025 13:39:53 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20Enhance=20blog=20post=20UI?= =?UTF-8?q?=20and=20add=20icons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit introduces several improvements to the blog post UI: - Adds new icons for tags and calendar using SVG images - Refines the layout and styling of the blog post tags and publish date - Adjusts the overall spacing and padding of the blog area and individual blog posts - Increases the font size of the "Read the article" link for better readability These changes aim to enhance the visual appeal and user experience of the blog section, making it more visually engaging and informative for the readers. --- components/blogpost.tsx | 24 +++++++++++++++--------- public/calendar.svg | 16 ++++++++++++++++ public/tags.svg | 5 +++++ 3 files changed, 36 insertions(+), 9 deletions(-) create mode 100644 public/calendar.svg create mode 100644 public/tags.svg diff --git a/components/blogpost.tsx b/components/blogpost.tsx index 1bc9722..13939db 100644 --- a/components/blogpost.tsx +++ b/components/blogpost.tsx @@ -1,5 +1,8 @@ 'use client'; +import tagsPic from '../public/tags.svg'; +import calendarPic from '../public/calendar.svg' + import AnimatedLink from '../components/animatedLink'; import Image from 'next/image'; @@ -16,10 +19,10 @@ interface BlogAreaProps { export default function BlogArea({ blogposts }: BlogAreaProps) { return ( -
+
{blogposts.map((blogpost, index) => ( -
+
-
    -
  • Games
  • -
  • Science
  • +
      +
    • lang
    • +
    • Games
    • +
    • Science
    {blogpost.body.slice(0, 512)}...
    -
    -

    Posted: {blogpost.publish}

    -
    -
    +
      +
    • lang
    • +
    • {blogpost.publish}

    • +
    + +
    Read the article diff --git a/public/calendar.svg b/public/calendar.svg new file mode 100644 index 0000000..c002b85 --- /dev/null +++ b/public/calendar.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/public/tags.svg b/public/tags.svg new file mode 100644 index 0000000..49c8817 --- /dev/null +++ b/public/tags.svg @@ -0,0 +1,5 @@ + + + + +