From 25d06ec49a8c2624d90375af750709b54fc393a5 Mon Sep 17 00:00:00 2001 From: itzMiney Date: Mon, 16 Mar 2026 00:20:57 +0100 Subject: [PATCH] complete visual overhaul --- package-lock.json | 35 ++++- package.json | 2 + public/assets/triangle_tile.png | Bin 0 -> 4745 bytes public/assets/triangle_tile.svg | 148 ++++++++++++++++++ public/i18n/de.json | 7 +- public/i18n/en.json | 7 +- src/app/about/about.component.css | 115 ++++++++++---- src/app/about/about.component.html | 28 ++-- src/app/about/about.component.ts | 33 +--- .../article-page/article-page.component.css | 15 +- .../article-page/article-page.component.html | 8 +- .../article-page/article-page.component.ts | 41 +---- src/app/blog/blog.component.css | 24 +-- src/app/blog/blog.component.html | 8 +- src/app/blog/blog.component.ts | 38 +---- src/app/checkout/cancel/cancel.component.css | 10 -- src/app/checkout/cancel/cancel.component.html | 2 +- src/app/checkout/cancel/cancel.component.ts | 42 +---- .../checkout/success/success.component.css | 10 -- .../checkout/success/success.component.html | 2 +- src/app/checkout/success/success.component.ts | 38 +---- src/app/imprint/imprint.component.css | 10 -- src/app/imprint/imprint.component.html | 8 +- src/app/imprint/imprint.component.ts | 37 +---- src/app/login/login.component.css | 25 ++- src/app/login/login.component.html | 8 +- src/app/login/login.component.ts | 39 +---- src/app/not-found/not-found.component.css | 16 +- src/app/not-found/not-found.component.html | 2 +- src/app/not-found/not-found.component.ts | 36 +---- src/app/portfolio/portfolio.component.css | 25 ++- src/app/portfolio/portfolio.component.html | 14 +- src/app/portfolio/portfolio.component.ts | 35 +---- src/app/privacy/privacy.component.css | 10 -- src/app/privacy/privacy.component.html | 8 +- src/app/privacy/privacy.component.ts | 32 +--- src/app/services/services.component.css | 15 +- src/app/services/services.component.html | 8 +- src/app/services/services.component.ts | 37 +---- src/app/shared/navbar/navbar.component.css | 51 ++++-- .../shared/parallax/parallax.component.css | 95 +++++++++++ .../shared/parallax/parallax.component.html | 15 ++ src/app/shared/parallax/parallax.component.ts | 52 ++++++ .../services/vanta-background.service.ts | 52 ------ src/app/socials/socials.component.css | 15 +- src/app/socials/socials.component.html | 10 +- src/app/socials/socials.component.ts | 37 +---- src/app/tos/tos.component.css | 10 -- src/app/tos/tos.component.html | 8 +- src/app/tos/tos.component.ts | 33 +--- src/index.html | 2 - 51 files changed, 694 insertions(+), 664 deletions(-) create mode 100644 public/assets/triangle_tile.png create mode 100644 public/assets/triangle_tile.svg create mode 100644 src/app/shared/parallax/parallax.component.css create mode 100644 src/app/shared/parallax/parallax.component.html create mode 100644 src/app/shared/parallax/parallax.component.ts delete mode 100644 src/app/shared/services/vanta-background.service.ts diff --git a/package-lock.json b/package-lock.json index 60d47bd..741f27d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,6 +19,7 @@ "@ngx-translate/core": "^16.0.4", "@ngx-translate/http-loader": "^16.0.1", "axios": "^1.13.5", + "parallax-js": "^3.1.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.15.0" @@ -28,6 +29,7 @@ "@angular/cli": "^21.2.2", "@angular/compiler-cli": "^21.2.4", "@types/node": "^18.18.0", + "@types/parallax-js": "^3.1.3", "typescript": "~5.9.3" } }, @@ -3844,6 +3846,13 @@ "undici-types": "~5.26.4" } }, + "node_modules/@types/parallax-js": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@types/parallax-js/-/parallax-js-3.1.3.tgz", + "integrity": "sha512-pA2JQ+oqzMJ8TQiXjah3zkbMhd032mAvgbzu/nusQyKCpI6s8R/HT6zqsUXPXRXAgWBsrIpv+CCV2VND5nroNg==", + "dev": true, + "license": "MIT" + }, "node_modules/@yarnpkg/lockfile": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", @@ -6373,7 +6382,6 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -6507,6 +6515,16 @@ "node": "^20.17.0 || >=22.9.0" } }, + "node_modules/parallax-js": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/parallax-js/-/parallax-js-3.1.0.tgz", + "integrity": "sha512-UONoPKSQykeNvFcemDPxYYDU/T89LSffoaZAwOMhDp0ABhmFPwthgn2GrfB7An9Qo+8nPZIuQeZsh2pWn1qN3A==", + "license": "MIT", + "dependencies": { + "object-assign": "^4.1.1", + "raf": "^3.3.0" + } + }, "node_modules/parse5": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.0.tgz", @@ -6632,6 +6650,12 @@ "url": "https://opencollective.com/express" } }, + "node_modules/performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", + "license": "MIT" + }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -6806,6 +6830,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/raf": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz", + "integrity": "sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==", + "license": "MIT", + "dependencies": { + "performance-now": "^2.1.0" + } + }, "node_modules/range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", diff --git a/package.json b/package.json index 3a51943..b8435fb 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "@ngx-translate/core": "^16.0.4", "@ngx-translate/http-loader": "^16.0.1", "axios": "^1.13.5", + "parallax-js": "^3.1.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.15.0" @@ -29,6 +30,7 @@ "@angular/cli": "^21.2.2", "@angular/compiler-cli": "^21.2.4", "@types/node": "^18.18.0", + "@types/parallax-js": "^3.1.3", "typescript": "~5.9.3" }, "overrides": { diff --git a/public/assets/triangle_tile.png b/public/assets/triangle_tile.png new file mode 100644 index 0000000000000000000000000000000000000000..b1282e16731aa177ba6f63e7eeb3679e84e80f78 GIT binary patch literal 4745 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 + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/i18n/de.json b/public/i18n/de.json index 936d5ac..dfba6e0 100644 --- a/public/i18n/de.json +++ b/public/i18n/de.json @@ -18,9 +18,10 @@ "FOOTER_IMP": "Impressum", "FOOTER_PRIV": "Datenschutzerklärung", - "TECHSTACK_LANGS": "< SPRACHEN >", - "TECHSTACK_DBS": "< DATENBANKEN >", - "TECHSTACK_TOOLS": "< WERKZEUGE >", + "TECHSTACK_SERVERS": "Web Server", + "TECHSTACK_LANGS": "Sprachen", + "TECHSTACK_DBS": "Datenbanken", + "TECHSTACK_TOOLS": "Wekzeuge", "ABOUT_TITLE": "Wer ich bin", "ABOUT_SUB": "Hobby Entwickler & Designer", diff --git a/public/i18n/en.json b/public/i18n/en.json index a363128..2a237fc 100644 --- a/public/i18n/en.json +++ b/public/i18n/en.json @@ -18,9 +18,10 @@ "FOOTER_IMP": "Imprint", "FOOTER_PRIV": "Privacy Policy", - "TECHSTACK_LANGS": "< LANGUAGES >", - "TECHSTACK_DBS": "< DATABASES >", - "TECHSTACK_TOOLS": "< TOOLS >", + "TECHSTACK_SERVERS": "Web Servers", + "TECHSTACK_LANGS": "Languages", + "TECHSTACK_DBS": "Databases", + "TECHSTACK_TOOLS": "Tools", "ABOUT_TITLE": "About Me", "ABOUT_SUB": "Hobby developer & designer", diff --git a/src/app/about/about.component.css b/src/app/about/about.component.css index 45df98d..a27a35f 100644 --- a/src/app/about/about.component.css +++ b/src/app/about/about.component.css @@ -9,16 +9,6 @@ } } -#vanta-about-bg { - animation: fadeIn 1s ease-out; - position: fixed; - top: 0; - left: 0; - width: 100vw; - height: 100vw; - z-index: -100; -} - a { text-decoration: none; color: inherit; @@ -29,43 +19,108 @@ a { align-content: center; justify-content: center; display: flex; + flex-direction: column; } -.about-container { +.content-bg { position: relative; - color: white; - max-width: 900px; - margin-bottom: 80px; - font-family: 'Roboto', sans-serif; - z-index: 1; + display: block; + } .about-header { + display: flex; + color: white; + width: 100%; + height: calc(100vh - 50px); + justify-content: center; + align-items: center; text-align: center; } +.title-box { + display: block; +} + +.about-header h1 { + font-size: 5rem; + margin-bottom: 0; + font-weight: 700; + background: linear-gradient(45deg, #c3acff 0%, #a6ffb0 100%); + -webkit-background-clip: text; + background-clip: text; + color: transparent; +} + .about-header .subtitle { font-size: 1.2rem; font-style: italic; - margin-bottom: 30px; + margin-top: 5px; } -.about-header h1 { - font-size: 2.5rem; - background: transparent; - border-bottom: 4px solid white; - margin: 8px auto 8px auto; - max-width: 220px; - padding: 10px; - border-radius: 45px; +.down-arrow { + position: absolute; + cursor: pointer; + font-size: 4rem; + top: 75%; + animation: + arrowFadeIn 600ms ease-in-out forwards, + arrowFloat 1.4s ease-in-out 800ms infinite; +} + +.down-arrow i { + transition: all 0.3s ease; +} +.down-arrow i:hover { + transform: scale(1.1); + color: #ff277a; +} + +@keyframes arrowFadeIn { + from { + opacity: 0; + transform: translateY(-60px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +@keyframes arrowFloat { + 0% { + transform: translateY(0); + } + 50% { + transform: translateY(-6px); + } + 100% { + transform: translateY(0); + } +} + +.separator { + width: 100%; + height: 50px; + background: linear-gradient(rgba(46, 41, 64, 0) 0%, #2e2940 100%); +} +.about-container { + max-width: 100%; + overflow: clip; + min-height: calc(100vh - 80px); + color: white; + background: #2e2940; + padding: 80px 0 0 0; + font-family: 'Roboto', sans-serif; + z-index: 1; } .about-content { + max-width: 900px; + margin: 0 auto; + padding: 0 25px; font-size: 1.2rem; line-height: 1.6; - margin-bottom: 10px; - text-align: center; - justify-items: center; } .category { @@ -85,11 +140,11 @@ a { .tech-stack-title { font-size: 1.4rem; text-align: center; - background: linear-gradient(135deg, #924dd3, #e43b68); + border: solid 4px white; margin: 8px auto 20px auto; max-width: 180px; padding: 10px; - border-radius: 30px; + border-radius: 35px; } .tech-stack { diff --git a/src/app/about/about.component.html b/src/app/about/about.component.html index 84da4f5..9b91438 100644 --- a/src/app/about/about.component.html +++ b/src/app/about/about.component.html @@ -1,19 +1,30 @@ -
+ +
-
-
-

{{ 'ABOUT_TITLE' | translate }}

+
+
+

itzMiney

Hobby developer & designer

-
+
+ +
+
+
+
+
-

itzMiney


-

Tech Stack

+

Tech Stack

-

< WEB _ SERVERS >

+

{{ 'TECHSTACK_SERVERS' | translate }}

@@ -46,7 +57,6 @@
-
diff --git a/src/app/about/about.component.ts b/src/app/about/about.component.ts index 77a437d..5b01764 100644 --- a/src/app/about/about.component.ts +++ b/src/app/about/about.component.ts @@ -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'}); } } diff --git a/src/app/blog/article-page/article-page.component.css b/src/app/blog/article-page/article-page.component.css index 6b92328..56fdaa0 100644 --- a/src/app/blog/article-page/article-page.component.css +++ b/src/app/blog/article-page/article-page.component.css @@ -9,15 +9,6 @@ } } -#vanta-article-bg { - animation: fadeIn 1s ease-out; - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - z-index: -100; -} .height-container { display: flex; min-height: 100vh; @@ -68,7 +59,7 @@ h1 { } .content-container button { - background-color: #713252; + background-color: #444893FF; color: #fff; border: none; padding: 10px 20px; @@ -81,7 +72,7 @@ h1 { } .content-container button:hover { - background-color: #bf9bae; + background-color: #707ec5; } .error-message h1 { @@ -99,7 +90,7 @@ h1 { } .error-message button { - background-color: #713252; + background-color: #444893FF; color: #fff; border: none; padding: 10px 20px; diff --git a/src/app/blog/article-page/article-page.component.html b/src/app/blog/article-page/article-page.component.html index 7d55b18..0ccb753 100644 --- a/src/app/blog/article-page/article-page.component.html +++ b/src/app/blog/article-page/article-page.component.html @@ -1,4 +1,10 @@ -
+ +
@if (!loading && article) {
diff --git a/src/app/blog/article-page/article-page.component.ts b/src/app/blog/article-page/article-page.component.ts index df0b152..e0048bc 100644 --- a/src/app/blog/article-page/article-page.component.ts +++ b/src/app/blog/article-page/article-page.component.ts @@ -1,11 +1,10 @@ -import {AfterViewInit, Component, ElementRef, Inject, OnDestroy, OnInit, PLATFORM_ID, ViewChild} from '@angular/core'; -import {DeviceDetectorService} from '../../shared/services/device-detector.service' -import { DatePipe, isPlatformBrowser, NgStyle } from '@angular/common'; -import {VantaBackgroundService} from '../../shared/services/vanta-background.service'; +import {AfterViewInit, Component, ElementRef, OnInit, ViewChild} from '@angular/core'; +import { DatePipe, NgStyle } from '@angular/common'; import {ArticleService} from '../../shared/services/article.service'; import {ActivatedRoute} from '@angular/router'; import {Title} from '@angular/platform-browser'; import {TranslatePipe} from '@ngx-translate/core'; +import {ParallaxComponent} from '../../shared/parallax/parallax.component'; interface Article { id: number; @@ -24,17 +23,16 @@ interface Article { imports: [ DatePipe, NgStyle, - TranslatePipe -], + TranslatePipe, + ParallaxComponent + ], templateUrl: './article-page.component.html', styleUrl: './article-page.component.css' }) -export class ArticlePageComponent implements OnInit, OnDestroy, AfterViewInit { +export class ArticlePageComponent implements OnInit, AfterViewInit { @ViewChild('articleContent') articleContent!: ElementRef; selectedImage: string | null = null; private imagesProcessed = false; - private readonly elementId = 'vanta-article-bg'; - isMobile: boolean = false; article: Article | undefined; currentArticle: any; error: boolean = false; @@ -42,18 +40,13 @@ export class ArticlePageComponent implements OnInit, OnDestroy, AfterViewInit { loading: boolean = true; constructor( - private deviceService: DeviceDetectorService, - private vantaService: VantaBackgroundService, private articleService: ArticleService, private titleService: Title, - private route: ActivatedRoute, - @Inject(PLATFORM_ID) private platformId: Object + private route: ActivatedRoute ) { } ngOnInit() { - this.isMobile = this.deviceService.isMobile; - this.route.params.subscribe((params) => { const slug = params['slug']; if (slug) { @@ -63,9 +56,6 @@ export class ArticlePageComponent implements OnInit, OnDestroy, AfterViewInit { } }); - if (isPlatformBrowser(this.platformId)) { - window.addEventListener('resize', this.onResize.bind(this)); - } const slug = this.route.snapshot.paramMap.get('slug') || ''; this.articleService.getArticleBySlug(slug).subscribe( (article) => { @@ -96,10 +86,6 @@ export class ArticlePageComponent implements OnInit, OnDestroy, AfterViewInit { } ngAfterViewInit() { - this.vantaService.initVanta(this.elementId, { - color: 0xac1f4e, - backgroundColor: 0x191522 - }); this.makeImagesClickable(); this.imagesProcessed = true; } @@ -123,17 +109,6 @@ export class ArticlePageComponent implements OnInit, OnDestroy, AfterViewInit { this.selectedImage = null; } - ngOnDestroy() { - this.vantaService.destroyVanta(this.elementId); - if (isPlatformBrowser(this.platformId)) { - window.removeEventListener('resize', this.onResize); - } - } - - onResize() { - this.vantaService.resizeVanta(this.elementId); - } - loadTitleBySlug(slug: string) { this.articleService.getArticleBySlug(slug).subscribe( (article) => { diff --git a/src/app/blog/blog.component.css b/src/app/blog/blog.component.css index 78d31e1..7747e7e 100644 --- a/src/app/blog/blog.component.css +++ b/src/app/blog/blog.component.css @@ -9,16 +9,6 @@ } } -#vanta-blog-bg { - animation: fadeIn 1s ease-out; - position: fixed; - top: 0; - left: 0; - width: 100vw; - height: 100vh; - z-index: -100; -} - .height-container { display: flex; flex-direction: column; @@ -42,11 +32,12 @@ .blog-header h1 { font-size: 2.5rem; background: transparent; - border-bottom: 4px solid white; + border-left: 6px solid white; + border-right: 6px solid white; + border-radius: 12px; margin: 8px auto 8px auto; max-width: 220px; padding: 10px; - border-radius: 45px; } .blog-container { @@ -60,23 +51,24 @@ .article-card { z-index: 10; - background: linear-gradient(135deg, #501949, #93446e); + background: rgba(40, 41, 89, 0.5); padding: 15px; margin: 25px 0; cursor: pointer; - border-radius: 45px; + border: 4px solid white; + border-radius: 45px 25px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: background-color 0.3s, transform 0.2s; } .article-card:hover { - background: linear-gradient(135deg, #cd376b, #592840); + background: linear-gradient(135deg, #4637cd, #282959); transform: translateY(-5px); } h2 { font-size: 1.6rem; - color: #ffffff; + color: white; } p { diff --git a/src/app/blog/blog.component.html b/src/app/blog/blog.component.html index 1008cba..a8721fe 100644 --- a/src/app/blog/blog.component.html +++ b/src/app/blog/blog.component.html @@ -1,4 +1,10 @@ -
+ +

Blog

diff --git a/src/app/blog/blog.component.ts b/src/app/blog/blog.component.ts index af5b190..86cc371 100644 --- a/src/app/blog/blog.component.ts +++ b/src/app/blog/blog.component.ts @@ -1,12 +1,12 @@ -import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core'; +import {Component, OnInit} from '@angular/core'; import {DeviceDetectorService} from '../shared/services/device-detector.service' -import { DatePipe, isPlatformBrowser, AsyncPipe, SlicePipe, NgStyle } from '@angular/common'; -import {VantaBackgroundService} from '../shared/services/vanta-background.service'; +import { DatePipe, AsyncPipe, SlicePipe, NgStyle } from '@angular/common'; import { ArticleService } from '../shared/services/article.service'; import { Router } from '@angular/router'; import {Observable} from 'rxjs'; import {Title} from '@angular/platform-browser'; import {TranslatePipe} from '@ngx-translate/core'; +import {ParallaxComponent} from '../shared/parallax/parallax.component'; @Component({ selector: 'app-blog', @@ -15,30 +15,25 @@ import {TranslatePipe} from '@ngx-translate/core'; AsyncPipe, SlicePipe, NgStyle, - TranslatePipe -], + TranslatePipe, + ParallaxComponent + ], templateUrl: './blog.component.html', styleUrl: './blog.component.css' }) -export class BlogComponent implements OnInit, OnDestroy, AfterViewInit { +export class BlogComponent implements OnInit { articles$: Observable | undefined; - private readonly elementId = 'vanta-blog-bg'; isMobile: boolean = false; constructor( private deviceService: DeviceDetectorService, - private vantaService: VantaBackgroundService, private articleService: ArticleService, private router: Router, - private titleService: Title, - @Inject(PLATFORM_ID) private platformId: Object + private titleService: Title ) {} ngOnInit() { this.titleService.setTitle('Blog | itzMiney') this.isMobile = this.deviceService.isMobile; - if (isPlatformBrowser(this.platformId)) { - window.addEventListener('resize', this.onResize.bind(this)); - } this.articles$ = this.articleService.getAllArticles(); } @@ -57,23 +52,6 @@ export class BlogComponent implements OnInit, OnDestroy, AfterViewInit { ); } - ngAfterViewInit() { - this.vantaService.initVanta(this.elementId, { - color: 0xac1f4e, - backgroundColor: 0x191522 - }); - } - ngOnDestroy() { - this.vantaService.destroyVanta(this.elementId); - if (isPlatformBrowser(this.platformId)) { - window.removeEventListener('resize', this.onResize); - } - } - - onResize() { - this.vantaService.resizeVanta(this.elementId); - } - sanitizeContent(content: string): string { if (!content) return ''; return content.replace(/<[^>]*>/g, ' ').replace(/\s+/g, ' ').trim(); diff --git a/src/app/checkout/cancel/cancel.component.css b/src/app/checkout/cancel/cancel.component.css index f20b0af..e7ebb8c 100644 --- a/src/app/checkout/cancel/cancel.component.css +++ b/src/app/checkout/cancel/cancel.component.css @@ -9,16 +9,6 @@ } } -#vanta-cancel-bg { - animation: fadeIn 1s ease-out; - position: fixed; - top: 0; - left: 0; - width: 100vw; - height: 100vh; - z-index: -100; -} - .cancel-container { position: relative; color: black; diff --git a/src/app/checkout/cancel/cancel.component.html b/src/app/checkout/cancel/cancel.component.html index 3ca0ca1..c847e95 100644 --- a/src/app/checkout/cancel/cancel.component.html +++ b/src/app/checkout/cancel/cancel.component.html @@ -1,4 +1,4 @@ -
+

{{ 'CANCEL' | translate }}

diff --git a/src/app/checkout/cancel/cancel.component.ts b/src/app/checkout/cancel/cancel.component.ts index 7b8e8d2..b7cdf17 100644 --- a/src/app/checkout/cancel/cancel.component.ts +++ b/src/app/checkout/cancel/cancel.component.ts @@ -1,54 +1,26 @@ -import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core'; +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 {isPlatformBrowser} from '@angular/common'; import {Router} from '@angular/router'; +import {ParallaxComponent} from '../../shared/parallax/parallax.component'; @Component({ selector: 'app-cancel', - imports: [ - TranslatePipe - ], + imports: [ + TranslatePipe, + ParallaxComponent + ], templateUrl: './cancel.component.html', styleUrl: './cancel.component.css' }) -export class CancelComponent implements OnInit, OnDestroy, AfterViewInit { - private readonly elementId = 'vanta-cancel-bg'; - isMobile: boolean = false; - +export class CancelComponent 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 { diff --git a/src/app/checkout/success/success.component.css b/src/app/checkout/success/success.component.css index 2b43983..14dfdea 100644 --- a/src/app/checkout/success/success.component.css +++ b/src/app/checkout/success/success.component.css @@ -9,16 +9,6 @@ } } -#vanta-success-bg { - animation: fadeIn 1s ease-out; - position: fixed; - top: 0; - left: 0; - width: 100vw; - height: 100vh; - z-index: -100; -} - .success-container { position: relative; color: black; diff --git a/src/app/checkout/success/success.component.html b/src/app/checkout/success/success.component.html index 90adc2f..d53ea44 100644 --- a/src/app/checkout/success/success.component.html +++ b/src/app/checkout/success/success.component.html @@ -1,4 +1,4 @@ -
+

{{ 'SUCCESS' | translate }}

diff --git a/src/app/checkout/success/success.component.ts b/src/app/checkout/success/success.component.ts index 63f933a..3b74f19 100644 --- a/src/app/checkout/success/success.component.ts +++ b/src/app/checkout/success/success.component.ts @@ -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 { diff --git a/src/app/imprint/imprint.component.css b/src/app/imprint/imprint.component.css index 22d5ee5..92b390d 100644 --- a/src/app/imprint/imprint.component.css +++ b/src/app/imprint/imprint.component.css @@ -9,16 +9,6 @@ } } -#vanta-imprint-bg { - animation: fadeIn 1s ease-out; - position: fixed; - top: 0; - left: 0; - width: 100vw; - height: 100vh; - z-index: -100; -} - .imprint-container { position: relative; color: white; diff --git a/src/app/imprint/imprint.component.html b/src/app/imprint/imprint.component.html index 134927e..5ec92d6 100644 --- a/src/app/imprint/imprint.component.html +++ b/src/app/imprint/imprint.component.html @@ -1,4 +1,10 @@ -
+ +
diff --git a/src/app/imprint/imprint.component.ts b/src/app/imprint/imprint.component.ts index 5596b0e..051ee24 100644 --- a/src/app/imprint/imprint.component.ts +++ b/src/app/imprint/imprint.component.ts @@ -1,50 +1,27 @@ -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 {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: './imprint.component.html', styleUrl: './imprint.component.css' }) -export class ImprintComponent implements OnInit, OnDestroy, AfterViewInit { - private readonly elementId = 'vanta-imprint-bg'; +export class ImprintComponent implements OnInit { copiedSection: string | null = null; constructor( - private vantaService: VantaBackgroundService, - private titleService: Title, - @Inject(PLATFORM_ID) private platformId: Object + private titleService: Title ) {} ngOnInit() { this.titleService.setTitle('Imprint | itzMiney'); - 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); } copyToClipboard(text: string): void { diff --git a/src/app/login/login.component.css b/src/app/login/login.component.css index 5ec602b..45f6f38 100644 --- a/src/app/login/login.component.css +++ b/src/app/login/login.component.css @@ -9,16 +9,6 @@ } } -#vanta-login-bg { - animation: fadeIn 1s ease-out; - position: fixed; - top: 0; - left: 0; - width: 100vw; - height: 100vh; - z-index: -100; -} - .height-container { height: 100vh; width: 100vw; @@ -30,8 +20,9 @@ /* Login Form Styles */ .login-container { + color: white; flex-direction: column; - background: #fff; + background: #26262c; border-radius: 25px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); padding: 40px; @@ -48,9 +39,11 @@ h2 { input { width: 92%; - padding: 10px; + padding: 12px; margin: 10px 0; - border: 1px solid #ccc; + color: white; + background: #1c1c23; + border: none; border-radius: 25px; } @@ -58,7 +51,7 @@ button { width: 50%; padding: 10px; margin-top: 20px; - background-color: #5a39bd; + background-color: #8a6bbf; color: white; border: none; border-radius: 25px; @@ -66,12 +59,12 @@ button { } button:disabled { - background-color: #ccc; + background-color: #221a1a; cursor: not-allowed; } button:hover:enabled { - background-color: #4e17ef; + background-color: #ff277a; } .error-message { diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html index 2f7ce86..291a6a2 100644 --- a/src/app/login/login.component.html +++ b/src/app/login/login.component.html @@ -1,4 +1,10 @@ -
+ +