diff --git a/src/Controller/Controleur.php b/src/Controller/Controleur.php index 55ea73d..eae59aa 100755 --- a/src/Controller/Controleur.php +++ b/src/Controller/Controleur.php @@ -1,6 +1,6 @@ ValidationFormulaire($dVueEreur); break; +case "redirectionLogin": + $this->redirectionLogin($dVueEreur); + break; + +case "redirectionInscription": + $this->redirectionInscription($dVueEreur); + break; + +case "seConnecter": + $this->seConnecter($dVueEreur); + break; + //mauvaise action default: $dVueEreur[] = "Erreur d'appel php"; -require ($rep.$vues['vuephp1']); +require ($rep.$vues['home']); break; } @@ -63,7 +78,7 @@ $dVue = array ( 'nom' => "", 'age' => 0, ); - require ($rep.$vues['vuephp1']); + require ($rep.$vues['Home']); } function ValidationFormulaire(array $dVueEreur) { @@ -83,9 +98,32 @@ $dVue = array ( 'age' => $age, 'data' => $data, ); - require ($rep.$vues['vuephp1']); + require ($rep.$vues['inscription']); +} + + +function redirectionLogin(array $dVueEreur) { + global $rep,$vues; + require ($rep.$vues['login']); +} + +function redirectionInscription(array $dVueEreur) { + global $rep,$vues; + require ($rep.$vues['inscription']); +} + +function seConnecter(array $dVueEreur) { + global $rep,$vues; + + + //si exception, ca remonte !!! + $mail=$_POST['mail']; // txtNom = nom du champ texte dans le formulaire + $password=$_POST['password']; + \config\Validation::val_connection($nom,$age,$dVueEreur); + require ($rep.$vues['login']); } + }//fin class ?> diff --git a/src/Controller/CtrlUtilisateur b/src/Controller/CtrlUtilisateur new file mode 100644 index 0000000..e69de29 diff --git a/src/Modele/UtilisateurGateway.php b/src/Modele/UtilisateurGateway.php new file mode 100644 index 0000000..e69de29 diff --git a/src/Vue/Images/LogoForHome.png b/src/Vue/Images/LogoForHome.png new file mode 100644 index 0000000..0c6b96c Binary files /dev/null and b/src/Vue/Images/LogoForHome.png differ diff --git a/src/Vue/css/home.css b/src/Vue/css/home.css deleted file mode 100644 index fd8c5e8..0000000 --- a/src/Vue/css/home.css +++ /dev/null @@ -1,89 +0,0 @@ -* { - margin: 0; - padding: 0; - box-sizing: border-box; -} - - -/* HEADER */ - -.main-head{ - background: #9AF7FF; - color: #ffffff; -} - -a{ - font-family: JetBrains Mono,Menlo,Droid Sans Mono,monospace; -} - -nav{ - min-height: 10vh; - display: flex; -} - -nav ul{ - display: flex; - flex: 1 1 40rem; - justify-content: space-around; -} - -.main-logo img{ - flex: 1 1 40rem; -} - -/*Réseau sociaux*/ - -.social { - display: flex; - justify-content: center; - align-items: center; - flex-wrap: wrap; -} - -.social a { - display: inline-block; - width: 20%; - height: 30%; - padding: 35%; - border-radius: 40%; - align-items: center; - justify-content: center; - color: white; - position: relative; - flex-shrink: 0; - transition: all .2s; -} - -@media screen and (min-width: 768px) { - .social a:hover { - transform: scale(1.2) translateY(-5px); - } -} - -.social a.facebook { - padding-top: 2%; - padding-left: 4%; - background: linear-gradient(45deg, #3b5998,#0078d7); - box-shadow: 0 4px 30px rgba(45, 98, 169, 1); -} - -.social a.twitter { - padding-top: 2%; - padding-left: 4%; - background: linear-gradient(45deg, #1da1f2,#0e71c8); - box-shadow: 0 4px 30px rgba(19, 127, 212, 1); -} - -.social a.instagram { - padding-top: 2%; - padding-left: 4%; - background: linear-gradient(45deg, #405de6,#5851db,#833ab4,#c13584,#e1306c,#fd1d1d); - box-shadow: 0 4px 30px rgba(120, 64, 190, 0.8); -} - -.social a.gitlab { - padding-top: 2%; - padding-left: 4%; - background: linear-gradient(45deg, #FF9467,#DB4100); - box-shadow: 0 4px 30px rgba(255,148,103, 0.6); -} \ No newline at end of file diff --git a/src/Vue/css/inscription.css b/src/Vue/css/inscription.css index a4aa3ab..7baaa66 100644 --- a/src/Vue/css/inscription.css +++ b/src/Vue/css/inscription.css @@ -12,6 +12,10 @@ body::before { z-index: -1; } +.form-redirection{ + margin-top: -25px; +} + .main-logo{ display: flex; flex-direction: column; @@ -20,66 +24,6 @@ body::before { align-items: center; } -.text-box { - display: flex; - align-items: flex-start; - justify-content: flex-end; -} - -.btn:link, -.btn:visited { - text-transform: uppercase; - text-decoration: none; - padding: 10px 15px; - display: inline-block; - border-radius: 100px; - font-size: 60%; - transition: all .2s; - position: absolute; -} - -.btn:hover { - transform: translateY(-3px); - box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); -} - -.btn:active { - transform: translateY(-1px); - box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -} - -.btn-white { - background-color: #fff; - color: #777; -} - -.btn::after { - content: ""; - display: inline-block; - height: 100%; - width: 100%; - border-radius: 100px; - position: absolute; - top: 0; - left: 0; - z-index: -1; - transition: all .4s; -} - -.btn-white::after { - background-color: #fff; -} - -.btn:hover::after { - transform: scaleX(1.5) scaleY(1.7); - opacity: 0; -} - -.btn-animated { - animation: moveInBottom 5s ease-out; - animation-fill-mode: backwards; -} - .main-logo img{ width: 50%; } diff --git a/src/Vue/css/style.css b/src/Vue/css/style.css index 1a6e79b..8170b13 100644 --- a/src/Vue/css/style.css +++ b/src/Vue/css/style.css @@ -1,4 +1,4 @@ -@import url("reset.css"); +@import url("./Vue/css/reset.css"); @import url('https://fonts.googleapis.com/css2?family-Poppins:wght@400;600&display-swap'); @@ -23,69 +23,6 @@ body::before { z-index: -1; } - -/*Bouton*/ - -.btn{ - display: flex; - flex-direction: column; - margin-left: 19rem; - margin-top: -25rem; -} - -.btn:link, -.btn:visited { - text-decoration: none; - padding: 5px 10px; - display: inline-block; - border-radius: 11px; - font-size: 70%; - transition: all .2s; - position: absolute; -} - -.btn:hover { - transform: translateY(-3px); - box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); -} - -.btn:active { - transform: translateY(-1px); - box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); -} - -.btn-white { - background-color: #fff; - color: #777; -} - -.btn::after { - content: ""; - display: inline-block; - height: 100%; - width: 100%; - border-radius: 50px; - position: absolute; - top: 0; - left: 0; - z-index: -1; - transition: all .4s; -} - -.btn-white::after { - background-color: #fff; -} - -.btn:hover::after { - transform: scaleX(1.5) scaleY(1.7); - opacity: 0; -} - -.btn-animated { - animation: moveInBottom 5s ease-out; - animation-fill-mode: backwards; -} - /* Model */ .model { diff --git a/src/Vue/erreur.php b/src/Vue/erreur.php deleted file mode 100644 index ad8f691..0000000 --- a/src/Vue/erreur.php +++ /dev/null @@ -1,18 +0,0 @@ - -Erreur - - - - -

ERREUR !!!!!

- - - - - \ No newline at end of file diff --git a/src/Vue/html/index.html b/src/Vue/html/index.html index 927761a..1da0991 100644 --- a/src/Vue/html/index.html +++ b/src/Vue/html/index.html @@ -1,58 +1,41 @@ + Home Page - - + + + + + -
- -
+ \ No newline at end of file diff --git a/src/Vue/html/inscription.html b/src/Vue/html/inscription.html index fcee4b3..e085aec 100644 --- a/src/Vue/html/inscription.html +++ b/src/Vue/html/inscription.html @@ -2,42 +2,42 @@ - Page d'inscription - - + + -
- Revenir -
+ -
- +
- +
- +
diff --git a/src/Vue/html/login.html b/src/Vue/html/login.html index 646505c..a9efcd6 100644 --- a/src/Vue/html/login.html +++ b/src/Vue/html/login.html @@ -3,23 +3,24 @@ - + Login Page - + + -
- Rentrer quand même -
- + + + +