Added a bunch of services

This commit is contained in:
2022-11-10 11:06:14 -05:00
parent 1fc86d3614
commit fde487fc66
20 changed files with 268 additions and 38 deletions

View File

@ -3,7 +3,7 @@
<div>
<a class="navbar-brand d-flex align-items-center" routerLink="/" fragment="banner" (click)="scroll('banner')">
<img src="assets/img/eagle.png" alt="SPQR" height="45px" width="45px">
<div class="px-2">LEGIO · XXX</div>
<xxx-logo class="px-2" [expand]="true"></xxx-logo>
</a>
</div>
<div class="flex-grow-1"></div>

View File

@ -2,6 +2,7 @@ import {AfterViewInit, Component, EventEmitter, Input, OnDestroy, Output} from '
import {ActivatedRoute, NavigationEnd, Router} from '@angular/router';
import {combineLatest, filter, Subscription} from 'rxjs';
import {NAVIGATION} from '../../misc/navigation';
import {BreakpointService} from '../../services/breakpoint.service';
@Component({
selector: 'xxx-navbar',
@ -20,7 +21,7 @@ export class NavbarComponent implements AfterViewInit, OnDestroy {
@Output() hamburgerClick = new EventEmitter<void>();
constructor(private route: ActivatedRoute, private router: Router) { }
constructor(private route: ActivatedRoute, private router: Router, public breakpoint: BreakpointService) { }
ngAfterViewInit() {
this.sub = combineLatest([this.router.events.pipe(filter(e => e instanceof NavigationEnd)), this.route.fragment]).subscribe(([url, frag]) => {