From 293a06e9a4875a2a54136b61e11cd610bc6fca04 Mon Sep 17 00:00:00 2001 From: itzMiney Date: Tue, 17 Mar 2026 01:43:28 +0100 Subject: [PATCH 1/4] added smooth page transitions --- src/app/app.component.html | 4 +++- src/app/app.config.ts | 11 ++++++++--- src/styles.css | 6 ++++++ 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index a79df5e..5b1262a 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -7,7 +7,9 @@ } } - + + + @if (showFooter) { } diff --git a/src/app/app.config.ts b/src/app/app.config.ts index 2fa285c..761b2cd 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -1,6 +1,5 @@ import {ApplicationConfig, importProvidersFrom, provideZoneChangeDetection} from '@angular/core'; -import {provideRouter} from '@angular/router'; - +import {provideRouter, withInMemoryScrolling, withViewTransitions} from '@angular/router'; import {routes} from './app.routes'; import {provideAnimationsAsync} from '@angular/platform-browser/animations/async'; import {provideClientHydration, withEventReplay} from '@angular/platform-browser'; @@ -17,7 +16,13 @@ export function createTranslateLoader(http: HttpClient) { export const appConfig: ApplicationConfig = { providers: [ provideZoneChangeDetection({ eventCoalescing: true }), - provideRouter(routes), + provideRouter(routes, + withViewTransitions(), + withInMemoryScrolling({ + scrollPositionRestoration: 'top', + anchorScrolling: 'enabled' + }) + ), provideAnimationsAsync(), provideClientHydration(withEventReplay()), provideHttpClient(), diff --git a/src/styles.css b/src/styles.css index d863ea0..ee939ea 100644 --- a/src/styles.css +++ b/src/styles.css @@ -11,3 +11,9 @@ body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; } + +::view-transition-old(root), +::view-transition-new(root) { + animation-duration: 220ms; + animation-timing-function: ease; +} From 357e1b6cf38889c1fadd5c1f8980872808407cb7 Mon Sep 17 00:00:00 2001 From: itzMiney Date: Tue, 17 Mar 2026 01:44:26 +0100 Subject: [PATCH 2/4] refactor of image modal code --- .../article-page/article-page.component.ts | 126 ++++++++---------- src/app/portfolio/portfolio.component.ts | 29 +--- 2 files changed, 58 insertions(+), 97 deletions(-) diff --git a/src/app/blog/article-page/article-page.component.ts b/src/app/blog/article-page/article-page.component.ts index e0048bc..b0b8c0c 100644 --- a/src/app/blog/article-page/article-page.component.ts +++ b/src/app/blog/article-page/article-page.component.ts @@ -1,4 +1,4 @@ -import {AfterViewInit, Component, ElementRef, OnInit, ViewChild} from '@angular/core'; +import {Component, OnInit, ViewEncapsulation} from '@angular/core'; import { DatePipe, NgStyle } from '@angular/common'; import {ArticleService} from '../../shared/services/article.service'; import {ActivatedRoute} from '@angular/router'; @@ -20,6 +20,7 @@ interface Article { @Component({ selector: 'app-article-page', + encapsulation: ViewEncapsulation.None, imports: [ DatePipe, NgStyle, @@ -29,16 +30,14 @@ interface Article { templateUrl: './article-page.component.html', styleUrl: './article-page.component.css' }) -export class ArticlePageComponent implements OnInit, AfterViewInit { - @ViewChild('articleContent') articleContent!: ElementRef; +export class ArticlePageComponent implements OnInit { + selectedImage: string | null = null; - private imagesProcessed = false; - article: Article | undefined; - currentArticle: any; + article: Article | null = null; error: boolean = false; copied: boolean = false; - loading: boolean = true; + constructor( private articleService: ArticleService, private titleService: Title, @@ -49,28 +48,57 @@ export class ArticlePageComponent implements OnInit, AfterViewInit { ngOnInit() { this.route.params.subscribe((params) => { const slug = params['slug']; - if (slug) { - this.loadTitleBySlug(slug); - } else { - this.titleService.setTitle('Article | itzMiney'); - } - }); - const slug = this.route.snapshot.paramMap.get('slug') || ''; - this.articleService.getArticleBySlug(slug).subscribe( - (article) => { - this.article = article; - this.loading = false; - console.log('Article found!') - }, - (error) => { - console.error('Error fetching article:', error); - this.loading = false; - if (error.status === 404) { - this.error = true; - } + this.loading = true; + this.error = false; + this.article = null; + + if (!slug) { + this.titleService.setTitle('Error | itzMiney'); + return; } - ); + + this.articleService.getArticleBySlug(slug).subscribe({ + next: (article: Article | undefined) => { + if (!article) { + this.article = null; + this.loading = false; + this.error = true; + return; + } + + this.article = article; + this.titleService.setTitle(`${article.title} | itzMiney`); + this.loading = false; + }, + error: (error) => { + console.error('Error fetching article:', error); + this.article = null; + this.loading = false; + + if (error.status === 404) { + this.error = true; + } + } + }); + }); + } + + onArticleContentClick(event: MouseEvent) { + const target = event.target as HTMLElement; + + if (target.tagName === 'IMG') { + const img = target as HTMLImageElement; + this.openPreview(img.src); + } + } + + openPreview(src: string) { + this.selectedImage = src; + } + + closePreview() { + this.selectedImage = null; } copyLink() { @@ -84,48 +112,4 @@ export class ArticlePageComponent implements OnInit, AfterViewInit { navigator.clipboard.writeText(shareLink).then() } - - ngAfterViewInit() { - this.makeImagesClickable(); - this.imagesProcessed = true; - } - - private makeImagesClickable() { - const imgs: NodeListOf = this.articleContent.nativeElement.querySelectorAll('img'); - imgs.forEach(img => { - img.style.cursor = 'pointer'; - if (!img.dataset['clickable']) { - img.addEventListener('click', () => this.openPreview(img.src)); - img.dataset['clickable'] = 'true'; - } - }); - } - - openPreview(src: string) { - this.selectedImage = src; - } - - closePreview() { - this.selectedImage = null; - } - - loadTitleBySlug(slug: string) { - this.articleService.getArticleBySlug(slug).subscribe( - (article) => { - this.article = article; - this.loading = false; - - setTimeout(() => this.makeImagesClickable(), 0); - - console.log('Article found!') - }, - (error) => { - console.error('Error fetching article:', error); - this.loading = false; - if (error.status === 404) { - this.error = true; - } - } - ); - } } diff --git a/src/app/portfolio/portfolio.component.ts b/src/app/portfolio/portfolio.component.ts index 405f5fa..2b2448d 100644 --- a/src/app/portfolio/portfolio.component.ts +++ b/src/app/portfolio/portfolio.component.ts @@ -1,14 +1,14 @@ -import {Component, OnInit} from '@angular/core'; +import {Component, OnInit, ViewEncapsulation} from '@angular/core'; import {DeviceDetectorService} from '../shared/services/device-detector.service'; import { CommonModule, NgStyle } from '@angular/common'; import {Title} from '@angular/platform-browser'; import {AudioPlayerComponent} from '../shared/audio-player/audio-player.component'; import {TranslatePipe} from '@ngx-translate/core'; -import {animate, stagger, style, transition, trigger, query} from '@angular/animations'; import {ParallaxComponent} from '../shared/parallax/parallax.component'; @Component({ selector: 'app-portfolio', + encapsulation: ViewEncapsulation.None, imports: [ NgStyle, AudioPlayerComponent, @@ -17,30 +17,7 @@ import {ParallaxComponent} from '../shared/parallax/parallax.component'; ParallaxComponent ], templateUrl: './portfolio.component.html', - styleUrl: './portfolio.component.css', - animations: [ - trigger('fadeInOut', [ - transition(':enter', [ - style({ opacity: 0, transform: 'translateY(20px)' }), - animate('0.5s ease-out', style({ opacity: 1, transform: 'translateY(0)' })) - ]), - transition(':leave', [ - animate('0.3s ease-in', style({ opacity: 0, transform: 'translateY(20px)' })) - ]) - ]), - trigger('staggerGallery', [ - transition(':enter', [ - query('.gallery-item', [ - style({ opacity: 0, transform: 'translateY(20px)' }), - stagger(100, [ - animate('0.5s ease-out', style({ opacity: 1, transform: 'translateY(0)' })) - ]) - ], { - optional: true - }) - ]) - ]) - ] + styleUrl: './portfolio.component.css' }) export class PortfolioComponent implements OnInit { galleryItems = [ From b396728db85975c7b462bf6db2ad509daf2836f5 Mon Sep 17 00:00:00 2001 From: itzMiney Date: Tue, 17 Mar 2026 01:45:09 +0100 Subject: [PATCH 3/4] refactored audio-player component --- .../audio-player/audio-player.component.css | 15 +++++++++++++-- .../audio-player/audio-player.component.html | 2 +- .../audio-player/audio-player.component.ts | 18 +++++++++++++++--- 3 files changed, 29 insertions(+), 6 deletions(-) diff --git a/src/app/shared/audio-player/audio-player.component.css b/src/app/shared/audio-player/audio-player.component.css index 9e5c3ad..61432fa 100644 --- a/src/app/shared/audio-player/audio-player.component.css +++ b/src/app/shared/audio-player/audio-player.component.css @@ -44,12 +44,23 @@ } .audio-player { + display: flex; + flex-direction: column; position: fixed; - bottom: 10px; - left: 20px; + width: 340px; + height: 130px; + bottom: 0; + left: 0; + align-items: center; + justify-content: center; z-index: 10; } +.audio-player.mobile { + background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)); + width: 100%; +} + .audio-player h3 { margin-left: 15px; text-align: center; diff --git a/src/app/shared/audio-player/audio-player.component.html b/src/app/shared/audio-player/audio-player.component.html index 7484b44..95ff82f 100644 --- a/src/app/shared/audio-player/audio-player.component.html +++ b/src/app/shared/audio-player/audio-player.component.html @@ -1,4 +1,4 @@ -
+

{{ nowPlayingTitle() }}

diff --git a/src/app/shared/audio-player/audio-player.component.ts b/src/app/shared/audio-player/audio-player.component.ts index 4a77b64..5518e1d 100644 --- a/src/app/shared/audio-player/audio-player.component.ts +++ b/src/app/shared/audio-player/audio-player.component.ts @@ -1,4 +1,6 @@ -import {Component, AfterViewInit, signal} from '@angular/core'; +import {Component, AfterViewInit, signal, OnInit} from '@angular/core'; +import {DeviceDetectorService} from '../services/device-detector.service'; +import {NgClass} from '@angular/common'; declare global { @@ -10,16 +12,26 @@ declare global { @Component({ selector: 'app-audio-player', - imports: [], + imports: [ + NgClass + ], templateUrl: './audio-player.component.html', styleUrl: './audio-player.component.css' }) -export class AudioPlayerComponent implements AfterViewInit { +export class AudioPlayerComponent implements AfterViewInit, OnInit { + isMobile: boolean = false; private player: any; + isPlayerReady = signal(false); isPlaying = signal(false); nowPlayingTitle = signal(''); + constructor(private deviceService: DeviceDetectorService) {} + + ngOnInit() { + this.isMobile = this.deviceService.isMobile; + } + ngAfterViewInit() { if (window.YT && window.YT.Player) { this.createPlayer(); From 07437e7950fd76becc5891ce0258f881a3c2bca4 Mon Sep 17 00:00:00 2001 From: itzMiney Date: Tue, 17 Mar 2026 01:45:43 +0100 Subject: [PATCH 4/4] style tweaks (mainly for mobile) --- public/i18n/de.json | 2 +- public/i18n/en.json | 2 +- src/app/about/about.component.css | 12 ++- src/app/about/about.component.html | 6 +- src/app/about/about.component.ts | 7 +- .../article-page/article-page.component.css | 80 +++++++++++++------ .../article-page/article-page.component.html | 55 ++++++++----- src/app/portfolio/portfolio.component.css | 52 +++++++++++- src/app/portfolio/portfolio.component.html | 14 +++- .../mobile-navbar/mobile-navbar.component.css | 30 +++++++ .../mobile-navbar.component.html | 6 +- .../shared/parallax/parallax.component.css | 28 +++---- src/app/socials/socials.component.html | 2 +- 13 files changed, 216 insertions(+), 80 deletions(-) diff --git a/public/i18n/de.json b/public/i18n/de.json index b40da05..aceeab1 100644 --- a/public/i18n/de.json +++ b/public/i18n/de.json @@ -30,7 +30,7 @@ "SOCIALS_SUB": "Man kann mich an vielen Orten finden", "SOCIALS_GAMES": "Spiele", - "SOCIALS_COMMS": "Spenden und Freelance Aufträge", + "SOCIALS_COMMS": "Spenden", "SERVS_TITLE": "Leistungen", "SERVS": "Willkommen!

Hier kannst du Freelance-Leistungen von mir in Web-Development and Design beauftragen!
Sieh dir auch gerne mein Portfolio an um meine bisherige Arbeiten zu betrachten. Wenn dir gefällt was ich tue, würde ich mich sehr freuen über einen Auftrag von dir zu einer der Leistungen die ich hier anbiete!
Wenn du dich interressierst, schick mir gerne eine E-Mail an michael@itzminey.dev mit der Leistung die du beantragen willst, zusammen mit allen relevanten Details und Spezifikationen.
Bitte kontaktiere mich auch unter der oben genannten E-Mail-Adresse oder über die Kontaktschaltfläche unten, um einen genauen Kostenvoranschlag zu erhalten oder ein individuelles Pauschalpaket zu besprechen, das auf deine spezifischen Bedürfnisse zugeschnitten ist.", diff --git a/public/i18n/en.json b/public/i18n/en.json index 9a1fff5..d013c0f 100644 --- a/public/i18n/en.json +++ b/public/i18n/en.json @@ -31,7 +31,7 @@ "SOCIALS_SUB": "You can find me in a lotta places", "SOCIALS_GAMES": "Games", - "SOCIALS_COMMS": "Donations & Commissions", + "SOCIALS_COMMS": "Donations", "SERVS_TITLE": "My Services", "SERVS": "Welcome!

Here is where I offer freelance services in web development and design!
Feel free to check out my Portfolio to see some of my previous work. If you like what I do consider commissioning my services that I offer for various prices and tiers here on this site!
If you're interested, feel free to email me at michael@itzminey.dev with the service you're requesting, along with any relevant details and specifications.
Please also contact me at the above mail or with the contact button below for a precise estimate or to discuss a customized flat-rate package tailored to your specific needs.", diff --git a/src/app/about/about.component.css b/src/app/about/about.component.css index 7a3d66f..78a2954 100644 --- a/src/app/about/about.component.css +++ b/src/app/about/about.component.css @@ -43,7 +43,6 @@ a { } .about-header h1 { - font-size: 5rem; margin-bottom: 0; font-weight: 700; background: linear-gradient(45deg, #c3acff 0%, #a6ffb0 100%); @@ -121,7 +120,6 @@ a { .about-content { max-width: 900px; margin: 0 auto; - padding: 0 25px; font-size: 1.2rem; line-height: 1.6; } @@ -158,29 +156,29 @@ a { .terminal-bg { background: #1b1920; - padding: 2px 22px 11px 22px; + padding: 8px 22px 11px 22px; margin: 0 0 80px 0; border-radius: 0 0 20px 20px; } .terminal-bg h2 { - line-height: 0.5; + line-height: 1.2; + margin: 8px 0; } .terminal-bg a.secret { color: white; } -::ng-deep.terminal-bg a { +.terminal-bg a { color: #cb84df; } -::ng-deep.terminal-bg p { +.terminal-bg p { font-size: 1rem; } .cursorblink { - margin-left: 8px; animation: cursorBlink 1.25s infinite; } diff --git a/src/app/about/about.component.html b/src/app/about/about.component.html index 8adb95f..404a3a6 100644 --- a/src/app/about/about.component.html +++ b/src/app/about/about.component.html @@ -8,7 +8,7 @@
-

itzMiney

+

itzMiney

{{ 'ABOUT_SUB' | translate}}

@@ -18,7 +18,7 @@
-
+

Konsole

🟡 🟣 🔴

@@ -60,7 +60,7 @@
-

$█

+

$ █

diff --git a/src/app/about/about.component.ts b/src/app/about/about.component.ts index 5b01764..bd61616 100644 --- a/src/app/about/about.component.ts +++ b/src/app/about/about.component.ts @@ -1,15 +1,18 @@ -import {Component, OnInit} from '@angular/core'; +import {Component, OnInit, ViewEncapsulation} 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'; +import {NgStyle} from '@angular/common'; @Component({ selector: 'app-about', + encapsulation: ViewEncapsulation.None, templateUrl: './about.component.html', imports: [ TranslatePipe, - ParallaxComponent + ParallaxComponent, + NgStyle ], styleUrls: ['./about.component.css'] }) diff --git a/src/app/blog/article-page/article-page.component.css b/src/app/blog/article-page/article-page.component.css index 56fdaa0..093afae 100644 --- a/src/app/blog/article-page/article-page.component.css +++ b/src/app/blog/article-page/article-page.component.css @@ -1,14 +1,3 @@ -@keyframes fadeIn { - 0% { - opacity: 0; - visibility: hidden; - } - 100% { - opacity: 1; - visibility: visible; - } -} - .height-container { display: flex; min-height: 100vh; @@ -124,15 +113,16 @@ h1 { animation: spin 1s linear infinite; } -::ng-deep img { +.article-content img { max-width: 90%; padding: 15px; border-radius: 35px; height: auto; box-sizing: border-box; + cursor: pointer; } -::ng-deep .gallery { +.article-content .gallery { display: grid; max-width: 90vw; grid-template-columns: repeat(3, 1fr); @@ -141,14 +131,14 @@ h1 { padding: 15px; } -::ng-deep .gallery img { +.article-content .gallery img { width: 100%; height: auto; border-radius: 20px; object-fit: cover; } -::ng-deep .modal { +.modal { position: fixed; top: 0; left: 0; @@ -158,22 +148,55 @@ h1 { display: flex; justify-content: center; align-items: center; - animation: fadeIn 0.3s ease forwards; z-index: 1000; cursor: pointer; } -::ng-deep .modal img { +.modal img { max-width: 80%; max-height: 80%; border-radius: 20px; object-fit: contain; } -@keyframes fadeIn { +.modal-enter { + animation: modalFadeIn 0.25s ease forwards; +} + +.modal-leave { + animation: modalFadeOut 0.25s ease forwards; +} + +.modal-image-enter { + animation: modalImageIn 0.25s ease forwards; +} + +.modal-image-leave { + animation: modalImageOut 0.25s ease forwards; +} + +@keyframes modalFadeIn { from { opacity: 0; - transform: scale(0.95); /* optional: slight zoom effect */ + } + to { + opacity: 1; + } +} + +@keyframes modalFadeOut { + from { + opacity: 1; + } + to { + opacity: 0; + } +} + +@keyframes modalImageIn { + from { + opacity: 0; + transform: scale(0.95); } to { opacity: 1; @@ -181,6 +204,17 @@ h1 { } } +@keyframes modalImageOut { + from { + opacity: 1; + transform: scale(1); + } + to { + opacity: 0; + transform: scale(0.95); + } +} + @keyframes spin { 0% { transform: rotate(0deg); @@ -191,13 +225,13 @@ h1 { } @media (max-width: 768px) { - ::ng-deep .gallery img { + .article-content .gallery img { flex: 1 1 calc(50% - 15px); } } @media (max-width: 480px) { - ::ng-deep .gallery img { + .article-content .gallery img { gap: 0; padding: 0; flex: 1 1 100%; @@ -205,13 +239,13 @@ h1 { } @media (max-width: 480px) { - ::ng-deep img { + .article-content img { max-width: 98%; } } @media (max-width: 480px) { - ::ng-deep .modal img { + .modal img { max-width: 95%; max-height: 95%; } diff --git a/src/app/blog/article-page/article-page.component.html b/src/app/blog/article-page/article-page.component.html index 0ccb753..3b0310e 100644 --- a/src/app/blog/article-page/article-page.component.html +++ b/src/app/blog/article-page/article-page.component.html @@ -6,16 +6,24 @@ ">
- @if (!loading && article) { + + @if (loading) { +
+
+
+ } @else if (article) { +
-

{{ article.title }}

- -
+
-
- + @if (selectedImage) { - - } @else { - @if (!loading && error) { -
-

404

-

{{ 'ARTICLE_NOTFOUND' | translate }}

- -
- } - } - - @if (loading) { -
-
+ } @else if (error) { + +
+

404

+

{{ 'ARTICLE_NOTFOUND' | translate }}

+
} -
diff --git a/src/app/portfolio/portfolio.component.css b/src/app/portfolio/portfolio.component.css index a014c54..86d7372 100644 --- a/src/app/portfolio/portfolio.component.css +++ b/src/app/portfolio/portfolio.component.css @@ -107,8 +107,8 @@ text-align: center; } -::ng-deep .text-content a { - color: cornflowerblue; +.text-content a { + color: #cb84df; } .modal-backdrop { @@ -165,6 +165,54 @@ background-color: #ef85a4; } +.fade-in { + animation: fadeIn 250ms ease-out forwards; +} + +.fade-out { + animation: fadeOut 200ms ease-in forwards; +} + +.modal-enter { + animation: modalEnter 250ms ease-out forwards; +} + +.modal-leave { + animation: modalLeave 200ms ease-in forwards; +} + +@keyframes fadeIn { + from { opacity: 0; } + to { opacity: 1; } +} + +@keyframes fadeOut { + from { opacity: 1; } + to { opacity: 0; } +} + +@keyframes modalEnter { + from { + opacity: 0; + transform: scale(0.95) translateY(10px); + } + to { + opacity: 1; + transform: scale(1) translateY(0); + } +} + +@keyframes modalLeave { + from { + opacity: 1; + transform: scale(1); + } + to { + opacity: 0; + transform: scale(0.95) translateY(10px); + } +} + hr.rounded { border: 2px solid white; width: 40px; diff --git a/src/app/portfolio/portfolio.component.html b/src/app/portfolio/portfolio.component.html index 7afdfa1..9d3237d 100644 --- a/src/app/portfolio/portfolio.component.html +++ b/src/app/portfolio/portfolio.component.html @@ -31,8 +31,18 @@
@if (showModal) { -