complete visual overhaul

This commit is contained in:
itzMiney committed 2026-03-16 00:20:57 +01:00
1 parent 02bc2faca0
commit 25d06ec49a
51 files changed
+694 -664

No files matched your search

+6 -29
View File
@@ -1,11 +1,11 @@
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core';
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
import {Component, OnInit} from '@angular/core';
import {DeviceDetectorService} from '../shared/services/device-detector.service';
import { CommonModule, isPlatformBrowser, NgStyle } from '@angular/common';
import { CommonModule, 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';
import {animate, stagger, style, transition, trigger, query} from '@angular/animations';
import {ParallaxComponent} from '../shared/parallax/parallax.component';
@Component({
selector: 'app-portfolio',
@@ -13,7 +13,8 @@ import {animate, stagger, style, transition, trigger, query} from '@angular/anim
NgStyle,
AudioPlayerComponent,
TranslatePipe,
CommonModule
CommonModule,
ParallaxComponent
],
templateUrl: './portfolio.component.html',
styleUrl: './portfolio.component.css',
@@ -41,7 +42,7 @@ import {animate, stagger, style, transition, trigger, query} from '@angular/anim
])
]
})
export class PortfolioComponent implements OnInit, OnDestroy, AfterViewInit {
export class PortfolioComponent implements OnInit {
galleryItems = [
{ src: '/assets/design1.png', alt: 'Design 1', label: 'Abstract Background' },
{ src: '/assets/design2.png', alt: 'Design 2', label: 'Profile Picture Design' },
@@ -55,39 +56,15 @@ export class PortfolioComponent implements OnInit, OnDestroy, AfterViewInit {
];
selectedItem: any = null;
showModal = false;
private readonly elementId = 'vanta-portfolio-bg';
isMobile: boolean = false;
constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService,
private titleService: Title,
@Inject(PLATFORM_ID) private platformId: Object
) {}
ngOnInit() {
this.titleService.setTitle('Portfolio | itzMiney');
this.isMobile = this.deviceService.isMobile;
if (isPlatformBrowser(this.platformId)) {
window.addEventListener('resize', this.onResize.bind(this));
}
}
ngAfterViewInit() {
this.vantaService.initVanta(this.elementId, {
color: 0x514f80,
backgroundColor: 0x291c3c
});
}
ngOnDestroy() {
this.vantaService.destroyVanta(this.elementId);
if (isPlatformBrowser(this.platformId)) {
window.removeEventListener('resize', this.onResize);
}
}
onResize() {
// Update the minHeight and minWidth when the window is resized
this.vantaService.resizeVanta(this.elementId);
}
openModal(item: any) {