From a0d9f880fd87b6296cc7d6b833292c898035aaf7 Mon Sep 17 00:00:00 2001 From: Minik Gaarde Lambrecht Date: Thu, 8 Apr 2021 13:06:52 +0200 Subject: [PATCH] Update --- Backend/test.php | 4 +- Frontend/Html/AdminPage.html | 28 +++++++++++--- Frontend/Index.html | 6 +-- Frontend/Styles/AdminPage.css | 72 +++++++++++++++++++++++++++++++++-- config/database.json | 7 ++++ 5 files changed, 103 insertions(+), 14 deletions(-) diff --git a/Backend/test.php b/Backend/test.php index a466263..faa2bef 100644 --- a/Backend/test.php +++ b/Backend/test.php @@ -4,5 +4,5 @@ use Backend\Models\AdminUser; require_once ('Database/databaseMigration.php'); AdminUser::firstOrCreate([ - 'user_name' => '', 'password' => password_hash('',PASSWORD_DEFAULT) -]); \ No newline at end of file + 'user_name' => 'admin', 'password' => password_hash('admin123',PASSWORD_DEFAULT) +]); diff --git a/Frontend/Html/AdminPage.html b/Frontend/Html/AdminPage.html index 2a751e6..f6c83da 100755 --- a/Frontend/Html/AdminPage.html +++ b/Frontend/Html/AdminPage.html @@ -10,16 +10,19 @@ - + + + + @@ -49,11 +52,21 @@
- - + + +
+ + +

+
+ @@ -65,7 +78,7 @@
- +
@@ -90,12 +103,17 @@
- + + diff --git a/Frontend/Index.html b/Frontend/Index.html index e6dc5d2..a414bc7 100755 --- a/Frontend/Index.html +++ b/Frontend/Index.html @@ -1,5 +1,5 @@  - + @@ -9,7 +9,7 @@ - + @@ -704,7 +704,7 @@ - + diff --git a/Frontend/Styles/AdminPage.css b/Frontend/Styles/AdminPage.css index 38c300f..fb7579a 100755 --- a/Frontend/Styles/AdminPage.css +++ b/Frontend/Styles/AdminPage.css @@ -1,6 +1,7 @@ -body{ +body { text-align: center; } + .HeaderPanel { position: fixed; overflow: hidden; @@ -42,6 +43,10 @@ body{ position: center; } +#createGameJam input:focus-visible { + outline: none; +} + #startTime { border-radius: 15px; color: #474747; @@ -82,8 +87,6 @@ body{ border: double; } - - #description { background-color: rgb(18, 18, 18); color: rgba(255, 255, 255, .55); @@ -99,4 +102,65 @@ body{ background-color: rgb(18, 18, 18); border: double; } -/*Create Game Jam end*/ \ No newline at end of file +/*Create Game Jam end*/ + + +.FormField { + position: relative; + padding: 15px 0 0; + margin-top: 10px; +} + +.FormFieldInput { + font-family: inherit; + width: 100%; + border: 0; + border-bottom: 2px solid #9b9b9b; + outline: 0; + font-size: 1.3rem; + color: #fff; + padding: 7px 0; + background: transparent; + transition: border-color 0.2s; +} + +.FormFieldInput::placeholder { + color: transparent; +} + +.FormFieldInput:placeholder-shown ~ .FormFieldLabel { + font-size: 1.3rem; + cursor: text; + top: 20px; +} + +.FormFieldLabel { + position: absolute; + top: 0; + display: block; + transition: 0.2s; + font-size: 1rem; + color: #9b9b9b; +} + +.FormFieldInput:focus { + padding-bottom: 6px; + font-weight: 700; + border-width: 3px; + border-image: linear-gradient(to right, #11998e, #38ef7d); + border-image-slice: 1; +} +.FormFieldInput:focus ~ .FormFieldLabel { + position: absolute; + top: 0; + display: block; + transition: 0.2s; + font-size: 1rem; + color: #11998e; + font-weight: 700; +} + +.FormFieldInput:required, +.FormFieldInput:invalid { + box-shadow: none; +} \ No newline at end of file diff --git a/config/database.json b/config/database.json index e69de29..364d1a8 100644 --- a/config/database.json +++ b/config/database.json @@ -0,0 +1,7 @@ +{ + "driver":"mysql", + "host":"localhost", + "database":"testdb", + "username":"root", + "password":"V#_xWL6_" +} \ No newline at end of file