2023-09-09 14:58:20 +02:00
|
|
|
@inherits LayoutComponentBase
|
|
|
|
|
|
|
|
<MudThemeProvider/>
|
|
|
|
<MudDialogProvider/>
|
|
|
|
<MudSnackbarProvider/>
|
|
|
|
|
|
|
|
<MudLayout>
|
|
|
|
<MudAppBar Elevation="0">
|
|
|
|
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" OnClick="@((e) => DrawerToggle())"/>
|
|
|
|
</MudAppBar>
|
|
|
|
<MudDrawer @bind-Open="_drawerOpen" Elevation="1">
|
|
|
|
<MudDrawerHeader>
|
|
|
|
<MudText Typo="Typo.h6">TaikoWebUI</MudText>
|
|
|
|
</MudDrawerHeader>
|
|
|
|
<NavMenu/>
|
|
|
|
</MudDrawer>
|
|
|
|
<MudMainContent>
|
|
|
|
<MudContainer MaxWidth="MaxWidth.ExtraLarge" Class="my-8">
|
|
|
|
@Body
|
|
|
|
|
|
|
|
<MudScrollToTop>
|
2023-09-23 10:43:59 +02:00
|
|
|
<MudFab Color="Color.Secondary" Icon="@Icons.Material.Filled.ArrowCircleUp" />
|
2023-09-09 14:58:20 +02:00
|
|
|
</MudScrollToTop>
|
|
|
|
</MudContainer>
|
|
|
|
</MudMainContent>
|
|
|
|
</MudLayout>
|
|
|
|
|
|
|
|
@code {
|
|
|
|
bool _drawerOpen = true;
|
|
|
|
|
|
|
|
void DrawerToggle()
|
|
|
|
{
|
|
|
|
_drawerOpen = !_drawerOpen;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|