refactor to define helper service more accurately

This commit is contained in:
itzMiney committed 2026-03-17 23:21:12 +01:00
1 parent 5527acfb6a
commit 7618e4bf5d
28 files changed
+78 -403

No files matched your search

+1 -1
View File
@@ -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>
+4 -4
View File
@@ -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) {