diff --git a/client/src/component/Blog.jsx b/client/src/component/Blog.jsx index 2806771..ca082f1 100644 --- a/client/src/component/Blog.jsx +++ b/client/src/component/Blog.jsx @@ -2,6 +2,8 @@ import { useEffect, useState, useRef } from "react"; import PropTypes from 'prop-types'; import { Search } from "lucide-react"; import { Link } from "react-router-dom"; +import { motion } from "framer-motion"; + import img1 from "../assets/blogs/1.webp"; import img2 from "../assets/blogs/2.jpeg"; @@ -112,49 +114,100 @@ export default function BlogPage(props) { }, []); return ( -
+
{/* Hero Section */} -
-
-

Explore Our Blog

-

Discover stories, insights, and knowledge

+
+
+
+ + Dive into the BitBox Blog! + + + Where Projects Thrive and Connections Come Alive +
-
+
{/* Search and Filter Section */}
-
-
- setSearchTerm(e.target.value)} - /> - +
+
+
+ setSearchTerm(e.target.value)} + /> + +
+ +
+ + Create Blog + +
+
-
+
{categories.map((category) => ( - +
+

+ {category} +

+
+ ))}
-
- - Create blog - -
+
{/* Blog Grid */} @@ -209,7 +262,7 @@ export default function BlogPage(props) {
-
+
{blogPost.content.replace(/<[^>]+>/g, '')}
diff --git a/client/src/component/Contributors.jsx b/client/src/component/Contributors.jsx index 84ffb66..c212f3b 100644 --- a/client/src/component/Contributors.jsx +++ b/client/src/component/Contributors.jsx @@ -222,6 +222,9 @@ StatCard.propTypes = { icon: PropTypes.node.isRequired, onClick: PropTypes.func, }; +Contributor.propTypes = { + mode: PropTypes.string.isRequired, +}; export default function Contributor(props) { const [contributors, setContributors] = useState([]);