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 -30
View File
@@ -1,52 +1,29 @@
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core';
import {isPlatformBrowser, NgStyle} from '@angular/common';
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
import {Component, OnInit} from '@angular/core';
import {NgStyle} from '@angular/common';
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-socials',
imports: [
NgStyle,
TranslatePipe
TranslatePipe,
ParallaxComponent
],
templateUrl: './socials.component.html',
styleUrl: './socials.component.css'
})
export class SocialsComponent implements OnInit, OnDestroy, AfterViewInit {
private readonly elementId = 'vanta-socials-bg';
export class SocialsComponent implements OnInit {
isMobile: boolean = false;
constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService,
private titleService: Title,
@Inject(PLATFORM_ID) private platformId: Object
private titleService: Title
) {}
ngOnInit() {
this.titleService.setTitle('Socials | itzMiney');
this.isMobile = this.deviceService.isMobile;
if (isPlatformBrowser(this.platformId)) {
window.addEventListener('resize', this.onResize.bind(this));
}
}
ngAfterViewInit() {
this.vantaService.initVanta(this.elementId, {
color: 0xc3b65c,
backgroundColor: 0x23153c
});
}
ngOnDestroy() {
this.vantaService.destroyVanta(this.elementId);
if (isPlatformBrowser(this.platformId)) {
window.removeEventListener('resize', this.onResize);
}
}
onResize() {
this.vantaService.resizeVanta(this.elementId);
}
}