refactor to define helper service more accurately
This commit is contained in:
1 parent
5527acfb6a
commit
7618e4bf5d
28 files changed
+78
-403
No files matched your search
@@ -7,7 +7,7 @@
|
||||
</app-parallax>
|
||||
<div class="height-container">
|
||||
<div class="portfolio-container">
|
||||
<div class="portfolio-header" [ngStyle]="{'margin-top': isMobile ? '60px' : '120px'}">
|
||||
<div class="portfolio-header" [ngStyle]="{'margin-top': isNarrow ? '60px' : '120px'}">
|
||||
<h1>{{ 'PORTF_TITLE' | translate }}</h1>
|
||||
<p class="subtitle">{{ 'PORTF_SUB' | translate }}</p>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Component, OnInit, ViewEncapsulation} from '@angular/core';
|
||||
import {DeviceDetectorService} from '../shared/services/device-detector.service';
|
||||
import {ViewportService} from '../shared/services/viewport.service';
|
||||
import { CommonModule, NgStyle } from '@angular/common';
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {AudioPlayerComponent} from '../shared/audio-player/audio-player.component';
|
||||
@@ -33,15 +33,15 @@ export class PortfolioComponent implements OnInit {
|
||||
];
|
||||
selectedItem: any = null;
|
||||
showModal = false;
|
||||
isMobile: boolean = false;
|
||||
isNarrow: boolean = false;
|
||||
constructor(
|
||||
private deviceService: DeviceDetectorService,
|
||||
private deviceService: ViewportService,
|
||||
private titleService: Title,
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.titleService.setTitle('Portfolio | itzMiney');
|
||||
this.isMobile = this.deviceService.isMobile;
|
||||
this.isNarrow = this.deviceService.isNarrow;
|
||||
}
|
||||
|
||||
openModal(item: any) {
|
||||
|
||||
Reference in new issue
Block a user