diff --git a/CSS/Element/button.css b/CSS/Element/button.css index 34d3ebd..9f9edea 100644 --- a/CSS/Element/button.css +++ b/CSS/Element/button.css @@ -13,6 +13,7 @@ color: var(--brand-white); display: flex; flex-direction: row; + justify-content: center; align-items: center; cursor: pointer; } @@ -22,6 +23,11 @@ border-radius: 3px; } +.btn-secondary{ + background: var(--fullblock); + border-radius: 3px; +} + .btn-user { border-radius: 9999px; color: var(--brand-primary); diff --git a/CSS/Element/form.css b/CSS/Element/form.css index 3036e98..a1f9344 100644 --- a/CSS/Element/form.css +++ b/CSS/Element/form.css @@ -64,3 +64,26 @@ input, textarea { margin-top: 5px; } +.form-user{ + justify-content: center!important; + grid-template-columns: auto!important; +} + +/* fix radio buttons registration */ +.input:nth-child(5){ + flex-direction: row; + justify-content: space-between; + max-width: 290px; + align-items: center; +} + +.input:nth-child(5) label{ + display: flex; + flex-direction: row; + align-items: center; + gap: 10px; +} + +.input:nth-child(5) label input{ + margin-top: 0; +} diff --git a/CSS/style.css b/CSS/style.css index 3634670..fcb7762 100644 --- a/CSS/style.css +++ b/CSS/style.css @@ -107,3 +107,7 @@ main { text-decoration: none; } +.paragraph{ + font-size: var(--font-size-smalltext); + color: var(--brand-white); +} diff --git a/Controller/UserController.php b/Controller/UserController.php index 4904508..b9e1104 100644 --- a/Controller/UserController.php +++ b/Controller/UserController.php @@ -87,17 +87,19 @@ class UserController{ public function showUserLoginConfirmation(){ $userId = $this->getCurrentUserId(); $user = null; - var_dump($user . "user"); if($userId){ $user = $this->db->getUserById($userId); } - include 'Views/User/showUserLoginConfirmation.phtml'; + + $path = "Views/User/showUserLoginConfirmation.phtml"; + if(file_exists($path)){ + include $path; + } } public function register(){ $this->db->createUser($_POST); - $this->view->setDoMethodName("showUserRegisterConfirmation"); - $this->showUserRegisterConfirmation(); + $this->login(); } public function login(){ diff --git a/Views/User/showUserLoginConfirmation.phtml b/Views/User/showUserLoginConfirmation.phtml index d5289c1..004dbc1 100644 --- a/Views/User/showUserLoginConfirmation.phtml +++ b/Views/User/showUserLoginConfirmation.phtml @@ -2,16 +2,23 @@ include dirname(__DIR__).'/header.phtml'; ?> - -
Hallo, = htmlspecialchars($user['vorname']) ?> = htmlspecialchars($user['name']) ?>!
- -Benutzerdaten konnten nicht geladen werden.
- +Hallo, = htmlspecialchars($user['vorname']) ?> = htmlspecialchars($user['name']) ?>!
+ + +Benutzerdaten konnten nicht geladen werden.
+ - +