diff --git a/Bank/BankClientApp/Program.cs b/Bank/BankClientApp/Program.cs index 559dd3a..59f49e1 100644 --- a/Bank/BankClientApp/Program.cs +++ b/Bank/BankClientApp/Program.cs @@ -22,6 +22,6 @@ app.UseAuthorization(); app.MapControllerRoute( name: "default", - pattern: "{controller=Home}/{action=Index}/{id?}"); + pattern: "{controller=Home}/{action=Enter}/{id?}"); app.Run(); diff --git a/Bank/BankClientApp/Views/Home/Enter.cshtml b/Bank/BankClientApp/Views/Home/Enter.cshtml new file mode 100644 index 0000000..e14b5ff --- /dev/null +++ b/Bank/BankClientApp/Views/Home/Enter.cshtml @@ -0,0 +1,23 @@ +@using BankClientApp + +@{ + ViewData["Title"] = "Страница пользователя"; +} + +
+

Страница пользователя

+
+ +
+ @{ + + + if (APIClient.Client == null) + { +

Сначала авторизируйтесь

+ return; + } + +

Здравствуйтe, @APIClient.Client.Name @APIClient.Client.Patronymic

+ } +
diff --git a/Bank/BankClientApp/Views/Home/Index.cshtml b/Bank/BankClientApp/Views/Home/Index.cshtml index d2d19bd..458e04e 100644 --- a/Bank/BankClientApp/Views/Home/Index.cshtml +++ b/Bank/BankClientApp/Views/Home/Index.cshtml @@ -1,8 +1,8 @@ @{ - ViewData["Title"] = "Home Page"; + ViewData["Title"] = "Добро пожаловать"; }
-

Welcome

-

Learn about building Web apps with ASP.NET Core.

+

Добро пожаловать

+
diff --git a/Bank/BankClientApp/Views/Home/Login.cshtml b/Bank/BankClientApp/Views/Home/Login.cshtml new file mode 100644 index 0000000..8fdbbc9 --- /dev/null +++ b/Bank/BankClientApp/Views/Home/Login.cshtml @@ -0,0 +1,14 @@ +@{ + ViewData["Title"] = "Логин"; +} + +
+

Вход в приложение

+
+ +
+

Логин

+ + + +
diff --git a/Bank/BankClientApp/Views/Home/Privacy.cshtml b/Bank/BankClientApp/Views/Home/Privacy.cshtml index af4fb19..78cc1ae 100644 --- a/Bank/BankClientApp/Views/Home/Privacy.cshtml +++ b/Bank/BankClientApp/Views/Home/Privacy.cshtml @@ -1,6 +1,35 @@ -@{ - ViewData["Title"] = "Privacy Policy"; -} -

@ViewData["Title"]

+@model ClientViewModel -

Use this page to detail your site's privacy policy.

+@{ + ViewData["Title"] = "Личный кабинет"; +} + +
+

Личные данные

+
+
+
+
Логин:
+ Model.Email) required> +
+
+
Пароль:
+ Model.Password) required> +
+
+
Имя:
+ Model.Name) required> +
Фамилия:
+ Model.Surname) required> +
Отчество:
+ Model.Patronymic) required> +
+
+
Телефон:
+ Model.Telephone) required> +
+
+ + +
+
diff --git a/Bank/BankClientApp/Views/Home/Register.cshtml b/Bank/BankClientApp/Views/Home/Register.cshtml new file mode 100644 index 0000000..3573af3 --- /dev/null +++ b/Bank/BankClientApp/Views/Home/Register.cshtml @@ -0,0 +1,19 @@ +@{ + ViewData["Title"] = "Регистрация"; +} + +
+

Регистрация

+
+ +
+

Регистрация

+ + + + + + + + +