From 1a917e23470c2e4382cfa1daefaee772241fd24e Mon Sep 17 00:00:00 2001 From: C <38694948+CedricBeausseron@users.noreply.github.com> Date: Tue, 15 Nov 2022 11:32:44 +0100 Subject: [PATCH] add - meta sur page accueil, changements images png en webp --- components/Content.tsx | 10 +++--- components/Footer.tsx | 6 ++-- components/NavBar.tsx | 2 +- next.config.js | 9 ++++++ pages/index.tsx | 30 +++++++++++------- public/favicon.ico | Bin 25931 -> 116990 bytes public/images/blue-front.webp | Bin 0 -> 1307336 bytes .../brick-wall-with-tea-written-on-it.webp | Bin 0 -> 2723196 bytes public/images/cadeau.webp | Bin 0 -> 27872 bytes public/images/codebackground.webp | Bin 0 -> 53076 bytes ...ousselines-individuelles-n3-PhotoRoom.webp | Bin 0 -> 31234 bytes public/images/coffret-the-PhotoRoom.webp | Bin 0 -> 62836 bytes public/images/connexion_image.webp | Bin 0 -> 7316 bytes public/images/feuilleBasDroite.webp | Bin 0 -> 46250 bytes public/images/feuilleGauche.webp | Bin 0 -> 46390 bytes public/images/footer_background.webp | Bin 0 -> 7304 bytes public/images/footer_image.webp | Bin 0 -> 71814 bytes public/images/green-front.webp | Bin 0 -> 2958914 bytes ...and-holds-a-stainer-from-a-cup-of-tea.webp | Bin 0 -> 588574 bytes public/images/jars-in-a-blue-furniture.webp | Bin 0 -> 921514 bytes public/images/jeuconcours.webp | Bin 0 -> 27102 bytes ...5ab927282a2083.0146908415220836241726.webp | Bin 0 -> 190950 bytes public/images/logo instagram.webp | Bin 0 -> 2574 bytes public/images/logo linkedin.webp | Bin 0 -> 1772 bytes public/images/logo.webp | Bin 0 -> 4414 bytes .../maheima-kapur-dvdDtIjV2UY-unsplash.webp | Bin 0 -> 284144 bytes public/images/pageprincipale.webp | Bin 0 -> 43160 bytes public/images/pageprincipale~1.webp | Bin 0 -> 137658 bytes public/images/{ => png}/blue-front.png | Bin .../brick-wall-with-tea-written-on-it.png | Bin public/images/{ => png}/cadeau.png | Bin public/images/{ => png}/codebackground.png | Bin ...mousselines-individuelles-n3-PhotoRoom.png | Bin .../{ => png}/coffret-the-PhotoRoom.png | Bin public/images/{ => png}/connexion_image.png | Bin public/images/{ => png}/feuilleBasDroite.png | Bin public/images/{ => png}/feuilleGauche.png | Bin public/images/{ => png}/footer_background.png | Bin public/images/{ => png}/footer_image.png | Bin public/images/{ => png}/green-front.png | Bin ...hand-holds-a-stainer-from-a-cup-of-tea.png | Bin .../{ => png}/jars-in-a-blue-furniture.png | Bin public/images/png/jeuconcours.png | Bin 0 -> 59793 bytes ...-5ab927282a2083.0146908415220836241726.png | Bin public/images/{ => png}/logo instagram.png | Bin public/images/{ => png}/logo linkedin.png | Bin public/images/{ => png}/logo.png | Bin .../maheima-kapur-dvdDtIjV2UY-unsplash.jpg | Bin public/images/{ => png}/pageprincipale.png | Bin public/images/{ => png}/pageprincipale.psd | Bin public/images/png/rearrow.png | Bin 0 -> 33982 bytes public/images/{ => png}/sablier.png | Bin public/images/{ => png}/tea-and-mint.png | Bin public/images/{ => png}/tea-with-desserts.png | Bin .../images/{ => png}/tea-with-three-jars.png | Bin public/images/{ => png}/tentervotrechance.png | Bin public/images/{ => png}/testerlecode.png | Bin public/images/{ => png}/thetiptop_logo.png | Bin .../{ => png}/three-cups-of-tea-steeping.png | Bin ...-tea-towel-and-container-holding-grain.png | Bin public/images/{ => png}/ugh.png | Bin public/images/{ => png}/unandethé.png | Bin public/images/rearrow.webp | Bin 0 -> 21302 bytes public/images/sablier.webp | Bin 0 -> 20432 bytes public/images/tea-and-mint.webp | Bin 0 -> 814684 bytes public/images/tea-with-desserts.webp | Bin 0 -> 806504 bytes public/images/tea-with-three-jars.webp | Bin 0 -> 551182 bytes public/images/tentervotrechance.webp | Bin 0 -> 24230 bytes public/images/testerlecode.webp | Bin 0 -> 40352 bytes public/images/thetiptop_logo.webp | Bin 0 -> 32458 bytes public/images/three-cups-of-tea-steeping.webp | Bin 0 -> 1989118 bytes ...tea-towel-and-container-holding-grain.webp | Bin 0 -> 904632 bytes public/images/ugh.webp | Bin 0 -> 2452516 bytes public/images/unandethé.webp | Bin 0 -> 17028 bytes public/next-favicon.ico | Bin 0 -> 25931 bytes styles/Content.module.css | 8 ++--- styles/Index.module.css | 2 +- 77 files changed, 42 insertions(+), 25 deletions(-) create mode 100644 next.config.js create mode 100644 public/images/blue-front.webp create mode 100644 public/images/brick-wall-with-tea-written-on-it.webp create mode 100644 public/images/cadeau.webp create mode 100644 public/images/codebackground.webp create mode 100644 public/images/coffret-degustation-mousselines-individuelles-n3-PhotoRoom.webp create mode 100644 public/images/coffret-the-PhotoRoom.webp create mode 100644 public/images/connexion_image.webp create mode 100644 public/images/feuilleBasDroite.webp create mode 100644 public/images/feuilleGauche.webp create mode 100644 public/images/footer_background.webp create mode 100644 public/images/footer_image.webp create mode 100644 public/images/green-front.webp create mode 100644 public/images/hand-holds-a-stainer-from-a-cup-of-tea.webp create mode 100644 public/images/jars-in-a-blue-furniture.webp create mode 100644 public/images/jeuconcours.webp create mode 100644 public/images/kisspng-party-birthday-clip-art-winner-5ab927282a2083.0146908415220836241726.webp create mode 100644 public/images/logo instagram.webp create mode 100644 public/images/logo linkedin.webp create mode 100644 public/images/logo.webp create mode 100644 public/images/maheima-kapur-dvdDtIjV2UY-unsplash.webp create mode 100644 public/images/pageprincipale.webp create mode 100644 public/images/pageprincipale~1.webp rename public/images/{ => png}/blue-front.png (100%) rename public/images/{ => png}/brick-wall-with-tea-written-on-it.png (100%) rename public/images/{ => png}/cadeau.png (100%) rename public/images/{ => png}/codebackground.png (100%) rename public/images/{ => png}/coffret-degustation-mousselines-individuelles-n3-PhotoRoom.png (100%) rename public/images/{ => png}/coffret-the-PhotoRoom.png (100%) rename public/images/{ => png}/connexion_image.png (100%) rename public/images/{ => png}/feuilleBasDroite.png (100%) rename public/images/{ => png}/feuilleGauche.png (100%) rename public/images/{ => png}/footer_background.png (100%) rename public/images/{ => png}/footer_image.png (100%) rename public/images/{ => png}/green-front.png (100%) rename public/images/{ => png}/hand-holds-a-stainer-from-a-cup-of-tea.png (100%) rename public/images/{ => png}/jars-in-a-blue-furniture.png (100%) create mode 100644 public/images/png/jeuconcours.png rename public/images/{ => png}/kisspng-party-birthday-clip-art-winner-5ab927282a2083.0146908415220836241726.png (100%) rename public/images/{ => png}/logo instagram.png (100%) rename public/images/{ => png}/logo linkedin.png (100%) rename public/images/{ => png}/logo.png (100%) rename public/images/{ => png}/maheima-kapur-dvdDtIjV2UY-unsplash.jpg (100%) rename public/images/{ => png}/pageprincipale.png (100%) rename public/images/{ => png}/pageprincipale.psd (100%) create mode 100644 public/images/png/rearrow.png rename public/images/{ => png}/sablier.png (100%) rename public/images/{ => png}/tea-and-mint.png (100%) rename public/images/{ => png}/tea-with-desserts.png (100%) rename public/images/{ => png}/tea-with-three-jars.png (100%) rename public/images/{ => png}/tentervotrechance.png (100%) rename public/images/{ => png}/testerlecode.png (100%) rename public/images/{ => png}/thetiptop_logo.png (100%) rename public/images/{ => png}/three-cups-of-tea-steeping.png (100%) rename public/images/{ => png}/top-view-of-a-tea-towel-and-container-holding-grain.png (100%) rename public/images/{ => png}/ugh.png (100%) rename public/images/{ => png}/unandethé.png (100%) create mode 100644 public/images/rearrow.webp create mode 100644 public/images/sablier.webp create mode 100644 public/images/tea-and-mint.webp create mode 100644 public/images/tea-with-desserts.webp create mode 100644 public/images/tea-with-three-jars.webp create mode 100644 public/images/tentervotrechance.webp create mode 100644 public/images/testerlecode.webp create mode 100644 public/images/thetiptop_logo.webp create mode 100644 public/images/three-cups-of-tea-steeping.webp create mode 100644 public/images/top-view-of-a-tea-towel-and-container-holding-grain.webp create mode 100644 public/images/ugh.webp create mode 100644 public/images/unandethé.webp create mode 100644 public/next-favicon.ico diff --git a/components/Content.tsx b/components/Content.tsx index ed84e6e..50101c9 100644 --- a/components/Content.tsx +++ b/components/Content.tsx @@ -10,11 +10,11 @@ import style from '../styles/Content.module.css'; import Link from "next/link"; -import feuilleGauche from '../public/images/feuilleGauche.png' -import feuilleDroite from '../public/images/feuilleBasDroite.png' -import cadeau from '../public/images/cadeau.png' -import jeuConcours from '../public/images/jeuconcours.png' -import footerGrass from '../public/images/footer_image.png' +import feuilleGauche from '../public/images/feuilleGauche.webp' +import feuilleDroite from '../public/images/feuilleBasDroite.webp' +import cadeau from '../public/images/cadeau.webp' +import jeuConcours from '../public/images/jeuconcours.webp' +import footerGrass from '../public/images/footer_image.webp' type Props = { diff --git a/components/Footer.tsx b/components/Footer.tsx index 026994d..f4c0616 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -1,7 +1,7 @@ import Image from 'next/image' -import logo from '../public/images/logo.png'; -import logoInstagram from '../public/images/logo instagram.png'; -import logoLinkedin from '../public/images/logo linkedin.png'; +import logo from '../public/images/logo.webp'; +import logoInstagram from '../public/images/logo instagram.webp'; +import logoLinkedin from '../public/images/logo linkedin.webp'; import style from '../styles/Footer.module.css' import Link from 'next/link'; diff --git a/components/NavBar.tsx b/components/NavBar.tsx index 7cb03a0..2e7622f 100644 --- a/components/NavBar.tsx +++ b/components/NavBar.tsx @@ -1,5 +1,5 @@ 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 { useRouter } from "next/router"; import { signOut, useSession } from "next-auth/react"; diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..4ef7eed --- /dev/null +++ b/next.config.js @@ -0,0 +1,9 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + i18n: { + locales: ["fr"], + defaultLocale: "fr", + }, +} + +module.exports = nextConfig \ No newline at end of file diff --git a/pages/index.tsx b/pages/index.tsx index 87e51ea..78d2f1d 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -11,23 +11,25 @@ import { useForm } from "react-hook-form"; import Router from "next/router"; 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 rotatingRightImage from '../public/images/coffret-the-PhotoRoom.png'; +import rotatingLeftImage from '../public/images/coffret-degustation-mousselines-individuelles-n3-PhotoRoom.webp'; +import rotatingRightImage from '../public/images/coffret-the-PhotoRoom.webp'; import Link from "next/link"; -import testerCodeCadeau from '../public/images/testerlecode.png' -import feuilleGauche from '../public/images/feuilleGauche.png' -import feuilleDroite from '../public/images/feuilleBasDroite.png' -import unAnDeThe from '../public/images/unandethé.png' -import sablier from '../public/images/sablier.png' -import cadeau from '../public/images/cadeau.png' -import jeuConcours from '../public/images/jeuconcours.png' +import testerCodeCadeau from '../public/images/testerlecode.webp' +import feuilleGauche from '../public/images/feuilleGauche.webp' +import feuilleDroite from '../public/images/feuilleBasDroite.webp' +import unAnDeThe from '../public/images/unandethé.webp' +import sablier from '../public/images/sablier.webp' +import cadeau from '../public/images/cadeau.webp' +import jeuConcours from '../public/images/jeuconcours.webp' import { GetServerSideProps } from "next"; import { toast } from "react-toastify"; +// doesn't do anything, supposed to add the land in +import "next.config.js"; type CodeSubmitForm = { @@ -95,7 +97,13 @@ const MainPage = () => { return ( <>
-nb9EZZYwT1%4HGR5~%^b4)ZP#&0*c^Xp_Uf7%-YHBSEDJPm zi}C!A#8Bx-(t$Lj^u9Vt0oaIu%PT?e=Q4sz8s|~aHM l&{x{p}uEe9ef*i+?nB;^tbx{vOsh7Y_z?rGM#jeTL;Plc)VSD`6JR+F;sSj zPnNN>()(jlAnMysh)CDL#{Q*UT02(17MR2wUAVt8`{(KNt7QRp*mU|1Uiu$@sI I;oPtjsd!Y6_go7b7ku|j@a4og@QFRpORJIw zD&GpCy?z9lG8x!R-xt_u%x?UfEZi|z7UxBB!mggQPPqiWdeA%4)iG1Str!X1;p^2a zKi5ZxNJV%@mxFH3>Y8NxyX7)jfE`eLGz JxHqv_k(x%1F=Jcp!) zgX;6ko*!E~chGh;0y2;GQOvGzo<}xfE<(JQ)(da=n=DS@ J zWTZT>xoAkAL-Rqr(>_Mf{*AQgUxm31$!*x9xvc4sOr1S6#=rFDA+`NvaWdWq(qql| zpxL>_*!yuG-Y3HSO_#_5&DS!5J&S7>*c(_93jVAkV-)K_heP*%C#7*9Kj5(!waIM` z`+62Z7l5BJ+2U A z9`)K53cN{s5;`JA37eP)(cWC^<3e(K!ey~BciJXNa{FOmh~^&G!}ht)*T;JM?DVCh z)a`&6g}!+V_+~2;n mn)3P9wQWa$D8$i0|3K47H8;9&}K8XM`zND!g2n z1sP5EBwk5;^C4iK<~HD)!mOdPa2ITqB*Q1-nj69YY0q&A>yWnEYNuZ*)eXE+66)O{ zWPRbVen)_|uNu;qZ~~bp-h(|nJoY`({tL1jl8$E;7sN{mM nxy8^vOq@QN{T&bPs1~&R~)t59{-U%}OAqAU6 zZ^8=6IUZyGD6m9xVY1EGk)PDAu@}d1u@HRL$@e5xtfCFVLh#mEn5)_0`R$moq2D`l zO<*znNOR7H?;m~Pt(e#DC7vKIBpwOAmg<-#UPm}u06dXyHx4qGbObx{k^GaOKgQ&? zgY8OeXS%;ZGlBE~dav#3%Z^}=jdk##A7G2PC+p|*a&$lcve74s&9zqnhf5S)(n)?q z@|J8iG~XtkXH{-%$BF#VXst6V;?CIAXJIcT|0+d3X#11}-+|F@5Ch}dY{O{Df}vf- zrFDN28tZQmn-RY