diff --git a/CouchLog/Components/Account/Pages/Register.razor b/CouchLog/Components/Account/Pages/Register.razor index f5e6afc..8ca9662 100644 --- a/CouchLog/Components/Account/Pages/Register.razor +++ b/CouchLog/Components/Account/Pages/Register.razor @@ -1,4 +1,5 @@ @page "/Account/Register" +@layout Layout.IdentityLayout @using System.ComponentModel.DataAnnotations @using System.Text diff --git a/CouchLog/Components/App.razor b/CouchLog/Components/App.razor index bd8f6be..285088e 100644 --- a/CouchLog/Components/App.razor +++ b/CouchLog/Components/App.razor @@ -6,7 +6,9 @@ - + + @* Rendermode get's hand over dynamic *@ + @@ -15,8 +17,16 @@ - + @* Rendermode get's hand over dynamic *@ + + +@code { + [CascadingParameter] + private HttpContext HttpContext { get; set; } = default!; + + private Microsoft.AspNetCore.Components.IComponentRenderMode? RenderModeForPage => HttpContext.Request.Path.StartsWithSegments("/Account") ? null : Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer; +} diff --git a/CouchLog/Components/Layout/IdentityLayout.razor b/CouchLog/Components/Layout/IdentityLayout.razor index f87c497..d82b246 100644 --- a/CouchLog/Components/Layout/IdentityLayout.razor +++ b/CouchLog/Components/Layout/IdentityLayout.razor @@ -1,8 +1,7 @@ @inherits LayoutComponentBase @using MudBlazor -@* Die Provider sind wichtig, um die CSS-Styles (Themes, Farben) von MudBlazor zu laden *@ - + @@ -12,4 +11,4 @@ @Body - + \ No newline at end of file diff --git a/CouchLog/Components/Layout/MainLayout.razor b/CouchLog/Components/Layout/MainLayout.razor index ffb846e..bde8d35 100644 --- a/CouchLog/Components/Layout/MainLayout.razor +++ b/CouchLog/Components/Layout/MainLayout.razor @@ -1,9 +1,10 @@ @inherits LayoutComponentBase @using MudBlazor - + + @@ -12,7 +13,7 @@ - @* Ihr NavMenu.razor müssen Sie später auch auf MudNavMenu umbauen *@ + @@ -30,9 +31,10 @@ @code { bool _drawerOpen = true; + bool _isDarkMode = true; void DrawerToggle() { _drawerOpen = !_drawerOpen; } -} +} \ No newline at end of file diff --git a/CouchLog/Components/Pages/Error.razor b/CouchLog/Components/Pages/Error.razor index 576cc2d..b9818ce 100644 --- a/CouchLog/Components/Pages/Error.razor +++ b/CouchLog/Components/Pages/Error.razor @@ -33,4 +33,4 @@ protected override void OnInitialized() => RequestId = Activity.Current?.Id ?? HttpContext?.TraceIdentifier; -} +} \ No newline at end of file diff --git a/CouchLog/Components/Pages/GlobalList.razor b/CouchLog/Components/Pages/GlobalList.razor index 9b3eda0..e7ae57a 100644 --- a/CouchLog/Components/Pages/GlobalList.razor +++ b/CouchLog/Components/Pages/GlobalList.razor @@ -15,6 +15,22 @@ GlobalList + + @*Top of the Page*@ + + @*Page Title*@ + Global List + + @*Spacer*@ + + + @*Button for adding GlobalEntity*@ + + + + + +
diff --git a/CouchLog/Components/Pages/Home.razor b/CouchLog/Components/Pages/Home.razor index b31f023..723e536 100644 --- a/CouchLog/Components/Pages/Home.razor +++ b/CouchLog/Components/Pages/Home.razor @@ -1,6 +1,6 @@ @page "/" -@rendermode InteractiveServer +@using CouchLog.Components.Layout @using Microsoft.AspNetCore.Authorization @attribute [Authorize] @@ -9,4 +9,4 @@

Hello, world!

-Welcome to your new app. +Welcome to your new app. \ No newline at end of file diff --git a/CouchLog/Components/Routes.razor b/CouchLog/Components/Routes.razor index c4e9068..eabc9b4 100644 --- a/CouchLog/Components/Routes.razor +++ b/CouchLog/Components/Routes.razor @@ -8,4 +8,4 @@ - + \ No newline at end of file