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

-10
View File
@@ -9,16 +9,6 @@
}
}
#vanta-privacy-bg {
animation: fadeIn 1s ease-out;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: -100;
}
.privacy-container {
position: relative;
color: white;
+7 -1
View File
@@ -1,4 +1,10 @@
<div id="vanta-privacy-bg"></div>
<app-parallax
[baseColor]="'#1a1030'"
[bgGradient]="
'radial-gradient(circle 120vw at center, rgba(90,78,130,0.32), transparent 40%), ' +
'linear-gradient(180deg,#1b172c 0%, #0b0b0f 100%);'
">
</app-parallax>
<div class="height-container">
<div class="privacy-container">
<div class="floating-nav" [class.hidden]="isMobile">
+6 -26
View File
@@ -1,30 +1,27 @@
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core';
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
import {AfterViewInit, Component, OnInit} from '@angular/core';
import {DeviceDetectorService} from '../shared/services/device-detector.service';
import {Title} from '@angular/platform-browser';
import { isPlatformBrowser } from '@angular/common';
import {TranslatePipe} from '@ngx-translate/core';
import {ParallaxComponent} from '../shared/parallax/parallax.component';
@Component({
selector: 'app-services',
imports: [
TranslatePipe
],
TranslatePipe,
ParallaxComponent
],
templateUrl: './privacy.component.html',
styleUrl: './privacy.component.css'
})
export class PrivacyComponent implements OnInit, OnDestroy, AfterViewInit {
private readonly elementId = 'vanta-privacy-bg';
export class PrivacyComponent implements OnInit, AfterViewInit {
isMobile: boolean = false;
activeSection: string = '';
copiedSection: string | null = null;
constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService,
private titleService: Title,
@Inject(PLATFORM_ID) private platformId: Object
) {}
scrollToSection(event: Event, targetId: string): void {
@@ -43,28 +40,11 @@ export class PrivacyComponent implements OnInit, OnDestroy, AfterViewInit {
ngOnInit() {
this.titleService.setTitle('Privacy Policy | itzMiney');
this.isMobile = this.deviceService.isMobile;
if (isPlatformBrowser(this.platformId)) {
window.addEventListener('resize', this.onResize.bind(this));
}
}
ngAfterViewInit() {
this.vantaService.initVanta(this.elementId, {
color: 0x5b417a,
backgroundColor: 0x41e3c
});
this.initScrollTracking();
}
ngOnDestroy() {
this.vantaService.destroyVanta(this.elementId);
if (isPlatformBrowser(this.platformId)) {
window.removeEventListener('resize', this.onResize);
}
}
onResize() {
this.vantaService.resizeVanta(this.elementId);
}
initScrollTracking(): void {
const sections = Array.from(document.querySelectorAll('section')) as HTMLElement[];