Added Device Detection and conditional formatting for Mobile
This commit is contained in:
1 parent
166e2503ee
commit
97217cb149
31 files changed
+261
-453
No files matched your search
@@ -1,13 +1,21 @@
|
||||
import {Component, OnInit, OnDestroy, AfterViewInit} from '@angular/core';
|
||||
import {Meta, Title} from '@angular/platform-browser';
|
||||
import { DeviceDetectorService } from 'ngx-device-detector';
|
||||
import {NgIf} from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-about',
|
||||
templateUrl: './about.component.html',
|
||||
imports: [
|
||||
NgIf
|
||||
],
|
||||
styleUrls: ['./about.component.css']
|
||||
})
|
||||
export class AboutComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||
constructor(private titleService: Title, private meta: Meta) {}
|
||||
constructor(private titleService: Title, private meta: Meta, private deviceService: DeviceDetectorService) {
|
||||
this.isMobile = this.deviceService.isMobile();
|
||||
}
|
||||
isMobile: boolean;
|
||||
private vantaEffect: any;
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
Reference in new issue
Block a user