Skip to content

Commit

Permalink
Update NavMenu
Browse files Browse the repository at this point in the history
Add new links to calendar events and music.
Remove links to weather and 'auth required' pages.
  • Loading branch information
maacpiash committed Sep 20, 2024
1 parent 54564be commit ad8204e
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions src/Components/Layout/NavMenu.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@implements IDisposable
@implements IDisposable

@inject NavigationManager NavigationManager

Expand All @@ -18,23 +18,27 @@
</NavLink>
</div>

<div class="nav-item px-3">
<NavLink class="nav-link" href="weather">
<span class="bi bi-list-nested-nav-menu" aria-hidden="true"></span> Weather
</NavLink>
</div>

<div class="nav-item px-3">
<NavLink class="nav-link" href="auth">
<span class="bi bi-lock-nav-menu" aria-hidden="true"></span> Auth Required
</NavLink>
</div>

<AuthorizeView>
<Authorized>
<div class="nav-item px-3">
<NavLink class="nav-link" href="Account/Manage">
<span class="bi bi-person-fill-nav-menu" aria-hidden="true"></span> @context.User.Identity?.Name
<span class="bi bi-person-nav-menu" aria-hidden="true"></span> Manage account
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="calendar-events">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-calendar" viewBox="0 0 16 16">
<path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z" />
</svg> Calendar
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="music">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-music-note-beamed" viewBox="0 0 16 16">
<path d="M6 13c0 1.105-1.12 2-2.5 2S1 14.105 1 13s1.12-2 2.5-2 2.5.896 2.5 2m9-2c0 1.105-1.12 2-2.5 2s-2.5-.895-2.5-2 1.12-2 2.5-2 2.5.895 2.5 2" />
<path fill-rule="evenodd" d="M14 11V2h1v9zM6 3v10H5V3z" />
<path d="M5 2.905a1 1 0 0 1 .9-.995l8-.8a1 1 0 0 1 1.1.995V3L5 4z" />
</svg> Music
</NavLink>
</div>
<div class="nav-item px-3">
Expand Down

0 comments on commit ad8204e

Please sign in to comment.