From cb42b553cf741e673f3d6144b1e60a905e5c080d Mon Sep 17 00:00:00 2001 From: Sergey Karmanov Date: Mon, 28 Oct 2024 01:18:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D1=82=D0=B0=D1=89?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=B3=D0=BB=D0=B0=D0=B2=D0=BD=D0=BE=D0=B5=20?= =?UTF-8?q?=D0=BE=D0=BA=D0=BD=D0=BE=20=D0=B2=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Layout/MainLayout.razor | 95 +------------------ src/Otchinslator/Components/Pages/Home.razor | 87 ++++++++++++++++- 2 files changed, 85 insertions(+), 97 deletions(-) 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