feature/page-admin
Eric 4 years ago
commit e6a7428158

@ -10,11 +10,11 @@ import style from '../styles/Content.module.css';
import Link from "next/link"; import Link from "next/link";
import feuilleGauche from '../public/images/feuilleGauche.png' import feuilleGauche from '../public/images/feuilleGauche.webp'
import feuilleDroite from '../public/images/feuilleBasDroite.png' import feuilleDroite from '../public/images/feuilleBasDroite.webp'
import cadeau from '../public/images/cadeau.png' import cadeau from '../public/images/cadeau.webp'
import jeuConcours from '../public/images/jeuconcours.png' import jeuConcours from '../public/images/jeuconcours.webp'
import footerGrass from '../public/images/footer_image.png' import footerGrass from '../public/images/footer_image.webp'
type Props = { type Props = {

@ -1,7 +1,7 @@
import Image from 'next/image' import Image from 'next/image'
import logo from '../public/images/logo.png'; import logo from '../public/images/logo.webp';
import logoInstagram from '../public/images/logo instagram.png'; import logoInstagram from '../public/images/logo instagram.webp';
import logoLinkedin from '../public/images/logo linkedin.png'; import logoLinkedin from '../public/images/logo linkedin.webp';
import style from '../styles/Footer.module.css' import style from '../styles/Footer.module.css'
import Link from 'next/link'; import Link from 'next/link';

@ -1,5 +1,5 @@
import React, { useRef } from "react"; import React, { useRef } from "react";
import logo from '../public/images/thetiptop_logo.png'; import logo from '../public/images/thetiptop_logo.webp';
import Link from "next/link"; import Link from "next/link";
import { useRouter } from "next/router"; import { useRouter } from "next/router";
import { signOut, useSession } from "next-auth/react"; import { signOut, useSession } from "next-auth/react";

@ -0,0 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
i18n: {
locales: ["fr"],
defaultLocale: "fr",
},
}
module.exports = nextConfig

@ -11,23 +11,25 @@ import { useForm } from "react-hook-form";
import Router from "next/router"; import Router from "next/router";
import Section from '../components/Section'; import Section from '../components/Section';
import style from '../styles/Index.module.css'; import style from '../styles/index.module.css';
import rotatingLeftImage from '../public/images/coffret-degustation-mousselines-individuelles-n3-PhotoRoom.png'; import rotatingLeftImage from '../public/images/coffret-degustation-mousselines-individuelles-n3-PhotoRoom.webp';
import rotatingRightImage from '../public/images/coffret-the-PhotoRoom.png'; 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.png' import testerCodeCadeau from '../public/images/testerlecode.webp'
import feuilleGauche from '../public/images/feuilleGauche.png' import feuilleGauche from '../public/images/feuilleGauche.webp'
import feuilleDroite from '../public/images/feuilleBasDroite.png' import feuilleDroite from '../public/images/feuilleBasDroite.webp'
import unAnDeThe from '../public/images/unandethé.png' import unAnDeThe from '../public/images/unandethé.webp'
import sablier from '../public/images/sablier.png' import sablier from '../public/images/sablier.webp'
import cadeau from '../public/images/cadeau.png' import cadeau from '../public/images/cadeau.webp'
import jeuConcours from '../public/images/jeuconcours.png' import jeuConcours from '../public/images/jeuconcours.webp'
import { GetServerSideProps } from "next"; import { GetServerSideProps } from "next";
import { toast } from "react-toastify"; import { toast } from "react-toastify";
// doesn't do anything, supposed to add the land in <html>
import "next.config.js";
type CodeSubmitForm = { type CodeSubmitForm = {
@ -95,7 +97,13 @@ const MainPage = () => {
return ( return (
<> <>
<Head> <Head>
<title>Home App</title> <title>Thé Tip Top</title>
<meta name="description" content="Participez au jeu concours Thé Tip Top ! Recevez un cadeau, et tentez votre chance pour gagner le gros lot final !" />
<meta name="robots" content="index, follow" />
<meta name="googlebot" content="index, follow" />
<meta name="googlebot-news" content="index, follow" />
<meta name="slurp" content="index, follow" />
<meta name="msnbot" content="index, follow" />
<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>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 575 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 900 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Before

Width:  |  Height:  |  Size: 16 MiB

After

Width:  |  Height:  |  Size: 16 MiB

Before

Width:  |  Height:  |  Size: 332 KiB

After

Width:  |  Height:  |  Size: 332 KiB

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Before

Width:  |  Height:  |  Size: 497 KiB

After

Width:  |  Height:  |  Size: 497 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 713 KiB

After

Width:  |  Height:  |  Size: 713 KiB

Before

Width:  |  Height:  |  Size: 726 KiB

After

Width:  |  Height:  |  Size: 726 KiB

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Before

Width:  |  Height:  |  Size: 662 KiB

After

Width:  |  Height:  |  Size: 662 KiB

Before

Width:  |  Height:  |  Size: 21 MiB

After

Width:  |  Height:  |  Size: 21 MiB

Before

Width:  |  Height:  |  Size: 13 MiB

After

Width:  |  Height:  |  Size: 13 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Before

Width:  |  Height:  |  Size: 9.3 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

Before

Width:  |  Height:  |  Size: 2.7 MiB

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 95 KiB

Before

Width:  |  Height:  |  Size: 15 MiB

After

Width:  |  Height:  |  Size: 15 MiB

Before

Width:  |  Height:  |  Size: 12 MiB

After

Width:  |  Height:  |  Size: 12 MiB

Before

Width:  |  Height:  |  Size: 9.5 MiB

After

Width:  |  Height:  |  Size: 9.5 MiB

Before

Width:  |  Height:  |  Size: 139 KiB

After

Width:  |  Height:  |  Size: 139 KiB

Before

Width:  |  Height:  |  Size: 314 KiB

After

Width:  |  Height:  |  Size: 314 KiB

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 81 KiB

Before

Width:  |  Height:  |  Size: 18 MiB

After

Width:  |  Height:  |  Size: 18 MiB

Before

Width:  |  Height:  |  Size: 20 MiB

After

Width:  |  Height:  |  Size: 20 MiB

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 796 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 788 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 883 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

@ -4,7 +4,7 @@
} }
.masthead { .masthead {
background-image: url('/images/pageprincipale.png'); background-image: url('/images/pageprincipale.webp');
background-size: cover; background-size: cover;
background-position: 50% 50%; background-position: 50% 50%;
background-repeat: no-repeat; background-repeat: no-repeat;
@ -15,7 +15,7 @@
.footerGrass { .footerGrass {
position: absolute; position: absolute;
background-image: url('/image/footer_image.png'); background-image: url('/image/footer_image.webp');
background-repeat: repeat-x; background-repeat: repeat-x;
background-size: contain; background-size: contain;
width: 100vw; width: 100vw;
@ -41,7 +41,7 @@
.bloc-content { .bloc-content {
padding: 10vh; padding: 10vh;
border-radius: 10px; border-radius: 10px;
background-image: url('/images/codebackground.png'); background-image: url('/images/codebackground.webp');
background-position: 50% 50%; background-position: 50% 50%;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: contain; background-size: contain;
@ -207,7 +207,7 @@
.footerGrass { .footerGrass {
position: absolute; position: absolute;
background-image: url('/image/footer_image.png'); background-image: url('/image/footer_image.webp');
background-size: contain; background-size: contain;
width: 100vw; width: 100vw;
bottom: -10px; bottom: -10px;

@ -1,7 +1,7 @@
.bloc-content { .bloc-content {
padding: 10vh; padding: 10vh;
border-radius: 10px; border-radius: 10px;
background-image: url('/images/codebackground.png'); background-image: url('/images/codebackground.webp');
background-position: 50% 50%; background-position: 50% 50%;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: contain; background-size: contain;

Loading…
Cancel
Save