From d40b4d6754583928662ef4677fcb3a2b34c5f966 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Thu, 21 Nov 2019 23:27:02 +0100 Subject: [PATCH] same responsive design for the register page --- assets/css/common.css | 8 +++++ assets/css/login.css | 6 +++- login.php | 2 +- register.php | 75 +++++++++++++++++++------------------------ 4 files changed, 47 insertions(+), 44 deletions(-) diff --git a/assets/css/common.css b/assets/css/common.css index 6be97f8..890bcbb 100644 --- a/assets/css/common.css +++ b/assets/css/common.css @@ -46,6 +46,14 @@ body { align-items: stretch; } +.flex-content-stretch { + align-content: stretch; +} + +.flex-space-between { + justify-content: space-between; +} + .halo-hover { transition: all 500ms; } diff --git a/assets/css/login.css b/assets/css/login.css index c4db1c1..6a9eae1 100644 --- a/assets/css/login.css +++ b/assets/css/login.css @@ -188,4 +188,8 @@ a { left: 0; top: 0; border-radius: 3px; -} \ No newline at end of file +} + +#register-email { + width: 100%; +} diff --git a/login.php b/login.php index 13b478b..5744ab7 100644 --- a/login.php +++ b/login.php @@ -73,7 +73,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {

Welcome back

" method="post">
- +
diff --git a/register.php b/register.php index 06825ab..8179479 100644 --- a/register.php +++ b/register.php @@ -47,7 +47,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty(trim($_POST["first_name"]))) { $first_name_err = "Please input your first name."; - } else if (strlen(trim($_POST["first_name"])) > 255){ + } else if (strlen(trim($_POST["first_name"])) > 255) { $first_name_err = "Too long."; } else { $first_name = trim($_POST["first_name"]); @@ -55,7 +55,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty(trim($_POST["last_name"]))) { $last_name_err = "Please input your last name."; - } else if (strlen(trim($_POST["last_name"])) > 255){ + } else if (strlen(trim($_POST["last_name"])) > 255) { $last_name_err = "Too long."; } else { $last_name = trim($_POST["last_name"]); @@ -82,55 +82,46 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { - Sign Up - - + + + + + + + Food invetory - Register -
-

Sign Up

-

Please fill this form to create an account.

+
+

Nice to meet you

" method="post"> -
- - - +
+
-
- - - +
+ +
-
- - - +
+ +
-
- - - +
+
+ +
-
- - - + -
- - -
-

Already have an account? Login here.