add - images to products
This commit is contained in:
1 parent
426d4a5fc1
commit
4e97b2b6db
4 files changed
+13
-2
No files matched your search
@@ -27,6 +27,7 @@ type Produit = {
|
||||
actif: boolean;
|
||||
nomProduit: string;
|
||||
prixTtc: number;
|
||||
image: string;
|
||||
}
|
||||
|
||||
const ToutSavoir = ({ produits }: Props) => {
|
||||
@@ -65,12 +66,14 @@ const ToutSavoir = ({ produits }: Props) => {
|
||||
{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}>
|
||||
<div className={`${style.aCard} card`}>
|
||||
<div className="d-flex justify-content-center">
|
||||
<Image
|
||||
className="card-img-top" src={test}
|
||||
className="card-img-top" src={produit.image}
|
||||
width="286"
|
||||
height="180"
|
||||
alt="produit"
|
||||
/>
|
||||
</div>
|
||||
<div className="card-body">
|
||||
<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>
|
||||
|
||||
Reference in new issue
Block a user