ajout modif du github

feature/page-admin
unknown 4 years ago
parent 5927d8e937
commit e3ede7484e

@ -10,7 +10,7 @@ const Footer = () => {
return ( return (
<footer className={`${style.footer}`}> <footer className={`${style.footer}`}>
<div className={`${style['footerContent']}`}> <div className={`${style['footerContent']}`}>
<div className="container border-bottom"> <div className="container p-3">
<div className="row align-items-center"> <div className="row align-items-center">
<div className="col-sm-6 col-md-3 d-flex justify-content-center"> <div className="col-sm-6 col-md-3 d-flex justify-content-center">
<Link href="/" passHref > <Link href="/" passHref >

@ -41,7 +41,7 @@ const NavBar = () => {
<div className={`justify-content-center text-center ${style['hidden-mobile']}`}> <div className={`justify-content-center text-center ${style['hidden-mobile']}`}>
<Link href="/" legacyBehavior><a className={style.link} >Accueil</a></Link> | <Link href="/" legacyBehavior><a className={style.link} >Accueil</a></Link> |
<Link href="/" legacyBehavior><a className={style.link} >Nos produits</a></Link> | <Link href="/tout-savoir" legacyBehavior><a className={style.link} >Tout Savoir</a></Link> |
<Link href="/contact" legacyBehavior><a className={style.link} >Contactez-nous</a></Link> | <Link href="/contact" legacyBehavior><a className={style.link} >Contactez-nous</a></Link> |
{!session && <Link href="/connexion" legacyBehavior><a className={style.link} >Connexion</a></Link>} {!session && <Link href="/connexion" legacyBehavior><a className={style.link} >Connexion</a></Link>}
{session && <Link href="/connexion" legacyBehavior><a className={style.link} >Mon compte</a></Link>} {session && <Link href="/connexion" legacyBehavior><a className={style.link} >Mon compte</a></Link>}
@ -66,7 +66,7 @@ const NavBar = () => {
<a className={style.closebtn} onClick={closeNav}>&times;</a> <a className={style.closebtn} onClick={closeNav}>&times;</a>
<div className="overlay-content"> <div className="overlay-content">
<Link href="/contact" legacyBehavior><a className={style.link} >Accueil</a></Link> | <Link href="/contact" legacyBehavior><a className={style.link} >Accueil</a></Link> |
<Link href="/" legacyBehavior><a className={style.link} >Nos produits</a></Link> | <Link href="/tout-savoir" legacyBehavior><a className={style.link} >Tout savoir</a></Link> |
<Link href="/" legacyBehavior><a className={style.link} >Contactez-nous</a></Link> | <Link href="/" legacyBehavior><a className={style.link} >Contactez-nous</a></Link> |

@ -17,7 +17,7 @@ import rotatingLeftImage from '../public/images/coffret-degustation-mousselines-
import rotatingRightImage from '../public/images/coffret-the-PhotoRoom.webp'; import rotatingRightImage from '../public/images/coffret-the-PhotoRoom.webp';
import Link from "next/link"; 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 feuilleGauche from '../public/images/feuilleGauche.webp'
import feuilleDroite from '../public/images/feuilleBasDroite.webp' import feuilleDroite from '../public/images/feuilleBasDroite.webp'
import unAnDeThe from '../public/images/unandethé.webp' import unAnDeThe from '../public/images/unandethé.webp'

@ -6,6 +6,7 @@ import style from '../styles/ToutSavoir.module.css'
import test from '../public/images/coffret-the-PhotoRoom.webp'; import test from '../public/images/coffret-the-PhotoRoom.webp';
import prisma from "../lib/prisma"; import prisma from "../lib/prisma";
import Link from "next/link";
export async function getStaticProps() { export async function getStaticProps() {
const produits = await prisma.produit.findMany(); const produits = await prisma.produit.findMany();
@ -47,10 +48,19 @@ const ToutSavoir = ({ produits }: Props) => {
{/* backgroundImagePath={'/images/ugh.png'} */} {/* backgroundImagePath={'/images/ugh.png'} */}
<div className="body-content"> <div className="body-content">
<h1 className="text-center mt-3">Tout savoir sur le jeu concours</h1> <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"> <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> </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"> <div className="row">
{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}>

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 2.1 MiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 2.0 MiB

@ -3,8 +3,9 @@
/* margin-top:auto; */ /* margin-top:auto; */
width:100%; width:100%;
display: table-footer-group; display: table-footer-group;
background-color: #006600e6;
} }
.footerContent{ /* .footerContent{
background-color: #006600e6; background-color: #006600e6;
} } */

Loading…
Cancel
Save