|
|
|
@ -27,6 +27,7 @@ type Produit = {
|
|
|
|
actif: boolean;
|
|
|
|
actif: boolean;
|
|
|
|
nomProduit: string;
|
|
|
|
nomProduit: string;
|
|
|
|
prixTtc: number;
|
|
|
|
prixTtc: number;
|
|
|
|
|
|
|
|
image: string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const ToutSavoir = ({ produits }: Props) => {
|
|
|
|
const ToutSavoir = ({ produits }: Props) => {
|
|
|
|
@ -65,12 +66,14 @@ const ToutSavoir = ({ produits }: Props) => {
|
|
|
|
{produits.map((produit: Produit) => {
|
|
|
|
{produits.map((produit: Produit) => {
|
|
|
|
return <div className="col-6 col-lg-3 d-flex justify-content-center my-2 my-lg-3" key={produit.id}>
|
|
|
|
return <div className="col-6 col-lg-3 d-flex justify-content-center my-2 my-lg-3" key={produit.id}>
|
|
|
|
<div className={`${style.aCard} card`}>
|
|
|
|
<div className={`${style.aCard} card`}>
|
|
|
|
|
|
|
|
<div className="d-flex justify-content-center">
|
|
|
|
<Image
|
|
|
|
<Image
|
|
|
|
className="card-img-top" src={test}
|
|
|
|
className="card-img-top" src={produit.image}
|
|
|
|
width="286"
|
|
|
|
width="286"
|
|
|
|
height="180"
|
|
|
|
height="180"
|
|
|
|
alt="produit"
|
|
|
|
alt="produit"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div className="card-body">
|
|
|
|
<div className="card-body">
|
|
|
|
<h5 className="card-title">{produit.nomProduit}</h5>
|
|
|
|
<h5 className="card-title">{produit.nomProduit}</h5>
|
|
|
|
<p className="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
|
|
|
|
<p className="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
|
|
|
|
|