diff --git a/package.json b/package.json index e7aeaa4..31970a9 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "react": "18.2.0", "react-canvas-nest": "^1.1.1", "react-dom": "18.2.0", + "react-icons": "^5.0.1", "react-markdown": "^9.0.1", "react-paginate": "^8.2.0", "tailwind": "^4.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 32d851a..c926e51 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -80,6 +80,9 @@ dependencies: react-dom: specifier: 18.2.0 version: 18.2.0(react@18.2.0) + react-icons: + specifier: ^5.0.1 + version: 5.0.1(react@18.2.0) react-markdown: specifier: ^9.0.1 version: 9.0.1(@types/react@18.2.57)(react@18.2.0) @@ -3961,6 +3964,14 @@ packages: react: 18.2.0 dev: false + /react-icons@5.0.1(react@18.2.0): + resolution: {integrity: sha512-WqLZJ4bLzlhmsvme6iFdgO8gfZP17rfjYEJ2m9RsZjZ+cc4k1hTzknEz63YS1MeT50kVzoa1Nz36f4BEx+Wigw==} + peerDependencies: + react: '*' + dependencies: + react: 18.2.0 + dev: false + /react-indiana-drag-scroll@2.2.0(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-+W/3B2OQV0FrbdnsoIo4dww/xpH0MUQJz6ziQb7H+oBko3OCbXuzDFYnho6v6yhGrYDNWYPuFUewb89IONEl/A==} engines: {node: '>=8', npm: '>=5'} diff --git a/src/app/blogs/Blogcard.js b/src/app/blogs/Blogcard.js index 89e016a..ff13dba 100644 --- a/src/app/blogs/Blogcard.js +++ b/src/app/blogs/Blogcard.js @@ -1,26 +1,3 @@ -// src/components/BlogCard.js -/*import Link from 'next/link'; -import styles from './Blogcard.module.css'; // Use CSS modules for styles - -const BlogCard = ({ title, blogLink}) => { - //const truncatedDescription = description.length > 100 ? `${description.slice(0, 100)}...` : description; - - return ( -
{date}
by {authors}
-{description}
+{description.slice(0, 150) + "... see more"}
); diff --git a/src/app/blogs/page.js b/src/app/blogs/page.js index ed108a8..d021ced 100644 --- a/src/app/blogs/page.js +++ b/src/app/blogs/page.js @@ -75,7 +75,7 @@ const BlogList = () => { return ( <> -Loading...
+ )} +{description.slice(0, 150) + "... see more"}
+({project.project_description.slice(0, 250)})
+({project.project_description.slice(0, 150) + "... see more"})