diff --git a/_styles/_css/user.css b/_styles/_css/user.css new file mode 100644 index 0000000..71374b1 --- /dev/null +++ b/_styles/_css/user.css @@ -0,0 +1,5 @@ +section.user-info { + display: flex; + align-items: center; + justify-content: center; +} \ No newline at end of file diff --git a/data/locales/en-US.json b/data/locales/en-US.json index 0f72e12..0247291 100644 --- a/data/locales/en-US.json +++ b/data/locales/en-US.json @@ -18,7 +18,8 @@ }, "titles": { "authorization": "Log In", - "registration": "Registration" + "registration": "Registration", + "profileTitle": "Your profile" }, "navigationBar": { "authButton": "Log In", diff --git a/data/locales/ru-RU.json b/data/locales/ru-RU.json index 06e1e75..b208928 100644 --- a/data/locales/ru-RU.json +++ b/data/locales/ru-RU.json @@ -18,7 +18,8 @@ }, "titles": { "authorization": "Авторизация", - "registration": "Регистрация" + "registration": "Регистрация", + "profileTitle": "Ваш профиль" }, "navigationBar": { "authButton": "Войти", diff --git a/routes/user/user.ctrl.php b/routes/user/user.ctrl.php index 78a32a4..60aaf3b 100644 --- a/routes/user/user.ctrl.php +++ b/routes/user/user.ctrl.php @@ -7,7 +7,7 @@ Renderer::includeTemplate("frontend/components/layout.php", [ "layout_path" => "routes/user/user.view.php", "layout_data" => [ - + "userData" => unserialize($_SESSION["userData"]) ] ]); } diff --git a/routes/user/user.view.php b/routes/user/user.view.php index 2851c22..d53e98c 100644 --- a/routes/user/user.view.php +++ b/routes/user/user.view.php @@ -1,3 +1,6 @@ -
+ +
+

+
getUsename() ?>
\ No newline at end of file