1
0
mirror of synced 2025-01-21 00:38:47 +01:00

37 lines
985 B
Plaintext
Raw Normal View History

2023-09-09 21:58:20 +09:00
@inherits LayoutComponentBase
2024-03-08 18:42:56 -05:00
<MudThemeProvider />
<MudDialogProvider />
<MudSnackbarProvider />
2023-09-09 21:58:20 +09:00
<MudLayout>
2024-03-09 22:48:26 -05:00
<MudAppBar Elevation="1">
2024-03-08 18:42:56 -05:00
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" OnClick="@((e) => DrawerToggle())" />
<MudSpacer />
<ChooseLanguage />
2023-09-09 21:58:20 +09:00
</MudAppBar>
<MudDrawer @bind-Open="_drawerOpen" Elevation="1">
<MudDrawerHeader>
<MudText Typo="Typo.h6">TaikoWebUI</MudText>
</MudDrawerHeader>
2024-03-08 18:42:56 -05:00
<NavMenu />
2023-09-09 21:58:20 +09:00
</MudDrawer>
<MudMainContent>
<MudContainer MaxWidth="MaxWidth.ExtraLarge" Class="my-8">
@Body
<MudScrollToTop>
2024-03-09 18:20:25 -05:00
<MudFab Color="Color.Secondary" StartIcon="@Icons.Material.Filled.ArrowCircleUp" />
2023-09-09 21:58:20 +09:00
</MudScrollToTop>
</MudContainer>
</MudMainContent>
</MudLayout>
@code {
bool _drawerOpen = true;
void DrawerToggle()
{
_drawerOpen = !_drawerOpen;
}
}