From ef7fbf4636d9dc44643c5e52a5ae0439969e36aa Mon Sep 17 00:00:00 2001 From: C <38694948+CedricBeausseron@users.noreply.github.com> Date: Wed, 16 Nov 2022 16:41:03 +0100 Subject: [PATCH] add - 404 --- components/Section.tsx | 20 -------------------- pages/404.tsx | 30 ++++++++++++++++++++++++++++++ pages/connexion.tsx | 1 + pages/contact.tsx | 2 +- styles/Section.module.css | 14 -------------- 5 files changed, 32 insertions(+), 35 deletions(-) delete mode 100644 components/Section.tsx create mode 100644 pages/404.tsx delete mode 100644 styles/Section.module.css diff --git a/components/Section.tsx b/components/Section.tsx deleted file mode 100644 index 36d348d..0000000 --- a/components/Section.tsx +++ /dev/null @@ -1,20 +0,0 @@ - -import style from "../styles/Section.module.css" - -const Section = ({ children, backgroundImagePath, customClass = "d-flex justify-content-center text-center align-items-center" }) => { - const isImagePath = backgroundImagePath ? { backgroundImage: `url(${backgroundImagePath})` } : { backgroundColor: 'white' } - return ( -
-
-
- {children} -
-
-
- ); -}; - -export default Section; \ No newline at end of file diff --git a/pages/404.tsx b/pages/404.tsx new file mode 100644 index 0000000..949ef32 --- /dev/null +++ b/pages/404.tsx @@ -0,0 +1,30 @@ +import React from "react"; +import Head from "next/head"; + +const Contact = () => { + + return ( + <> + + Page introuvable + + + + + + + + + + {/* backgroundImagePath={'/images/ugh.png'} */} +
+
+

Page introuvable

+

La page recherchée n'existe pas.

+
+
+ + ); +}; + +export default Contact; \ No newline at end of file diff --git a/pages/connexion.tsx b/pages/connexion.tsx index af74dd7..27b6866 100644 --- a/pages/connexion.tsx +++ b/pages/connexion.tsx @@ -173,6 +173,7 @@ const MainPage = ({ csrfToken }: Props) => { className={`form-check-input ${errors.acceptTerms ? 'is-invalid' : ''}`} {...register("acceptTerms")} name="acceptTerms" + id="acceptTerms" /> diff --git a/pages/contact.tsx b/pages/contact.tsx index 75c84a4..b56030b 100644 --- a/pages/contact.tsx +++ b/pages/contact.tsx @@ -17,7 +17,7 @@ const Contact = () => { -
+

Contactez nous

diff --git a/styles/Section.module.css b/styles/Section.module.css deleted file mode 100644 index fdcc092..0000000 --- a/styles/Section.module.css +++ /dev/null @@ -1,14 +0,0 @@ -.section { - height: 100vh; - min-height: 500px; - background-size: cover; - background-position: center; - background-repeat: no-repeat; - /* box-shadow: 5px 5px 15px 5px #000000; */ -} - -.bloc-content { - padding: 5vh; - border-radius: 10px; - background-color: rgba(255, 255, 255, 0.8); -} \ No newline at end of file