From ce77ae3f3859568fc1923f741d877763f88da9a1 Mon Sep 17 00:00:00 2001 From: Ayush <99096397+ayush4345@users.noreply.github.com> Date: Tue, 27 Feb 2024 22:30:00 +0530 Subject: [PATCH] event & project : changed styling --- src/app/blogs/[blogid]/page.js | 4 +- src/app/blogs/page.js | 2 +- src/app/events/[eventid]/page.js | 4 +- src/app/events/eventCard.js | 14 +++- src/app/events/page.js | 3 +- src/app/projects/[projectid]/page.jsx | 82 ++++++++++++++++++++++ src/app/projects/[projectid]/styleblog.css | 18 +++++ src/components/ProjectCard.js | 38 +++++----- src/components/ProjectDetailsPage.js | 3 +- 9 files changed, 139 insertions(+), 29 deletions(-) create mode 100644 src/app/projects/[projectid]/page.jsx create mode 100644 src/app/projects/[projectid]/styleblog.css diff --git a/src/app/blogs/[blogid]/page.js b/src/app/blogs/[blogid]/page.js index ad85483..d211c6c 100644 --- a/src/app/blogs/[blogid]/page.js +++ b/src/app/blogs/[blogid]/page.js @@ -23,7 +23,7 @@ const BlogId = ({ params }) => { const data = await response.json(); console.log("check", data); // Find the blog post with the matching id - const matchingBlog = data.items.find(blog => blog?.meta.slug === params.blogid); + const matchingBlog = data.items.find(blog => blog?.blog_slug === params.blogid); console.log("matchingBlog", data.items[0]); // Update the state with the matching blog data setBlogData(matchingBlog); @@ -51,7 +51,7 @@ const BlogId = ({ params }) => { return ( <> -
{description.slice(0, 150) + "... see more"}
Loading...
+ )} +({project.project_description.slice(0, 150) + "... see more"})
- - -({project.project_description.slice(0, 150) + "... see more"})
+