32 lines
890 B
TypeScript
32 lines
890 B
TypeScript
import {Component, OnInit} from '@angular/core';
|
|
import {DeviceDetectorService} from '../shared/services/device-detector.service';
|
|
import {Title} from '@angular/platform-browser';
|
|
import {TranslatePipe} from '@ngx-translate/core';
|
|
import {ParallaxComponent} from '../shared/parallax/parallax.component';
|
|
|
|
@Component({
|
|
selector: 'app-about',
|
|
templateUrl: './about.component.html',
|
|
imports: [
|
|
TranslatePipe,
|
|
ParallaxComponent
|
|
],
|
|
styleUrls: ['./about.component.css']
|
|
})
|
|
export class AboutComponent implements OnInit {
|
|
isMobile: boolean = false;
|
|
constructor(
|
|
private deviceService: DeviceDetectorService,
|
|
private titleService: Title,
|
|
) {}
|
|
|
|
ngOnInit() {
|
|
this.titleService.setTitle('itzMiney\'s Home');
|
|
this.isMobile = this.deviceService.isMobile;
|
|
}
|
|
|
|
scrollDown() {
|
|
document.getElementById('content')?.scrollIntoView({behavior: 'smooth'});
|
|
}
|
|
}
|