From 9b11ceb0d39dd31becec804328c143a8d774e9ad Mon Sep 17 00:00:00 2001 From: Sawan Date: Wed, 30 Oct 2024 21:46:31 +0530 Subject: [PATCH] fixed input text --- client/src/component/Blog.jsx | 147 +++++++++++++++++----------------- 1 file changed, 74 insertions(+), 73 deletions(-) diff --git a/client/src/component/Blog.jsx b/client/src/component/Blog.jsx index dbc639b..4896421 100644 --- a/client/src/component/Blog.jsx +++ b/client/src/component/Blog.jsx @@ -11,79 +11,79 @@ import img4 from "../assets/blogs/4.jpeg"; import img5 from "../assets/blogs/5.jpeg"; import img6 from "../assets/blogs/6.png"; -import { Link } from 'react-router-dom'; import '../css/Home.css'; // Dummy blog data -const blogPosts = [ - { - id: 1, - title: "The Art of Modern Web Design", - author: "Sarah Chen", - date: "March 15, 2024", - category: "Design", - readTime: "5 min read", - image: img1, - excerpt: "Exploring the latest trends in web design and how they shape user experiences in the digital age.", - tags: ["Design", "Web", "UI/UX"] - }, - { - id: 2, - title: "Understanding React Hooks", - author: "James Wilson", - date: "March 18, 2024", - category: "Development", - readTime: "8 min read", - image: img2, - excerpt: "A deep dive into React Hooks and how they're revolutionizing the way we build components.", - tags: ["React", "JavaScript", "Programming"] - }, - { - id: 3, - title: "The Future of AI in Design", - author: "Elena Martinez", - date: "March 20, 2024", - category: "AI", - readTime: "6 min read", - image: img3, - excerpt: "How artificial intelligence is transforming the design industry and what it means for creators.", - tags: ["AI", "Design", "Technology"] - }, - { - id: 4, - title: "Building Sustainable Tech", - author: "Alex Kumar", - date: "March 22, 2024", - category: "Technology", - readTime: "7 min read", - image: img4, - excerpt: "Exploring eco-friendly approaches to software development and digital infrastructure.", - tags: ["Sustainability", "Technology", "Green Computing"] - }, - { - id: 5, - title: "The Psychology of UX Design", - author: "Maya Patel", - date: "March 25, 2024", - category: "UX", - readTime: "10 min read", - image: img5, - excerpt: "Understanding how human psychology influences user experience design decisions.", - tags: ["UX", "Psychology", "Design"] - }, - { - id: 6, - title: "Mobile-First Development", - author: "Thomas Anderson", - date: "March 27, 2024", - category: "Development", - readTime: "6 min read", - image: img6, - excerpt: "Best practices for building responsive applications with a mobile-first approach.", - tags: ["Mobile", "Development", "Responsive"] - } - +// const blogPosts = [ +// { +// id: 1, +// title: "The Art of Modern Web Design", +// author: "Sarah Chen", +// date: "March 15, 2024", +// category: "Design", +// readTime: "5 min read", +// image: img1, +// excerpt: "Exploring the latest trends in web design and how they shape user experiences in the digital age.", +// tags: ["Design", "Web", "UI/UX"] +// }, +// { +// id: 2, +// title: "Understanding React Hooks", +// author: "James Wilson", +// date: "March 18, 2024", +// category: "Development", +// readTime: "8 min read", +// image: img2, +// excerpt: "A deep dive into React Hooks and how they're revolutionizing the way we build components.", +// tags: ["React", "JavaScript", "Programming"] +// }, +// { +// id: 3, +// title: "The Future of AI in Design", +// author: "Elena Martinez", +// date: "March 20, 2024", +// category: "AI", +// readTime: "6 min read", +// image: img3, +// excerpt: "How artificial intelligence is transforming the design industry and what it means for creators.", +// tags: ["AI", "Design", "Technology"] +// }, +// { +// id: 4, +// title: "Building Sustainable Tech", +// author: "Alex Kumar", +// date: "March 22, 2024", +// category: "Technology", +// readTime: "7 min read", +// image: img4, +// excerpt: "Exploring eco-friendly approaches to software development and digital infrastructure.", +// tags: ["Sustainability", "Technology", "Green Computing"] +// }, +// { +// id: 5, +// title: "The Psychology of UX Design", +// author: "Maya Patel", +// date: "March 25, 2024", +// category: "UX", +// readTime: "10 min read", +// image: img5, +// excerpt: "Understanding how human psychology influences user experience design decisions.", +// tags: ["UX", "Psychology", "Design"] +// }, +// { +// id: 6, +// title: "Mobile-First Development", +// author: "Thomas Anderson", +// date: "March 27, 2024", +// category: "Development", +// readTime: "6 min read", +// image: img6, +// excerpt: "Best practices for building responsive applications with a mobile-first approach.", +// tags: ["Mobile", "Development", "Responsive"] +// } +// ] + const images = [ { src: img1, category: 'Web Development' }, { src: img2, category: 'Mobile Development' }, @@ -92,7 +92,6 @@ const images = [ { src: img4, category: 'AI' }, { src: img3, category: 'Cybersecurity' }, ]; - export default function BlogPage() { const [searchTerm, setSearchTerm] = useState(''); const [selectedCategory, setSelectedCategory] = useState('All'); @@ -160,12 +159,14 @@ export default function BlogPage() { setSearchTerm(e.target.value)} /> - + +
{categories.map(category => (