Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
10e415e53e | ||
|
|
deb3cc922b | ||
|
|
98dc6c4f64 | ||
|
|
9ed7de368f | ||
|
|
ffc2cb37a2 | ||
|
|
1d6abb05c1 |
No files matched your search
@@ -2,6 +2,8 @@ import React, { ReactNode } from "react";
|
|||||||
import NavBar from "./NavBar";
|
import NavBar from "./NavBar";
|
||||||
import Footer from "./Footer";
|
import Footer from "./Footer";
|
||||||
|
|
||||||
|
import CookieConsent from "react-cookie-consent";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
children?: React.ReactNode;
|
children?: React.ReactNode;
|
||||||
};
|
};
|
||||||
@@ -10,6 +12,11 @@ const Layout = ({ children }: Props) =>
|
|||||||
<div className="layout-container">
|
<div className="layout-container">
|
||||||
<NavBar />
|
<NavBar />
|
||||||
{children}
|
{children}
|
||||||
|
<CookieConsent
|
||||||
|
buttonText="Je comprends"
|
||||||
|
style={{ zIndex: "100000", justifyContent:"center" }}
|
||||||
|
buttonStyle={{color:"white",background:"#76AE0D"}}>
|
||||||
|
Ce site web utilise des cookies pour améliorer l'expérience de l'utilisateur.</CookieConsent>
|
||||||
<Footer />
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -39,12 +39,14 @@ const NavBar = () => {
|
|||||||
let visitor = (
|
let visitor = (
|
||||||
<nav className={`${style['navbar']}`}>
|
<nav className={`${style['navbar']}`}>
|
||||||
<div className="d-flex justify-content-center">
|
<div className="d-flex justify-content-center">
|
||||||
|
<Link href="/" legacyBehavior><a>
|
||||||
<Image
|
<Image
|
||||||
src={logo}
|
src={logo}
|
||||||
alt="thetiptop navigation logo big"
|
alt="thetiptop navigation logo big"
|
||||||
width={250}
|
width={250}
|
||||||
height={100}
|
height={100}
|
||||||
/>
|
/>
|
||||||
|
</a></Link>
|
||||||
</div>
|
</div>
|
||||||
<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><p>|</p>
|
<Link href="/" legacyBehavior><a className={style.link} >Accueil</a></Link><p>|</p>
|
||||||
|
|||||||
Generated
+33
@@ -25,6 +25,7 @@
|
|||||||
"nodemailer": "^6.8.0",
|
"nodemailer": "^6.8.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-chartjs-2": "^5.0.1",
|
"react-chartjs-2": "^5.0.1",
|
||||||
|
"react-cookie-consent": "^8.0.1",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"react-hook-form": "^7.39.2",
|
"react-hook-form": "^7.39.2",
|
||||||
"react-icons": "^4.6.0",
|
"react-icons": "^4.6.0",
|
||||||
@@ -5574,6 +5575,11 @@
|
|||||||
"resolved": "https://registry.npmjs.org/js-confetti/-/js-confetti-0.11.0.tgz",
|
"resolved": "https://registry.npmjs.org/js-confetti/-/js-confetti-0.11.0.tgz",
|
||||||
"integrity": "sha512-Hc7I3VI4r4H0nq5q/oQK+JJwGoYRYVHK72fGk8E9Ay1dbh+aiZ9yl0yFp1K4oYeq7YFDQAndYChwqLPA3QWQuA=="
|
"integrity": "sha512-Hc7I3VI4r4H0nq5q/oQK+JJwGoYRYVHK72fGk8E9Ay1dbh+aiZ9yl0yFp1K4oYeq7YFDQAndYChwqLPA3QWQuA=="
|
||||||
},
|
},
|
||||||
|
"node_modules/js-cookie": {
|
||||||
|
"version": "2.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-2.2.1.tgz",
|
||||||
|
"integrity": "sha512-HvdH2LzI/EAZcUwA8+0nKNtWHqS+ZmijLA30RwZA0bo7ToCckjK5MkGhjED9KoRcXO6BaGI3I9UIzSA1FKFPOQ=="
|
||||||
|
},
|
||||||
"node_modules/js-tokens": {
|
"node_modules/js-tokens": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
||||||
@@ -7272,6 +7278,20 @@
|
|||||||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/react-cookie-consent": {
|
||||||
|
"version": "8.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-cookie-consent/-/react-cookie-consent-8.0.1.tgz",
|
||||||
|
"integrity": "sha512-4A2jzPQDFfBhtxIz4hYX+vJ0QnOknGdOXpEoetXzgwUrMtxVJVow8YgBsGerNt5rJI7WhKkHwr8LmxekxgVejg==",
|
||||||
|
"dependencies": {
|
||||||
|
"js-cookie": "^2.2.1"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": ">=16"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/react-dom": {
|
"node_modules/react-dom": {
|
||||||
"version": "18.2.0",
|
"version": "18.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
|
||||||
@@ -13024,6 +13044,11 @@
|
|||||||
"resolved": "https://registry.npmjs.org/js-confetti/-/js-confetti-0.11.0.tgz",
|
"resolved": "https://registry.npmjs.org/js-confetti/-/js-confetti-0.11.0.tgz",
|
||||||
"integrity": "sha512-Hc7I3VI4r4H0nq5q/oQK+JJwGoYRYVHK72fGk8E9Ay1dbh+aiZ9yl0yFp1K4oYeq7YFDQAndYChwqLPA3QWQuA=="
|
"integrity": "sha512-Hc7I3VI4r4H0nq5q/oQK+JJwGoYRYVHK72fGk8E9Ay1dbh+aiZ9yl0yFp1K4oYeq7YFDQAndYChwqLPA3QWQuA=="
|
||||||
},
|
},
|
||||||
|
"js-cookie": {
|
||||||
|
"version": "2.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-2.2.1.tgz",
|
||||||
|
"integrity": "sha512-HvdH2LzI/EAZcUwA8+0nKNtWHqS+ZmijLA30RwZA0bo7ToCckjK5MkGhjED9KoRcXO6BaGI3I9UIzSA1FKFPOQ=="
|
||||||
|
},
|
||||||
"js-tokens": {
|
"js-tokens": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
||||||
@@ -14162,6 +14187,14 @@
|
|||||||
"integrity": "sha512-u38C9OxynlNCBp+79grgXRs7DSJ9w8FuQ5/HO5FbYBbri8HSZW+9SWgjVshLkbXBfXnMGWakbHEtvN0nL2UG7Q==",
|
"integrity": "sha512-u38C9OxynlNCBp+79grgXRs7DSJ9w8FuQ5/HO5FbYBbri8HSZW+9SWgjVshLkbXBfXnMGWakbHEtvN0nL2UG7Q==",
|
||||||
"requires": {}
|
"requires": {}
|
||||||
},
|
},
|
||||||
|
"react-cookie-consent": {
|
||||||
|
"version": "8.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/react-cookie-consent/-/react-cookie-consent-8.0.1.tgz",
|
||||||
|
"integrity": "sha512-4A2jzPQDFfBhtxIz4hYX+vJ0QnOknGdOXpEoetXzgwUrMtxVJVow8YgBsGerNt5rJI7WhKkHwr8LmxekxgVejg==",
|
||||||
|
"requires": {
|
||||||
|
"js-cookie": "^2.2.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
"react-dom": {
|
"react-dom": {
|
||||||
"version": "18.2.0",
|
"version": "18.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
"nodemailer": "^6.8.0",
|
"nodemailer": "^6.8.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-chartjs-2": "^5.0.1",
|
"react-chartjs-2": "^5.0.1",
|
||||||
|
"react-cookie-consent": "^8.0.1",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"react-hook-form": "^7.39.2",
|
"react-hook-form": "^7.39.2",
|
||||||
"react-icons": "^4.6.0",
|
"react-icons": "^4.6.0",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
import style from '../styles/404.module.css'
|
import style from '../styles/404.module.css'
|
||||||
|
import Script from "next/script";
|
||||||
|
|
||||||
const NotFound = () => {
|
const NotFound = () => {
|
||||||
return (
|
return (
|
||||||
@@ -16,6 +17,22 @@ const NotFound = () => {
|
|||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
||||||
</Head>
|
</Head>
|
||||||
|
<Script async src="https://www.googletagmanager.com/gtag/js?id=G-QNZD85D13X"></Script>
|
||||||
|
<Script>
|
||||||
|
{`
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
|
||||||
|
gtag('config', 'G-QNZD85D13X');
|
||||||
|
`}
|
||||||
|
</Script>
|
||||||
|
<Script>{`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||||
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||||
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||||
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||||
|
})(window,document,'script','dataLayer','GTM-MMHM9HX');`}</Script>
|
||||||
|
|
||||||
{/* backgroundImagePath={'/images/ugh.png'} */}
|
{/* backgroundImagePath={'/images/ugh.png'} */}
|
||||||
<div className="body-content position-relative">
|
<div className="body-content position-relative">
|
||||||
<div className={`${style['footer-separator']}`}></div>
|
<div className={`${style['footer-separator']}`}></div>
|
||||||
|
|||||||
+6
-6
@@ -397,14 +397,14 @@ const Admin = (props: Props) => {
|
|||||||
{currentUser && <form onSubmit={handleSubmit(onSubmit)}>
|
{currentUser && <form onSubmit={handleSubmit(onSubmit)}>
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
|
|
||||||
<div className="form-group row">
|
<div className="form-group row my-1">
|
||||||
<label htmlFor="staticEmail" className="col-sm-3 col-form-label">Email :</label>
|
<label htmlFor="staticEmail" className="col-sm-3 col-form-label">Email :</label>
|
||||||
<div className="col-sm-9">
|
<div className="col-sm-9">
|
||||||
<input type="text" readOnly className="form-control-plaintext text-sm-center" id="staticEmail" value={currentUser?.email || ''} />
|
<input type="text" readOnly className="form-control-plaintext text-sm-center" id="staticEmail" value={currentUser?.email || ''} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="form-group row">
|
<div className="form-group row my-1">
|
||||||
<label htmlFor="inputName" className="col-sm-3 col-form-label">Nom :</label>
|
<label htmlFor="inputName" className="col-sm-3 col-form-label">Nom :</label>
|
||||||
<div className="col-sm-9">
|
<div className="col-sm-9">
|
||||||
<input {...register("name")} className={`form-control ${errors.name ? 'is-invalid' : ''}`} defaultValue={currentUser?.name || ''} id="inputName" placeholder="John..." />
|
<input {...register("name")} className={`form-control ${errors.name ? 'is-invalid' : ''}`} defaultValue={currentUser?.name || ''} id="inputName" placeholder="John..." />
|
||||||
@@ -412,7 +412,7 @@ const Admin = (props: Props) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="form-group row">
|
<div className="form-group row my-1">
|
||||||
<label htmlFor="surname" className="col-sm-3 col-form-label">Prenom :</label>
|
<label htmlFor="surname" className="col-sm-3 col-form-label">Prenom :</label>
|
||||||
<div className="col-sm-9">
|
<div className="col-sm-9">
|
||||||
<input {...register("surname")} className={`form-control ${errors.surname ? 'is-invalid' : ''}`} defaultValue={currentUser?.surname || ''} id="surname" placeholder="Doe..." />
|
<input {...register("surname")} className={`form-control ${errors.surname ? 'is-invalid' : ''}`} defaultValue={currentUser?.surname || ''} id="surname" placeholder="Doe..." />
|
||||||
@@ -420,7 +420,7 @@ const Admin = (props: Props) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="form-group row">
|
<div className="form-group row my-1">
|
||||||
<label htmlFor="address" className="col-sm-3 col-form-label">Adresse :</label>
|
<label htmlFor="address" className="col-sm-3 col-form-label">Adresse :</label>
|
||||||
<div className="col-sm-9">
|
<div className="col-sm-9">
|
||||||
<input {...register("address")} className={`form-control ${errors.address ? 'is-invalid' : ''}`} defaultValue={currentUser?.address || ''} id="address" placeholder="1 rue de la paix..." />
|
<input {...register("address")} className={`form-control ${errors.address ? 'is-invalid' : ''}`} defaultValue={currentUser?.address || ''} id="address" placeholder="1 rue de la paix..." />
|
||||||
@@ -428,7 +428,7 @@ const Admin = (props: Props) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="form-group row">
|
<div className="form-group row my-1">
|
||||||
<label htmlFor="zipCode" className="col-sm-3 col-form-label">Code postale :</label>
|
<label htmlFor="zipCode" className="col-sm-3 col-form-label">Code postale :</label>
|
||||||
<div className="col-sm-9">
|
<div className="col-sm-9">
|
||||||
<input {...register("zipCode")} className={`form-control ${errors.zipCode ? 'is-invalid' : ''}`} defaultValue={currentUser?.zipCode || ''} id="zipCode" placeholder="95000..." />
|
<input {...register("zipCode")} className={`form-control ${errors.zipCode ? 'is-invalid' : ''}`} defaultValue={currentUser?.zipCode || ''} id="zipCode" placeholder="95000..." />
|
||||||
@@ -436,7 +436,7 @@ const Admin = (props: Props) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="form-group row">
|
<div className="form-group row my-1">
|
||||||
<label htmlFor="phoneNumber" className="col-sm-3 col-form-label">Téléphone :</label>
|
<label htmlFor="phoneNumber" className="col-sm-3 col-form-label">Téléphone :</label>
|
||||||
<div className="col-sm-9">
|
<div className="col-sm-9">
|
||||||
<input {...register("phoneNumber")} className={`form-control ${errors.phoneNumber ? 'is-invalid' : ''}`} defaultValue={currentUser?.phoneNumber || ''} id="phoneNumber" placeholder="0123456789..." />
|
<input {...register("phoneNumber")} className={`form-control ${errors.phoneNumber ? 'is-invalid' : ''}`} defaultValue={currentUser?.phoneNumber || ''} id="phoneNumber" placeholder="0123456789..." />
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ export default async function testCode(req: NextApiRequest, res: NextApiResponse
|
|||||||
id: codeCadeauInfo.produitId
|
id: codeCadeauInfo.produitId
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
return res.status(200).send({ success: 'Vous avez gagner un gain !', winProduct });
|
return res.status(200).send({ success: 'Vous avez gagné un gain !', winProduct });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
|
import Script from "next/script";
|
||||||
|
|
||||||
const Cgu = () => {
|
const Cgu = () => {
|
||||||
return (
|
return (
|
||||||
@@ -15,6 +16,22 @@ const Cgu = () => {
|
|||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
||||||
</Head>
|
</Head>
|
||||||
|
<Script async src="https://www.googletagmanager.com/gtag/js?id=G-QNZD85D13X"></Script>
|
||||||
|
<Script>
|
||||||
|
{`
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
|
||||||
|
gtag('config', 'G-QNZD85D13X');
|
||||||
|
`}
|
||||||
|
</Script>
|
||||||
|
<Script>{`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||||
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||||
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||||
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||||
|
})(window,document,'script','dataLayer','GTM-MMHM9HX');`}</Script>
|
||||||
|
|
||||||
<div className="container py-2 py-md-3">
|
<div className="container py-2 py-md-3">
|
||||||
<h1 className="text-center py-2 py-md-3">Conditions générales d’utilisation du site et des services proposés.</h1>
|
<h1 className="text-center py-2 py-md-3">Conditions générales d’utilisation du site et des services proposés.</h1>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import { AiOutlineGoogle } from 'react-icons/ai'
|
|||||||
import style from '../styles/Connexion.module.css';
|
import style from '../styles/Connexion.module.css';
|
||||||
import { SiGnuprivacyguard } from 'react-icons/si'
|
import { SiGnuprivacyguard } from 'react-icons/si'
|
||||||
import { toast } from "react-toastify";
|
import { toast } from "react-toastify";
|
||||||
|
import Script from "next/script";
|
||||||
|
|
||||||
type LoginSubmitForm = {
|
type LoginSubmitForm = {
|
||||||
email: string,
|
email: string,
|
||||||
@@ -63,6 +64,22 @@ const Connexion = () => {
|
|||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
||||||
</Head>
|
</Head>
|
||||||
|
<Script async src="https://www.googletagmanager.com/gtag/js?id=G-QNZD85D13X"></Script>
|
||||||
|
<Script>
|
||||||
|
{`
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
|
||||||
|
gtag('config', 'G-QNZD85D13X');
|
||||||
|
`}
|
||||||
|
</Script>
|
||||||
|
<Script>{`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||||
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||||
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||||
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||||
|
})(window,document,'script','dataLayer','GTM-MMHM9HX');`}</Script>
|
||||||
|
|
||||||
<div className={`${style['masthead']} d-flex justify-content-center align-items-center text-center`}>
|
<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="container align-items-center d-flex flex-column">
|
||||||
<div className={`${style['bloc-content']} col-12 col-md-6`}>
|
<div className={`${style['bloc-content']} col-12 col-md-6`}>
|
||||||
|
|||||||
+4
-4
@@ -32,11 +32,11 @@ const Contact = () => {
|
|||||||
<h2 className="text-center">Nos coordonées</h2>
|
<h2 className="text-center">Nos coordonées</h2>
|
||||||
<hr />
|
<hr />
|
||||||
<div className="px-2">
|
<div className="px-2">
|
||||||
|
<h3>Par téléphone</h3>
|
||||||
<a href="tel:0165389423">01.65.38.94.23</a>
|
<a href="tel:0165389423">01.65.38.94.23</a>
|
||||||
<h2>Par téléphone</h2>
|
<h3 className="mt-3">Par mail</h3>
|
||||||
<h2 className="mt-3">Par mail</h2>
|
|
||||||
<a href="mailto:contact@thetiptop.com">contact@thetiptop.com</a>
|
<a href="mailto:contact@thetiptop.com">contact@thetiptop.com</a>
|
||||||
<h2 className="mt-3">Sur nos réseaux</h2>
|
<h3 className="mt-3">Sur nos réseaux</h3>
|
||||||
<Link href={'https://www.instagram.com/the_tip_top_acem/?hl=fr'}><div>Instagram</div></Link>
|
<Link href={'https://www.instagram.com/the_tip_top_acem/?hl=fr'}><div>Instagram</div></Link>
|
||||||
<Link href={'https://www.facebook.com/profile.php?id=100088390638593'}><div>Facebook</div></Link>
|
<Link href={'https://www.facebook.com/profile.php?id=100088390638593'}><div>Facebook</div></Link>
|
||||||
</div>
|
</div>
|
||||||
@@ -46,7 +46,7 @@ const Contact = () => {
|
|||||||
<div className="col">
|
<div className="col">
|
||||||
<h2 className="text-center">Notre siège</h2>
|
<h2 className="text-center">Notre siège</h2>
|
||||||
<hr />
|
<hr />
|
||||||
<iframe width="200" height="200" id="gmap_canvas" src="https://maps.google.com/maps?q=18%20rue%20L%C3%A9on%20Frot,%2075%20011%20Paris&t=&z=17&ie=UTF8&iwloc=&output=embed" frameBorder="0" scrolling="no" marginHeight={0} marginWidth={0}>
|
<iframe width="250" height="250" id="gmap_canvas" src="https://maps.google.com/maps?q=18%20rue%20L%C3%A9on%20Frot,%2075%20011%20Paris&t=&z=17&ie=UTF8&iwloc=&output=embed" frameBorder="0" scrolling="no" marginHeight={0} marginWidth={0}>
|
||||||
</iframe>
|
</iframe>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
+18
-2
@@ -15,6 +15,7 @@ import { toast } from "react-toastify";
|
|||||||
import arrowUp from '../public/images/png/arrowup.png'
|
import arrowUp from '../public/images/png/arrowup.png'
|
||||||
import footerGrass from '../public/images/footer_image.webp'
|
import footerGrass from '../public/images/footer_image.webp'
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
import Script from "next/script";
|
||||||
|
|
||||||
type CodeSubmitForm = {
|
type CodeSubmitForm = {
|
||||||
codeCadeau: string;
|
codeCadeau: string;
|
||||||
@@ -106,6 +107,21 @@ const Index = () => {
|
|||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
||||||
</Head>
|
</Head>
|
||||||
|
<Script async src="https://www.googletagmanager.com/gtag/js?id=G-QNZD85D13X"></Script>
|
||||||
|
<Script>
|
||||||
|
{`
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
|
||||||
|
gtag('config', 'G-QNZD85D13X');
|
||||||
|
`}
|
||||||
|
</Script>
|
||||||
|
<Script>{`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||||
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||||
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||||
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||||
|
})(window,document,'script','dataLayer','GTM-MMHM9HX');`}</Script>
|
||||||
|
|
||||||
<div className={`${style['masthead']} body-content`}>
|
<div className={`${style['masthead']} body-content`}>
|
||||||
<div className="d-flex flex-wrap justify-content-center align-items-center text-center">
|
<div className="d-flex flex-wrap justify-content-center align-items-center text-center">
|
||||||
@@ -117,11 +133,11 @@ const Index = () => {
|
|||||||
className={`${style['rotatingSlow']}`}
|
className={`${style['rotatingSlow']}`}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className={`${style['jeuConcours']} ${style['imageContainer']}`}>
|
<div className={`${style['jeuConcours']} ${style['imageContainer']} ${style['zoomInOutCadeauContainer']}`}>
|
||||||
<Link href="/tout-savoir" legacyBehavior><a>
|
<Link href="/tout-savoir" legacyBehavior><a>
|
||||||
<Image
|
<Image
|
||||||
src={jeuConcours}
|
src={jeuConcours}
|
||||||
alt="thetiptop jeu Concours"
|
alt="thetiptop jeu concours, tout savoir"
|
||||||
layout="responsive"
|
layout="responsive"
|
||||||
className={`${style['zoomInOutCadeau']}`}
|
className={`${style['zoomInOutCadeau']}`}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
import style from "styled-jsx/style";
|
import style from "styled-jsx/style";
|
||||||
|
import Script from "next/script";
|
||||||
|
|
||||||
const MentionsLegales = () => {
|
const MentionsLegales = () => {
|
||||||
return (
|
return (
|
||||||
@@ -16,6 +17,21 @@ const MentionsLegales = () => {
|
|||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
||||||
</Head>
|
</Head>
|
||||||
|
<Script async src="https://www.googletagmanager.com/gtag/js?id=G-QNZD85D13X"></Script>
|
||||||
|
<Script>
|
||||||
|
{`
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
|
||||||
|
gtag('config', 'G-QNZD85D13X');
|
||||||
|
`}
|
||||||
|
</Script>
|
||||||
|
<Script>{`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||||
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||||
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||||
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||||
|
})(window,document,'script','dataLayer','GTM-MMHM9HX');`}</Script>
|
||||||
<div className={`${style['navbar']}`}>
|
<div className={`${style['navbar']}`}>
|
||||||
<div className="container py-2 py-md-3">
|
<div className="container py-2 py-md-3">
|
||||||
<h1 className="text-center py-2 py-md-3">Mentions légales</h1>
|
<h1 className="text-center py-2 py-md-3">Mentions légales</h1>
|
||||||
|
|||||||
@@ -167,41 +167,41 @@ const MonCompte = (props: Props) => {
|
|||||||
<hr />
|
<hr />
|
||||||
<form onSubmit={handleSubmit(onSubmit)}>
|
<form onSubmit={handleSubmit(onSubmit)}>
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<div className="form-group row">
|
<div className="form-group row my-1">
|
||||||
<label htmlFor="staticEmail" className="col-sm-3 col-form-label">Email :</label>
|
<label htmlFor="staticEmail" className="col-sm-3 col-form-label">Email :</label>
|
||||||
<div className="col-sm-9">
|
<div className="col-sm-9">
|
||||||
<input type="text" readOnly className="form-control-plaintext text-sm-center" id="staticEmail" value={session?.user.email || ''} />
|
<input type="text" readOnly className="form-control-plaintext text-sm-center" id="staticEmail" value={session?.user.email || ''} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="form-group row">
|
<div className="form-group row my-1">
|
||||||
<label htmlFor="inputName" className="col-sm-3 col-form-label">Nom :</label>
|
<label htmlFor="inputName" className="col-sm-3 col-form-label">Nom :</label>
|
||||||
<div className="col-sm-9">
|
<div className="col-sm-9">
|
||||||
<input {...register("name")} className={`form-control ${errors.name ? 'is-invalid' : ''}`} defaultValue={props.user?.name || ''} id="inputName" placeholder="John..." />
|
<input {...register("name")} className={`form-control ${errors.name ? 'is-invalid' : ''}`} defaultValue={props.user?.name || ''} id="inputName" placeholder="John..." />
|
||||||
<div className="invalid-feedback alert alert-danger mt-2">{errors.name?.message}</div>
|
<div className="invalid-feedback alert alert-danger mt-2">{errors.name?.message}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="form-group row">
|
<div className="form-group row my-1">
|
||||||
<label htmlFor="surname" className="col-sm-3 col-form-label">Prenom :</label>
|
<label htmlFor="surname" className="col-sm-3 col-form-label">Prenom :</label>
|
||||||
<div className="col-sm-9">
|
<div className="col-sm-9">
|
||||||
<input {...register("surname")} className={`form-control ${errors.surname ? 'is-invalid' : ''}`} defaultValue={props.user.surname || ''} id="surname" placeholder="Doe..." />
|
<input {...register("surname")} className={`form-control ${errors.surname ? 'is-invalid' : ''}`} defaultValue={props.user.surname || ''} id="surname" placeholder="Doe..." />
|
||||||
<div className="invalid-feedback alert alert-danger mt-2">{errors.surname?.message}</div>
|
<div className="invalid-feedback alert alert-danger mt-2">{errors.surname?.message}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="form-group row">
|
<div className="form-group row my-1">
|
||||||
<label htmlFor="address" className="col-sm-3 col-form-label">Adresse :</label>
|
<label htmlFor="address" className="col-sm-3 col-form-label">Adresse :</label>
|
||||||
<div className="col-sm-9">
|
<div className="col-sm-9">
|
||||||
<input {...register("address")} className={`form-control ${errors.address ? 'is-invalid' : ''}`} defaultValue={props.user.address} id="address" placeholder="1 rue de la paix..." />
|
<input {...register("address")} className={`form-control ${errors.address ? 'is-invalid' : ''}`} defaultValue={props.user.address} id="address" placeholder="1 rue de la paix..." />
|
||||||
<div className="invalid-feedback alert alert-danger mt-2">{errors.address?.message}</div>
|
<div className="invalid-feedback alert alert-danger mt-2">{errors.address?.message}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="form-group row">
|
<div className="form-group row my-1">
|
||||||
<label htmlFor="zipCode" className="col-sm-3 col-form-label">Code postale :</label>
|
<label htmlFor="zipCode" className="col-sm-3 col-form-label">Code postale :</label>
|
||||||
<div className="col-sm-9">
|
<div className="col-sm-9">
|
||||||
<input {...register("zipCode")} className={`form-control ${errors.zipCode ? 'is-invalid' : ''}`} defaultValue={props.user.zipCode} id="zipCode" placeholder="95000..." />
|
<input {...register("zipCode")} className={`form-control ${errors.zipCode ? 'is-invalid' : ''}`} defaultValue={props.user.zipCode} id="zipCode" placeholder="95000..." />
|
||||||
<div className="invalid-feedback alert alert-danger mt-2">{errors.zipCode?.message}</div>
|
<div className="invalid-feedback alert alert-danger mt-2">{errors.zipCode?.message}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="form-group row">
|
<div className="form-group row my-1">
|
||||||
<label htmlFor="phoneNumber" className="col-sm-3 col-form-label">Téléphone :</label>
|
<label htmlFor="phoneNumber" className="col-sm-3 col-form-label">Téléphone :</label>
|
||||||
<div className="col-sm-9">
|
<div className="col-sm-9">
|
||||||
<input {...register("phoneNumber")} className={`form-control ${errors.phoneNumber ? 'is-invalid' : ''}`} defaultValue={props.user.phoneNumber} id="phoneNumber" placeholder="0123456789..." />
|
<input {...register("phoneNumber")} className={`form-control ${errors.phoneNumber ? 'is-invalid' : ''}`} defaultValue={props.user.phoneNumber} id="phoneNumber" placeholder="0123456789..." />
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import style from '../styles/ToutSavoir.module.css'
|
|||||||
import test from '../public/images/tea-with-three-jars.webp';
|
import test from '../public/images/tea-with-three-jars.webp';
|
||||||
import prisma from "../lib/prisma";
|
import prisma from "../lib/prisma";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
import Script from "next/script";
|
||||||
|
|
||||||
|
|
||||||
export async function getStaticProps() {
|
export async function getStaticProps() {
|
||||||
@@ -44,6 +45,21 @@ const ToutSavoir = ({ produits }: Props) => {
|
|||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
|
||||||
</Head>
|
</Head>
|
||||||
|
<Script async src="https://www.googletagmanager.com/gtag/js?id=G-QNZD85D13X"></Script>
|
||||||
|
<Script>
|
||||||
|
{`
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
|
||||||
|
gtag('config', 'G-QNZD85D13X');
|
||||||
|
`}
|
||||||
|
</Script>
|
||||||
|
<Script>{`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||||
|
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||||
|
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||||
|
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||||
|
})(window,document,'script','dataLayer','GTM-MMHM9HX');`}</Script>
|
||||||
|
|
||||||
|
|
||||||
<div className="body-content">
|
<div className="body-content">
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
/* animation: zoomInOut 4s ease-in-out infinite; */
|
/* animation: zoomInOut 4s ease-in-out infinite; */
|
||||||
z-index: 9000;
|
z-index: 8999;
|
||||||
}
|
}
|
||||||
@media (min-width: 992px) {
|
@media (min-width: 992px) {
|
||||||
.bloc-content {
|
.bloc-content {
|
||||||
@@ -173,6 +173,9 @@
|
|||||||
width: 20vw;
|
width: 20vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.imageContainer.zoomInOutCadeauContainer{
|
||||||
|
z-index:9000;
|
||||||
|
}
|
||||||
|
|
||||||
.feuilleGauche,
|
.feuilleGauche,
|
||||||
.feuilleDroite,
|
.feuilleDroite,
|
||||||
|
|||||||
Reference in new issue
Block a user