Files
CaddyManager/CaddyManager/Components/Layout/MainLayout.razor
ebolo cfb0f495ca
All checks were successful
Caddy Manager CI build / docker (push) Successful in 1m18s
feat: add custom css style component
This component would contain the css rules to override the default css (i.e.) of MudBlazor for custom styling
2025-04-30 11:37:21 +00:00

28 lines
981 B
Plaintext

@inherits LayoutComponentBase
@* Required *@
<MudThemeProvider @ref="@_mudThemeProvider" @bind-IsDarkMode="@_isDarkMode"/>
<MudPopoverProvider />
@* Needed for dialogs *@
<MudDialogProvider />
@* Needed for snackbars *@
<MudSnackbarProvider />
<CustomCssStyle/>
@if (!_isInitialing)
{
<MudLayout>
<MudAppBar Elevation="1" Dense="true">
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" OnClick="@_drawer.ToggleDrawer" />
<MudText Typo="Typo.h6">Caddy Manager</MudText>
<MudSpacer />
<MudIconButton Icon="@Icons.Custom.Brands.GitHub" Color="Color.Inherit" Href="https://pikachu-gitea.duydao.org/ebolo/CaddyManager" Target="_blank" />
</MudAppBar>
<NavigationDrawer @ref="_drawer"/>
<MudMainContent Class="pt-16 px-16">
<MudContainer Class="mt-6">
@Body
</MudContainer>
</MudMainContent>
</MudLayout>
}