diff --git a/.gitignore b/.gitignore index 4a2bba8..954200c 100644 --- a/.gitignore +++ b/.gitignore @@ -187,5 +187,5 @@ fabric.properties /web/js/ # End of https://www.toptal.com/developers/gitignore/api/symfony,phpstorm,git -.idea/ -/vendor/ \ No newline at end of file +/vendor/ +.idea/ \ No newline at end of file diff --git a/assets/styles/app.css b/assets/styles/app.css index dd6181a..8b13789 100644 --- a/assets/styles/app.css +++ b/assets/styles/app.css @@ -1,3 +1 @@ -body { - background-color: skyblue; -} + diff --git a/assets/styles/login.css b/assets/styles/login.css new file mode 100644 index 0000000..733985c --- /dev/null +++ b/assets/styles/login.css @@ -0,0 +1,84 @@ +html { + background-image: url("asset/image/BackgroundLogin.jpg"); background-repeat: no-repeat; background-size: cover; + height: 100%; + width: 100%; +} + +body { + height: 100%; + width: 100%; +} + +.Login { + width: 100%; + height: 100%; +} +.Circle { + background: #db5559; + width: 41%; + height: 80%; + margin: 0 auto; + border-style: solid; + border-radius: 50%; + border-color: white; + border-width: 5px; +} +.Form { + background: #791c1c; + height: 40%; + width: 55%; + margin: auto; + border-style: solid; + border-radius: 50px; + border-color: white; + border-width: 2px; + text-align: center; + font-family: "Qwitcher Grypen", cursive; + font-size: 40px; + font-style: italic; + color: white; + padding-bottom: 0; + +} + +.Logo { + display: flex; + margin: auto; + margin-top: 8%; +} + +.Title1 { + margin: 0; + padding: 0; +} + +.Title2 { + display: grid; + place-items: center; + height: 7vh; + color: black; + font-family: "Qwitcher Grypen", cursive; + font-size: 40px; + margin: 0; +} + +.form-group{ + display: grid; + place-items: center; + height: 7vh; + align-items: center; + text-align: center; + /*margin-bottom: 10px;*/ +} + +.form-control{ + background-color: #f19595; + margin-left: 10px; + border-radius: 5px; +} + +.btn{ + background-color: #279b63; + border-radius: 6px; + height: 30px; +} \ No newline at end of file diff --git a/public/asset/image/BackgroundLogin.jpg b/public/asset/image/BackgroundLogin.jpg new file mode 100644 index 0000000..5a2825f Binary files /dev/null and b/public/asset/image/BackgroundLogin.jpg differ diff --git a/public/asset/image/CircleBackground.png b/public/asset/image/CircleBackground.png new file mode 100644 index 0000000..562fc69 Binary files /dev/null and b/public/asset/image/CircleBackground.png differ diff --git a/public/asset/image/LogoHegre.png b/public/asset/image/LogoHegre.png new file mode 100644 index 0000000..517bffb Binary files /dev/null and b/public/asset/image/LogoHegre.png differ diff --git a/src/Controller/LoginController.php b/src/Controller/LoginController.php new file mode 100644 index 0000000..05fc113 --- /dev/null +++ b/src/Controller/LoginController.php @@ -0,0 +1,23 @@ +createForm(LoginFormType::class); + $form->handleRequest($request); + + return $this->render('login/login.html.twig',[ + 'form' => $form->createView(), + ]); + } +} diff --git a/src/Form/LoginFormType.php b/src/Form/LoginFormType.php new file mode 100644 index 0000000..1b04d23 --- /dev/null +++ b/src/Form/LoginFormType.php @@ -0,0 +1,34 @@ +add('email', EmailType::class, [ + 'label' => 'Email', + ]) + ->add('password', PasswordType::class, [ + 'label' => 'Mot de passe', + ]) + ->add('confirm', SubmitType::class, [ + 'label' => 'Connexion', + ]); + } + + public function configureOptions(OptionsResolver $resolver): void + { + $resolver->setDefaults([ + // Configure your form options here + ]); + } +} diff --git a/templates/base.html.twig b/templates/base.html.twig index 3cda30f..c98ef50 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -3,7 +3,10 @@