-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joel Johnston
committed
Nov 18, 2023
1 parent
1e913cb
commit 5b1a9ed
Showing
2 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
35 changes: 31 additions & 4 deletions
35
ngx-joeljca-blogapp-2/src/app/layout/header/header.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,48 @@ | ||
<header [class]="headerClasses()"> | ||
<div class="container px-3"> | ||
<a routerLink="/" class="navbar-brand pe-3"> | ||
|
||
<a | ||
class="navbar-brand pe-3" | ||
routerLink="/"> | ||
Joel Johnston | ||
</a> | ||
<div id="navbarNav" class="offcanvas offcanvas-end bg-dark"> | ||
|
||
<div | ||
id="navbarNav" | ||
class="offcanvas offcanvas-end bg-dark" | ||
[class.show]="showMenu" | ||
[class.navbar-dark]="showMenu"> | ||
|
||
<div class="offcanvas-header border-bottom border-light"> | ||
<h5 class="offcanvas-title text-white">Menu</h5> | ||
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="offcanvas" aria-label="Close"></button> | ||
<button type="button" class="btn-close btn-close-white" (click)="disableMenu()"></button> | ||
</div> | ||
|
||
<div class="offcanvas-body"> | ||
<ul class="navbar-nav me-auto mb-2 mb-lg-0"> | ||
<ng-container *ngFor="let item of navigationItems()"> | ||
<app-nav-link [navItem]="item">Services</app-nav-link> | ||
</ng-container> | ||
</ul> | ||
</div> | ||
|
||
</div> | ||
<app-theme-switcher></app-theme-switcher> | ||
|
||
<app-theme-switcher> | ||
</app-theme-switcher> | ||
|
||
<button | ||
type="button" | ||
class="navbar-toggler" | ||
(click)="toggleMenu()"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
|
||
<div | ||
class="offcanvas-backdrop fade show" | ||
*ngIf="showMenu" | ||
(click)="disableMenu()"> | ||
</div> | ||
|
||
</div> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters