diff --git a/GrossesMitaines/grosses-mitaines-ui/src/components/App.js b/GrossesMitaines/grosses-mitaines-ui/src/components/App.js index aa078cf..625534a 100644 --- a/GrossesMitaines/grosses-mitaines-ui/src/components/App.js +++ b/GrossesMitaines/grosses-mitaines-ui/src/components/App.js @@ -4,6 +4,7 @@ import Home from "../pages/Home"; import AboutUs from "../pages/AboutUs"; import Privacy from "../pages/Privacy"; import ContactUs from "../pages/ContactUs"; +import Morceaux from "../pages/Morceaux"; const App = () => { @@ -12,6 +13,7 @@ const App = () => { }> } /> + } /> } /> }/> }/> diff --git a/GrossesMitaines/grosses-mitaines-ui/src/components/Footer.js b/GrossesMitaines/grosses-mitaines-ui/src/components/Footer.js index 4c78d13..84131df 100644 --- a/GrossesMitaines/grosses-mitaines-ui/src/components/Footer.js +++ b/GrossesMitaines/grosses-mitaines-ui/src/components/Footer.js @@ -30,9 +30,9 @@ const Footer = () => {
- Nos partenaires -
- - - + + +
© 2022 - Les Grosses Mitaines à Ginette et Monique, inc. diff --git a/GrossesMitaines/grosses-mitaines-ui/src/components/Item.js b/GrossesMitaines/grosses-mitaines-ui/src/components/Item.js new file mode 100644 index 0000000..c63ee83 --- /dev/null +++ b/GrossesMitaines/grosses-mitaines-ui/src/components/Item.js @@ -0,0 +1,18 @@ +const Item = ({ imageUrl, name, price, status }) => { + return ( +
+
+ {name} +
+
+

{name}

+
+
+
+ {price} +
+
+ ); +} + +export default Item; \ No newline at end of file diff --git a/GrossesMitaines/grosses-mitaines-ui/src/components/ItemList.js b/GrossesMitaines/grosses-mitaines-ui/src/components/ItemList.js new file mode 100644 index 0000000..9a285f6 --- /dev/null +++ b/GrossesMitaines/grosses-mitaines-ui/src/components/ItemList.js @@ -0,0 +1,18 @@ +import Item from './Item'; + +const ItemList = ({ items }) => { + + return ( +
+ {items.map((item) => + + )} +
+ ) +} + +export default ItemList; \ No newline at end of file diff --git a/GrossesMitaines/grosses-mitaines-ui/src/components/Topbar.js b/GrossesMitaines/grosses-mitaines-ui/src/components/Topbar.js index 8e03909..5bcebdb 100644 --- a/GrossesMitaines/grosses-mitaines-ui/src/components/Topbar.js +++ b/GrossesMitaines/grosses-mitaines-ui/src/components/Topbar.js @@ -10,7 +10,7 @@ const Topbar = () => { - + @@ -18,6 +18,9 @@ const Topbar = () => { Maison + + Morceaux + À propos de nous diff --git a/GrossesMitaines/grosses-mitaines-ui/src/pages/AboutUs.js b/GrossesMitaines/grosses-mitaines-ui/src/pages/AboutUs.js index 497b2dc..b73507b 100644 --- a/GrossesMitaines/grosses-mitaines-ui/src/pages/AboutUs.js +++ b/GrossesMitaines/grosses-mitaines-ui/src/pages/AboutUs.js @@ -2,7 +2,7 @@ import React from "react"; import { useEffect } from "react"; import ContactInfo from "../components/ContactInfo"; -const AbtouUs = () => { +const AboutUs = () => { useEffect(() => { document.title = 'À propos de nous'; @@ -18,7 +18,7 @@ const AbtouUs = () => {
- +

@@ -50,7 +50,7 @@ const AbtouUs = () => {
- +

@@ -62,4 +62,4 @@ const AbtouUs = () => { ); } -export default AbtouUs; \ No newline at end of file +export default AboutUs; \ No newline at end of file diff --git a/GrossesMitaines/grosses-mitaines-ui/src/pages/Morceaux.js b/GrossesMitaines/grosses-mitaines-ui/src/pages/Morceaux.js new file mode 100644 index 0000000..e5548f1 --- /dev/null +++ b/GrossesMitaines/grosses-mitaines-ui/src/pages/Morceaux.js @@ -0,0 +1,39 @@ +import { useEffect } from "react"; +import ItemList from "../components/ItemList"; + +const Morceaux = () => { + + const products = [ + { + "name": "Ceinture flèchée", + "status": "Disponible!", + "price": "85,86", + "imageUrl": "/images/ceintureflechee.jpg" + }, + { + "name": "Pantoufles du Canadien en Phentex", + "status": "Non disponible...", + "price": "15,64", + "imageUrl": "/images/pantouflesCH.jpg" + }, + { + "name": "Jean-Luc Mongrain", + "status": "Disponible!", + "price": "1453,12", + "imageUrl": "/images/jeanlucmongrain.jpg" + } + ]; + + useEffect(() => { + document.title = 'Morceaux'; + }); + + return ( +
+

QWERTY

+ +
+ ); +} + +export default Morceaux; \ No newline at end of file diff --git a/GrossesMitaines/grosses-mitaines-ui/src/stylesheets/site.css b/GrossesMitaines/grosses-mitaines-ui/src/stylesheets/site.css index a13b86a..9926170 100644 --- a/GrossesMitaines/grosses-mitaines-ui/src/stylesheets/site.css +++ b/GrossesMitaines/grosses-mitaines-ui/src/stylesheets/site.css @@ -200,6 +200,22 @@ html { } +.item { + border: 5px purple double; + border-radius: 5px; + padding: 1rem 0; + margin: 1rem 0; +} + +.item-detail { + padding: 0 2rem; +} + +.item-price { + font-weight: bold; + font-size: 140%; +} + /* -------------------------------------------------------- */ /* specification pour les écrans plus petits / cells */