1
0
mirror of synced 2024-12-11 22:36:02 +01:00
TaikoLocalServer/TaikoWebUI/Shared/MainLayout.razor

37 lines
1.0 KiB
Plaintext
Raw Normal View History

2023-09-09 14:58:20 +02:00
@inherits LayoutComponentBase
2024-03-09 00:42:56 +01:00
<MudThemeProvider />
<MudDialogProvider />
<MudSnackbarProvider />
2023-09-09 14:58:20 +02:00
<MudLayout>
2024-03-14 05:44:15 +01:00
<MudAppBar Elevation="0">
2024-03-09 00:42:56 +01:00
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" OnClick="@((e) => DrawerToggle())" />
<MudSpacer />
<ChooseLanguage />
2023-09-09 14:58:20 +02:00
</MudAppBar>
2024-03-14 05:44:15 +01:00
<MudDrawer @bind-Open="_drawerOpen" Elevation="0" Style="border-right:1px solid #ededf0">
2023-09-09 14:58:20 +02:00
<MudDrawerHeader>
<MudText Typo="Typo.h6">TaikoWebUI</MudText>
</MudDrawerHeader>
2024-03-09 00:42:56 +01:00
<NavMenu />
2023-09-09 14:58:20 +02:00
</MudDrawer>
<MudMainContent>
<MudContainer MaxWidth="MaxWidth.ExtraLarge" Class="my-8">
@Body
<MudScrollToTop>
2024-03-10 00:20:25 +01:00
<MudFab Color="Color.Secondary" StartIcon="@Icons.Material.Filled.ArrowCircleUp" />
2023-09-09 14:58:20 +02:00
</MudScrollToTop>
</MudContainer>
</MudMainContent>
</MudLayout>
@code {
bool _drawerOpen = true;
void DrawerToggle()
{
_drawerOpen = !_drawerOpen;
}
}