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 0000000..b1282e1 Binary files /dev/null and b/public/assets/triangle_tile.png differ diff --git a/public/assets/triangle_tile.svg b/public/assets/triangle_tile.svg new file mode 100644 index 0000000..0f0324c --- /dev/null +++ b/public/assets/triangle_tile.svg @@ -0,0 +1,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ -
+ +