diff --git a/client/src/Pages/ProductItem.js b/client/src/Pages/ProductItem.js
deleted file mode 100644
index 9310dd9f..00000000
--- a/client/src/Pages/ProductItem.js
+++ /dev/null
@@ -1,121 +0,0 @@
-import React, { useState, useEffect } from 'react';
-import axios from 'axios';
-import Spinner from './Spinner';
-import { FaHeart, FaRegHeart } from 'react-icons/fa';
-import { Link } from 'react-router-dom';
-
-const ProductItem = () => {
- const [products, setProducts] = useState([]);
- const [isLoading, setIsLoading] = useState(true);
- const [wishlist, setWishlist] = useState([]);
-
- useEffect(() => {
- const fetchProducts = async () => {
- try {
- const response = await axios.get('http://localhost:8080/api/product/admin/products');
- setProducts(response.data.products);
- setIsLoading(false);
- } catch (error) {
- console.error('Error fetching products', error);
- }
- };
-
- const fetchWishlist = async () => {
- try {
- const authToken = localStorage.getItem('token');
- const response = await axios.get('http://localhost:8080/api/wishlist/getwishlistdata', {
- headers: {
- "Content-Type": "application/json",
- "auth-token": authToken
- },
- withCredentials: true
- });
-
- // Extract product IDs from wishlist items
- const wishlistItems = response.data.wishlistItems;
- const wishlistProductIds = wishlistItems.map(item => item.product._id);
- setWishlist(wishlistProductIds);
- } catch (error) {
- console.error('Error fetching wishlist', error);
- }
- };
-
- fetchProducts();
- fetchWishlist();
- }, []);
-
- const toggleWishlist = async (product) => {
- try {
- const authToken = localStorage.getItem('token');
- const productId = product._id;
-
- if (wishlist.includes(productId)) {
- await axios.delete(`http://localhost:8080/api/wishlist/removefromwishlist/${productId}`, {
- headers: {
- "Content-Type": "application/json",
- "auth-token": authToken
- },
- withCredentials: true
- });
-
- setWishlist(wishlist.filter((id) => id !== productId));
- } else {
- await axios.post(`http://localhost:8080/api/wishlist/addtowishlist/${productId}`, {}, {
- headers: {
- "Content-Type": "application/json",
- "auth-token": authToken
- },
- withCredentials: true
- });
-
- setWishlist([...wishlist, productId]);
- }
- } catch (error) {
- console.error('Error toggling wishlist', error);
- }
- };
-
- const renderBooks = (books) => {
- return books.map((book) => (
-
-
-
-
{book.name}
-
Author: {book.author}
-
{book.description}
-
-
₹{book.price}
-
-
-
- ));
- };
-
- const categories = [...new Set(products.map((book) => book.category))];
-
- return (
-
- {isLoading ? (
-
// Display spinner while data is not loaded
- ) : (
- categories.map((category) => (
-
- {category}
-
- {renderBooks(products.filter((book) => book.category === category))}
-
-
- ))
- )}
-
- );
-};
-
-export default ProductItem;
diff --git a/client/src/Pages/ProductItem.jsx b/client/src/Pages/ProductItem.jsx
new file mode 100644
index 00000000..81664f64
--- /dev/null
+++ b/client/src/Pages/ProductItem.jsx
@@ -0,0 +1,324 @@
+// import React, { useState, useEffect } from "react";
+// import axios from "axios";
+// import Spinner from "./Spinner";
+// import { FaHeart, FaRegHeart } from "react-icons/fa";
+// import { Link } from "react-router-dom";
+
+// const ProductItem = () => {
+// const [products, setProducts] = useState([]);
+// const [isLoading, setIsLoading] = useState(true);
+// const [wishlist, setWishlist] = useState([]);
+
+// useEffect(() => {
+// const fetchProducts = async () => {
+// try {
+// const response = await axios.get(
+// "http://localhost:8080/api/product/admin/products"
+// );
+// setProducts(response.data.products);
+// setIsLoading(false);
+// } catch (error) {
+// console.error("Error fetching products", error);
+// }
+// };
+
+// const fetchWishlist = async () => {
+// try {
+// const authToken = localStorage.getItem("token");
+// const response = await axios.get(
+// "http://localhost:8080/api/wishlist/getwishlistdata",
+// {
+// headers: {
+// "Content-Type": "application/json",
+// "auth-token": authToken,
+// },
+// withCredentials: true,
+// }
+// );
+
+// // Extract product IDs from wishlist items
+// const wishlistItems = response.data.wishlistItems;
+// const wishlistProductIds = wishlistItems.map(
+// (item) => item.product._id
+// );
+// setWishlist(wishlistProductIds);
+// } catch (error) {
+// console.error("Error fetching wishlist", error);
+// }
+// };
+
+// fetchProducts();
+// fetchWishlist();
+// }, []);
+
+// const toggleWishlist = async (product) => {
+// try {
+// const authToken = localStorage.getItem("token");
+// const productId = product._id;
+
+// if (wishlist.includes(productId)) {
+// await axios.delete(
+// `http://localhost:8080/api/wishlist/removefromwishlist/${productId}`,
+// {
+// headers: {
+// "Content-Type": "application/json",
+// "auth-token": authToken,
+// },
+// withCredentials: true,
+// }
+// );
+
+// setWishlist(wishlist.filter((id) => id !== productId));
+// } else {
+// await axios.post(
+// `http://localhost:8080/api/wishlist/addtowishlist/${productId}`,
+// {},
+// {
+// headers: {
+// "Content-Type": "application/json",
+// "auth-token": authToken,
+// },
+// withCredentials: true,
+// }
+// );
+
+// setWishlist([...wishlist, productId]);
+// }
+// } catch (error) {
+// console.error("Error toggling wishlist", error);
+// }
+// };
+
+// const renderBooks = (books) => {
+// return books.map((book) => (
+//
+//
+//
+//
+// {book.name}
+//
+//
+// Author: {book.author}
+//
+//
{book.description}
+//
+//
+// ₹{book.price}
+//
+//
+//
+//
+// ));
+// };
+
+// const categories = [...new Set(products.map((book) => book.category))];
+
+// return (
+//
+// {isLoading ? (
+//
// Display spinner while data is not loaded
+// ) : (
+// categories.map((category) => (
+//
+//
+// {category}
+//
+//
+// {renderBooks(
+// products.filter((book) => book.category === category)
+// )}
+//
+//
+// ))
+// )}
+//
+// );
+// };
+
+// export default ProductItem;
+
+import React, { useState } from "react";
+
+const productData = [
+ {
+ id: 1,
+ name: "The Enchanted Forest",
+ author: "Lila Woods",
+ description:
+ "A thrilling adventure through magical forests and forgotten kingdoms.",
+ price: 350,
+ image:
+ "https://images.unsplash.com/photo-1512820790803-83ca734da794?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzNjUyOXwwfDF8c2VhcmNofDJ8fGZhc2NpbmF0ZXxlbnwwfHx8fDE2NDE0ODQyMjA&ixlib=rb-1.2.1&q=80&w=400",
+ },
+ {
+ id: 2,
+ name: "Journey to the Stars",
+ author: "Marcus Orion",
+ description:
+ "A space exploration tale that challenges the limits of human imagination.",
+ price: 450,
+ image:
+ "https://images.unsplash.com/photo-1534081333815-ae5019106622?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzNjUyOXwwfDF8c2VhcmNofDV8fGZ1dHVyaXN0aWMlMjBzcGFjZXxlbnwwfHx8fDE2NDE0ODQzNzQ&ixlib=rb-1.2.1&q=80&w=400",
+ },
+ {
+ id: 3,
+ name: "Whispers of the Sea",
+ author: "Eva Maris",
+ description:
+ "An inspiring story about love, loss, and the mysteries of the ocean.",
+ price: 300,
+ image:
+ "https://images.unsplash.com/photo-1500674425229-f692875b0ab7?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzNjUyOXwwfDF8c2VhcmNofDN8fG9jZWFufGVufDB8fHx8MTY0MTQ4NDI4Nw&ixlib=rb-1.2.1&q=80&w=400",
+ },
+ {
+ id: 4,
+ name: "The Last Kingdom",
+ author: "Henry Blackwell",
+ description:
+ "An epic tale of the rise and fall of a mighty kingdom in ancient times.",
+ price: 400,
+ image:
+ "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMTEhUTExMVFhUXFxgaGBcYGBcXGBcXGBodFxgXFxcYHSggGBolHRgYIjEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGhAQGy0lHyUrLSstLS0tLS0tLS0tLS0tLS0tLS0tLS0tKy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIALcBEwMBIgACEQEDEQH/xAAcAAACAgMBAQAAAAAAAAAAAAADBAIFAAEGBwj/xAA+EAABAwIEAwUGBAUEAQUAAAABAAIRAyEEEjFBBVFhInGBkaEGEzKxwfBCUnLRBxSC4fEjYpKiMxUkQ1PC/8QAGQEAAwEBAQAAAAAAAAAAAAAAAQIDAAQF/8QAKREAAgICAgAEBQUAAAAAAAAAAAECEQMhEjEEEyJBMlFhkfAUM3GBof/aAAwDAQACEQMRAD8A8lOLeTOYzzTDOI1YjO6OUlJQphZqzIsaPEav5yr3h/tNUpaEk7ySR5aLlWkorQpTxRl2ikcjidgPa2s65yx3BP4DHur6stu4aD+/RK0RSdQD6VGm51iGkNuQYNz4q7oVpaLRYWtbpAsIXDOEV1E6PM1srcRgeir6+HhXmIrKqxTl0YWzly7Kq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YWPWNV2XCq4p1A83A1WLFLIk7RoyakmX/FKwxbSynAIaXmZFm389B4rgsbVLKlwJAIF+kX7lixc3h0oNwXR2+JfJpsteFik1jwYNWRmDg40xfWBqYnndPNxuRvac19F3Z92WRmBuS2Phg6EmbaLSxNkin37gxSfsVOJALiRIG11ixYnJcj/2Q==",
+ },
+ {
+ id: 5,
+ name: "A Tale of Two Worlds",
+ author: "Sophie Lennon",
+ description:
+ "A gripping story that bridges the gap between two parallel worlds.",
+ price: 380,
+ image:
+ "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxMTEhUTExMWFhUXFhgYGBcYFhoYGhgYGhgXFxUdFxgYHSggGB0lHRcXITEhJSkrLi4uFx8zODMtNygtLisBCgoKDg0OGhAQGy0lICUtLS0vLTUtLS0tLS0tLS0vLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIAJ8BPgMBIgACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAAEAgMFBgcBAAj/xABHEAABAwIDBQUFBAgDBwUBAAABAAIRAyEEMUEFElFhcQYigZGhE7HB0fAyUpLhBwgUFSNCU2IWcvEzQ1SCosLiJTRjg7Ik/8QAGQEAAwEBAQAAAAAAAAAAAAAAAQIDAAQF/8QALxEAAgICAQMDAgUDBQAAAAAAAAECEQMhEgQxQRMiUWFxMoGRsfAUQqEFFSRi0f/aAAwDAQACEQMRAD8A2PbG1qOFpmrWeGMFuZJyAAuSqNX/AEot3u5hyW6Fz90+IAPvUR+nfFkPwtMcKjyPwtHxWRHFuHFSnJ3otCEatm6s/SO92VFgHMk/JHU+3TiL0hP+Yj4LENmbXcCGuuJH0FasNtFrgII06pOckUeOJo7e2zjnSb+L8k43tsJ/2X/X/wCKoFPEbyXvrc5E3FGgDtrT/pnzHySx2xp/03eYWfMeiWPTcmLSL3/i+l9x/p806O1lH7r/AE+aoQddOe0hMmxWkX+l2monRw6x80l/aimMmOPkqIyufgn6VRZ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LLSqj5er7GxDO8aNQQRfdNrqew+Bqkgim9x5McT6BfQe4OAXYQyYOfk2PNw8GFfuLFVBbD1fwEHyKdZ2YxbmbjsNV6lp8FuK8k/o4/LHfUtqqPner2fxdN/ew1YEXH8NxHmBCIbsXFuMjDVtLezeBzzC+gF5O+mXyTWVoyjA7AxPsmzTdvCBBBkRYadEFi9gYhhn2Ti3kPRbIuQo/0MU20xHKzFKWz6kxuHoYCMo4Oo2246NRC1t2HYc2t8glNotGTR5BK+gvyCzKKezHg5Og5AjMJR2c4GwOumi1bdHALoaOCX/bv+3+DNmSO2ZV0aeUj8kg7Mq6N6jVa9C7Cf+gj8gezEsds6qAf4T5kXAJ9y9UwTqlINewidd0gze98itthJfTBEEAjgRKL6LWpC0ZBhKBpsawd4gATGcWUlgcWcnTyJ08VpH7HT/ps/CPkvfsdP+mz8I+S55f6by7yHg3F2VDC4V1XIZWkq24TD+zptZnCfZTAyAHQQlLp6Too4Ld22PPI5H//Z",
+ },
+ {
+ id: 6,
+ name: "Whispers of the Sea",
+ author: "Eva Maris",
+ description:
+ "An inspiring story about love, loss, and the mysteries of the ocean.",
+ price: 300,
+ image:
+ "https://images.unsplash.com/photo-1500674425229-f692875b0ab7?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzNjUyOXwwfDF8c2VhcmNofDN8fG9jZWFufGVufDB8fHx8MTY0MTQ4NDI4Nw&ixlib=rb-1.2.1&q=80&w=400",
+ },
+];
+
+// ProductShowcase component
+const ProductItem = () => {
+ const [searchTerm, setSearchTerm] = useState("");
+
+ // Filter products based on the search term
+ const filteredProducts = productData.filter((product) =>
+ product.name.toLowerCase().includes(searchTerm.toLowerCase())
+ );
+
+ return (
+ <>
+
+ {/* Title */}
+
+ CHECK OUT NEW COLLECTIONS
+
+
+ {/* Search Bar */}
+
+ setSearchTerm(e.target.value)}
+ />
+
+
+ {/* Product Grid */}
+
+
FICTIONALS
+
+ {filteredProducts.map((product) => (
+
+
+
{product.name}
+
{product.description}
+
₹{product.price}
+
+ ))}
+
+
+
+
+
CHILDREN'S BOOK
+
+ {filteredProducts.map((product) => (
+
+
+
{product.name}
+
{product.description}
+
₹{product.price}
+
+ ))}
+
+
+
+
+
NON-FICTION
+
+ {filteredProducts.map((product) => (
+
+
+
{product.name}
+
{product.description}
+
₹{product.price}
+
+ ))}
+
+
+
+ >
+ );
+};
+export default ProductItem;
diff --git a/client/src/Pages/Shop.jsx b/client/src/Pages/Shop.jsx
index 1c6a7bf6..6d28e120 100644
--- a/client/src/Pages/Shop.jsx
+++ b/client/src/Pages/Shop.jsx
@@ -1,14 +1,14 @@
-import React from 'react'
-import Productitem from './ProductItem'
-import Preloader from '../Components/Preloader'
+import React from "react";
+import Productitem from "./ProductItem";
+import Preloader from "../Components/Preloader";
const Shop = () => {
return (
- )
-}
+ );
+};
-export default Shop
+export default Shop;