Skip to content

Commit

Permalink
Profile: Main information
Browse files Browse the repository at this point in the history
Profile information
  • Loading branch information
fet1sov committed Apr 9, 2024
1 parent 9d465ad commit d30424d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
5 changes: 5 additions & 0 deletions _styles/_css/user.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
section.user-info {
display: flex;
align-items: center;
justify-content: center;
}
3 changes: 2 additions & 1 deletion data/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
},
"titles": {
"authorization": "Log In",
"registration": "Registration"
"registration": "Registration",
"profileTitle": "Your profile"
},
"navigationBar": {
"authButton": "Log In",
Expand Down
3 changes: 2 additions & 1 deletion data/locales/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
},
"titles": {
"authorization": "Авторизация",
"registration": "Регистрация"
"registration": "Регистрация",
"profileTitle": "Ваш профиль"
},
"navigationBar": {
"authButton": "Войти",
Expand Down
2 changes: 1 addition & 1 deletion routes/user/user.ctrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Renderer::includeTemplate("frontend/components/layout.php", [
"layout_path" => "routes/user/user.view.php",
"layout_data" => [

"userData" => unserialize($_SESSION["userData"])
]
]);
}
5 changes: 4 additions & 1 deletion routes/user/user.view.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<section>
<link href="_styles/_css/user.css" rel="stylesheet"/>

<section class="user-info">
<h2><?= $GLOBALS["locale"]["titles"]["profileTitle"] ?></h2>
<div><?= $userData->getUsename() ?></div>
<section>

0 comments on commit d30424d

Please sign in to comment.