diff --git a/src/Otchinslator/Components/Layout/MainLayout.razor b/src/Otchinslator/Components/Layout/MainLayout.razor index de0949a..720bd93 100644 --- a/src/Otchinslator/Components/Layout/MainLayout.razor +++ b/src/Otchinslator/Components/Layout/MainLayout.razor @@ -1,96 +1,5 @@ -@using Microsoft.AspNetCore.Components.Authorization -@inject AuthenticationStateProvider AuthenticationStateProvider -@inherits LayoutComponentBase - -@code { - private MarkupString GetLinkIfAuth(string link) => new MarkupString(AuthenticationStateProvider.GetAuthenticationStateAsync().Result.User.Identity?.IsAuthenticated == true ? link : "MicrosoftIdentity/Account/SignIn"); -} +@inherits LayoutComponentBase -
- @* TODO: Дописать модальное окно *@ - - - - @* TODO: Исправить расположение названия *@ -

Отчислятор 3000
-
-
-

Мне нужно...

-
- - Отчислиться -
- @{ - if (new Random().Next(0, 100) < 10) - { - - } - else - { - - } - } -
-
- - -
- - - - - @context.User.Identity?.Name!.Split("@")[0] -
- - - - -
-
-
- - Начать - -
-
-
-
-
- -
-
-
-@* *@ +@Body \ No newline at end of file diff --git a/src/Otchinslator/Components/Pages/Home.razor b/src/Otchinslator/Components/Pages/Home.razor index dfcdf75..4e732b4 100644 --- a/src/Otchinslator/Components/Pages/Home.razor +++ b/src/Otchinslator/Components/Pages/Home.razor @@ -1,7 +1,86 @@ -@page "/" +@using Microsoft.AspNetCore.Components.Authorization +@inject AuthenticationStateProvider AuthenticationStateProvider +@page "/" -Home +Отчислятор 3000 -

Hello, world!

+@code { + private MarkupString GetLinkIfAuth(string link) => new MarkupString(AuthenticationStateProvider.GetAuthenticationStateAsync().Result.User.Identity?.IsAuthenticated == true ? link : "MicrosoftIdentity/Account/SignIn"); +} -Welcome to your new app. \ No newline at end of file +
+ @* TODO: Дописать модальное окно *@ + + + + @* TODO: Исправить расположение названия *@ +

Отчислятор 3000
+
+
+

Мне нужно...

+
+ + Отчислиться +
+ @{ + if (new Random().Next(0, 100) < 10) + { + + } + else + { + + } + } +
+
+ + +
+ + + + + @context.User.Identity?.Name!.Split("@")[0] +
+ + + + +
+
+
+ + Начать + +
+
+
+
+
+ +
+
+
\ No newline at end of file