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 f316a63..0e1c67c 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 (
<>
- Home App
+ Thé Tip Top
+
+
+
+
+
+
diff --git a/public/favicon.ico b/public/favicon.ico
index 718d6fe..9f982ad 100644
Binary files a/public/favicon.ico and b/public/favicon.ico differ
diff --git a/public/images/blue-front.webp b/public/images/blue-front.webp
new file mode 100644
index 0000000..450c81f
Binary files /dev/null and b/public/images/blue-front.webp differ
diff --git a/public/images/brick-wall-with-tea-written-on-it.webp b/public/images/brick-wall-with-tea-written-on-it.webp
new file mode 100644
index 0000000..b6ada45
Binary files /dev/null and b/public/images/brick-wall-with-tea-written-on-it.webp differ
diff --git a/public/images/cadeau.webp b/public/images/cadeau.webp
new file mode 100644
index 0000000..aeeec1e
Binary files /dev/null and b/public/images/cadeau.webp differ
diff --git a/public/images/codebackground.webp b/public/images/codebackground.webp
new file mode 100644
index 0000000..c34adbe
Binary files /dev/null and b/public/images/codebackground.webp differ
diff --git a/public/images/coffret-degustation-mousselines-individuelles-n3-PhotoRoom.webp b/public/images/coffret-degustation-mousselines-individuelles-n3-PhotoRoom.webp
new file mode 100644
index 0000000..3606c5a
Binary files /dev/null and b/public/images/coffret-degustation-mousselines-individuelles-n3-PhotoRoom.webp differ
diff --git a/public/images/coffret-the-PhotoRoom.webp b/public/images/coffret-the-PhotoRoom.webp
new file mode 100644
index 0000000..de1d6c8
Binary files /dev/null and b/public/images/coffret-the-PhotoRoom.webp differ
diff --git a/public/images/connexion_image.webp b/public/images/connexion_image.webp
new file mode 100644
index 0000000..11c2ee2
Binary files /dev/null and b/public/images/connexion_image.webp differ
diff --git a/public/images/feuilleBasDroite.webp b/public/images/feuilleBasDroite.webp
new file mode 100644
index 0000000..78eb3d3
Binary files /dev/null and b/public/images/feuilleBasDroite.webp differ
diff --git a/public/images/feuilleGauche.webp b/public/images/feuilleGauche.webp
new file mode 100644
index 0000000..8e00ebf
Binary files /dev/null and b/public/images/feuilleGauche.webp differ
diff --git a/public/images/footer_background.webp b/public/images/footer_background.webp
new file mode 100644
index 0000000..2fb9509
Binary files /dev/null and b/public/images/footer_background.webp differ
diff --git a/public/images/footer_image.webp b/public/images/footer_image.webp
new file mode 100644
index 0000000..49268c8
Binary files /dev/null and b/public/images/footer_image.webp differ
diff --git a/public/images/green-front.webp b/public/images/green-front.webp
new file mode 100644
index 0000000..ee667bf
Binary files /dev/null and b/public/images/green-front.webp differ
diff --git a/public/images/hand-holds-a-stainer-from-a-cup-of-tea.webp b/public/images/hand-holds-a-stainer-from-a-cup-of-tea.webp
new file mode 100644
index 0000000..c4ed733
Binary files /dev/null and b/public/images/hand-holds-a-stainer-from-a-cup-of-tea.webp differ
diff --git a/public/images/jars-in-a-blue-furniture.webp b/public/images/jars-in-a-blue-furniture.webp
new file mode 100644
index 0000000..b62eb47
Binary files /dev/null and b/public/images/jars-in-a-blue-furniture.webp differ
diff --git a/public/images/jeuconcours.webp b/public/images/jeuconcours.webp
new file mode 100644
index 0000000..737717d
Binary files /dev/null and b/public/images/jeuconcours.webp differ
diff --git a/public/images/kisspng-party-birthday-clip-art-winner-5ab927282a2083.0146908415220836241726.webp b/public/images/kisspng-party-birthday-clip-art-winner-5ab927282a2083.0146908415220836241726.webp
new file mode 100644
index 0000000..d1c45f8
Binary files /dev/null and b/public/images/kisspng-party-birthday-clip-art-winner-5ab927282a2083.0146908415220836241726.webp differ
diff --git a/public/images/logo instagram.webp b/public/images/logo instagram.webp
new file mode 100644
index 0000000..aa08039
Binary files /dev/null and b/public/images/logo instagram.webp differ
diff --git a/public/images/logo linkedin.webp b/public/images/logo linkedin.webp
new file mode 100644
index 0000000..9331c2c
Binary files /dev/null and b/public/images/logo linkedin.webp differ
diff --git a/public/images/logo.webp b/public/images/logo.webp
new file mode 100644
index 0000000..95c9001
Binary files /dev/null and b/public/images/logo.webp differ
diff --git a/public/images/maheima-kapur-dvdDtIjV2UY-unsplash.webp b/public/images/maheima-kapur-dvdDtIjV2UY-unsplash.webp
new file mode 100644
index 0000000..c52f565
Binary files /dev/null and b/public/images/maheima-kapur-dvdDtIjV2UY-unsplash.webp differ
diff --git a/public/images/pageprincipale.webp b/public/images/pageprincipale.webp
new file mode 100644
index 0000000..8dbf322
Binary files /dev/null and b/public/images/pageprincipale.webp differ
diff --git a/public/images/pageprincipale~1.webp b/public/images/pageprincipale~1.webp
new file mode 100644
index 0000000..160a1d3
Binary files /dev/null and b/public/images/pageprincipale~1.webp differ
diff --git a/public/images/blue-front.png b/public/images/png/blue-front.png
similarity index 100%
rename from public/images/blue-front.png
rename to public/images/png/blue-front.png
diff --git a/public/images/brick-wall-with-tea-written-on-it.png b/public/images/png/brick-wall-with-tea-written-on-it.png
similarity index 100%
rename from public/images/brick-wall-with-tea-written-on-it.png
rename to public/images/png/brick-wall-with-tea-written-on-it.png
diff --git a/public/images/cadeau.png b/public/images/png/cadeau.png
similarity index 100%
rename from public/images/cadeau.png
rename to public/images/png/cadeau.png
diff --git a/public/images/codebackground.png b/public/images/png/codebackground.png
similarity index 100%
rename from public/images/codebackground.png
rename to public/images/png/codebackground.png
diff --git a/public/images/coffret-degustation-mousselines-individuelles-n3-PhotoRoom.png b/public/images/png/coffret-degustation-mousselines-individuelles-n3-PhotoRoom.png
similarity index 100%
rename from public/images/coffret-degustation-mousselines-individuelles-n3-PhotoRoom.png
rename to public/images/png/coffret-degustation-mousselines-individuelles-n3-PhotoRoom.png
diff --git a/public/images/coffret-the-PhotoRoom.png b/public/images/png/coffret-the-PhotoRoom.png
similarity index 100%
rename from public/images/coffret-the-PhotoRoom.png
rename to public/images/png/coffret-the-PhotoRoom.png
diff --git a/public/images/connexion_image.png b/public/images/png/connexion_image.png
similarity index 100%
rename from public/images/connexion_image.png
rename to public/images/png/connexion_image.png
diff --git a/public/images/feuilleBasDroite.png b/public/images/png/feuilleBasDroite.png
similarity index 100%
rename from public/images/feuilleBasDroite.png
rename to public/images/png/feuilleBasDroite.png
diff --git a/public/images/feuilleGauche.png b/public/images/png/feuilleGauche.png
similarity index 100%
rename from public/images/feuilleGauche.png
rename to public/images/png/feuilleGauche.png
diff --git a/public/images/footer_background.png b/public/images/png/footer_background.png
similarity index 100%
rename from public/images/footer_background.png
rename to public/images/png/footer_background.png
diff --git a/public/images/footer_image.png b/public/images/png/footer_image.png
similarity index 100%
rename from public/images/footer_image.png
rename to public/images/png/footer_image.png
diff --git a/public/images/green-front.png b/public/images/png/green-front.png
similarity index 100%
rename from public/images/green-front.png
rename to public/images/png/green-front.png
diff --git a/public/images/hand-holds-a-stainer-from-a-cup-of-tea.png b/public/images/png/hand-holds-a-stainer-from-a-cup-of-tea.png
similarity index 100%
rename from public/images/hand-holds-a-stainer-from-a-cup-of-tea.png
rename to public/images/png/hand-holds-a-stainer-from-a-cup-of-tea.png
diff --git a/public/images/jars-in-a-blue-furniture.png b/public/images/png/jars-in-a-blue-furniture.png
similarity index 100%
rename from public/images/jars-in-a-blue-furniture.png
rename to public/images/png/jars-in-a-blue-furniture.png
diff --git a/public/images/png/jeuconcours.png b/public/images/png/jeuconcours.png
new file mode 100644
index 0000000..57a6fde
Binary files /dev/null and b/public/images/png/jeuconcours.png differ
diff --git a/public/images/kisspng-party-birthday-clip-art-winner-5ab927282a2083.0146908415220836241726.png b/public/images/png/kisspng-party-birthday-clip-art-winner-5ab927282a2083.0146908415220836241726.png
similarity index 100%
rename from public/images/kisspng-party-birthday-clip-art-winner-5ab927282a2083.0146908415220836241726.png
rename to public/images/png/kisspng-party-birthday-clip-art-winner-5ab927282a2083.0146908415220836241726.png
diff --git a/public/images/logo instagram.png b/public/images/png/logo instagram.png
similarity index 100%
rename from public/images/logo instagram.png
rename to public/images/png/logo instagram.png
diff --git a/public/images/logo linkedin.png b/public/images/png/logo linkedin.png
similarity index 100%
rename from public/images/logo linkedin.png
rename to public/images/png/logo linkedin.png
diff --git a/public/images/logo.png b/public/images/png/logo.png
similarity index 100%
rename from public/images/logo.png
rename to public/images/png/logo.png
diff --git a/public/images/maheima-kapur-dvdDtIjV2UY-unsplash.jpg b/public/images/png/maheima-kapur-dvdDtIjV2UY-unsplash.jpg
similarity index 100%
rename from public/images/maheima-kapur-dvdDtIjV2UY-unsplash.jpg
rename to public/images/png/maheima-kapur-dvdDtIjV2UY-unsplash.jpg
diff --git a/public/images/pageprincipale.png b/public/images/png/pageprincipale.png
similarity index 100%
rename from public/images/pageprincipale.png
rename to public/images/png/pageprincipale.png
diff --git a/public/images/pageprincipale.psd b/public/images/png/pageprincipale.psd
similarity index 100%
rename from public/images/pageprincipale.psd
rename to public/images/png/pageprincipale.psd
diff --git a/public/images/png/rearrow.png b/public/images/png/rearrow.png
new file mode 100644
index 0000000..959f539
Binary files /dev/null and b/public/images/png/rearrow.png differ
diff --git a/public/images/sablier.png b/public/images/png/sablier.png
similarity index 100%
rename from public/images/sablier.png
rename to public/images/png/sablier.png
diff --git a/public/images/tea-and-mint.png b/public/images/png/tea-and-mint.png
similarity index 100%
rename from public/images/tea-and-mint.png
rename to public/images/png/tea-and-mint.png
diff --git a/public/images/tea-with-desserts.png b/public/images/png/tea-with-desserts.png
similarity index 100%
rename from public/images/tea-with-desserts.png
rename to public/images/png/tea-with-desserts.png
diff --git a/public/images/tea-with-three-jars.png b/public/images/png/tea-with-three-jars.png
similarity index 100%
rename from public/images/tea-with-three-jars.png
rename to public/images/png/tea-with-three-jars.png
diff --git a/public/images/tentervotrechance.png b/public/images/png/tentervotrechance.png
similarity index 100%
rename from public/images/tentervotrechance.png
rename to public/images/png/tentervotrechance.png
diff --git a/public/images/testerlecode.png b/public/images/png/testerlecode.png
similarity index 100%
rename from public/images/testerlecode.png
rename to public/images/png/testerlecode.png
diff --git a/public/images/thetiptop_logo.png b/public/images/png/thetiptop_logo.png
similarity index 100%
rename from public/images/thetiptop_logo.png
rename to public/images/png/thetiptop_logo.png
diff --git a/public/images/three-cups-of-tea-steeping.png b/public/images/png/three-cups-of-tea-steeping.png
similarity index 100%
rename from public/images/three-cups-of-tea-steeping.png
rename to public/images/png/three-cups-of-tea-steeping.png
diff --git a/public/images/top-view-of-a-tea-towel-and-container-holding-grain.png b/public/images/png/top-view-of-a-tea-towel-and-container-holding-grain.png
similarity index 100%
rename from public/images/top-view-of-a-tea-towel-and-container-holding-grain.png
rename to public/images/png/top-view-of-a-tea-towel-and-container-holding-grain.png
diff --git a/public/images/ugh.png b/public/images/png/ugh.png
similarity index 100%
rename from public/images/ugh.png
rename to public/images/png/ugh.png
diff --git a/public/images/unandethé.png b/public/images/png/unandethé.png
similarity index 100%
rename from public/images/unandethé.png
rename to public/images/png/unandethé.png
diff --git a/public/images/rearrow.webp b/public/images/rearrow.webp
new file mode 100644
index 0000000..4eb17f9
Binary files /dev/null and b/public/images/rearrow.webp differ
diff --git a/public/images/sablier.webp b/public/images/sablier.webp
new file mode 100644
index 0000000..c3aedc6
Binary files /dev/null and b/public/images/sablier.webp differ
diff --git a/public/images/tea-and-mint.webp b/public/images/tea-and-mint.webp
new file mode 100644
index 0000000..cd41675
Binary files /dev/null and b/public/images/tea-and-mint.webp differ
diff --git a/public/images/tea-with-desserts.webp b/public/images/tea-with-desserts.webp
new file mode 100644
index 0000000..1744694
Binary files /dev/null and b/public/images/tea-with-desserts.webp differ
diff --git a/public/images/tea-with-three-jars.webp b/public/images/tea-with-three-jars.webp
new file mode 100644
index 0000000..fc87581
Binary files /dev/null and b/public/images/tea-with-three-jars.webp differ
diff --git a/public/images/tentervotrechance.webp b/public/images/tentervotrechance.webp
new file mode 100644
index 0000000..4db20fe
Binary files /dev/null and b/public/images/tentervotrechance.webp differ
diff --git a/public/images/testerlecode.webp b/public/images/testerlecode.webp
new file mode 100644
index 0000000..9ae7ac6
Binary files /dev/null and b/public/images/testerlecode.webp differ
diff --git a/public/images/thetiptop_logo.webp b/public/images/thetiptop_logo.webp
new file mode 100644
index 0000000..81b5473
Binary files /dev/null and b/public/images/thetiptop_logo.webp differ
diff --git a/public/images/three-cups-of-tea-steeping.webp b/public/images/three-cups-of-tea-steeping.webp
new file mode 100644
index 0000000..b09ec42
Binary files /dev/null and b/public/images/three-cups-of-tea-steeping.webp differ
diff --git a/public/images/top-view-of-a-tea-towel-and-container-holding-grain.webp b/public/images/top-view-of-a-tea-towel-and-container-holding-grain.webp
new file mode 100644
index 0000000..823c7c0
Binary files /dev/null and b/public/images/top-view-of-a-tea-towel-and-container-holding-grain.webp differ
diff --git a/public/images/ugh.webp b/public/images/ugh.webp
new file mode 100644
index 0000000..8d27474
Binary files /dev/null and b/public/images/ugh.webp differ
diff --git a/public/images/unandethé.webp b/public/images/unandethé.webp
new file mode 100644
index 0000000..0a57169
Binary files /dev/null and b/public/images/unandethé.webp differ
diff --git a/public/next-favicon.ico b/public/next-favicon.ico
new file mode 100644
index 0000000..718d6fe
Binary files /dev/null and b/public/next-favicon.ico differ
diff --git a/styles/Content.module.css b/styles/Content.module.css
index 6ebf7c8..0f47dc2 100644
--- a/styles/Content.module.css
+++ b/styles/Content.module.css
@@ -4,7 +4,7 @@
}
.masthead {
- background-image: url('/images/pageprincipale.png');
+ background-image: url('/images/pageprincipale.webp');
background-size: cover;
background-position: 50% 50%;
background-repeat: no-repeat;
@@ -15,7 +15,7 @@
.footerGrass {
position: absolute;
- background-image: url('/image/footer_image.png');
+ background-image: url('/image/footer_image.webp');
background-repeat: repeat-x;
background-size: contain;
width: 100vw;
@@ -41,7 +41,7 @@
.bloc-content {
padding: 10vh;
border-radius: 10px;
- background-image: url('/images/codebackground.png');
+ background-image: url('/images/codebackground.webp');
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: contain;
@@ -207,7 +207,7 @@
.footerGrass {
position: absolute;
- background-image: url('/image/footer_image.png');
+ background-image: url('/image/footer_image.webp');
background-size: contain;
width: 100vw;
bottom: -10px;
diff --git a/styles/Index.module.css b/styles/Index.module.css
index 8729f49..ec09fc0 100644
--- a/styles/Index.module.css
+++ b/styles/Index.module.css
@@ -1,7 +1,7 @@
.bloc-content {
padding: 10vh;
border-radius: 10px;
- background-image: url('/images/codebackground.png');
+ background-image: url('/images/codebackground.webp');
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: contain;