diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 5a976ad..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "workbench.colorCustomizations": { - "activityBar.background": "#521342", - "titleBar.activeBackground": "#731B5D", - "titleBar.activeForeground": "#FDF8FC" - } -} \ No newline at end of file diff --git a/components/Footer.tsx b/components/Footer.tsx new file mode 100644 index 0000000..957078c --- /dev/null +++ b/components/Footer.tsx @@ -0,0 +1,73 @@ +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 Link from 'next/link'; + +const Footer = () => { + return ( + + ); +} + +export default Footer; \ No newline at end of file diff --git a/components/Header.tsx b/components/Header.tsx deleted file mode 100644 index 142795d..0000000 --- a/components/Header.tsx +++ /dev/null @@ -1,216 +0,0 @@ -import React from "react"; -import Link from "next/link"; -import { useRouter } from "next/router"; -import { signOut, useSession } from "next-auth/react"; - -const Header = () => { - const router = useRouter(); - const isActive: (pathname: string) => boolean = (pathname) => - router.pathname === pathname; - - const { data: session, status } = useSession(); - - let left = ( -
- - - Feed - - - -
- ); - - let right = null; - - if (status === 'loading') { - left = ( -
- - - Feed - - - -
- ); - right = ( -
-

Validating session ...

- -
- ); - } - - if (!session) { - right = ( -
- - Log in - - -
- ); - } - - if (session) { - left = ( -
- - - Feed - - - - My drafts - - - - Mon Compte - - - -
- ); - right = ( -
-

- {session.user.name} ({session.user.email}) -

- - - - - -
- ); - } - - return ( - - ); -}; - -export default Header; diff --git a/components/Layout.tsx b/components/Layout.tsx index 6194bbe..d6ec375 100644 --- a/components/Layout.tsx +++ b/components/Layout.tsx @@ -1,50 +1,18 @@ import React, { ReactNode } from "react"; -import Header from "./Header"; +import NavBar from "./NavBar"; +import Footer from "./Footer"; + type Props = { children?: React.ReactNode; }; -const Layout = ({ children }: Props) => ( +const Layout = ({ children }: Props) =>
-
-
{children}
- - + + {children} +
-); export default Layout; + diff --git a/components/NavBar.tsx b/components/NavBar.tsx new file mode 100644 index 0000000..6e63358 --- /dev/null +++ b/components/NavBar.tsx @@ -0,0 +1,76 @@ +import React, { useRef } from "react"; +import logo from '../public/images/thetiptop_logo.png'; +import Link from "next/link"; +import { useRouter } from "next/router"; +import { signOut, useSession } from "next-auth/react"; +import style from '../styles/NavBar.module.css'; +import Image from 'next/image'; +import { UserProps } from "../types/user"; + + + + +const NavBar = ({ role, email }: UserProps) => { + + const navRef = useRef(); + + const router = useRouter(); + const { data: session, status } = useSession(); + + const closeNav = () => { + navRef.current.style.height = "0%"; + } + + const openNav = () => { + navRef.current.style.height = "100%"; + } + + let visitor = ( + + + ) + + return (<> + {visitor} + ) + + + +}; + +export default NavBar; diff --git a/components/Section.tsx b/components/Section.tsx new file mode 100644 index 0000000..36d348d --- /dev/null +++ b/components/Section.tsx @@ -0,0 +1,20 @@ + +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/css/custom.css b/css/custom.css deleted file mode 100644 index e69de29..0000000 diff --git a/pages/_app.tsx b/pages/_app.tsx index 68b8dd7..6c14d61 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -3,7 +3,8 @@ import { AppProps } from "next/app"; import { useEffect } from "react"; import 'bootstrap/dist/css/bootstrap.css' -import "../css/custom.css"; +import "../styles/globals.css"; +import Layout from "../components/Layout"; const App = ({ Component, pageProps }: AppProps) => { useEffect(() => { @@ -12,7 +13,9 @@ const App = ({ Component, pageProps }: AppProps) => { return ( - + + + ); }; diff --git a/pages/index.tsx b/pages/index.tsx index f7419e2..889a7f4 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -2,10 +2,30 @@ import React from "react"; import Layout from "../components/Layout"; import prisma from '../lib/prisma' -import { yupResolver } from "@hookform/resolvers/yup"; -import { useForm } from "react-hook-form"; +import Image from 'next/image'; import * as Yup from 'yup'; +import Head from "next/head"; import { useSession } from "next-auth/react"; +import { yupResolver } from "@hookform/resolvers/yup"; +import { useForm } from "react-hook-form"; +import Router from "next/router"; + +import Section from '../components/Section'; +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 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' + + type CodeSubmitForm = { codeCadeau: string; @@ -55,32 +75,146 @@ const MainPage = () => { }; - return ( - -
-

TheTipTop - jeu concours !

-
-
-
- - + + Home App + + + + +
+
+ thetiptop feuille Gauche +
+
+ thetiptop feuille Droite +
+
+ thetiptop jeu Concours +
+
+ thetiptop cadeau +
+ +
+ +
+ + +
+ thetiptop navigation logo -
{errors.codeCadeau?.message}
-
- + + + + + + + + +
+ + + + Code à usage unique +
{errors.codeCadeau?.message}
+ +
+
+ +
+ +
+ + {/*
+

A gagner

+
+
+ coffret de thé marron rempli de sachets de toutes couleurs +
+
+
+
+ coffret de thé marron rempli de sachets de toutes couleurs +
- -
-
-
+
+
+ coffret de thé marron rempli de sachets de toutes couleurs +
+
+
+
+ Et bien d'autres ! +
+
+ */} + + + + {/*
+

Présentation du jeu concours

+

+ Gagnez de superbes cadeaux en achetant nos produits ! +
+ Pour participer, il vous suffit d'effectuer un achat en boutique d'une valeur supérieure à XXX euros. Retrouvez votre code sur la facture ! +
+ Saisissez votre code ... Félicitations ! Vous avez gagné un cadeau ! Il nous vous reste plus qu'à le récupérer en magasin. +
+ Après la [XXX période], vous participerez au jeu concours final afin de gagner XXX. Un participation par personne est comptabilisée pour le concours final. +

+
+
+

Présentation de Thé Tip Top

+

+ Thé Tip Top est une entreprise de thé [XXX ajouter des spécifications en se basant sur le cahier des charges] +

+
*/} + ); }; diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..718d6fe Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/images/blue-front.png b/public/images/blue-front.png new file mode 100644 index 0000000..6b01f40 Binary files /dev/null and b/public/images/blue-front.png differ diff --git a/public/images/brick-wall-with-tea-written-on-it.png b/public/images/brick-wall-with-tea-written-on-it.png new file mode 100644 index 0000000..f546182 Binary files /dev/null and b/public/images/brick-wall-with-tea-written-on-it.png differ diff --git a/public/images/cadeau.png b/public/images/cadeau.png new file mode 100644 index 0000000..1f9109b Binary files /dev/null and b/public/images/cadeau.png differ diff --git a/public/images/codebackground.png b/public/images/codebackground.png new file mode 100644 index 0000000..630ce83 Binary files /dev/null and b/public/images/codebackground.png differ diff --git a/public/images/coffret-degustation-mousselines-individuelles-n3-PhotoRoom.png b/public/images/coffret-degustation-mousselines-individuelles-n3-PhotoRoom.png new file mode 100644 index 0000000..bf730f5 Binary files /dev/null and b/public/images/coffret-degustation-mousselines-individuelles-n3-PhotoRoom.png differ diff --git a/public/images/coffret-the-PhotoRoom.png b/public/images/coffret-the-PhotoRoom.png new file mode 100644 index 0000000..0ced5a3 Binary files /dev/null and b/public/images/coffret-the-PhotoRoom.png differ diff --git a/public/images/feuilleBasDroite.png b/public/images/feuilleBasDroite.png new file mode 100644 index 0000000..0b1c41b Binary files /dev/null and b/public/images/feuilleBasDroite.png differ diff --git a/public/images/feuilleGauche.png b/public/images/feuilleGauche.png new file mode 100644 index 0000000..964b479 Binary files /dev/null and b/public/images/feuilleGauche.png differ diff --git a/public/images/green-front.png b/public/images/green-front.png new file mode 100644 index 0000000..481d4b9 Binary files /dev/null and b/public/images/green-front.png differ diff --git a/public/images/hand-holds-a-stainer-from-a-cup-of-tea.png b/public/images/hand-holds-a-stainer-from-a-cup-of-tea.png new file mode 100644 index 0000000..3aeb423 Binary files /dev/null and b/public/images/hand-holds-a-stainer-from-a-cup-of-tea.png differ diff --git a/public/images/jars-in-a-blue-furniture.png b/public/images/jars-in-a-blue-furniture.png new file mode 100644 index 0000000..be803f3 Binary files /dev/null and b/public/images/jars-in-a-blue-furniture.png differ diff --git a/public/images/jeuconcours.png b/public/images/jeuconcours.png new file mode 100644 index 0000000..d0b2cb5 Binary files /dev/null and b/public/images/jeuconcours.png differ diff --git a/public/images/kisspng-party-birthday-clip-art-winner-5ab927282a2083.0146908415220836241726.png b/public/images/kisspng-party-birthday-clip-art-winner-5ab927282a2083.0146908415220836241726.png new file mode 100644 index 0000000..fd6e70e Binary files /dev/null and b/public/images/kisspng-party-birthday-clip-art-winner-5ab927282a2083.0146908415220836241726.png differ diff --git a/public/images/logo instagram.png b/public/images/logo instagram.png new file mode 100644 index 0000000..62d9755 Binary files /dev/null and b/public/images/logo instagram.png differ diff --git a/public/images/logo linkedin.png b/public/images/logo linkedin.png new file mode 100644 index 0000000..dae3f47 Binary files /dev/null and b/public/images/logo linkedin.png differ diff --git a/public/images/logo.png b/public/images/logo.png new file mode 100644 index 0000000..fabd135 Binary files /dev/null and b/public/images/logo.png differ diff --git a/public/images/maheima-kapur-dvdDtIjV2UY-unsplash.jpg b/public/images/maheima-kapur-dvdDtIjV2UY-unsplash.jpg new file mode 100644 index 0000000..140b9ed Binary files /dev/null and b/public/images/maheima-kapur-dvdDtIjV2UY-unsplash.jpg differ diff --git a/public/images/pageprincipale.png b/public/images/pageprincipale.png new file mode 100644 index 0000000..84841a8 Binary files /dev/null and b/public/images/pageprincipale.png differ diff --git a/public/images/pageprincipale.psd b/public/images/pageprincipale.psd new file mode 100644 index 0000000..19ac824 Binary files /dev/null and b/public/images/pageprincipale.psd differ diff --git a/public/images/sablier.png b/public/images/sablier.png new file mode 100644 index 0000000..0502af9 Binary files /dev/null and b/public/images/sablier.png differ diff --git a/public/images/tea-and-mint.png b/public/images/tea-and-mint.png new file mode 100644 index 0000000..cc65699 Binary files /dev/null and b/public/images/tea-and-mint.png differ diff --git a/public/images/tea-with-desserts.png b/public/images/tea-with-desserts.png new file mode 100644 index 0000000..37b19f3 Binary files /dev/null and b/public/images/tea-with-desserts.png differ diff --git a/public/images/tea-with-three-jars.png b/public/images/tea-with-three-jars.png new file mode 100644 index 0000000..ee45539 Binary files /dev/null and b/public/images/tea-with-three-jars.png differ diff --git a/public/images/tentervotrechance.png b/public/images/tentervotrechance.png new file mode 100644 index 0000000..141ef31 Binary files /dev/null and b/public/images/tentervotrechance.png differ diff --git a/public/images/testerlecode.png b/public/images/testerlecode.png new file mode 100644 index 0000000..74ec1b1 Binary files /dev/null and b/public/images/testerlecode.png differ diff --git a/public/images/thetiptop_logo.png b/public/images/thetiptop_logo.png new file mode 100644 index 0000000..ecb344a Binary files /dev/null and b/public/images/thetiptop_logo.png differ diff --git a/public/images/three-cups-of-tea-steeping.png b/public/images/three-cups-of-tea-steeping.png new file mode 100644 index 0000000..f844c49 Binary files /dev/null and b/public/images/three-cups-of-tea-steeping.png differ diff --git a/public/images/top-view-of-a-tea-towel-and-container-holding-grain.png b/public/images/top-view-of-a-tea-towel-and-container-holding-grain.png new file mode 100644 index 0000000..10dd844 Binary files /dev/null and b/public/images/top-view-of-a-tea-towel-and-container-holding-grain.png differ diff --git a/public/images/ugh.png b/public/images/ugh.png new file mode 100644 index 0000000..9a21a40 Binary files /dev/null and b/public/images/ugh.png differ diff --git a/public/images/unandethé.png b/public/images/unandethé.png new file mode 100644 index 0000000..435c2a4 Binary files /dev/null and b/public/images/unandethé.png differ diff --git a/public/vercel.svg b/public/vercel.svg new file mode 100644 index 0000000..fbf0e25 --- /dev/null +++ b/public/vercel.svg @@ -0,0 +1,4 @@ + + + \ No newline at end of file diff --git a/styles/Home.module.css b/styles/Home.module.css new file mode 100644 index 0000000..bd50f42 --- /dev/null +++ b/styles/Home.module.css @@ -0,0 +1,129 @@ +.container { + padding: 0 2rem; +} + +.main { + min-height: 100vh; + padding: 4rem 0; + flex: 1; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} + +.footer { + display: flex; + flex: 1; + padding: 2rem 0; + border-top: 1px solid #eaeaea; + justify-content: center; + align-items: center; +} + +.footer a { + display: flex; + justify-content: center; + align-items: center; + flex-grow: 1; +} + +.title a { + color: #0070f3; + text-decoration: none; +} + +.title a:hover, +.title a:focus, +.title a:active { + text-decoration: underline; +} + +.title { + margin: 0; + line-height: 1.15; + font-size: 4rem; +} + +.title, +.description { + text-align: center; +} + +.description { + margin: 4rem 0; + line-height: 1.5; + font-size: 1.5rem; +} + +.code { + background: #fafafa; + border-radius: 5px; + padding: 0.75rem; + font-size: 1.1rem; + font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, + Bitstream Vera Sans Mono, Courier New, monospace; +} + +.grid { + display: flex; + align-items: center; + justify-content: center; + flex-wrap: wrap; + max-width: 800px; +} + +.card { + margin: 1rem; + padding: 1.5rem; + text-align: left; + color: inherit; + text-decoration: none; + border: 1px solid #eaeaea; + border-radius: 10px; + transition: color 0.15s ease, border-color 0.15s ease; + max-width: 300px; +} + +.card:hover, +.card:focus, +.card:active { + color: #0070f3; + border-color: #0070f3; +} + +.card h2 { + margin: 0 0 1rem 0; + font-size: 1.5rem; +} + +.card p { + margin: 0; + font-size: 1.25rem; + line-height: 1.5; +} + +.logo { + height: 1em; + margin-left: 0.5rem; +} + +@media (max-width: 600px) { + .grid { + width: 100%; + flex-direction: column; + } +} + +@media (prefers-color-scheme: dark) { + .card, + .footer { + border-color: #222; + } + .code { + background: #111; + } + .logo img { + filter: invert(1); + } +} diff --git a/styles/Index.module.css b/styles/Index.module.css new file mode 100644 index 0000000..70bdd6d --- /dev/null +++ b/styles/Index.module.css @@ -0,0 +1,197 @@ +.masthead { + --aButton-base-padding: 0px; + --aButton-grow-padding: 5px; +} + +.masthead { + background-image: url('/images/pageprincipale.png'); + background-size: cover; + background-position: 50% 50%; + background-repeat: no-repeat; + padding-top: 5vh; + height: 90vh; + position: relative; + /* margin-bottom: 10vh; + box-shadow: 0px 18px 16px 0px rgba(0, 0, 0, 0.87); */ +} + +.bloc-content { + padding: 10vh; + border-radius: 10px; + background-image: url('/images/codebackground.png'); + background-position: 50% 50%; + background-repeat: no-repeat; + background-size: contain; + animation: zoomInOut 4s ease-in-out infinite; +} + + +.rotatingImage { + animation: 1s ease-in-out infinite alternate rotation; +} + +.rotatingSlow { + animation: 4s ease-in-out infinite alternate rotation; +} + +.blinking { + animation: blinking 1s infinite; +} + +@keyframes zoomInOut { + 0% { + transform: scale(1, 1); + } + + 50% { + transform: scale(1.05, 1.05); + } + + to { + transform: scale(1, 1); + } +} + + + +@keyframes rotation { + 0% { + transform: rotate(2deg); + } + + 50% { + transform: rotate(-2deg); + } + + to { + transform: rotate(2deg); + } +} + +@keyframes blinking { + + 0%, + 50%, + 100% { + opacity: 1; + } + + 25%, + 75% { + opacity: 0; + } +} + +.zoom-in-out-box { + animation: zoom-in-zoom-out 1s ease infinite; +} + +.imageWrapper { + display: block; +} + +.masthead .aButton { + position: relative; +} + +.masthead .aButton:after { + content: ""; + position: absolute; + + /* border:1px solid black; */ + border-radius: 0.375rem; + display: none; + + left: var(--aButton-base-padding); + top: var(--aButton-base-padding); + width: calc(100% + var(--aButton-base-padding)); + height: calc(100% + var(--aButton-base-padding)); +} + +.masthead .aButton:hover:after { + display: block; + animation: 0.7s linear infinite alternate expand; +} + +@keyframes expand { + to { + left: calc(var(--aButton-base-padding) - var(--aButton-grow-padding)); + top: calc(var(--aButton-base-padding) - var(--aButton-grow-padding)); + width: calc(100% + var(--aButton-base-padding) + 2 * var(--aButton-grow-padding)); + height: calc(100% + var(--aButton-base-padding) + 2 * var(--aButton-grow-padding)); + border: 3px solid var(--color3); + } +} + +.productToGain { + background-color: var(--color1); + width: 20vw; + height: 20vw; + border-radius: 50%; + padding: 10px; + position: relative; +} + + +@media (min-width: 992px) { + .productToGain { + width: 13vw; + height: 13vw; + } +} + + +/*mobile*/ +@media only screen and (max-width: 767px) { + .feuilleGauche { + position: absolute; + top: 1px; + left: 1px; + + } + + .feuilleDroite { + position: absolute; + bottom: 10px; + right: 1px; + } + + .cadeau { + position: absolute; + bottom: 0px; + left: 0px; + } + + .jeuConcours { + position: absolute; + top: 1px; + right: 1px; + } +} + +/*grand écran*/ +@media only screen and (min-width: 767px) { + .feuilleGauche { + position: absolute; + top: 1px; + left: 1px; + } + + .feuilleDroite { + position: absolute; + bottom: 10px; + right: 1px; + } + + .cadeau { + position: absolute; + bottom: 0px; + left: 0px; + } + + .jeuConcours { + position: absolute; + top: 1px; + right: 1px; + } +} \ No newline at end of file diff --git a/styles/Login.module.css b/styles/Login.module.css new file mode 100644 index 0000000..17ccd63 --- /dev/null +++ b/styles/Login.module.css @@ -0,0 +1,45 @@ +.custom-control-label { + font-weight: 400; +} + +.forgot-password, +.forgot-password a { + text-align: right; + font-size: 13px; + padding-top: 10px; + color: #7f7d7d; + margin: 0; +} + +.forgot-password a { + color: #167bff; +} + +.masthead { + height: 100vh; + min-height: 500px; + background-image: url('/images/brick-wall-with-tea-written-on-it.png'); + 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); +} + +.logo { + position: relative; + bottom: 1px; + right: 4px; +} + +.loginButton { + background-color: #dd4b39; + border: 0px; + box-shadow: 2px 2px 2px #00000047; + margin-bottom: 10px; +} \ No newline at end of file diff --git a/styles/NavBar.module.css b/styles/NavBar.module.css new file mode 100644 index 0000000..f0ac9b3 --- /dev/null +++ b/styles/NavBar.module.css @@ -0,0 +1,103 @@ +.customcss { + background-color: transparent !important; + z-index: 2000; + position: absolute; +} + +.link { + margin: 0 1vw; + text-decoration: underline; +} + +/**************************/ + +.overlay { + height: 0; + width: 100%; + bottom: 100%; + position: fixed; + z-index: 1; + top: 0; + left: 0; + background-color: rgb(0, 0, 0); + background-color: rgba(0, 0, 0, 0.9); + overflow-x: hidden; + transition: 1s; + + display: flex; + align-items: center; + justify-content: center; +} + +.overlay-content { + position: relative; + top: 25%; + width: 100%; + text-align: center; + margin-top: 30px; + display: flex; + flex-direction: column; + align-items: center; + margin-top: 20vh; +} + +.overlay a { + padding: 8px; + text-decoration: none; + font-size: 36px; + color: #818181; + display: block; + transition: 0.2s; + display: flex; + justify-content: center; +} + +.overlay a:hover, +.overlay a:focus { + color: #f1f1f1; +} + +.overlay .closebtn { + position: absolute; + right: 25px; + top: -20px; + font-size: 60px; +} + +@media screen and (max-height: 450px) { + .overlay a { + font-size: 20px + } + + .overlay .closebtn { + font-size: 40px; + top: 15px; + right: 35px; + } +} + +.burgerButton { + font-size: 30px; + cursor: pointer; +} + +/* cache ou affiche un élement si mobile */ +@media only screen and (max-width: 767px) { + .hidden-mobile { + display: none; + } + + .show-mobile { + display: flex; + } +} + +@media only screen and (min-width: 767px) { + .hidden-mobile { + display: flex; + } + + .show-mobile { + display: none; + } +} \ No newline at end of file diff --git a/styles/Register.module.css b/styles/Register.module.css new file mode 100644 index 0000000..7c1df1f --- /dev/null +++ b/styles/Register.module.css @@ -0,0 +1,38 @@ +.custom-control-label { + font-weight: 400; +} + +.forgot-password, +.forgot-password a { + text-align: right; + font-size: 13px; + padding-top: 10px; + color: #7f7d7d; + margin: 0; +} + +.forgot-password a { + color: #167bff; +} + +.masthead { + height: 100vh; + min-height: 500px; + background-image: url('/images/brick-wall-with-tea-written-on-it.png'); + 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); +} + +.logo { + position: relative; + bottom: 1px; + right: 4px; +} \ No newline at end of file diff --git a/styles/Section.module.css b/styles/Section.module.css new file mode 100644 index 0000000..fdcc092 --- /dev/null +++ b/styles/Section.module.css @@ -0,0 +1,14 @@ +.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 diff --git a/styles/User.module.css b/styles/User.module.css new file mode 100644 index 0000000..a8fd743 --- /dev/null +++ b/styles/User.module.css @@ -0,0 +1,54 @@ +.custom-control-label { + font-weight: 400; +} + +.forgot-password, +.forgot-password a { + text-align: right; + font-size: 13px; + padding-top: 10px; + color: #7f7d7d; + margin: 0; +} + +.forgot-password a { + color: #167bff; +} + +.masthead { + height: 100vh; + min-height: 500px; + background-image: url('/images/jars-in-a-blue-furniture.png'); + 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); +} + +.logo { + position: relative; + bottom: 1px; + right: 4px; +} + +.userUl { + list-style: none; +} + +.userUl li { + position: relative; + right: 20px; +} + +.codeCol { + background-color: white; + border-left: "solid grey"; + border-radius: 2px; + box-shadow: inset 2px 2px 2px black; +} \ No newline at end of file diff --git a/styles/globals.css b/styles/globals.css new file mode 100644 index 0000000..4e76835 --- /dev/null +++ b/styles/globals.css @@ -0,0 +1,45 @@ +html, +body { + padding: 0; + margin: 0; + font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, + Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; +} + +a, a:hover { + color: inherit; + text-decoration: none; +} + +* { + box-sizing: border-box; +} + +:root{ + --color1 : #C0D8F0; + --color2 : #76AE0D; + --color3 : #4C6D0C; + --color4 : #F0F0F0; +} + +img{ + /* min-width: 0%!important; + min-height: 0%!important; */ +} + +.btn-primary { + --bs-btn-color: #fff; + --bs-btn-bg: var(--color2); + --bs-btn-border-color: var(--color2); + --bs-btn-hover-color: #fff; + --bs-btn-hover-bg: var(--color3); + --bs-btn-hover-border-color: var(--color3); + --bs-btn-focus-shadow-rgb: 49,132,253; + --bs-btn-active-color: #fff; + --bs-btn-active-bg: var(--color3); + --bs-btn-active-border-color: var(--color3); + --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); + --bs-btn-disabled-color: #fff; + --bs-btn-disabled-bg: var(--color2); + --bs-btn-disabled-border-color: var(--color2); +} diff --git a/types/user.ts b/types/user.ts new file mode 100644 index 0000000..13cc4c8 --- /dev/null +++ b/types/user.ts @@ -0,0 +1,4 @@ +export type UserProps = { + role?: string; + email?: string +}