diff --git a/GrossesMitaines/grosses-mitaines-ui/src/components/Filters.js b/GrossesMitaines/grosses-mitaines-ui/src/components/Filters.js index 0a1f3f8..e1d0c38 100644 --- a/GrossesMitaines/grosses-mitaines-ui/src/components/Filters.js +++ b/GrossesMitaines/grosses-mitaines-ui/src/components/Filters.js @@ -1,16 +1,115 @@ import { Form } from "react-bootstrap"; +import { useState } from "react"; const Filters = ({ onChange }) => { + + const [priceFilter, setPriceFilter] = useState(""); + const [stateFilter, setStateFilter] = useState(""); + + const handlePriceChange = (value) =>{ + setPriceFilter(value); + } + + const handleStateChange = (value) =>{ + setStateFilter(value); + } + + return (
-
-
- - - -
-
-
+
+
+ +
handlePriceChange(e.target.value)}> + + + + + +
+
+
+
+ +
handleStateChange(e.target.value)}> + + + + + + +
+
+
+
) } diff --git a/GrossesMitaines/grosses-mitaines-ui/src/pages/Morceaux.js b/GrossesMitaines/grosses-mitaines-ui/src/pages/Morceaux.js index bf28022..807ec5d 100644 --- a/GrossesMitaines/grosses-mitaines-ui/src/pages/Morceaux.js +++ b/GrossesMitaines/grosses-mitaines-ui/src/pages/Morceaux.js @@ -64,11 +64,10 @@ const Morceaux = (startingProducts) => { return (
-
- {/* className="morceaux-options-container" */} - {/*
+
+
-
*/} +
diff --git a/GrossesMitaines/grosses-mitaines-ui/src/stylesheets/site.css b/GrossesMitaines/grosses-mitaines-ui/src/stylesheets/site.css index b5303f8..b720bfe 100644 --- a/GrossesMitaines/grosses-mitaines-ui/src/stylesheets/site.css +++ b/GrossesMitaines/grosses-mitaines-ui/src/stylesheets/site.css @@ -466,13 +466,18 @@ html { display: flex; width: 100%; height: fit-content; - border: black 2px solid; + /* border: black 2px solid; */ margin-bottom: 16px; } + +.filters-menu{ + display:flex; +} + .filters-container { width: 75%; - border: green 2px dotted; + /* border: green 2px dotted; */ margin: 0px; }