MudBlazor und DB-Verbindung

This commit is contained in:
2026-05-29 11:35:02 +02:00
parent 6d3beae249
commit fda8187792
3 changed files with 41 additions and 13 deletions
+23 -13
View File
@@ -1,20 +1,30 @@
@inherits LayoutComponentBase
@using MudBlazor
<div class="page">
<div class="sidebar">
<NavMenu />
</div>
<MudThemeProvider Theme="@_myCustomTheme" IsDarkMode="true" />
<MudDialogProvider />
<MudSnackbarProvider />
<main>
<div class="top-row px-4">
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
</div>
<MudLayout>
<MudMainContent>
@Body
</MudMainContent>
</MudLayout>
<article class="content px-4">
@Body
</article>
</main>
</div>
@code {
private MudTheme _myCustomTheme = new MudTheme()
{
Typography = new Typography()
{
// Hier liegt der Fix: DefaultTypography statt Default
Default = new DefaultTypography() { FontFamily = new[] { "Urbanist", "sans-serif" } }
},
LayoutProperties = new LayoutProperties()
{
DefaultBorderRadius = "0px"
}
};
}
<div id="blazor-error-ui" data-nosnippet>
An unhandled error has occurred.