From 2f1fa138e9adda908fbf3b4accb5d026b70c82c3 Mon Sep 17 00:00:00 2001 From: Darine Date: Mon, 27 Nov 2023 13:29:57 +0100 Subject: [PATCH] feat(page): blogs add blogs --- .../developeravatar/DeveloperAvatar.jsx | 2 +- src/pages/about/index.jsx | 156 +++++++++--------- src/pages/blog/[slug].jsx | 8 +- src/pages/blog/_posts/post1-copy.md | 8 +- src/pages/blog/_posts/post1.md | 44 ++--- src/pages/blog/_posts/post2.md | 41 +++++ 6 files changed, 149 insertions(+), 110 deletions(-) create mode 100644 src/pages/blog/_posts/post2.md diff --git a/src/components/developeravatar/DeveloperAvatar.jsx b/src/components/developeravatar/DeveloperAvatar.jsx index 8dd00a6..4db9ca5 100644 --- a/src/components/developeravatar/DeveloperAvatar.jsx +++ b/src/components/developeravatar/DeveloperAvatar.jsx @@ -14,7 +14,7 @@ const DeveloperAvatar = ({ name, avatarUrl, description, href }) => { layout='fill' /> -

+

{name}

diff --git a/src/pages/about/index.jsx b/src/pages/about/index.jsx index 549aee2..bba34ac 100644 --- a/src/pages/about/index.jsx +++ b/src/pages/about/index.jsx @@ -5,94 +5,88 @@ import DeveloperAvatar from "@/components/developeravatar/DeveloperAvatar"; function AboutPage() { return (

-
-
-
-
- hero -
+
+
+
+ hero
-
-
- - About us - +
+
+
+ + About us + -

- Who{" "} - We Are -

-

- Welcome to Let's Share - where sharing is - caring! In our community, we believe in the - heartwarming essence of sharing daily - essentials. Extra food, lovely clothes, or cozy - furniture - at Let's Share, it's about - connecting and making a positive impact right - where you are. Let's transform our region - into a haven of shared moments. Join Let's - Share, where sharing isn't just a choice; - it's a way of life. -

-
+

+ Who We Are +

+

+ Welcome to Let's Share - where sharing is + caring! In our community, we believe in the + heartwarming essence of sharing daily essentials. + Extra food, lovely clothes, or cozy furniture - at + Let's Share, it's about connecting and + making a positive impact right where you are. + Let's transform our region into a haven of + shared moments. Join Let's Share, where sharing + isn't just a choice; it's a way of life. +

-
-
-
-

Our Team

-
- {/* Developer 1 */} - - {/* Developer 2 */} - - {/* Developer 3 */} - - {/* Developer 4 */} - - {/* Developer 5 */} - - {/* Developer 6 */} - +
+
+

Our Team

+ {/* Developer 1 */} + + {/* Developer 2 */} + + {/* Developer 3 */} + + {/* Developer 4 */} + + {/* Developer 5 */} + + {/* Developer 6 */} +
); diff --git a/src/pages/blog/[slug].jsx b/src/pages/blog/[slug].jsx index 5ac5b81..c7520c7 100644 --- a/src/pages/blog/[slug].jsx +++ b/src/pages/blog/[slug].jsx @@ -7,13 +7,15 @@ import { getAllPosts, getPostBySlug, markdownToHtml } from "@/lib/blogApi"; const PostHeader = ({ title, image, imageAlt, date, timeToRead }) => { return ( <> -
+
{imageAlt} -

{title}

+

+ {title} +

{`Time to read ${timeToRead} min`}

{`publiched: ${new Date(date).toDateString()}`}

@@ -22,7 +24,7 @@ const PostHeader = ({ title, image, imageAlt, date, timeToRead }) => { }; const PostBody = ({ content }) => { return ( -
+