@using PancakesWeb.Data

<nav class="container">
    <ul class="nav-content">
        <li class="nav-item brand">
            <a class="nav-link" href="/">
                <img class="nav-img" src="@Assets["icon.webp"]" alt="">
                <span class="nav-label">pancakes</span>
            </a>
        </li>

        @foreach (var link in Links.Accounts.Where(p => p is { Href: not null, HomePageOnly: false }))
        {
            <li class="nav-item">
                <a class="nav-link can-hide-label" href="@link.Href">
                    <img class="@(link.IconInvert ? "nav-img invert-icon" : "nav-img")"
                         src="@Assets[$"imgs/icons/{link.Icon}"]" alt="@link.Name icon" aria-hidden="true">
                    <span class="nav-label">@link.Name</span>
                </a>
            </li>
        }
    </ul>
</nav>