diff --git a/client/src/App.jsx b/client/src/App.jsx index 4c0eb0f..8e99cf4 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -3,11 +3,13 @@ import Home from "./pages/Home" import Layout from "./components/Layout" import Profile from "./pages/Profile" import TreePlantation, {action as treePlantationAction} from "./pages/TreePlantation" +import SearchProduct from "./pages/SearchProduct" const router = createBrowserRouter(createRoutesFromElements( }> } /> } /> + } /> } /> )) diff --git a/client/src/assets/Events.png b/client/src/assets/Events.png index 9b5770b..c8d8ca5 100644 Binary files a/client/src/assets/Events.png and b/client/src/assets/Events.png differ diff --git a/client/src/assets/heroSmallScreen.png b/client/src/assets/heroSmallScreen.png new file mode 100644 index 0000000..e509724 Binary files /dev/null and b/client/src/assets/heroSmallScreen.png differ diff --git a/client/src/assets/react.svg b/client/src/assets/react.svg new file mode 100644 index 0000000..6c87de9 --- /dev/null +++ b/client/src/assets/react.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/client/src/assets/searchProduct.webp b/client/src/assets/searchProduct.webp new file mode 100644 index 0000000..674ef3f Binary files /dev/null and b/client/src/assets/searchProduct.webp differ diff --git a/client/src/components/home/Part2.jsx b/client/src/components/home/Part2.jsx index 0fd048d..e0310ea 100644 --- a/client/src/components/home/Part2.jsx +++ b/client/src/components/home/Part2.jsx @@ -1,4 +1,5 @@ import rrr from '../../assets/RRR.png'; +import { Link } from "react-router-dom" const Part2 = () => { return ( @@ -12,9 +13,9 @@ const Part2 = () => { responsibly using the RRR (Reduce, Reuse, and Recycle) principles

- { Explore - +
diff --git a/client/src/pages/SearchProduct.jsx b/client/src/pages/SearchProduct.jsx new file mode 100644 index 0000000..01c5fe7 --- /dev/null +++ b/client/src/pages/SearchProduct.jsx @@ -0,0 +1,53 @@ +import { useState } from "react" +import searchImg from "../assets/searchProduct.webp" + +const SearchProduct = () => { + const [query, setQuery] = useState("") + + function handleChange(e) { + setQuery(e.target.value) + } + + function formatQuery() { + let tempQuery = query; + tempQuery = tempQuery.trim(); // Add more formatting as per requirement + setQuery(tempQuery) + } + + function getResult() { + formatQuery() + // TODO + } + + return ( +
+
+ + +
+ + search lens +
+ ) +} + +export default SearchProduct \ No newline at end of file