From 9eed54bb1213fedb4d4b3a5ab3224ae37e7b9a87 Mon Sep 17 00:00:00 2001 From: Thomas Chazot Date: Fri, 23 Dec 2022 01:52:18 +0100 Subject: [PATCH] la j'en ai vraiment ras le cul --- Style/signInStyle.css | 178 ++++++++++++++++++++++++++++++ Vues/accueil.php | 12 +- Vues/accueilPrive.php | 0 Vues/seeList.php | 48 ++++++-- Vues/signIn.php | 45 ++++++++ Vues/signUp.php | 67 ++++++----- config/Validation.php | 70 +++++++++--- config/config.php | 8 +- controllers/FrontController.php | 37 +++---- controllers/UserController.php | 2 +- controllers/VisitorController.php | 92 ++++++++------- gateway/ListeGateway.php | 39 +++++++ gateway/UserGateway.php | 43 ++++---- index.php | 24 ++-- modeles/MdlListe.php | 5 + modeles/MdlUser.php | 40 +++---- 16 files changed, 529 insertions(+), 181 deletions(-) create mode 100644 Style/signInStyle.css delete mode 100644 Vues/accueilPrive.php create mode 100644 Vues/signIn.php diff --git a/Style/signInStyle.css b/Style/signInStyle.css new file mode 100644 index 0000000..21c3fa1 --- /dev/null +++ b/Style/signInStyle.css @@ -0,0 +1,178 @@ +@import url('https://fonts.googleapis.com/css?family=Raleway:400,700'); + +* { + box-sizing: border-box; + margin: 0; + padding: 0; + font-family: Raleway, sans-serif; +} + +body { + background: linear-gradient(90deg, #C7C5F4, #776BCC); +} + +.container { + display: flex; + align-items: center; + justify-content: center; + min-height: 100vh; +} + +.screen { + background: linear-gradient(90deg, #5D54A4, #7C78B8); + position: relative; + height: 600px; + width: 360px; + box-shadow: 0px 0px 24px #5C5696; +} + +.screen__content { + z-index: 1; + position: relative; + height: 100%; +} + +.screen__background { + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + z-index: 0; + -webkit-clip-path: inset(0 0 0 0); + clip-path: inset(0 0 0 0); +} + +.screen__background__shape { + transform: rotate(45deg); + position: absolute; +} + +.screen__background__shape1 { + height: 520px; + width: 520px; + background: #FFF; + top: -50px; + right: 120px; + border-radius: 0 72px 0 0; +} + +.screen__background__shape2 { + height: 220px; + width: 220px; + background: #6C63AC; + top: -172px; + right: 0; + border-radius: 32px; +} + +.screen__background__shape3 { + height: 540px; + width: 190px; + background: linear-gradient(270deg, #5D54A4, #6A679E); + top: -24px; + right: 0; + border-radius: 32px; +} + +.screen__background__shape4 { + height: 400px; + width: 200px; + background: #7E7BB9; + top: 420px; + right: 50px; + border-radius: 60px; +} + +.login { + width: 320px; + padding: 30px; + padding-top: 156px; +} + +.login__field { + padding: 20px 0px; + position: relative; +} + +.login__icon { + position: absolute; + top: 30px; + color: #7875B5; +} + +.login__input { + border: none; + border-bottom: 2px solid #D1D1D4; + background: none; + padding: 10px; + padding-left: 24px; + font-weight: 700; + width: 75%; + transition: .2s; +} + +.login__input:active, +.login__input:focus, +.login__input:hover { + outline: none; + border-bottom-color: #6A679E; +} + +.login__submit { + background: #fff; + font-size: 14px; + margin-top: 30px; + padding: 16px 20px; + border-radius: 26px; + border: 1px solid #D4D3E8; + text-transform: uppercase; + font-weight: 700; + display: flex; + align-items: center; + width: 100%; + color: #4C489D; + box-shadow: 0px 2px 2px #5C5696; + cursor: pointer; + transition: .2s; +} + +.login__submit:active, +.login__submit:focus, +.login__submit:hover { + border-color: #6A679E; + outline: none; +} + +.button__icon { + font-size: 24px; + margin-left: auto; + color: #7875B5; +} + +.social-login { + position: absolute; + height: 140px; + width: 160px; + text-align: center; + bottom: 0px; + right: 0px; + color: #fff; +} + +.social-icons { + display: flex; + align-items: center; + justify-content: center; +} + +.social-login__icon { + padding: 20px 10px; + color: #fff; + text-decoration: none; + text-shadow: 0px 0px 8px #7875B5; +} + +.social-login__icon:hover { + transform: scale(1.5); +} \ No newline at end of file diff --git a/Vues/accueil.php b/Vues/accueil.php index b0c9c92..99a37df 100644 --- a/Vues/accueil.php +++ b/Vues/accueil.php @@ -27,9 +27,6 @@ @@ -42,10 +39,13 @@ + ?>
  • -
    getName(); ?>
    - +
    getName(); ?>
    +
    + + +
  • getCreator()!=null){ if ($dataView[0]->getPrivate()){ ?> - +
    + + +
    - + ?> + +
    + + +
    @@ -89,19 +98,35 @@ getCompleted()){ ?> - +
    + + + +
    - - +
    + + + +
    - - - +
    + + + +
    + +
    + + + +
    @@ -109,7 +134,10 @@ } ?>
  • - +
    + + +
  • diff --git a/Vues/signIn.php b/Vues/signIn.php new file mode 100644 index 0000000..53a097d --- /dev/null +++ b/Vues/signIn.php @@ -0,0 +1,45 @@ + + + + Slide Navbar + + + + + +
    +
    +
    + + +
    +
    + + + + +
    +
    +
    + + diff --git a/Vues/signUp.php b/Vues/signUp.php index 4e11af9..e9c77fe 100644 --- a/Vues/signUp.php +++ b/Vues/signUp.php @@ -3,36 +3,47 @@ Slide Navbar - + - -
    - - -