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

+5 -33
View File
@@ -1,54 +1,26 @@
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core';
import {isPlatformBrowser} from '@angular/common';
import {Component, OnInit} from '@angular/core';
import {TranslatePipe} from '@ngx-translate/core';
import {VantaBackgroundService} from '../../shared/services/vanta-background.service';
import {DeviceDetectorService} from '../../shared/services/device-detector.service';
import {Title} from '@angular/platform-browser';
import {Router} from '@angular/router';
import {ParallaxComponent} from '../../shared/parallax/parallax.component';
@Component({
selector: 'app-success',
imports: [
TranslatePipe
TranslatePipe,
ParallaxComponent
],
templateUrl: './success.component.html',
styleUrl: './success.component.css'
})
export class SuccessComponent implements OnInit, OnDestroy, AfterViewInit {
private readonly elementId = 'vanta-success-bg';
isMobile: boolean = false;
export class SuccessComponent implements OnInit {
constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService,
private titleService: Title,
private router: Router,
@Inject(PLATFORM_ID) private platformId: Object
) {}
ngOnInit() {
this.titleService.setTitle('Checkout | 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
});
}
ngOnDestroy() {
this.vantaService.destroyVanta(this.elementId);
if (isPlatformBrowser(this.platformId)) {
window.removeEventListener('resize', this.onResize);
}
}
onResize() {
this.vantaService.resizeVanta(this.elementId);
}
goBack(): void {