Skip to content

Commit

Permalink
gold button on shop page navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
FunixG committed May 19, 2024
1 parent 47682fe commit 2a20104
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 31 deletions.
64 changes: 33 additions & 31 deletions src/app/components/navbar/navbar.component.html
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
<div class="container">
<nav class="navbar navbar-expand-lg">
<div class="container-fluid">
<a class="navbar-brand" href="/">
<img ngSrc="assets/img/pacifista-logo-navbar.webp" [loading]="'lazy'" width="64" height="64" alt="pacifista navbar minecraft logo" class="d-inline-block">
</a>
<nav class="navbar navbar-expand-lg">
<div class="container-fluid">
<a class="navbar-brand" href="/">
<img ngSrc="assets/img/pacifista-logo-navbar.webp" [loading]="'lazy'" width="64" height="64" alt="pacifista navbar minecraft logo" class="d-inline-block">
</a>

<div class="d-flex">
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav align-items-center">
<li class="nav-item">
<a class="nav-link {{ currentUrl.startsWith('/shop') ? 'current' : '' }}" href="/shop">Boutique</a>
</li>
<li class="nav-item">
<a class="nav-link {{ currentUrl.startsWith('/news') ? 'current' : '' }}" href="/news">News</a>
</li>
<li class="nav-item">
<a class="nav-link {{ currentUrl.startsWith('/wiki') ? 'current' : '' }}" href="/wiki">Wiki</a>
</li>
<li class="nav-item">
<a class="nav-link {{ currentUrl.startsWith('/vote') ? 'current' : '' }}" href="/vote">Vote</a>
</li>
<div class="d-flex">
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav align-items-center">
<li class="nav-item shop">
<a class="nav-link shop {{ currentUrl.startsWith('/shop') ? 'current' : '' }}" href="/shop">
<i class="bi bi-cart-check"></i> Boutique
</a>
</li>
<li class="nav-item">
<a class="nav-link {{ currentUrl.startsWith('/news') ? 'current' : '' }}" href="/news">News</a>
</li>
<li class="nav-item">
<a class="nav-link {{ currentUrl.startsWith('/wiki') ? 'current' : '' }}" href="/wiki">Wiki</a>
</li>
<li class="nav-item">
<a class="nav-link {{ currentUrl.startsWith('/vote') ? 'current' : '' }}" href="/vote">Vote</a>
</li>

<a class="nav-link" href="/user" rel="nofollow">
<button class="btn pacifista-btn">Compte</button>
</a>
</ul>
</div>
</div>
<a class="nav-link" href="/user" rel="nofollow">
<button class="btn pacifista-btn">Compte</button>
</a>
</ul>
</div>
</div>

<button class="navbar-toggler bg-opacity-25 bg-light" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
</nav>
<button class="navbar-toggler bg-opacity-25 bg-light" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</div>
</nav>
</div>
4 changes: 4 additions & 0 deletions src/app/components/navbar/navbar.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ nav a:hover {
color: $secondary_color;
}

nav .shop {
color: rgb(246, 184, 62);
}

nav .current {
color: $main_color;
}

0 comments on commit 2a20104

Please sign in to comment.