about summary refs log tree commit diff
path: root/Utilities/LibMatrix.E2eeTestKit/Layout/NavMenu.razor
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/LibMatrix.E2eeTestKit/Layout/NavMenu.razor')
-rw-r--r--Utilities/LibMatrix.E2eeTestKit/Layout/NavMenu.razor39
1 files changed, 39 insertions, 0 deletions
diff --git a/Utilities/LibMatrix.E2eeTestKit/Layout/NavMenu.razor b/Utilities/LibMatrix.E2eeTestKit/Layout/NavMenu.razor
new file mode 100644
index 0000000..43bc9cc
--- /dev/null
+++ b/Utilities/LibMatrix.E2eeTestKit/Layout/NavMenu.razor
@@ -0,0 +1,39 @@
+<div class="top-row ps-3 navbar navbar-dark">

+    <div class="container-fluid">

+        <a class="navbar-brand" href="">LibMatrix.E2eeTestKit</a>

+        <button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu">

+            <span class="navbar-toggler-icon"></span>

+        </button>

+    </div>

+</div>

+

+<div class="@NavMenuCssClass nav-scrollable" @onclick="ToggleNavMenu">

+    <nav class="flex-column">

+        <div class="nav-item px-3">

+            <NavLink class="nav-link" href="" Match="NavLinkMatch.All">

+                <span class="bi bi-house-door-fill-nav-menu" aria-hidden="true"></span> Home

+            </NavLink>

+        </div>

+        <div class="nav-item px-3">

+            <NavLink class="nav-link" href="CSTJApiComparison">

+                <span class="bi bi-list-nested-nav-menu" aria-hidden="true"></span> CanonicalJSON API

+            </NavLink>

+        </div>

+        <div class="nav-item px-3">

+            <NavLink class="nav-link" href="CSTJTest">

+                <span class="bi bi-list-nested-nav-menu" aria-hidden="true"></span> CanonicalJSON Test

+            </NavLink>

+        </div>

+    </nav>

+</div>

+

+@code {

+    private bool collapseNavMenu = true;

+

+    private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;

+

+    private void ToggleNavMenu()

+    {

+        collapseNavMenu = !collapseNavMenu;

+    }

+}