MudBlazor und DB-Verbindung
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user