From a16d070c4f8301a8b68220aca6d3573705be9025 Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Wed, 29 Mar 2023 05:07:28 +0300 Subject: user's setup-account pages (work in progress) --- html/app/config/app_constants.php | 2 + html/app/routes/frontend.php | 5 +- html/app/views/components/user-management.php | 33 ++++++++++++ html/app/views/error/404.php | 2 +- html/app/views/error/general.php | 2 +- html/app/views/login.php | 52 ------------------- html/app/views/user/login.php | 61 ++++++++++++++++++++++ html/app/views/user/new-password.php | 65 +++++++++++++++++++++++ html/app/views/user/register.php | 75 +++++++++++++++++++++++++++ 9 files changed, 241 insertions(+), 56 deletions(-) create mode 100644 html/app/views/components/user-management.php delete mode 100644 html/app/views/login.php create mode 100644 html/app/views/user/login.php create mode 100644 html/app/views/user/new-password.php create mode 100644 html/app/views/user/register.php (limited to 'html/app') diff --git a/html/app/config/app_constants.php b/html/app/config/app_constants.php index b5fb6d8..3c8d4c3 100644 --- a/html/app/config/app_constants.php +++ b/html/app/config/app_constants.php @@ -1,5 +1,7 @@ 'nobody knows it (but you got a secret smile;)']); + Render::view('error/404', ['message' => 'nobody knows it (but you got a secret smile;)']); }); // 404 -Route::add('/login', function() { Render::view('login'); }); +Route::add('/login', function() { Render::view('user/login'); }); +Route::add('/register', function() { Render::view('user/register'); }); Route::add('/login-check', function() { $user = new Classroom_user(); diff --git a/html/app/views/components/user-management.php b/html/app/views/components/user-management.php new file mode 100644 index 0000000..dd38396 --- /dev/null +++ b/html/app/views/components/user-management.php @@ -0,0 +1,33 @@ +
+ +
+ + +
+ +
+ + +
+ +
+ + + diff --git a/html/app/views/error/404.php b/html/app/views/error/404.php index 30fe206..f594860 100644 --- a/html/app/views/error/404.php +++ b/html/app/views/error/404.php @@ -8,7 +8,7 @@ html,body{ padding:0; margin:0; font-size:1.25em; font-family: Arial, Helvetica, Ubuntu, sans-serif; - color: #037; background: #f3f4f5; + color: #037; background: #eee; line-height:1.2em; } h3 { diff --git a/html/app/views/error/general.php b/html/app/views/error/general.php index 82a1d6e..d6649de 100644 --- a/html/app/views/error/general.php +++ b/html/app/views/error/general.php @@ -8,7 +8,7 @@ html,body{ padding:0; margin:0; font-size:1.25em; font-family: Arial, Helvetica, Ubuntu, sans-serif; - color: #037; background: #f3f4f5; + color: #037; background: #eee; line-height:1.2em; } h3 { diff --git a/html/app/views/login.php b/html/app/views/login.php deleted file mode 100644 index e7f9c3e..0000000 --- a/html/app/views/login.php +++ /dev/null @@ -1,52 +0,0 @@ - - - - - 404: Not Found - - - - - - -
-
-

Login

-
-
-
- - -
-
- - -
- -
-
-
- - diff --git a/html/app/views/user/login.php b/html/app/views/user/login.php new file mode 100644 index 0000000..2cf3290 --- /dev/null +++ b/html/app/views/user/login.php @@ -0,0 +1,61 @@ + + + + + <?=SITE_TITLE?> - Είσοδος Χρήστη + + + + + + + + + + + + +
+
+

Είσοδος Χρήστη

+
+
+
+ + +
+
+ + +
+
+ +
+
+
+ + diff --git a/html/app/views/user/new-password.php b/html/app/views/user/new-password.php new file mode 100644 index 0000000..955cffb --- /dev/null +++ b/html/app/views/user/new-password.php @@ -0,0 +1,65 @@ + + + + + <?=SITE_TITLE?> - Επαναφορά κωδικού πρόσβασης + + + + + + + + + + + + +
+
+

Επαναφορά κωδικού πρόσβασης

+
+
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+
+ + diff --git a/html/app/views/user/register.php b/html/app/views/user/register.php new file mode 100644 index 0000000..97724a6 --- /dev/null +++ b/html/app/views/user/register.php @@ -0,0 +1,75 @@ + + + + + <?=SITE_TITLE?> - Εγγραφή + + + + + + + + + + + + +
+
+

Εγγραφή

+
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+
+
+ + -- cgit v1.2.3