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

+7 -26
View File
@@ -1,50 +1,31 @@
import {AfterViewInit, Component, OnDestroy, OnInit, PLATFORM_ID, Inject} from '@angular/core';
import {isPlatformBrowser, NgStyle} from '@angular/common';
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
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: [
NgStyle,
TranslatePipe
TranslatePipe,
ParallaxComponent
],
styleUrls: ['./about.component.css']
})
export class AboutComponent implements OnInit, OnDestroy, AfterViewInit {
private readonly elementId = 'vanta-about-bg';
export class AboutComponent implements OnInit {
isMobile: boolean = false;
constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService,
private titleService: Title,
@Inject(PLATFORM_ID) private platformId: Object
) {}
ngOnInit() {
this.titleService.setTitle('itzMiney\'s Home');
this.isMobile = this.deviceService.isMobile;
if (isPlatformBrowser(this.platformId)) {
window.addEventListener('resize', this.onResize.bind(this));
}
}
ngAfterViewInit() {
this.vantaService.initVanta(this.elementId, {
color: 0xa24d68,
backgroundColor: 0x291c3c
});
}
ngOnDestroy() {
this.vantaService.destroyVanta(this.elementId);
if (isPlatformBrowser(this.platformId)) {
window.removeEventListener('resize', this.onResize);
}
}
onResize() {
this.vantaService.resizeVanta(this.elementId);
scrollDown() {
document.getElementById('content')?.scrollIntoView({behavior: 'smooth'});
}
}