Merge branch 'feature/cedric' of https://devops.dsp-archiwebo21-ad-ec-cb-mt.fr:8080/cedric/The_Tip_Top into develop
This commit is contained in:
commit
cce6fa777d
8 files changed
+7809
-118
No files matched your search
+1
-1
@@ -17,7 +17,7 @@ import rotatingLeftImage from '../public/images/coffret-degustation-mousselines-
|
||||
import rotatingRightImage from '../public/images/coffret-the-PhotoRoom.webp';
|
||||
import Link from "next/link";
|
||||
|
||||
import testerCodeCadeau from '../public/images/testerlecode.webp'
|
||||
import testerCodeCadeau from '../public/images/svg/testerlecode.svg'
|
||||
import feuilleGauche from '../public/images/feuilleGauche.webp'
|
||||
import feuilleDroite from '../public/images/feuilleBasDroite.webp'
|
||||
import unAnDeThe from '../public/images/unandethé.webp'
|
||||
|
||||
+13
-4
@@ -6,6 +6,7 @@ import style from '../styles/ToutSavoir.module.css'
|
||||
|
||||
import test from '../public/images/coffret-the-PhotoRoom.webp';
|
||||
import prisma from "../lib/prisma";
|
||||
import Link from "next/link";
|
||||
|
||||
export async function getStaticProps() {
|
||||
const produits = await prisma.produit.findMany();
|
||||
@@ -28,7 +29,6 @@ type Produit = {
|
||||
prixTtc: number;
|
||||
}
|
||||
|
||||
|
||||
const ToutSavoir = ({ produits }: Props) => {
|
||||
console.log('p', produits);
|
||||
|
||||
@@ -48,16 +48,25 @@ const ToutSavoir = ({ produits }: Props) => {
|
||||
{/* backgroundImagePath={'/images/ugh.png'} */}
|
||||
<div className="body-content">
|
||||
<h1 className="text-center mt-3">Tout savoir sur le jeu concours</h1>
|
||||
<div className="container">
|
||||
<div className="container mt-3">
|
||||
<p className="mt-5 text-center">
|
||||
Le jeu concours vous est proposé à l'occasion de ...
|
||||
Le jeu concours vous est proposé à l'occasion de l'ouverture de notre 10e boutique à Nice ! Pour participer, il vous suffit de faire un achat supérieur à 49€, un code vous sera fourni sur votre facture à saisir <Link href="/"><a>ici</a></Link>
|
||||
</p>
|
||||
<h2 className="text-center">Le gros lot</h2>
|
||||
<div className="row">
|
||||
<div className="col-12 col-lg-4">
|
||||
Image
|
||||
</div>
|
||||
<div className="col-12 col-lg-8">
|
||||
En participant au moins une fois à notre jeu concours, vous vous qualifiez pour gagner le gros lot : <b>1 an de thé</b> d'une valeur de 360€ !
|
||||
</div>
|
||||
</div>
|
||||
<div className="row">
|
||||
{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`}>
|
||||
<Image
|
||||
className="card-img-top" src={LinkToProduit[produit.nomProduit]}
|
||||
className="card-img-top" src={test}
|
||||
width="286"
|
||||
height="180"
|
||||
alt="produit"
|
||||
|
||||
Reference in new issue
Block a user