From 19ba5514b4f30ca9b7454e09f07e8810e880ec6a Mon Sep 17 00:00:00 2001 From: kmitresse Date: Sun, 17 Mar 2024 19:10:18 +0100 Subject: [PATCH] feat : devWeb - projet - making css architecture for login and register page --- .../Projet/src/main/webapp/css/login.css | 62 +++++++++++++++++++ S2/DevWeb/Projet/src/main/webapp/login.jsp | 9 ++- S2/DevWeb/Projet/src/main/webapp/register.jsp | 55 ++++++++++------ 3 files changed, 106 insertions(+), 20 deletions(-) create mode 100644 S2/DevWeb/Projet/src/main/webapp/css/login.css diff --git a/S2/DevWeb/Projet/src/main/webapp/css/login.css b/S2/DevWeb/Projet/src/main/webapp/css/login.css new file mode 100644 index 0000000..c6d78bb --- /dev/null +++ b/S2/DevWeb/Projet/src/main/webapp/css/login.css @@ -0,0 +1,62 @@ +html { + height: 100%; + display: flex; + align-items: center; +} + +body { + width: 100%; +} + +main { + width: 100%; + height: 100%; + display: flex; + flex-direction: row; + align-items: center; +} + +#title { + width:60%; + text-align: center; + font-size: xxx-large; +} + +#form { + width: 18%; + height: 100%; + border-left: ridge; + padding-left: 6%; +} + +h1 { + justify-self: center; +} + +#loginForm, #registerForm { + display: grid; +} + +.field { + display: flex; + flex-direction: row; + width: auto; + justify-content: space-between; + margin: 1%; +} + +#birthdate { + width: 59%; + text-align: right; +} +.submit { + justify-self: right; + width: 35%; + margin: 1%; +} + +p { + border-top: ridge; + padding-top: 5%; +} + diff --git a/S2/DevWeb/Projet/src/main/webapp/login.jsp b/S2/DevWeb/Projet/src/main/webapp/login.jsp index a982e97..e0672df 100644 --- a/S2/DevWeb/Projet/src/main/webapp/login.jsp +++ b/S2/DevWeb/Projet/src/main/webapp/login.jsp @@ -4,10 +4,13 @@ Login +
+
Titre du jeu
+

Login

@@ -20,11 +23,13 @@
- +

Don't have an account? Register

+ +
- \ No newline at end of file + diff --git a/S2/DevWeb/Projet/src/main/webapp/register.jsp b/S2/DevWeb/Projet/src/main/webapp/register.jsp index 7335aa0..75b6b5b 100644 --- a/S2/DevWeb/Projet/src/main/webapp/register.jsp +++ b/S2/DevWeb/Projet/src/main/webapp/register.jsp @@ -3,32 +3,51 @@ Register +
-

Login

-
-
- - -
+
Titre du jeu
+

Register

+ +
+ + +
-
- - -
+
+ + +
-
- - -
+
+ + +
- +
+ + +
-

Already have an account? Login

- + +
+ + +
+ + + +

Already have an account? Login

+ +
- \ No newline at end of file +