diff --git a/client/src/Pages/Home.jsx b/client/src/Pages/Home.jsx index 8701f756..09341974 100644 --- a/client/src/Pages/Home.jsx +++ b/client/src/Pages/Home.jsx @@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react'; import B1Child from '../assets/image/B1Child.jpeg'; import AuthorImage from '../assets/image/author1.jpeg' import Spinner from './Spinner'; +import SearchBar from './SearchBar'; // Import the SearchBar component const Home = () => { const [isLoading, setIsLoading] = useState(true); @@ -21,11 +22,19 @@ const Home = () => { }, 2000); }, []); + const handleSearch = (query) => { + console.log('Search query:', query); + // Implement search logic here + }; + return (
{isLoading && } {!isLoading && ( <> + {/* Search Bar */} + + {/* Image Container */}