SharpRSS/WebSharpRSS/MainLayout.razor

29 lines
643 B
Plaintext
Raw Normal View History

2023-04-27 17:23:01 +02:00
@inherits LayoutComponentBase
<MudThemeProvider IsDarkMode="true"/>
<MudDialogProvider/>
<MudSnackbarProvider/>
<MudLayout>
<MudAppBar>
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" OnClick="@((e) => DrawerToggle())" />
2023-04-27 20:47:43 +02:00
<MudText Typo="Typo.h6">SharpRSS</MudText>
2023-04-27 17:23:01 +02:00
</MudAppBar>
<MudDrawer @bind-Open="@_drawerOpen" ClipMode="DrawerClipMode.Always">
2023-04-28 21:58:36 +02:00
<SideGuide/>
2023-04-27 17:23:01 +02:00
</MudDrawer>
<MudMainContent>
@Body
</MudMainContent>
</MudLayout>
@code {
bool _drawerOpen = true;
void DrawerToggle()
{
_drawerOpen = !_drawerOpen;
}
}