Merge pull request #40 from itzMiney/development

complete visual overhaul
This commit is contained in:
Michael authored and GitHub committed 2026-03-16 00:24:34 +01:00
commit 2ccf64698a
51 files changed
+687 -657

No files matched your search

+34 -1
View File
@@ -19,6 +19,7 @@
"@ngx-translate/core": "^16.0.4", "@ngx-translate/core": "^16.0.4",
"@ngx-translate/http-loader": "^16.0.1", "@ngx-translate/http-loader": "^16.0.1",
"axios": "^1.13.5", "axios": "^1.13.5",
"parallax-js": "^3.1.0",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"zone.js": "~0.15.0" "zone.js": "~0.15.0"
@@ -28,6 +29,7 @@
"@angular/cli": "^21.2.2", "@angular/cli": "^21.2.2",
"@angular/compiler-cli": "^21.2.4", "@angular/compiler-cli": "^21.2.4",
"@types/node": "^18.18.0", "@types/node": "^18.18.0",
"@types/parallax-js": "^3.1.3",
"typescript": "~5.9.3" "typescript": "~5.9.3"
} }
}, },
@@ -3844,6 +3846,13 @@
"undici-types": "~5.26.4" "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": { "node_modules/@yarnpkg/lockfile": {
"version": "1.1.0", "version": "1.1.0",
"resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz",
@@ -6373,7 +6382,6 @@
"version": "4.1.1", "version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
"dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=0.10.0" "node": ">=0.10.0"
@@ -6507,6 +6515,16 @@
"node": "^20.17.0 || >=22.9.0" "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": { "node_modules/parse5": {
"version": "8.0.0", "version": "8.0.0",
"resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.0.tgz", "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.0.tgz",
@@ -6632,6 +6650,12 @@
"url": "https://opencollective.com/express" "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": { "node_modules/picocolors": {
"version": "1.1.1", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
@@ -6806,6 +6830,15 @@
"url": "https://github.com/sponsors/ljharb" "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": { "node_modules/range-parser": {
"version": "1.2.1", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
+2
View File
@@ -20,6 +20,7 @@
"@ngx-translate/core": "^16.0.4", "@ngx-translate/core": "^16.0.4",
"@ngx-translate/http-loader": "^16.0.1", "@ngx-translate/http-loader": "^16.0.1",
"axios": "^1.13.5", "axios": "^1.13.5",
"parallax-js": "^3.1.0",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"zone.js": "~0.15.0" "zone.js": "~0.15.0"
@@ -29,6 +30,7 @@
"@angular/cli": "^21.2.2", "@angular/cli": "^21.2.2",
"@angular/compiler-cli": "^21.2.4", "@angular/compiler-cli": "^21.2.4",
"@types/node": "^18.18.0", "@types/node": "^18.18.0",
"@types/parallax-js": "^3.1.3",
"typescript": "~5.9.3" "typescript": "~5.9.3"
}, },
"overrides": { "overrides": {
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

+148
View File
@@ -0,0 +1,148 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="400mm"
height="400mm"
viewBox="0 0 400 400"
version="1.1"
id="svg1"
inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)"
sodipodi:docname="triangle_tile.svg"
inkscape:export-filename="triangle_tile.png"
inkscape:export-xdpi="25.4"
inkscape:export-ydpi="25.4"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1"
pagecolor="#505050"
bordercolor="#ffffff"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="1"
inkscape:deskcolor="#505050"
inkscape:document-units="mm"
showguides="true"
inkscape:lockguides="false"
inkscape:zoom="0.43800007"
inkscape:cx="990.86741"
inkscape:cy="918.94962"
inkscape:window-width="1920"
inkscape:window-height="1056"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1">
<sodipodi:guide
position="0,340"
orientation="-0.70710678,-0.70710678"
id="guide9"
inkscape:locked="false"
inkscape:label=""
inkscape:color="rgb(0,134,229)" />
<sodipodi:guide
position="0,185"
orientation="-0.70710678,-0.70710678"
id="guide10"
inkscape:locked="false"
inkscape:label=""
inkscape:color="rgb(0,134,229)" />
<sodipodi:guide
position="0,125"
orientation="0,1"
id="guide13"
inkscape:locked="false"
inkscape:label=""
inkscape:color="rgb(0,134,229)" />
<sodipodi:guide
position="0,275"
orientation="0,1"
id="guide14"
inkscape:locked="false"
inkscape:label=""
inkscape:color="rgb(0,134,229)" />
<sodipodi:guide
position="0,260"
orientation="-0.70710678,-0.70710678"
id="guide15"
inkscape:locked="false"
inkscape:label=""
inkscape:color="rgb(0,134,229)" />
<sodipodi:guide
position="15,400"
orientation="-0.70710678,-0.70710678"
id="guide16"
inkscape:locked="false"
inkscape:label=""
inkscape:color="rgb(0,134,229)" />
<sodipodi:guide
position="400,340"
orientation="0.70710678,-0.70710678"
id="guide20"
inkscape:locked="false"
inkscape:label=""
inkscape:color="rgb(0,134,229)" />
<sodipodi:guide
position="385,400"
orientation="0.70710678,-0.70710678"
id="guide21"
inkscape:locked="false"
inkscape:label=""
inkscape:color="rgb(0,134,229)" />
<sodipodi:guide
position="0,310"
orientation="0,1"
id="guide22"
inkscape:locked="false"
inkscape:label=""
inkscape:color="rgb(0,134,229)" />
<sodipodi:guide
position="0,89.999999"
orientation="0,1"
id="guide23"
inkscape:locked="false"
inkscape:label=""
inkscape:color="rgb(0,134,229)" />
<sodipodi:guide
position="105,310"
orientation="0.70710678,-0.70710678"
id="guide24"
inkscape:locked="false" />
<sodipodi:guide
position="95.000001,89.999999"
orientation="0.70710678,-0.70710678"
id="guide25"
inkscape:locked="false" />
<sodipodi:guide
position="295,310"
orientation="-0.70710678,-0.70710678"
id="guide26"
inkscape:locked="false" />
</sodipodi:namedview>
<defs
id="defs1" />
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<path
style="fill:#ffffff;stroke-width:0.264583"
d="M 95.000002,310 0,215 v -75 l 132.5,132.5 z"
id="path23"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#ffffff;stroke-width:0.264583"
d="m 305,310 95,-95 V 140 L 267.5,272.5 Z"
id="path23-3"
sodipodi:nodetypes="ccccc" />
<path
style="fill:#b3b3b3;stroke-width:0.264583"
d="M 67.500001,127.5 200,260 332.5,127.5 295,89.999998 200,185 105,89.999998 Z"
id="path24"
sodipodi:nodetypes="ccccccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.3 KiB

+4 -3
View File
@@ -18,9 +18,10 @@
"FOOTER_IMP": "Impressum", "FOOTER_IMP": "Impressum",
"FOOTER_PRIV": "Datenschutzerklärung", "FOOTER_PRIV": "Datenschutzerklärung",
"TECHSTACK_LANGS": "< SPRACHEN >", "TECHSTACK_SERVERS": "Web Server",
"TECHSTACK_DBS": "< DATENBANKEN >", "TECHSTACK_LANGS": "Sprachen",
"TECHSTACK_TOOLS": "< WERKZEUGE >", "TECHSTACK_DBS": "Datenbanken",
"TECHSTACK_TOOLS": "Wekzeuge",
"ABOUT_TITLE": "Wer ich bin", "ABOUT_TITLE": "Wer ich bin",
"ABOUT_SUB": "Hobby Entwickler & Designer", "ABOUT_SUB": "Hobby Entwickler & Designer",
+4 -3
View File
@@ -18,9 +18,10 @@
"FOOTER_IMP": "Imprint", "FOOTER_IMP": "Imprint",
"FOOTER_PRIV": "Privacy Policy", "FOOTER_PRIV": "Privacy Policy",
"TECHSTACK_LANGS": "< LANGUAGES >", "TECHSTACK_SERVERS": "Web Servers",
"TECHSTACK_DBS": "< DATABASES >", "TECHSTACK_LANGS": "Languages",
"TECHSTACK_TOOLS": "< TOOLS >", "TECHSTACK_DBS": "Databases",
"TECHSTACK_TOOLS": "Tools",
"ABOUT_TITLE": "About Me", "ABOUT_TITLE": "About Me",
"ABOUT_SUB": "Hobby developer & designer", "ABOUT_SUB": "Hobby developer & designer",
+85 -30
View File
@@ -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 { a {
text-decoration: none; text-decoration: none;
color: inherit; color: inherit;
@@ -29,43 +19,108 @@ a {
align-content: center; align-content: center;
justify-content: center; justify-content: center;
display: flex; display: flex;
flex-direction: column;
} }
.about-container { .content-bg {
position: relative; position: relative;
color: white; display: block;
max-width: 900px;
margin-bottom: 80px;
font-family: 'Roboto', sans-serif;
z-index: 1;
} }
.about-header { .about-header {
display: flex;
color: white;
width: 100%;
height: calc(100vh - 50px);
justify-content: center;
align-items: center;
text-align: 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 { .about-header .subtitle {
font-size: 1.2rem; font-size: 1.2rem;
font-style: italic; font-style: italic;
margin-bottom: 30px; margin-top: 5px;
} }
.about-header h1 { .down-arrow {
font-size: 2.5rem; position: absolute;
background: transparent; cursor: pointer;
border-bottom: 4px solid white; font-size: 4rem;
margin: 8px auto 8px auto; top: 75%;
max-width: 220px; animation:
padding: 10px; arrowFadeIn 600ms ease-in-out forwards,
border-radius: 45px; 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 { .about-content {
max-width: 900px;
margin: 0 auto;
padding: 0 25px;
font-size: 1.2rem; font-size: 1.2rem;
line-height: 1.6; line-height: 1.6;
margin-bottom: 10px;
text-align: center;
justify-items: center;
} }
.category { .category {
@@ -85,11 +140,11 @@ a {
.tech-stack-title { .tech-stack-title {
font-size: 1.4rem; font-size: 1.4rem;
text-align: center; text-align: center;
background: linear-gradient(135deg, #924dd3, #e43b68); border: solid 4px white;
margin: 8px auto 20px auto; margin: 8px auto 20px auto;
max-width: 180px; max-width: 180px;
padding: 10px; padding: 10px;
border-radius: 30px; border-radius: 35px;
} }
.tech-stack { .tech-stack {
+19 -9
View File
@@ -1,19 +1,30 @@
<div id="vanta-about-bg"></div> <app-parallax
[baseColor]="'#1a162c'"
[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="height-container">
<div class="about-container"> <div class="about-header">
<div class="about-header" [ngStyle]="{'margin-top': isMobile ? '60px' : '120px'}"> <div class="title-box">
<h1>{{ 'ABOUT_TITLE' | translate }}</h1> <h1><code>itzMiney</code></h1>
<p class="subtitle">Hobby developer & designer</p> <p class="subtitle">Hobby developer & designer</p>
</div> </div>
<hr class="rounded"> <div class="down-arrow" (click)="scrollDown()">
<i class="fa-solid fa-angle-down"></i>
</div>
</div>
<div class="separator"></div>
<section id="content"></section>
<div class="about-container">
<div class="about-content"> <div class="about-content">
<h1><code>itzMiney</code></h1>
<p [innerHTML]="'ABOUT' | translate"></p> <p [innerHTML]="'ABOUT' | translate"></p>
<br> <br>
<h3 class="tech-stack-title">Tech Stack</h3> <h3 class="tech-stack-title"><code>Tech Stack</code></h3>
<div class="tech-stack"> <div class="tech-stack">
<div class="category"> <div class="category">
<h4>< WEB _ SERVERS ></h4> <h4>{{ 'TECHSTACK_SERVERS' | translate }}</h4>
<ul> <ul>
<a href="https://nginx.org/en/" target="_blank"><li>NGiNX</li></a> <a href="https://nginx.org/en/" target="_blank"><li>NGiNX</li></a>
</ul> </ul>
@@ -46,7 +57,6 @@
</ul> </ul>
</div> </div>
</div> </div>
<hr class="rounded">
</div> </div>
</div> </div>
</div> </div>
+7 -26
View File
@@ -1,50 +1,31 @@
import {AfterViewInit, Component, OnDestroy, OnInit, PLATFORM_ID, Inject} from '@angular/core'; import {Component, OnInit} from '@angular/core';
import {isPlatformBrowser, NgStyle} from '@angular/common';
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
import {DeviceDetectorService} from '../shared/services/device-detector.service'; import {DeviceDetectorService} from '../shared/services/device-detector.service';
import {Title} from '@angular/platform-browser'; import {Title} from '@angular/platform-browser';
import {TranslatePipe} from '@ngx-translate/core'; import {TranslatePipe} from '@ngx-translate/core';
import {ParallaxComponent} from '../shared/parallax/parallax.component';
@Component({ @Component({
selector: 'app-about', selector: 'app-about',
templateUrl: './about.component.html', templateUrl: './about.component.html',
imports: [ imports: [
NgStyle, TranslatePipe,
TranslatePipe ParallaxComponent
], ],
styleUrls: ['./about.component.css'] styleUrls: ['./about.component.css']
}) })
export class AboutComponent implements OnInit, OnDestroy, AfterViewInit { export class AboutComponent implements OnInit {
private readonly elementId = 'vanta-about-bg';
isMobile: boolean = false; isMobile: boolean = false;
constructor( constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService, private deviceService: DeviceDetectorService,
private titleService: Title, private titleService: Title,
@Inject(PLATFORM_ID) private platformId: Object
) {} ) {}
ngOnInit() { ngOnInit() {
this.titleService.setTitle('itzMiney\'s Home'); this.titleService.setTitle('itzMiney\'s Home');
this.isMobile = this.deviceService.isMobile; 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() { scrollDown() {
this.vantaService.resizeVanta(this.elementId); document.getElementById('content')?.scrollIntoView({behavior: 'smooth'});
} }
} }
@@ -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 { .height-container {
display: flex; display: flex;
min-height: 100vh; min-height: 100vh;
@@ -68,7 +59,7 @@ h1 {
} }
.content-container button { .content-container button {
background-color: #713252; background-color: #444893FF;
color: #fff; color: #fff;
border: none; border: none;
padding: 10px 20px; padding: 10px 20px;
@@ -81,7 +72,7 @@ h1 {
} }
.content-container button:hover { .content-container button:hover {
background-color: #bf9bae; background-color: #707ec5;
} }
.error-message h1 { .error-message h1 {
@@ -99,7 +90,7 @@ h1 {
} }
.error-message button { .error-message button {
background-color: #713252; background-color: #444893FF;
color: #fff; color: #fff;
border: none; border: none;
padding: 10px 20px; padding: 10px 20px;
@@ -1,4 +1,10 @@
<div id="vanta-article-bg"></div> <app-parallax
[baseColor]="'#101522'"
[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="height-container">
@if (!loading && article) { @if (!loading && article) {
<div class="article-container"> <div class="article-container">
@@ -1,11 +1,10 @@
import {AfterViewInit, Component, ElementRef, Inject, OnDestroy, OnInit, PLATFORM_ID, ViewChild} from '@angular/core'; import {AfterViewInit, Component, ElementRef, OnInit, ViewChild} from '@angular/core';
import {DeviceDetectorService} from '../../shared/services/device-detector.service' import { DatePipe, NgStyle } from '@angular/common';
import { DatePipe, isPlatformBrowser, NgStyle } from '@angular/common';
import {VantaBackgroundService} from '../../shared/services/vanta-background.service';
import {ArticleService} from '../../shared/services/article.service'; import {ArticleService} from '../../shared/services/article.service';
import {ActivatedRoute} from '@angular/router'; import {ActivatedRoute} from '@angular/router';
import {Title} from '@angular/platform-browser'; import {Title} from '@angular/platform-browser';
import {TranslatePipe} from '@ngx-translate/core'; import {TranslatePipe} from '@ngx-translate/core';
import {ParallaxComponent} from '../../shared/parallax/parallax.component';
interface Article { interface Article {
id: number; id: number;
@@ -24,17 +23,16 @@ interface Article {
imports: [ imports: [
DatePipe, DatePipe,
NgStyle, NgStyle,
TranslatePipe TranslatePipe,
ParallaxComponent
], ],
templateUrl: './article-page.component.html', templateUrl: './article-page.component.html',
styleUrl: './article-page.component.css' styleUrl: './article-page.component.css'
}) })
export class ArticlePageComponent implements OnInit, OnDestroy, AfterViewInit { export class ArticlePageComponent implements OnInit, AfterViewInit {
@ViewChild('articleContent') articleContent!: ElementRef<HTMLDivElement>; @ViewChild('articleContent') articleContent!: ElementRef<HTMLDivElement>;
selectedImage: string | null = null; selectedImage: string | null = null;
private imagesProcessed = false; private imagesProcessed = false;
private readonly elementId = 'vanta-article-bg';
isMobile: boolean = false;
article: Article | undefined; article: Article | undefined;
currentArticle: any; currentArticle: any;
error: boolean = false; error: boolean = false;
@@ -42,18 +40,13 @@ export class ArticlePageComponent implements OnInit, OnDestroy, AfterViewInit {
loading: boolean = true; loading: boolean = true;
constructor( constructor(
private deviceService: DeviceDetectorService,
private vantaService: VantaBackgroundService,
private articleService: ArticleService, private articleService: ArticleService,
private titleService: Title, private titleService: Title,
private route: ActivatedRoute, private route: ActivatedRoute
@Inject(PLATFORM_ID) private platformId: Object
) { ) {
} }
ngOnInit() { ngOnInit() {
this.isMobile = this.deviceService.isMobile;
this.route.params.subscribe((params) => { this.route.params.subscribe((params) => {
const slug = params['slug']; const slug = params['slug'];
if (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') || ''; const slug = this.route.snapshot.paramMap.get('slug') || '';
this.articleService.getArticleBySlug(slug).subscribe( this.articleService.getArticleBySlug(slug).subscribe(
(article) => { (article) => {
@@ -96,10 +86,6 @@ export class ArticlePageComponent implements OnInit, OnDestroy, AfterViewInit {
} }
ngAfterViewInit() { ngAfterViewInit() {
this.vantaService.initVanta(this.elementId, {
color: 0xac1f4e,
backgroundColor: 0x191522
});
this.makeImagesClickable(); this.makeImagesClickable();
this.imagesProcessed = true; this.imagesProcessed = true;
} }
@@ -123,17 +109,6 @@ export class ArticlePageComponent implements OnInit, OnDestroy, AfterViewInit {
this.selectedImage = null; 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) { loadTitleBySlug(slug: string) {
this.articleService.getArticleBySlug(slug).subscribe( this.articleService.getArticleBySlug(slug).subscribe(
(article) => { (article) => {
+8 -16
View File
@@ -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 { .height-container {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -42,11 +32,12 @@
.blog-header h1 { .blog-header h1 {
font-size: 2.5rem; font-size: 2.5rem;
background: transparent; 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; margin: 8px auto 8px auto;
max-width: 220px; max-width: 220px;
padding: 10px; padding: 10px;
border-radius: 45px;
} }
.blog-container { .blog-container {
@@ -60,23 +51,24 @@
.article-card { .article-card {
z-index: 10; z-index: 10;
background: linear-gradient(135deg, #501949, #93446e); background: rgba(40, 41, 89, 0.5);
padding: 15px; padding: 15px;
margin: 25px 0; margin: 25px 0;
cursor: pointer; cursor: pointer;
border-radius: 45px; border: 4px solid white;
border-radius: 45px 25px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s, transform 0.2s; transition: background-color 0.3s, transform 0.2s;
} }
.article-card:hover { .article-card:hover {
background: linear-gradient(135deg, #cd376b, #592840); background: linear-gradient(135deg, #4637cd, #282959);
transform: translateY(-5px); transform: translateY(-5px);
} }
h2 { h2 {
font-size: 1.6rem; font-size: 1.6rem;
color: #ffffff; color: white;
} }
p { p {
+7 -1
View File
@@ -1,4 +1,10 @@
<div id="vanta-blog-bg"></div> <app-parallax
[baseColor]="'#101522'"
[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="height-container">
<div class="blog-header" [ngStyle]="{'margin-top': isMobile ? '72px' : '112px'}"> <div class="blog-header" [ngStyle]="{'margin-top': isMobile ? '72px' : '112px'}">
<h1>Blog</h1> <h1>Blog</h1>
+7 -29
View File
@@ -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 {DeviceDetectorService} from '../shared/services/device-detector.service'
import { DatePipe, isPlatformBrowser, AsyncPipe, SlicePipe, NgStyle } from '@angular/common'; import { DatePipe, AsyncPipe, SlicePipe, NgStyle } from '@angular/common';
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
import { ArticleService } from '../shared/services/article.service'; import { ArticleService } from '../shared/services/article.service';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import {Observable} from 'rxjs'; import {Observable} from 'rxjs';
import {Title} from '@angular/platform-browser'; import {Title} from '@angular/platform-browser';
import {TranslatePipe} from '@ngx-translate/core'; import {TranslatePipe} from '@ngx-translate/core';
import {ParallaxComponent} from '../shared/parallax/parallax.component';
@Component({ @Component({
selector: 'app-blog', selector: 'app-blog',
@@ -15,30 +15,25 @@ import {TranslatePipe} from '@ngx-translate/core';
AsyncPipe, AsyncPipe,
SlicePipe, SlicePipe,
NgStyle, NgStyle,
TranslatePipe TranslatePipe,
ParallaxComponent
], ],
templateUrl: './blog.component.html', templateUrl: './blog.component.html',
styleUrl: './blog.component.css' styleUrl: './blog.component.css'
}) })
export class BlogComponent implements OnInit, OnDestroy, AfterViewInit { export class BlogComponent implements OnInit {
articles$: Observable<any[]> | undefined; articles$: Observable<any[]> | undefined;
private readonly elementId = 'vanta-blog-bg';
isMobile: boolean = false; isMobile: boolean = false;
constructor( constructor(
private deviceService: DeviceDetectorService, private deviceService: DeviceDetectorService,
private vantaService: VantaBackgroundService,
private articleService: ArticleService, private articleService: ArticleService,
private router: Router, private router: Router,
private titleService: Title, private titleService: Title
@Inject(PLATFORM_ID) private platformId: Object
) {} ) {}
ngOnInit() { ngOnInit() {
this.titleService.setTitle('Blog | itzMiney') this.titleService.setTitle('Blog | itzMiney')
this.isMobile = this.deviceService.isMobile; this.isMobile = this.deviceService.isMobile;
if (isPlatformBrowser(this.platformId)) {
window.addEventListener('resize', this.onResize.bind(this));
}
this.articles$ = this.articleService.getAllArticles(); 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 { sanitizeContent(content: string): string {
if (!content) return ''; if (!content) return '';
return content.replace(/<[^>]*>/g, ' ').replace(/\s+/g, ' ').trim(); return content.replace(/<[^>]*>/g, ' ').replace(/\s+/g, ' ').trim();
@@ -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 { .cancel-container {
position: relative; position: relative;
color: black; color: black;
@@ -1,4 +1,4 @@
<div id="vanta-cancel-bg"></div> <app-parallax></app-parallax>
<div class="height-container"> <div class="height-container">
<div class="cancel-container"> <div class="cancel-container">
<h1>{{ 'CANCEL' | translate }}</h1> <h1>{{ 'CANCEL' | translate }}</h1>
+5 -33
View File
@@ -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 {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 {Title} from '@angular/platform-browser';
import {isPlatformBrowser} from '@angular/common';
import {Router} from '@angular/router'; import {Router} from '@angular/router';
import {ParallaxComponent} from '../../shared/parallax/parallax.component';
@Component({ @Component({
selector: 'app-cancel', selector: 'app-cancel',
imports: [ imports: [
TranslatePipe TranslatePipe,
ParallaxComponent
], ],
templateUrl: './cancel.component.html', templateUrl: './cancel.component.html',
styleUrl: './cancel.component.css' styleUrl: './cancel.component.css'
}) })
export class CancelComponent implements OnInit, OnDestroy, AfterViewInit { export class CancelComponent implements OnInit {
private readonly elementId = 'vanta-cancel-bg';
isMobile: boolean = false;
constructor( constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService,
private titleService: Title, private titleService: Title,
private router: Router, private router: Router,
@Inject(PLATFORM_ID) private platformId: Object
) {} ) {}
ngOnInit() { ngOnInit() {
this.titleService.setTitle('Checkout | itzMiney'); 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 { goBack(): void {
@@ -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 { .success-container {
position: relative; position: relative;
color: black; color: black;
@@ -1,4 +1,4 @@
<div id="vanta-success-bg"></div> <app-parallax></app-parallax>
<div class="height-container"> <div class="height-container">
<div class="success-container"> <div class="success-container">
<h1>{{ 'SUCCESS' | translate }}</h1> <h1>{{ 'SUCCESS' | translate }}</h1>
+5 -33
View File
@@ -1,54 +1,26 @@
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core'; import {Component, OnInit} from '@angular/core';
import {isPlatformBrowser} from '@angular/common';
import {TranslatePipe} from '@ngx-translate/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 {Title} from '@angular/platform-browser';
import {Router} from '@angular/router'; import {Router} from '@angular/router';
import {ParallaxComponent} from '../../shared/parallax/parallax.component';
@Component({ @Component({
selector: 'app-success', selector: 'app-success',
imports: [ imports: [
TranslatePipe TranslatePipe,
ParallaxComponent
], ],
templateUrl: './success.component.html', templateUrl: './success.component.html',
styleUrl: './success.component.css' styleUrl: './success.component.css'
}) })
export class SuccessComponent implements OnInit, OnDestroy, AfterViewInit { export class SuccessComponent implements OnInit {
private readonly elementId = 'vanta-success-bg';
isMobile: boolean = false;
constructor( constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService,
private titleService: Title, private titleService: Title,
private router: Router, private router: Router,
@Inject(PLATFORM_ID) private platformId: Object
) {} ) {}
ngOnInit() { ngOnInit() {
this.titleService.setTitle('Checkout | itzMiney'); 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 { goBack(): void {
-10
View File
@@ -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 { .imprint-container {
position: relative; position: relative;
color: white; color: white;
+7 -1
View File
@@ -1,4 +1,10 @@
<div id="vanta-imprint-bg"></div> <app-parallax
[baseColor]="'#101522'"
[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="height-container">
<div class="imprint-container"> <div class="imprint-container">
<div class="text-content"> <div class="text-content">
+6 -29
View File
@@ -1,50 +1,27 @@
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core'; import {Component, OnInit} from '@angular/core';
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
import {Title} from '@angular/platform-browser'; import {Title} from '@angular/platform-browser';
import { isPlatformBrowser } from '@angular/common';
import {TranslatePipe} from '@ngx-translate/core'; import {TranslatePipe} from '@ngx-translate/core';
import {ParallaxComponent} from '../shared/parallax/parallax.component';
@Component({ @Component({
selector: 'app-services', selector: 'app-services',
imports: [ imports: [
TranslatePipe TranslatePipe,
ParallaxComponent
], ],
templateUrl: './imprint.component.html', templateUrl: './imprint.component.html',
styleUrl: './imprint.component.css' styleUrl: './imprint.component.css'
}) })
export class ImprintComponent implements OnInit, OnDestroy, AfterViewInit { export class ImprintComponent implements OnInit {
private readonly elementId = 'vanta-imprint-bg';
copiedSection: string | null = null; copiedSection: string | null = null;
constructor( constructor(
private vantaService: VantaBackgroundService, private titleService: Title
private titleService: Title,
@Inject(PLATFORM_ID) private platformId: Object
) {} ) {}
ngOnInit() { ngOnInit() {
this.titleService.setTitle('Imprint | itzMiney'); 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 { copyToClipboard(text: string): void {
+9 -16
View File
@@ -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-container {
height: 100vh; height: 100vh;
width: 100vw; width: 100vw;
@@ -30,8 +20,9 @@
/* Login Form Styles */ /* Login Form Styles */
.login-container { .login-container {
color: white;
flex-direction: column; flex-direction: column;
background: #fff; background: #26262c;
border-radius: 25px; border-radius: 25px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 40px; padding: 40px;
@@ -48,9 +39,11 @@ h2 {
input { input {
width: 92%; width: 92%;
padding: 10px; padding: 12px;
margin: 10px 0; margin: 10px 0;
border: 1px solid #ccc; color: white;
background: #1c1c23;
border: none;
border-radius: 25px; border-radius: 25px;
} }
@@ -58,7 +51,7 @@ button {
width: 50%; width: 50%;
padding: 10px; padding: 10px;
margin-top: 20px; margin-top: 20px;
background-color: #5a39bd; background-color: #8a6bbf;
color: white; color: white;
border: none; border: none;
border-radius: 25px; border-radius: 25px;
@@ -66,12 +59,12 @@ button {
} }
button:disabled { button:disabled {
background-color: #ccc; background-color: #221a1a;
cursor: not-allowed; cursor: not-allowed;
} }
button:hover:enabled { button:hover:enabled {
background-color: #4e17ef; background-color: #ff277a;
} }
.error-message { .error-message {
+7 -1
View File
@@ -1,4 +1,10 @@
<div id="vanta-login-bg"></div> <app-parallax
[baseColor]="'#1e0d16'"
[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="height-container">
<div class="login-container"> <div class="login-container">
+6 -31
View File
@@ -1,30 +1,26 @@
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core'; import {Component, Inject, OnInit, PLATFORM_ID} from '@angular/core';
import {AuthService} from '../shared/services/auth.service'; import {AuthService} from '../shared/services/auth.service';
import {ActivatedRoute, Router} from '@angular/router'; import {ActivatedRoute, Router} from '@angular/router';
import {FormsModule} from '@angular/forms'; import {FormsModule} from '@angular/forms';
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
import {DeviceDetectorService} from '../shared/services/device-detector.service'; import {DeviceDetectorService} from '../shared/services/device-detector.service';
import {isPlatformBrowser} from '@angular/common';
import { Title } from '@angular/platform-browser'; import { Title } from '@angular/platform-browser';
import { take } from 'rxjs/operators'; import { take } from 'rxjs/operators';
import {ParallaxComponent} from '../shared/parallax/parallax.component';
@Component({ @Component({
selector: 'app-login', selector: 'app-login',
templateUrl: './login.component.html', templateUrl: './login.component.html',
styleUrls: ['./login.component.css'], styleUrls: ['./login.component.css'],
imports: [ imports: [
FormsModule FormsModule,
ParallaxComponent
] ]
}) })
export class LoginComponent implements OnInit, OnDestroy, AfterViewInit { export class LoginComponent implements OnInit {
username = ''; username = '';
password = ''; password = '';
errorMessage = ''; errorMessage = '';
private readonly isBrowser: boolean;
private readonly boundResize = this.onResize.bind(this);
private readonly elementId = 'vanta-login-bg';
private readonly allowedAdminRoutes = new Set([ private readonly allowedAdminRoutes = new Set([
'/admin', '/admin',
'/shortener' '/shortener'
@@ -36,13 +32,10 @@ export class LoginComponent implements OnInit, OnDestroy, AfterViewInit {
private authService: AuthService, private authService: AuthService,
private router: Router, private router: Router,
private route: ActivatedRoute, private route: ActivatedRoute,
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService, private deviceService: DeviceDetectorService,
private titleService: Title, private titleService: Title,
@Inject(PLATFORM_ID) private platformId: Object @Inject(PLATFORM_ID) private platformId: Object
) { ) {}
this.isBrowser = isPlatformBrowser(this.platformId);
}
ngOnInit() { ngOnInit() {
this.titleService.setTitle('Login | itzMiney') this.titleService.setTitle('Login | itzMiney')
@@ -57,10 +50,6 @@ export class LoginComponent implements OnInit, OnDestroy, AfterViewInit {
this.redirectUrl = '/admin'; this.redirectUrl = '/admin';
} }
}); });
if (this.isBrowser) {
window.addEventListener('resize', this.boundResize);
}
} }
onLogin() { onLogin() {
@@ -77,18 +66,4 @@ export class LoginComponent implements OnInit, OnDestroy, AfterViewInit {
} }
}); });
} }
ngAfterViewInit() {
this.vantaService.initVanta(this.elementId, {});
}
ngOnDestroy() {
this.vantaService.destroyVanta(this.elementId);
if (this.isBrowser) {
window.removeEventListener('resize', this.boundResize);
}
}
onResize() {
this.vantaService.resizeVanta(this.elementId);
}
} }
+3 -13
View File
@@ -9,16 +9,6 @@
} }
} }
#vanta-not-found-bg {
animation: fadeIn 1s ease-out;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: -100;
}
.height-container { .height-container {
display: flex; display: flex;
min-height: 100vh; min-height: 100vh;
@@ -43,7 +33,7 @@
} }
button { button {
background-color: #713252; background-color: #523fa6;
color: #fff; color: #fff;
border: none; border: none;
padding: 10px 20px; padding: 10px 20px;
@@ -55,9 +45,9 @@ button {
} }
button:hover { button:hover {
background-color: #bf9bae; background-color: #3c3460;
} }
button:active { button:active {
background-color: #814a67; background-color: #6b5fa0;
} }
+1 -1
View File
@@ -1,4 +1,4 @@
<div id="vanta-not-found-bg"></div> <app-parallax></app-parallax>
<div class="height-container"> <div class="height-container">
<div class="error-message"> <div class="error-message">
<h1>404</h1> <h1>404</h1>
+6 -30
View File
@@ -1,48 +1,24 @@
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 {VantaBackgroundService} from '../shared/services/vanta-background.service';
import {isPlatformBrowser} from '@angular/common';
import {Title} from '@angular/platform-browser'; import {Title} from '@angular/platform-browser';
import {ParallaxComponent} from '../shared/parallax/parallax.component';
@Component({ @Component({
selector: 'app-not-found', selector: 'app-not-found',
imports: [], imports: [
ParallaxComponent
],
templateUrl: './not-found.component.html', templateUrl: './not-found.component.html',
styleUrl: './not-found.component.css', styleUrl: './not-found.component.css',
}) })
export class NotFoundComponent implements OnInit, OnDestroy, AfterViewInit { export class NotFoundComponent implements OnInit {
private readonly elementId = 'vanta-not-found-bg';
isMobile: boolean = false; isMobile: boolean = false;
constructor( constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService,
private titleService: Title, private titleService: Title,
@Inject(PLATFORM_ID) private platformId: Object
) { ) {
} }
ngOnInit() { ngOnInit() {
this.titleService.setTitle('404 | Page Not Found') this.titleService.setTitle('404 | Page Not Found')
this.isMobile = this.deviceService.isMobile;
if (isPlatformBrowser(this.platformId)) {
window.addEventListener('resize', this.onResize.bind(this));
}
}
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);
} }
} }
+9 -16
View File
@@ -9,16 +9,6 @@
} }
} }
#vanta-portfolio-bg {
animation: fadeIn 1s ease-out;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: -100;
}
.portfolio-container { .portfolio-container {
position: relative; position: relative;
color: white; color: white;
@@ -40,11 +30,12 @@
.portfolio-header h1 { .portfolio-header h1 {
font-size: 2.5rem; font-size: 2.5rem;
background: transparent; 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; margin: 8px auto 8px auto;
max-width: 280px; max-width: 280px;
padding: 10px; padding: 10px;
border-radius: 45px;
} }
.portfolio-header .subtitle { .portfolio-header .subtitle {
@@ -87,24 +78,26 @@
color: white; color: white;
} }
.commission-button { .kofi-button {
text-align: center; text-align: center;
margin-top: 30px; margin-top: 30px;
margin-bottom: 50px; margin-bottom: 50px;
} }
.ko-fi-btn { .ko-fi-btn {
background-color: #FF5C8D; background-color: #fff;
color: white; color: #ff5a78;
border: none; border: none;
padding: 12px 25px; padding: 12px 25px;
font-size: 1.2rem; font-size: 1.2rem;
border-radius: 25px; border-radius: 25px;
cursor: pointer; cursor: pointer;
transition: all 0.3s ease;
} }
.ko-fi-btn:hover { .ko-fi-btn:hover {
background-color: #FF3C75; background-color: #fff4f4;
color: #ff5a78;
} }
.text-content p { .text-content p {
+10 -4
View File
@@ -1,4 +1,10 @@
<div id="vanta-portfolio-bg"></div> <app-parallax
[baseColor]="'#211c30'"
[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="height-container">
<div class="portfolio-container"> <div class="portfolio-container">
<div class="portfolio-header" [ngStyle]="{'margin-top': isMobile ? '60px' : '120px'}"> <div class="portfolio-header" [ngStyle]="{'margin-top': isMobile ? '60px' : '120px'}">
@@ -9,9 +15,9 @@
<div class="text-content"> <div class="text-content">
<p [innerHTML]="'PORTFOLIO' | translate"></p> <p [innerHTML]="'PORTFOLIO' | translate"></p>
</div> </div>
<div class="commission-button"> <div class="kofi-button">
<a href="https://ko-fi.com/itzminey/commissions" target="_blank"> <a href="https://ko-fi.com/itzminey" target="_blank">
<button class="ko-fi-btn">Commission me on Ko-Fi</button> <button class="ko-fi-btn"><i class="fa-solid fa-mug-hot"></i>&#x2007;Ko-Fi Donations</button>
</a> </a>
</div> </div>
<div class="portfolio-gallery" [@staggerGallery]> <div class="portfolio-gallery" [@staggerGallery]>
+6 -29
View File
@@ -1,11 +1,11 @@
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core'; import {Component, OnInit} from '@angular/core';
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
import {DeviceDetectorService} from '../shared/services/device-detector.service'; import {DeviceDetectorService} from '../shared/services/device-detector.service';
import { CommonModule, isPlatformBrowser, NgStyle } from '@angular/common'; import { CommonModule, NgStyle } from '@angular/common';
import {Title} from '@angular/platform-browser'; import {Title} from '@angular/platform-browser';
import {AudioPlayerComponent} from '../shared/audio-player/audio-player.component'; import {AudioPlayerComponent} from '../shared/audio-player/audio-player.component';
import {TranslatePipe} from '@ngx-translate/core'; import {TranslatePipe} from '@ngx-translate/core';
import {animate, stagger, style, transition, trigger, query} from '@angular/animations'; import {animate, stagger, style, transition, trigger, query} from '@angular/animations';
import {ParallaxComponent} from '../shared/parallax/parallax.component';
@Component({ @Component({
selector: 'app-portfolio', selector: 'app-portfolio',
@@ -13,7 +13,8 @@ import {animate, stagger, style, transition, trigger, query} from '@angular/anim
NgStyle, NgStyle,
AudioPlayerComponent, AudioPlayerComponent,
TranslatePipe, TranslatePipe,
CommonModule CommonModule,
ParallaxComponent
], ],
templateUrl: './portfolio.component.html', templateUrl: './portfolio.component.html',
styleUrl: './portfolio.component.css', styleUrl: './portfolio.component.css',
@@ -41,7 +42,7 @@ import {animate, stagger, style, transition, trigger, query} from '@angular/anim
]) ])
] ]
}) })
export class PortfolioComponent implements OnInit, OnDestroy, AfterViewInit { export class PortfolioComponent implements OnInit {
galleryItems = [ galleryItems = [
{ src: '/assets/design1.png', alt: 'Design 1', label: 'Abstract Background' }, { src: '/assets/design1.png', alt: 'Design 1', label: 'Abstract Background' },
{ src: '/assets/design2.png', alt: 'Design 2', label: 'Profile Picture Design' }, { src: '/assets/design2.png', alt: 'Design 2', label: 'Profile Picture Design' },
@@ -55,39 +56,15 @@ export class PortfolioComponent implements OnInit, OnDestroy, AfterViewInit {
]; ];
selectedItem: any = null; selectedItem: any = null;
showModal = false; showModal = false;
private readonly elementId = 'vanta-portfolio-bg';
isMobile: boolean = false; isMobile: boolean = false;
constructor( constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService, private deviceService: DeviceDetectorService,
private titleService: Title, private titleService: Title,
@Inject(PLATFORM_ID) private platformId: Object
) {} ) {}
ngOnInit() { ngOnInit() {
this.titleService.setTitle('Portfolio | itzMiney'); this.titleService.setTitle('Portfolio | itzMiney');
this.isMobile = this.deviceService.isMobile; this.isMobile = this.deviceService.isMobile;
if (isPlatformBrowser(this.platformId)) {
window.addEventListener('resize', this.onResize.bind(this));
}
}
ngAfterViewInit() {
this.vantaService.initVanta(this.elementId, {
color: 0x514f80,
backgroundColor: 0x291c3c
});
}
ngOnDestroy() {
this.vantaService.destroyVanta(this.elementId);
if (isPlatformBrowser(this.platformId)) {
window.removeEventListener('resize', this.onResize);
}
}
onResize() {
// Update the minHeight and minWidth when the window is resized
this.vantaService.resizeVanta(this.elementId);
} }
openModal(item: any) { openModal(item: any) {
-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 { .privacy-container {
position: relative; position: relative;
color: white; 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="height-container">
<div class="privacy-container"> <div class="privacy-container">
<div class="floating-nav" [class.hidden]="isMobile"> <div class="floating-nav" [class.hidden]="isMobile">
+5 -25
View File
@@ -1,30 +1,27 @@
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core'; import {AfterViewInit, Component, OnInit} from '@angular/core';
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
import {DeviceDetectorService} from '../shared/services/device-detector.service'; import {DeviceDetectorService} from '../shared/services/device-detector.service';
import {Title} from '@angular/platform-browser'; import {Title} from '@angular/platform-browser';
import { isPlatformBrowser } from '@angular/common';
import {TranslatePipe} from '@ngx-translate/core'; import {TranslatePipe} from '@ngx-translate/core';
import {ParallaxComponent} from '../shared/parallax/parallax.component';
@Component({ @Component({
selector: 'app-services', selector: 'app-services',
imports: [ imports: [
TranslatePipe TranslatePipe,
ParallaxComponent
], ],
templateUrl: './privacy.component.html', templateUrl: './privacy.component.html',
styleUrl: './privacy.component.css' styleUrl: './privacy.component.css'
}) })
export class PrivacyComponent implements OnInit, OnDestroy, AfterViewInit { export class PrivacyComponent implements OnInit, AfterViewInit {
private readonly elementId = 'vanta-privacy-bg';
isMobile: boolean = false; isMobile: boolean = false;
activeSection: string = ''; activeSection: string = '';
copiedSection: string | null = null; copiedSection: string | null = null;
constructor( constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService, private deviceService: DeviceDetectorService,
private titleService: Title, private titleService: Title,
@Inject(PLATFORM_ID) private platformId: Object
) {} ) {}
scrollToSection(event: Event, targetId: string): void { scrollToSection(event: Event, targetId: string): void {
@@ -43,28 +40,11 @@ export class PrivacyComponent implements OnInit, OnDestroy, AfterViewInit {
ngOnInit() { ngOnInit() {
this.titleService.setTitle('Privacy Policy | itzMiney'); this.titleService.setTitle('Privacy Policy | itzMiney');
this.isMobile = this.deviceService.isMobile; this.isMobile = this.deviceService.isMobile;
if (isPlatformBrowser(this.platformId)) {
window.addEventListener('resize', this.onResize.bind(this));
}
} }
ngAfterViewInit() { ngAfterViewInit() {
this.vantaService.initVanta(this.elementId, {
color: 0x5b417a,
backgroundColor: 0x41e3c
});
this.initScrollTracking(); 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 { initScrollTracking(): void {
const sections = Array.from(document.querySelectorAll('section')) as HTMLElement[]; const sections = Array.from(document.querySelectorAll('section')) as HTMLElement[];
+3 -12
View File
@@ -9,16 +9,6 @@
} }
} }
#vanta-services-bg {
animation: fadeIn 1s ease-out;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: -100;
}
.services-container { .services-container {
position: relative; position: relative;
color: white; color: white;
@@ -40,11 +30,12 @@
.services-header h1 { .services-header h1 {
font-size: 2.5rem; font-size: 2.5rem;
background: transparent; 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; margin: 8px auto 8px auto;
max-width: 280px; max-width: 280px;
padding: 10px; padding: 10px;
border-radius: 45px;
} }
.services-header .subtitle { .services-header .subtitle {
+7 -1
View File
@@ -1,4 +1,10 @@
<div id="vanta-services-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="height-container">
<div class="services-container"> <div class="services-container">
<div class="services-header" [ngStyle]="{'margin-top': isMobile ? '60px' : '120px'}"> <div class="services-header" [ngStyle]="{'margin-top': isMobile ? '60px' : '120px'}">
+7 -30
View File
@@ -1,10 +1,10 @@
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core'; import {Component, OnInit} from '@angular/core';
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
import {DeviceDetectorService} from '../shared/services/device-detector.service'; import {DeviceDetectorService} from '../shared/services/device-detector.service';
import {Title} from '@angular/platform-browser'; import {Title} from '@angular/platform-browser';
import {isPlatformBrowser, NgIf, NgFor, NgStyle} from '@angular/common'; import {NgIf, NgFor, NgStyle} from '@angular/common';
import {TranslatePipe, TranslateService} from '@ngx-translate/core'; import {TranslatePipe, TranslateService} from '@ngx-translate/core';
import {HttpClient} from '@angular/common/http'; import {HttpClient} from '@angular/common/http';
import {ParallaxComponent} from '../shared/parallax/parallax.component';
@Component({ @Component({
selector: 'app-services', selector: 'app-services',
@@ -12,14 +12,14 @@ import {HttpClient} from '@angular/common/http';
NgStyle, NgStyle,
NgIf, NgIf,
NgFor, NgFor,
TranslatePipe TranslatePipe,
ParallaxComponent
], ],
templateUrl: './services.component.html', templateUrl: './services.component.html',
styleUrl: './services.component.css' styleUrl: './services.component.css'
}) })
export class ServicesComponent implements OnInit, OnDestroy, AfterViewInit { export class ServicesComponent implements OnInit {
private readonly elementId = 'vanta-services-bg';
private apiUrl = '/api/stripe/create-checkout-session'; private apiUrl = '/api/stripe/create-checkout-session';
isMobile: boolean = false; isMobile: boolean = false;
activeTab: string[] = []; activeTab: string[] = [];
@@ -33,12 +33,10 @@ export class ServicesComponent implements OnInit, OnDestroy, AfterViewInit {
}[] = []; }[] = [];
constructor( constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService, private deviceService: DeviceDetectorService,
private titleService: Title, private titleService: Title,
private translate: TranslateService, private translate: TranslateService,
private http: HttpClient, private http: HttpClient
@Inject(PLATFORM_ID) private platformId: Object
) {} ) {}
switchTab(serviceIndex: number, tab: string): void { switchTab(serviceIndex: number, tab: string): void {
@@ -48,9 +46,6 @@ export class ServicesComponent implements OnInit, OnDestroy, AfterViewInit {
ngOnInit() { ngOnInit() {
this.titleService.setTitle('Services | itzMiney'); this.titleService.setTitle('Services | itzMiney');
this.isMobile = this.deviceService.isMobile; this.isMobile = this.deviceService.isMobile;
if (isPlatformBrowser(this.platformId)) {
window.addEventListener('resize', this.onResize.bind(this));
}
this.loadServices(); this.loadServices();
this.translate.onLangChange.subscribe(() => this.loadServices()); this.translate.onLangChange.subscribe(() => this.loadServices());
} }
@@ -145,24 +140,6 @@ export class ServicesComponent implements OnInit, OnDestroy, AfterViewInit {
}); });
} }
ngAfterViewInit() {
this.vantaService.initVanta(this.elementId, {
color: 0x7272bd,
backgroundColor: 0x291c3c
});
}
ngOnDestroy() {
this.vantaService.destroyVanta(this.elementId);
if (isPlatformBrowser(this.platformId)) {
window.removeEventListener('resize', this.onResize);
}
}
onResize() {
// Update the minHeight and minWidth when the window is resized
this.vantaService.resizeVanta(this.elementId);
}
checkout(priceId: string): void { checkout(priceId: string): void {
this.http.post<any>(this.apiUrl, { priceId }).subscribe({ this.http.post<any>(this.apiUrl, { priceId }).subscribe({
next: (response) => { next: (response) => {
+39 -12
View File
@@ -3,7 +3,7 @@
top: 20px; top: 20px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
width: auto; width: 100%;
padding: 10px 13px; padding: 10px 13px;
border-radius: 50px; border-radius: 50px;
z-index: 1000; z-index: 1000;
@@ -19,16 +19,16 @@
.navbar a { .navbar a {
color: white; color: white;
background-color: #39354A; background-color: rgba(57, 53, 74, 0.5);
text-decoration: none; text-decoration: none;
font-size: 16px; font-size: 16px;
padding: 10px 20px; padding: 10px 20px;
border-radius: 25px; border-radius: 20px 10px;
transition: all 0.3s ease; transition: all 0.3s ease;
} }
.navbar a:hover { .navbar a:hover {
background-color: #362e51; background-color: rgba(54, 46, 81, 0.75);
color: #fff; color: #fff;
transform: scale(1.1); transform: scale(1.1);
} }
@@ -40,23 +40,52 @@
} }
.language-switch { .language-switch {
display: block;
position: absolute; position: absolute;
right: -150px; right: 40px;
width: 80px;
height: 25px;
padding: 6px;
border-radius: 25px;
background-color: rgba(57, 53, 74, 0.5);
}
.language-switch:before {
content: "";
position: absolute;
top: 6px;
left: 6px;
width: calc(50% - 12px);
height: calc(100% - 12px);
border-radius: 25px;
background: #fff;
z-index: 0;
transition: transform 0.3s ease;
}
.language-switch[data-active="de"]::before {
transform: translateX(calc(100% + 12px));
} }
.language-switch button { .language-switch button {
padding: 4px 8px; position: relative;
z-index: 0;
flex: 1 1 50%;
height: 100%;
width: calc(50% - 3px);
border-radius: 25px;
background: transparent; background: transparent;
color: #fff; color: #fff;
border: none; border: none;
font-size: 14px; font-size: 0.8rem;
font-weight: bold;
cursor: pointer; cursor: pointer;
text-decoration: none;
font-family: Roboto, serif; font-family: Roboto, serif;
transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
} }
.language-switch button:hover { .language-switch button:hover {
text-decoration: underline; background-color: #4b4761;
} }
.language-switch button.active { .language-switch button.active {
@@ -65,10 +94,8 @@
} }
.language-switch button.en { .language-switch button.en {
margin-right: 8px; margin-right: 6px;
border-radius: 25px;
} }
.language-switch button.de { .language-switch button.de {
border-radius: 25px;
} }
@@ -0,0 +1,95 @@
@keyframes fadeIn {
0% {
opacity: 0;
visibility: hidden;
}
100% {
opacity: 1;
visibility: visible;
}
}
#bg-base {
animation: fadeIn 1s ease-out;
position: fixed;
inset: 0;
z-index: -105;
overflow: hidden;
pointer-events: none;
}
.bg {
position: absolute;
inset: 0;
}
#parallax-scene {
animation: fadeIn 1s ease-out;
position: fixed;
inset: 0;
z-index: -100;
overflow: hidden;
pointer-events: none;
}
.parallax-layer {
position: absolute;
inset: 0;
will-change: transform;
}
.layer {
position: absolute;
}
.triangles {
top: 0;
left: -10vw;
width: 120vw;
height: 100vh;
background-image: url('/assets/triangle_tile.svg');
background-repeat: repeat;
background-size: 320px 320px;
background-position: center top;
opacity: 0.18;
animation: arrowsScroll 15s linear infinite;
}
@keyframes arrowsScroll {
from {
background-position: 0 0;
}
to {
background-position: 320px 0;
}
}
.mist {
top: -20vh;
left: -20vw;
width: 140vw;
height: 140vh;
opacity: 0.18;
filter: blur(28px);
background:
radial-gradient(circle at 35% 35%, rgba(255,255,255,0.08), transparent 16%),
radial-gradient(circle at 60% 50%, rgba(180,180,220,0.06), transparent 18%),
radial-gradient(circle at 45% 75%, rgba(255,255,255,0.04), transparent 14%);
}
.flare {
position: absolute;
top: -40vh;
left: -40vw;
width: 180vw;
height: 180vw;
pointer-events: none;
background:
radial-gradient(circle at -10% 30%, rgba(187, 107, 209, 0.35) 0%, transparent 40%),
radial-gradient(circle at 110% 40%, rgba(120, 255, 183, 0.28) 0%, transparent 45%),
radial-gradient(circle at 50% 120%, rgba(99, 155, 255, 0.18) 0%, transparent 50%);
filter: blur(60px);
opacity: 0.6;
}
@@ -0,0 +1,15 @@
<div id="bg-base" [style.background]="baseColor">
<div class="bg"></div>
</div>
<div #parallax id="parallax-scene">
<div data-depth="0.01" class="parallax-layer">
<div class="layer flare"></div>
</div>
<div data-depth="0.06" class="parallax-layer">
<div class="layer triangles"></div>
</div>
<div data-depth="0.10" class="parallax-layer">
<div class="layer mist"></div>
</div>
</div>
@@ -0,0 +1,52 @@
import {AfterViewInit, Component, ElementRef, Inject, OnDestroy, OnInit, PLATFORM_ID, ViewChild, Input} from '@angular/core';
import {DeviceDetectorService} from '../services/device-detector.service';
import {isPlatformBrowser} from '@angular/common';
import Parallax from 'parallax-js';
@Component({
selector: 'app-parallax',
imports: [],
templateUrl: './parallax.component.html',
styleUrl: './parallax.component.css',
})
export class ParallaxComponent implements OnInit, OnDestroy, AfterViewInit {
@ViewChild('parallax') sceneRef!: ElementRef<HTMLDivElement>;
@Input() baseColor: string = '#0b0b0f';
@Input() bgGradient: string =
'radial-gradient(circle 120vw at center, rgba(90,78,130,0.32), transparent 40%), linear-gradient(180deg,#1b172c 0%, #0b0b0f 100%)';
isMobile: boolean = false;
private parallaxInstance: Parallax | null = null;
constructor(
private deviceService: DeviceDetectorService,
@Inject(PLATFORM_ID) private platformId: Object
) {
}
ngOnInit() {
this.isMobile = this.deviceService.isMobile;
}
ngAfterViewInit() {
if (!isPlatformBrowser(this.platformId)) return;
if (!this.sceneRef?.nativeElement) return;
this.parallaxInstance = new Parallax(this.sceneRef.nativeElement, {
relativeInput: true,
hoverOnly: false,
clipRelativeInput: true,
calibrateX: true,
calibrateY: true,
scalarX: this.isMobile ? 6 : 12,
scalarY: this.isMobile ? 6 : 12,
frictionX: 0.1,
frictionY: 0.1,
});
}
ngOnDestroy() {
this.parallaxInstance?.destroy();
this.parallaxInstance = null;
}
}
@@ -1,52 +0,0 @@
import {Inject, Injectable, PLATFORM_ID} from '@angular/core';
import {isPlatformBrowser} from '@angular/common';
@Injectable({
providedIn: 'root',
})
export class VantaBackgroundService {
private vantaEffect: Map<string, any> = new Map();
constructor(
@Inject(PLATFORM_ID) private platformId: Object,
) {}
initVanta(elementId: string, options?: any) {
if (isPlatformBrowser(this.platformId)) {
const element = document.getElementById(elementId);
if (element && !this.vantaEffect.has(elementId)) {
(window as any).VANTA.NET({
el: element,
mouseControls: false,
touchControls: false,
gyroControls: false,
scale: 1.0,
scaleMobile: 1.0,
points: 12.0,
maxDistance: 30.0,
spacing: 25.0,
showDots: false,
minWidth: window.innerWidth,
minHeight: window.innerHeight,
...(options || {}),
});
element.style.position = 'fixed';
}
}
}
resizeVanta(elementId: string): void {
const effect = this.vantaEffect.get(elementId);
if (effect) {
effect.resize();
}
}
destroyVanta(elementId: string): void {
const effect = this.vantaEffect.get(elementId);
if (effect) {
effect.destroy();
this.vantaEffect.delete(elementId);
}
}
}
+3 -12
View File
@@ -9,16 +9,6 @@
} }
} }
#vanta-socials-bg {
animation: fadeIn 1s ease-out;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: -100;
}
.height-container { .height-container {
min-height: 100vh; min-height: 100vh;
align-content: center; align-content: center;
@@ -47,11 +37,12 @@
.socials-header h1 { .socials-header h1 {
font-size: 2.5rem; font-size: 2.5rem;
background: transparent; 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; margin: 8px auto 8px auto;
max-width: 220px; max-width: 220px;
padding: 10px; padding: 10px;
border-radius: 45px;
} }
.social-links { .social-links {
+9 -1
View File
@@ -1,4 +1,12 @@
<div id="vanta-socials-bg"></div> <app-parallax
[baseColor]="'#1a1030'"
[bgGradient]="
'radial-gradient(circle 120vw at center, rgba(124, 78, 255, 0.25) 0%, rgba(124, 78, 255, 0) 45%),\n'+
'radial-gradient(circle at top left, rgba(178, 120, 255, 0.15) 0%, rgba(178, 120, 255, 0) 35%),\n'+
'radial-gradient(circle at bottom right, rgba(90, 40, 180, 0.35) 0%, rgba(90, 40, 180, 0) 40%),\n'+
'linear-gradient(180deg, #2a1647 0%, #1a1030 100%)'
">
</app-parallax>
<div class="height-container"> <div class="height-container">
<div class="socials-container"> <div class="socials-container">
<div class="socials-header" [ngStyle]="{'margin-top': isMobile ? '80px' : '120px'}"> <div class="socials-header" [ngStyle]="{'margin-top': isMobile ? '80px' : '120px'}">
+7 -30
View File
@@ -1,52 +1,29 @@
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core'; import {Component, OnInit} from '@angular/core';
import {isPlatformBrowser, NgStyle} from '@angular/common'; import {NgStyle} from '@angular/common';
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
import {DeviceDetectorService} from '../shared/services/device-detector.service'; import {DeviceDetectorService} from '../shared/services/device-detector.service';
import {Title} from '@angular/platform-browser'; import {Title} from '@angular/platform-browser';
import {TranslatePipe} from '@ngx-translate/core'; import {TranslatePipe} from '@ngx-translate/core';
import {ParallaxComponent} from '../shared/parallax/parallax.component';
@Component({ @Component({
selector: 'app-socials', selector: 'app-socials',
imports: [ imports: [
NgStyle, NgStyle,
TranslatePipe TranslatePipe,
ParallaxComponent
], ],
templateUrl: './socials.component.html', templateUrl: './socials.component.html',
styleUrl: './socials.component.css' styleUrl: './socials.component.css'
}) })
export class SocialsComponent implements OnInit, OnDestroy, AfterViewInit { export class SocialsComponent implements OnInit {
private readonly elementId = 'vanta-socials-bg';
isMobile: boolean = false; isMobile: boolean = false;
constructor( constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService, private deviceService: DeviceDetectorService,
private titleService: Title, private titleService: Title
@Inject(PLATFORM_ID) private platformId: Object
) {} ) {}
ngOnInit() { ngOnInit() {
this.titleService.setTitle('Socials | itzMiney'); this.titleService.setTitle('Socials | itzMiney');
this.isMobile = this.deviceService.isMobile; 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);
} }
} }
-10
View File
@@ -9,16 +9,6 @@
} }
} }
#vanta-tos-bg {
animation: fadeIn 1s ease-out;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: -100;
}
.tos-container { .tos-container {
position: relative; position: relative;
color: white; color: white;
+7 -1
View File
@@ -1,4 +1,10 @@
<div id="vanta-tos-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="height-container">
<div class="tos-container"> <div class="tos-container">
<div class="floating-nav" [class.hidden]="isMobile"> <div class="floating-nav" [class.hidden]="isMobile">
+7 -26
View File
@@ -1,31 +1,29 @@
import {AfterViewInit, Component, Inject, OnDestroy, OnInit, PLATFORM_ID} from '@angular/core'; import {AfterViewInit, Component, OnInit,} from '@angular/core';
import {VantaBackgroundService} from '../shared/services/vanta-background.service';
import {DeviceDetectorService} from '../shared/services/device-detector.service'; import {DeviceDetectorService} from '../shared/services/device-detector.service';
import {Title} from '@angular/platform-browser'; import {Title} from '@angular/platform-browser';
import {isPlatformBrowser, NgIf} from '@angular/common'; import {NgIf} from '@angular/common';
import {TranslatePipe} from '@ngx-translate/core'; import {TranslatePipe} from '@ngx-translate/core';
import {ParallaxComponent} from '../shared/parallax/parallax.component';
@Component({ @Component({
selector: 'app-services', selector: 'app-services',
imports: [ imports: [
NgIf, NgIf,
TranslatePipe TranslatePipe,
ParallaxComponent
], ],
templateUrl: './tos.component.html', templateUrl: './tos.component.html',
styleUrl: './tos.component.css' styleUrl: './tos.component.css'
}) })
export class TosComponent implements OnInit, OnDestroy, AfterViewInit { export class TosComponent implements OnInit, AfterViewInit {
private readonly elementId = 'vanta-tos-bg';
isMobile: boolean = false; isMobile: boolean = false;
activeSection: string = ''; activeSection: string = '';
copiedSection: string | null = null; copiedSection: string | null = null;
constructor( constructor(
private vantaService: VantaBackgroundService,
private deviceService: DeviceDetectorService, private deviceService: DeviceDetectorService,
private titleService: Title, private titleService: Title
@Inject(PLATFORM_ID) private platformId: Object
) {} ) {}
scrollToSection(event: Event, targetId: string): void { scrollToSection(event: Event, targetId: string): void {
@@ -44,28 +42,11 @@ export class TosComponent implements OnInit, OnDestroy, AfterViewInit {
ngOnInit() { ngOnInit() {
this.titleService.setTitle('Terms of Service | itzMiney'); this.titleService.setTitle('Terms of Service | itzMiney');
this.isMobile = this.deviceService.isMobile; this.isMobile = this.deviceService.isMobile;
if (isPlatformBrowser(this.platformId)) {
window.addEventListener('resize', this.onResize.bind(this));
}
} }
ngAfterViewInit() { ngAfterViewInit() {
this.vantaService.initVanta(this.elementId, {
color: 0x5b417a,
backgroundColor: 0x41e3c
});
this.initScrollTracking(); 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 { initScrollTracking(): void {
const sections = Array.from(document.querySelectorAll('section')) as HTMLElement[]; const sections = Array.from(document.querySelectorAll('section')) as HTMLElement[];
-2
View File
@@ -2,8 +2,6 @@
<html lang="en"> <html lang="en">
<head> <head>
<script src="https://www.youtube.com/iframe_api"></script> <script src="https://www.youtube.com/iframe_api"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
<title>itzMiney's Home</title> <title>itzMiney's Home</title>
<meta charset="utf-8"> <meta charset="utf-8">
<base href="/"> <base href="/">