From 750653ff726eeb68b3133e276a8af14b5116efe8 Mon Sep 17 00:00:00 2001 From: Victor Turgeon Date: Tue, 25 Oct 2022 11:15:37 -0400 Subject: [PATCH] stuff --- .../src/components/Filters.js | 115 ++++++++++++++++-- .../grosses-mitaines-ui/src/pages/Morceaux.js | 7 +- .../src/stylesheets/site.css | 9 +- 3 files changed, 117 insertions(+), 14 deletions(-) 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; }