Merge branch 'master' of https://git.dsp-archiwebo21-ad-ec-cb-mt.fr/cedric/The_Tip_Top into feature/page-admin
This commit is contained in:
commit
39e2ed4fce
11 files changed
+96
-121
No files matched your search
@@ -26,8 +26,6 @@ import Link from "next/link";
|
||||
|
||||
import { TfiInfoAlt } from 'react-icons/tfi'
|
||||
import { TfiGift } from 'react-icons/tfi'
|
||||
|
||||
|
||||
import { toast } from "react-toastify";
|
||||
import { Token } from "nodemailer/lib/xoauth2";
|
||||
import { isGeneratorFunction } from "util/types";
|
||||
@@ -35,7 +33,6 @@ import { UserProps } from "../types/user";
|
||||
import { UserGainProps } from "../types/userGain";
|
||||
import { Gain, Produit, User } from "@prisma/client";
|
||||
|
||||
|
||||
type FormData = {
|
||||
email: string;
|
||||
name: string;
|
||||
@@ -172,12 +169,9 @@ const MonCompte = (props: Props) => {
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
||||
</Head>
|
||||
|
||||
<div className={`${style['masthead']} d-flex justify-content-center align-items-center text-center`}>
|
||||
<div className="container align-items-center d-flex flex-column">
|
||||
|
||||
<div className={`${style['bloc-content']} col-12 col-md-12`}>
|
||||
|
||||
<div className="row">
|
||||
<div className="col-md-6 col-sm-12">
|
||||
<hr />
|
||||
@@ -185,14 +179,12 @@ const MonCompte = (props: Props) => {
|
||||
<hr />
|
||||
<form onSubmit={handleSubmit(onSubmit)}>
|
||||
<div className="form-group">
|
||||
|
||||
<div className="form-group row">
|
||||
<label htmlFor="staticEmail" className="col-sm-3 col-form-label">Email :</label>
|
||||
<div className="col-sm-9">
|
||||
<input type="text" readOnly className="form-control-plaintext text-sm-center" id="staticEmail" value={session?.user.email || ''} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="form-group row">
|
||||
<label htmlFor="inputName" className="col-sm-3 col-form-label">Nom :</label>
|
||||
<div className="col-sm-9">
|
||||
@@ -200,7 +192,6 @@ const MonCompte = (props: Props) => {
|
||||
<div className="invalid-feedback alert alert-danger mt-2">{errors.name?.message}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="form-group row">
|
||||
<label htmlFor="surname" className="col-sm-3 col-form-label">Prenom :</label>
|
||||
<div className="col-sm-9">
|
||||
@@ -208,7 +199,6 @@ const MonCompte = (props: Props) => {
|
||||
<div className="invalid-feedback alert alert-danger mt-2">{errors.surname?.message}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="form-group row">
|
||||
<label htmlFor="address" className="col-sm-3 col-form-label">Adresse :</label>
|
||||
<div className="col-sm-9">
|
||||
@@ -216,7 +206,6 @@ const MonCompte = (props: Props) => {
|
||||
<div className="invalid-feedback alert alert-danger mt-2">{errors.address?.message}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="form-group row">
|
||||
<label htmlFor="zipCode" className="col-sm-3 col-form-label">Code postale :</label>
|
||||
<div className="col-sm-9">
|
||||
@@ -224,7 +213,6 @@ const MonCompte = (props: Props) => {
|
||||
<div className="invalid-feedback alert alert-danger mt-2">{errors.zipCode?.message}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="form-group row">
|
||||
<label htmlFor="phoneNumber" className="col-sm-3 col-form-label">Téléphone :</label>
|
||||
<div className="col-sm-9">
|
||||
@@ -232,7 +220,6 @@ const MonCompte = (props: Props) => {
|
||||
<div className="invalid-feedback alert alert-danger mt-2">{errors.phoneNumber?.message}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="form-group">
|
||||
<button
|
||||
type="submit"
|
||||
@@ -242,7 +229,6 @@ const MonCompte = (props: Props) => {
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div className="col-md-6 col-sm-12">
|
||||
@@ -273,19 +259,8 @@ const MonCompte = (props: Props) => {
|
||||
</table>
|
||||
}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div >
|
||||
|
||||
</div>
|
||||
</div >
|
||||
</>)
|
||||
|
||||
+13
-10
@@ -4,7 +4,7 @@ import Head from "next/head";
|
||||
import style from '../styles/ToutSavoir.module.css'
|
||||
|
||||
|
||||
import test from '../public/images/coffret-the-PhotoRoom.webp';
|
||||
import test from '../public/images/tea-with-three-jars.webp';
|
||||
import prisma from "../lib/prisma";
|
||||
import Link from "next/link";
|
||||
|
||||
@@ -56,7 +56,7 @@ const ToutSavoir = ({ produits }: Props) => {
|
||||
<h2 className="text-center">Le gros lot</h2>
|
||||
<div className="row">
|
||||
<div className="col-12 col-lg-4">
|
||||
Image
|
||||
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€ !
|
||||
@@ -67,16 +67,19 @@ const ToutSavoir = ({ produits }: Props) => {
|
||||
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 p-3">
|
||||
<Image
|
||||
className="card-img-top" src={produit.image}
|
||||
width="286"
|
||||
height="180"
|
||||
alt="produit"
|
||||
/>
|
||||
<Image
|
||||
className="card-img-top" src={produit.image}
|
||||
width="286"
|
||||
height="180"
|
||||
alt="produit"
|
||||
/>
|
||||
</div>
|
||||
<div className="card-body">
|
||||
<div className="card-body d-flex flex-column h-100">
|
||||
<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 d-flex flex-column h-100">{produit.description}
|
||||
<br />
|
||||
<b className="mt-auto pt-2">Prix conseillé : {produit.prixTtc} €</b>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user