Migrated depreciated imports

This commit is contained in:
itzMiney committed 2025-12-24 00:52:47 +01:00
1 parent 47428ee891
commit 381b76de9c
26 files changed
+2132 -1621

No files matched your search

+14 -10
View File
@@ -15,19 +15,23 @@
</a>
</div>
<div class="portfolio-gallery" [@staggerGallery]>
<div class="gallery-item" *ngFor="let item of galleryItems" (click)="openModal(item)">
<img [src]="item.src" [alt]="item.alt">
<p>{{ item.label }}</p>
</div>
@for (item of galleryItems; track item) {
<div class="gallery-item" (click)="openModal(item)">
<img [src]="item.src" [alt]="item.alt">
<p>{{ item.label }}</p>
</div>
}
</div>
</div>
<!-- Modal -->
<div class="modal-backdrop" *ngIf="showModal" (click)="closeModal()">
<div class="modal-content" (click)="$event.stopPropagation()">
<img [src]="selectedItem?.src" [alt]="selectedItem?.alt">
<h2>{{ selectedItem?.label }}</h2>
<button (click)="closeModal()">Close</button>
@if (showModal) {
<div class="modal-backdrop" (click)="closeModal()">
<div class="modal-content" (click)="$event.stopPropagation()">
<img [src]="selectedItem?.src" [alt]="selectedItem?.alt">
<h2>{{ selectedItem?.label }}</h2>
<button (click)="closeModal()">Close</button>
</div>
</div>
</div>
}
</div>
<app-audio-player></app-audio-player>
+1 -1
View File
@@ -1,7 +1,7 @@
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core';
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
import {DeviceDetectorService} from '../shared/services/device-detector.service';
import {CommonModule, isPlatformBrowser, NgStyle} from '@angular/common';
import { CommonModule, isPlatformBrowser, NgStyle } from '@angular/common';
import {Title} from '@angular/platform-browser';
import {AudioPlayerComponent} from '../shared/audio-player/audio-player.component';
import {TranslatePipe} from '@ngx-translate/core';