diff --git a/package-lock.json b/package-lock.json index db4cda4..bbac2bc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,6 +28,7 @@ "react": "^19.0.0", "rxjs": "~7.8.0", "three": "^0.171.0", + "three.js": "^0.77.0", "tslib": "^2.3.0", "vanta": "^0.5.24", "zone.js": "~0.15.0" @@ -13506,6 +13507,12 @@ "integrity": "sha512-Y/lAXPaKZPcEdkKjh0JOAHVv8OOnv/NDJqm0wjfCzyQmfKxV7zvkwsnBgPBKTzJHToSOhRGQAGbPJObT59B/PQ==", "license": "MIT" }, + "node_modules/three.js": { + "version": "0.77.0", + "resolved": "https://registry.npmjs.org/three.js/-/three.js-0.77.0.tgz", + "integrity": "sha512-ouSy18ZEiwz+aEsN5psLd7hftf08cyVw/zV1XFYjPhDDnUwIr+bEGryJAy6z3VbSJjuIQUbbM8FtWMZjGdqD+w==", + "license": "MIT" + }, "node_modules/thunky": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/thunky/-/thunky-1.1.0.tgz", diff --git a/package.json b/package.json index bb81e16..199cc46 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "react": "^19.0.0", "rxjs": "~7.8.0", "three": "^0.171.0", + "three.js": "^0.77.0", "tslib": "^2.3.0", "vanta": "^0.5.24", "zone.js": "~0.15.0" diff --git a/src/app/about/about.component.css b/src/app/about/about.component.css index 8d3f0bf..5e94812 100644 --- a/src/app/about/about.component.css +++ b/src/app/about/about.component.css @@ -1,5 +1,16 @@ +@keyframes fadeIn { + 0% { + opacity: 0; + visibility: hidden; + } + 100% { + opacity: 1; + visibility: visible; + } +} + #vanta-about-bg { - transition: opacity 0.3s ease-in-out; + animation: fadeIn 1s ease-out; position: fixed; top: 0; left: 0; diff --git a/src/app/about/about.component.ts b/src/app/about/about.component.ts index f930097..0bf3d59 100644 --- a/src/app/about/about.component.ts +++ b/src/app/about/about.component.ts @@ -1,10 +1,7 @@ -import {Component, OnInit, OnDestroy, AfterViewInit, Inject} from '@angular/core'; -import { DeviceDetectorService } from 'ngx-device-detector'; -import {NgIf} from '@angular/common'; -import { Meta, Title } from '@angular/platform-browser'; -import { ActivatedRoute } from '@angular/router'; -import { isPlatformBrowser } from '@angular/common'; -import { PLATFORM_ID } from '@angular/core'; +import {AfterViewInit, Component, OnDestroy, OnInit, ChangeDetectorRef, PLATFORM_ID, Inject} from '@angular/core'; +import {isPlatformBrowser, NgIf} from '@angular/common'; +import {VantaBackgroundService} from '../services/vanta-background.service'; +import {DeviceDetectorService} from '../services/device-detector.service'; @Component({ selector: 'app-about', @@ -15,84 +12,31 @@ import { PLATFORM_ID } from '@angular/core'; styleUrls: ['./about.component.css'] }) export class AboutComponent implements OnInit, OnDestroy, AfterViewInit { - constructor( - private deviceService: DeviceDetectorService, - private meta: Meta, - private title: Title, - private route: ActivatedRoute, - @Inject(PLATFORM_ID) private platformId: Object - ) { - } + private readonly elementId = 'vanta-about-bg'; isMobile: boolean = false; - private vantaEffect: any; + constructor( + private vantaService: VantaBackgroundService, + private deviceService: DeviceDetectorService, + @Inject(PLATFORM_ID) private platformId: Object + ) {} ngOnInit() { - this.isMobile = this.deviceService.isMobile(); - const metaData = this.route.snapshot.data['meta']; - if (metaData?.title) { - this.title.setTitle(metaData.title); - } - if (metaData?.description) { - this.meta.updateTag({ name: 'description', content: metaData.description }); - } - if (metaData?.image) { - this.meta.updateTag({ property: 'og:image', content: metaData.image }); - } - if (metaData?.url) { - this.meta.updateTag({ property: 'og:url', content: metaData.url }); - } - window.addEventListener('resize', this.onResize.bind(this)); // Add resize listener for responsiveness - - const bgElement = document.getElementById('vanta-about-bg'); - if (bgElement) { - bgElement.style.position = 'fixed'; + this.isMobile = this.deviceService.isMobile; + if (isPlatformBrowser(this.platformId)) { + window.addEventListener('resize', this.onResize.bind(this)); } } ngAfterViewInit() { - if (isPlatformBrowser(this.platformId)) { - // Initialize VANTA effect only in the browser - this.initVanta(); - this.resizeVanta(); - } + this.vantaService.initVanta(this.elementId, {}); } ngOnDestroy() { + this.vantaService.destroyVanta(this.elementId); if (isPlatformBrowser(this.platformId)) { - if (this.vantaEffect) { - this.vantaEffect.destroy(); // Clean up the effect on destroy - } - window.removeEventListener('resize', this.onResize); // Remove the listener when the component is destroyed - } - } - - initVanta() { - if (isPlatformBrowser(this.platformId)) { - // Initialize the Vanta effect on the element with ID 'vanta-bg' - this.vantaEffect = window.VANTA.NET({ - el: '#vanta-about-bg', - mouseControls: false, - touchControls: false, - gyroControls: false, - scale: 1.00, - scaleMobile: 1.00, - points: 20.00, - maxDistance: 25.00, - spacing: 18.00, - showDots: false, - minWidth: window.innerWidth, - minHeight: window.innerHeight, - }); + window.removeEventListener('resize', this.onResize); } } onResize() { - // Update the minHeight and minWidth when the window is resized - this.resizeVanta(); - } - - resizeVanta() { - if (this.vantaEffect) { - // Trigger the resize on the vanta effect - this.vantaEffect.resize(); - } + this.vantaService.resizeVanta(this.elementId); } } diff --git a/src/app/admin/admin.component.ts b/src/app/admin/admin.component.ts index 77f1969..e5d75b0 100644 --- a/src/app/admin/admin.component.ts +++ b/src/app/admin/admin.component.ts @@ -1,8 +1,8 @@ -import { Component, OnInit } from '@angular/core'; -import { Router } from '@angular/router'; -import { ArticleService } from '../article.service'; +import {Component, OnInit} from '@angular/core'; +import {Router} from '@angular/router'; +import {ArticleService} from '../services/article.service'; import {NgFor, NgIf} from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; +import {Observer} from 'rxjs'; @Component({ selector: 'app-admin', @@ -10,8 +10,7 @@ import { HttpClientModule } from '@angular/common/http'; styleUrls: ['./admin.component.css'], imports: [ NgIf, - NgFor, - HttpClientModule + NgFor ] }) export class AdminComponent implements OnInit { @@ -28,19 +27,35 @@ export class AdminComponent implements OnInit { fetchArticles() { const token = localStorage.getItem('token'); if (!token) { - this.router.navigate(['/login']); // Redirect to login if not logged in + this.router.navigate(['/login']).then( + (success) => { + if (success) { + console.log('Navigation to login succeeded'); + } else { + console.warn('Navigation to login failed'); + } + }, + (error) => { + console.error('Navigation error:', error); + } + ); return; } - this.articleService.getArticles(token).subscribe( - (data) => { + const articleObserver: Observer = { + next: (data) => { this.articles = data; this.noArticles = this.articles.length === 0; }, - (error) => { + error: (error) => { console.error('Failed to load articles', error); + }, + complete: () => { + console.log('Article loading complete'); } - ); + }; + + this.articleService.getArticles(token).subscribe(articleObserver); } createArticle() { @@ -61,6 +76,17 @@ export class AdminComponent implements OnInit { logout() { localStorage.removeItem('token'); - this.router.navigate(['/login']); // Redirect to login page + this.router.navigate(['/login']).then( + (success) => { + if (success) { + console.log('Navigation to login succeeded'); + } else { + console.warn('Navigation to login failed'); + } + }, + (error) => { + console.error('Navigation error:', error); + } + ); } } diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 28e5b19..61184e9 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,48 +1,35 @@ -import { Component, OnInit, Inject, PLATFORM_ID} from '@angular/core'; +import {Component, OnInit} from '@angular/core'; import {NgIf} from '@angular/common'; -import { DeviceDetectorService } from 'ngx-device-detector'; -import {RouterOutlet, ActivatedRoute, Router, NavigationEnd} from '@angular/router'; +import {ActivatedRoute, NavigationEnd, Router, RouterOutlet} from '@angular/router'; import {NavbarComponent} from './navbar/navbar.component'; import {MobileNavbarComponent} from './mobile-navbar/mobile-navbar.component'; import {FooterComponent} from './footer/footer.component'; -import { Title, Meta } from '@angular/platform-browser'; -import { filter, map, mergeMap } from 'rxjs/operators'; -import { isPlatformBrowser } from '@angular/common'; -import {subscribe} from 'node:diagnostics_channel'; +import {Meta, Title} from '@angular/platform-browser'; +import {filter, map, mergeMap} from 'rxjs/operators'; +import {DeviceDetectorService} from './services/device-detector.service'; @Component({ selector: 'app-root', imports: [RouterOutlet, NavbarComponent, FooterComponent, MobileNavbarComponent, NgIf], templateUrl: './app.component.html', - styleUrl: './app.component.css' + styleUrl: './app.component.css', }) export class AppComponent implements OnInit { - isMobile: boolean; - + isMobile: boolean = false; showNavbar: boolean = true; showFooter: boolean = true; constructor( - private deviceService: DeviceDetectorService, private router: Router, private activatedRoute: ActivatedRoute, private titleService: Title, private metaService: Meta, - @Inject(PLATFORM_ID) private platformId: Object - ) { - if (isPlatformBrowser(this.platformId)) { - // Use client-side logic to determine if it's mobile - this.isMobile = window.innerWidth <= 768; // Adjust breakpoint as needed - } else { - // Default fallback for SSR - this.isMobile = false; // Or any other logic to handle SSR - } - } + private deviceService: DeviceDetectorService, + ) {} ngOnInit() { - if (isPlatformBrowser(this.platformId)) { - this.isMobile = window.innerWidth <= 768; - } + this.isMobile = this.deviceService.isMobile; + this.router.events .pipe( filter(event => event instanceof NavigationEnd), @@ -56,7 +43,7 @@ export class AppComponent implements OnInit { .subscribe(data => { const meta = data['meta'] || {}; if (this.router.url === '/about') { - // fallback meta + // fallback meta data meta.title = meta.title || 'itzMiney\'s Home'; meta.description = meta.description || 'Welcome to itzMiney\'s Homepage! Here you can find my portfolio and other cool stuff.'; meta.image = meta.image || 'https://itzminey.dev/assets/ogimg.png'; @@ -66,7 +53,6 @@ export class AppComponent implements OnInit { this.updateMetaTags(meta); this.checkRoute(); }); - this.checkRoute(); } updateMetaTags(meta: { title?: string; description?: string; image?: string; url?: string; color?: string }) { @@ -92,7 +78,7 @@ export class AppComponent implements OnInit { checkRoute() { const currentRoute = this.activatedRoute.snapshot.firstChild?.routeConfig?.path; - // Hide navbar and footer on admin route + switch (currentRoute) { case 'admin': { this.showNavbar = false; diff --git a/src/app/app.config.server.ts b/src/app/app.config.server.ts index 1b7f650..bf1a3a3 100644 --- a/src/app/app.config.server.ts +++ b/src/app/app.config.server.ts @@ -1,8 +1,8 @@ -import { mergeApplicationConfig, ApplicationConfig } from '@angular/core'; -import { provideServerRendering } from '@angular/platform-server'; -import { provideServerRoutesConfig } from '@angular/ssr'; -import { appConfig } from './app.config'; -import { serverRoutes } from './app.routes.server'; +import {ApplicationConfig, mergeApplicationConfig} from '@angular/core'; +import {provideServerRendering} from '@angular/platform-server'; +import {provideServerRoutesConfig} from '@angular/ssr'; +import {appConfig} from './app.config'; +import {serverRoutes} from './app.routes.server'; const serverConfig: ApplicationConfig = { providers: [ diff --git a/src/app/app.config.ts b/src/app/app.config.ts index eb5928b..4f3c212 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -1,12 +1,12 @@ -import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core'; -import { provideRouter } from '@angular/router'; +import {ApplicationConfig, provideZoneChangeDetection} from '@angular/core'; +import {provideRouter} from '@angular/router'; -import { routes } from './app.routes'; -import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; -import { provideClientHydration, withEventReplay } from '@angular/platform-browser'; -import { provideHttpClient } from '@angular/common/http'; -import { AuthService } from './auth.service'; -import { AuthInterceptor } from './auth.interceptor'; +import {routes} from './app.routes'; +import {provideAnimationsAsync} from '@angular/platform-browser/animations/async'; +import {provideClientHydration, withEventReplay} from '@angular/platform-browser'; +import {provideHttpClient} from '@angular/common/http'; +import {AuthService} from './services/auth.service'; +import {AuthInterceptor} from './auth.interceptor'; export const appConfig: ApplicationConfig = { providers: [ diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 333f9d0..e2dfd2c 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,7 +1,7 @@ -import { Routes } from '@angular/router'; -import { AboutComponent } from './about/about.component'; -import { PortfolioComponent } from './portfolio/portfolio.component'; -import { BlogComponent } from './blog/blog.component'; +import {Routes} from '@angular/router'; +import {AboutComponent} from './about/about.component'; +import {PortfolioComponent} from './portfolio/portfolio.component'; +import {BlogComponent} from './blog/blog.component'; import {NotFoundComponent} from './not-found/not-found.component'; import {LoginComponent} from './login/login.component'; import {AdminComponent} from './admin/admin.component'; diff --git a/src/app/auth.interceptor.ts b/src/app/auth.interceptor.ts index e584568..9e594db 100644 --- a/src/app/auth.interceptor.ts +++ b/src/app/auth.interceptor.ts @@ -1,6 +1,6 @@ -import { Injectable } from '@angular/core'; -import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; -import { Observable } from 'rxjs'; +import {Injectable} from '@angular/core'; +import {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from '@angular/common/http'; +import {Observable} from 'rxjs'; @Injectable() export class AuthInterceptor implements HttpInterceptor { diff --git a/src/app/blog/blog.component.css b/src/app/blog/blog.component.css index c75e2a3..ed6d03f 100644 --- a/src/app/blog/blog.component.css +++ b/src/app/blog/blog.component.css @@ -1,5 +1,16 @@ +@keyframes fadeIn { + 0% { + opacity: 0; + visibility: hidden; + } + 100% { + opacity: 1; + visibility: visible; + } +} + #vanta-blog-bg { - transition: opacity 0.3s ease-in-out; + animation: fadeIn 1s ease-out; position: fixed; top: 0; left: 0; diff --git a/src/app/blog/blog.component.ts b/src/app/blog/blog.component.ts index 57bb070..649a1cf 100644 --- a/src/app/blog/blog.component.ts +++ b/src/app/blog/blog.component.ts @@ -1,10 +1,7 @@ -import {Component, OnInit, OnDestroy, AfterViewInit, Inject } from '@angular/core'; -import { DeviceDetectorService } from 'ngx-device-detector'; -import {NgIf} from '@angular/common'; -import {Meta, Title} from '@angular/platform-browser'; -import {ActivatedRoute} from '@angular/router'; -import { isPlatformBrowser } from '@angular/common'; -import { PLATFORM_ID } from '@angular/core'; +import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core'; +import {DeviceDetectorService} from '../services/device-detector.service' +import {isPlatformBrowser, NgIf} from '@angular/common'; +import {VantaBackgroundService} from '../services/vanta-background.service'; @Component({ selector: 'app-blog', @@ -15,87 +12,36 @@ import { PLATFORM_ID } from '@angular/core'; styleUrl: './blog.component.css' }) export class BlogComponent implements OnInit, OnDestroy, AfterViewInit { + private readonly elementId = 'vanta-blog-bg'; + isMobile: boolean = false; constructor( private deviceService: DeviceDetectorService, - private meta: Meta, - private title: Title, - private route: ActivatedRoute, + private vantaService: VantaBackgroundService, @Inject(PLATFORM_ID) private platformId: Object ) { } - isMobile: boolean = false; - private vantaEffect: any; ngOnInit() { - this.isMobile = this.deviceService.isMobile(); - const metaData = this.route.snapshot.data['meta']; - if (metaData?.title) { - this.title.setTitle(metaData.title); - } - if (metaData?.description) { - this.meta.updateTag({ name: 'description', content: metaData.description }); - } - if (metaData?.image) { - this.meta.updateTag({ property: 'og:image', content: metaData.image }); - } - if (metaData?.url) { - this.meta.updateTag({ property: 'og:url', content: metaData.url }); - } - window.addEventListener('resize', this.onResize.bind(this)); // Add resize listener for responsiveness - - const bgElement = document.getElementById('vanta-blog-bg'); - if (bgElement) { - bgElement.style.position = 'fixed'; + this.isMobile = this.deviceService.isMobile; + if (isPlatformBrowser(this.platformId)) { + window.addEventListener('resize', this.onResize.bind(this)); } } ngAfterViewInit() { - if (isPlatformBrowser(this.platformId)) { - // Initialize VANTA effect only in the browser - this.initVanta(); - this.resizeVanta(); - } + this.vantaService.initVanta(this.elementId, { + color: 0xac1f4e, + backgroundColor: 0x191522 + }); } ngOnDestroy() { + this.vantaService.destroyVanta(this.elementId); if (isPlatformBrowser(this.platformId)) { - if (this.vantaEffect) { - this.vantaEffect.destroy(); // Clean up the effect on destroy - } - window.removeEventListener('resize', this.onResize); // Remove the listener when the component is destroyed - } - } - - initVanta() { - if (isPlatformBrowser(this.platformId)) { - // Initialize the Vanta effect on the element with ID 'vanta-bg' - this.vantaEffect = window.VANTA.NET({ - el: '#vanta-blog-bg', - mouseControls: false, - touchControls: false, - gyroControls: false, - scale: 1.00, - scaleMobile: 1.00, - points: 20.00, - maxDistance: 25.00, - spacing: 18.00, - showDots: false, - minWidth: window.innerWidth, - minHeight: window.innerHeight, - color: 0xac1f4e, - backgroundColor: 0x191522 - }); + window.removeEventListener('resize', this.onResize); } } onResize() { - // Update the minHeight and minWidth when the window is resized - this.resizeVanta(); - } - - resizeVanta() { - if (this.vantaEffect) { - // Trigger the resize on the vanta effect - this.vantaEffect.resize(); - } + this.vantaService.resizeVanta(this.elementId); } } diff --git a/src/app/footer/footer.component.ts b/src/app/footer/footer.component.ts index 08cf5c1..e924e04 100644 --- a/src/app/footer/footer.component.ts +++ b/src/app/footer/footer.component.ts @@ -1,4 +1,4 @@ -import { Component } from '@angular/core'; +import {Component} from '@angular/core'; @Component({ selector: 'app-footer', diff --git a/src/app/login/login.component.css b/src/app/login/login.component.css index 9cdfbed..0cd6a27 100644 --- a/src/app/login/login.component.css +++ b/src/app/login/login.component.css @@ -1,5 +1,16 @@ +@keyframes fadeIn { + 0% { + opacity: 0; + visibility: hidden; + } + 100% { + opacity: 1; + visibility: visible; + } +} + #vanta-login-bg { - transition: opacity 0.3s ease-in-out; + animation: fadeIn 1s ease-out; position: fixed; top: 0; left: 0; diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts index 1e9223c..a3aeaef 100644 --- a/src/app/login/login.component.ts +++ b/src/app/login/login.component.ts @@ -1,11 +1,11 @@ -import {Component, OnInit, OnDestroy, AfterViewInit, Inject} from '@angular/core'; -import { AuthService } from '../auth.service'; -import { Router } from '@angular/router'; +import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core'; +import {AuthService} from '../services/auth.service'; +import {Router} from '@angular/router'; import {FormsModule} from '@angular/forms'; import {NgIf} from '@angular/common'; -import { HttpClientModule } from '@angular/common/http'; -import { isPlatformBrowser } from '@angular/common'; -import { PLATFORM_ID } from '@angular/core'; +import {VantaBackgroundService} from '../services/vanta-background.service'; +import {DeviceDetectorService} from '../services/device-detector.service'; +import {isPlatformBrowser} from '@angular/common'; @Component({ selector: 'app-login', @@ -14,7 +14,6 @@ import { PLATFORM_ID } from '@angular/core'; imports: [ FormsModule, NgIf, - HttpClientModule ] }) @@ -22,80 +21,60 @@ export class LoginComponent implements OnInit, OnDestroy, AfterViewInit { username: string = ''; password: string = ''; errorMessage: string = ''; - private vantaEffect: any; + private readonly elementId = 'vanta-login-bg'; + isMobile: boolean = false; constructor( private authService: AuthService, private router: Router, + private vantaService: VantaBackgroundService, + private deviceService: DeviceDetectorService, @Inject(PLATFORM_ID) private platformId: Object ) {} ngOnInit() { - window.addEventListener('resize', this.onResize.bind(this)); - - const bgElement = document.getElementById('vanta-login-bg'); - if (bgElement) { - bgElement.style.position = 'fixed'; + this.isMobile = this.deviceService.isMobile; + if (isPlatformBrowser(this.platformId)) { + window.addEventListener('resize', this.onResize.bind(this)); } } onLogin() { - this.authService.login(this.username, this.password).subscribe( - (response: any) => { + const observer = { + 'next': (response: any) => { localStorage.setItem('token', response.token); - this.router.navigate(['/admin']); // Redirect to admin page + this.router.navigate(['/admin']).then( + (success) => { + if (success) { + console.log('Navigation to admin succeeded'); + } else { + console.warn('Navigation to admin failed'); + } + }, + (error) => { + console.error('Navigation error:', error); + } + ); }, - () => { + error: () => { this.errorMessage = 'Invalid credentials'; - } - ); + }, + }; + + this.authService.login(this.username, this.password).subscribe(observer); } ngAfterViewInit() { - if (isPlatformBrowser(this.platformId)) { - // Initialize VANTA effect only in the browser - this.initVanta(); - this.resizeVanta(); - } + this.vantaService.initVanta(this.elementId, {}); } ngOnDestroy() { + this.vantaService.destroyVanta(this.elementId); if (isPlatformBrowser(this.platformId)) { - if (this.vantaEffect) { - this.vantaEffect.destroy(); // Clean up the effect on destroy - } - window.removeEventListener('resize', this.onResize); // Remove the listener when the component is destroyed - } - } - - initVanta() { - if (isPlatformBrowser(this.platformId)) { - // Initialize the Vanta effect on the element with ID 'vanta-bg' - this.vantaEffect = window.VANTA.NET({ - el: '#vanta-login-bg', - mouseControls: false, - touchControls: false, - gyroControls: false, - scale: 1.00, - scaleMobile: 1.00, - points: 20.00, - maxDistance: 25.00, - spacing: 18.00, - showDots: false, - minWidth: window.innerWidth, - minHeight: window.innerHeight, - }); + window.removeEventListener('resize', this.onResize); } } onResize() { - // Update the minHeight and minWidth when the window is resized - this.resizeVanta(); - } - - resizeVanta() { - if (this.vantaEffect) { - // Trigger the resize on the vanta effect - this.vantaEffect.resize(); - } + this.vantaService.resizeVanta(this.elementId); } } diff --git a/src/app/mobile-navbar/mobile-navbar.component.ts b/src/app/mobile-navbar/mobile-navbar.component.ts index 1134aae..e36a279 100644 --- a/src/app/mobile-navbar/mobile-navbar.component.ts +++ b/src/app/mobile-navbar/mobile-navbar.component.ts @@ -1,7 +1,7 @@ -import {Component, OnInit } from '@angular/core'; -import { DeviceDetectorService } from 'ngx-device-detector'; +import {Component, OnInit} from '@angular/core'; +import {DeviceDetectorService} from 'ngx-device-detector'; import {NgIf} from '@angular/common'; -import {Router, NavigationEnd, RouterLink} from '@angular/router'; +import {NavigationEnd, Router, RouterLink} from '@angular/router'; @Component({ selector: 'app-mobile-navbar', diff --git a/src/app/navbar/navbar.component.html b/src/app/navbar/navbar.component.html index 9565925..ac619cf 100644 --- a/src/app/navbar/navbar.component.html +++ b/src/app/navbar/navbar.component.html @@ -1,4 +1,4 @@ -