mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-24 04:42:56 +01:00
29 lines
803 B
Plaintext
29 lines
803 B
Plaintext
<div class="navbar navbar-dark">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand" href="">Phantom Panel</a>
|
|
<button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="@NavMenuCssClass" @onclick="ToggleNavMenu">
|
|
<nav class="flex-column">
|
|
<NavMenuItem Label="Home" Icon="home" Match="NavLinkMatch.All" />
|
|
<NavMenuItem Label="Instances" Icon="folder" Href="instances" />
|
|
<NavMenuItem Label="Agents" Icon="cloud" Href="agents" />
|
|
</nav>
|
|
</div>
|
|
|
|
@code {
|
|
|
|
private bool collapseNavMenu = true;
|
|
|
|
private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;
|
|
|
|
private void ToggleNavMenu() {
|
|
collapseNavMenu = !collapseNavMenu;
|
|
}
|
|
|
|
}
|