2022-09-04 19:19:42 +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>
|
2022-09-10 06:56:53 +02:00
|
|
|
<MudContainer MaxWidth="MaxWidth.ExtraLarge" Class="my-8">
|
2022-09-04 19:19:42 +02:00
|
|
|
@Body
|
2022-09-11 00:21:14 +02:00
|
|
|
|
|
|
|
<MudScrollToTop>
|
|
|
|
<MudFab Color="Color.Secondary" Icon="@Icons.Filled.ArrowCircleUp" />
|
|
|
|
</MudScrollToTop>
|
2022-09-04 19:19:42 +02:00
|
|
|
</MudContainer>
|
|
|
|
</MudMainContent>
|
|
|
|
</MudLayout>
|
|
|
|
|
|
|
|
@code {
|
|
|
|
bool _drawerOpen = true;
|
|
|
|
|
|
|
|
void DrawerToggle()
|
|
|
|
{
|
|
|
|
_drawerOpen = !_drawerOpen;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|