From 595db7c3983907b5afe792cfaecc1d9599faa2ba Mon Sep 17 00:00:00 2001 From: Julian Lechner Date: Thu, 24 Jul 2025 14:44:39 +0200 Subject: [PATCH 1/5] feat: pre-render routes and restore scroll --- angular.json | 4 +++- src/app/app.config.ts | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/angular.json b/angular.json index 3fa3689..845bdba 100644 --- a/angular.json +++ b/angular.json @@ -37,7 +37,9 @@ ], "scripts": [], "server": "src/main.server.ts", - "prerender": true, + "prerender": { + "routes": ["/", "/imprint"] + }, "ssr": { "entry": "src/server.ts" } diff --git a/src/app/app.config.ts b/src/app/app.config.ts index d1d4f3c..24fa5b8 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -1,5 +1,5 @@ import {ApplicationConfig, importProvidersFrom, provideZoneChangeDetection} from '@angular/core'; -import {provideRouter} from '@angular/router'; +import {provideRouter, withInMemoryScrolling} from '@angular/router'; import {BrowserModule, provideClientHydration, withEventReplay} from '@angular/platform-browser'; import {routes} from './app.routes'; @@ -8,7 +8,10 @@ import {provideAnimations} from '@angular/platform-browser/animations'; export const appConfig: ApplicationConfig = { providers: [ provideZoneChangeDetection({eventCoalescing: true}), - provideRouter(routes), + provideRouter(routes, withInMemoryScrolling({ + anchorScrolling: 'enabled', + scrollPositionRestoration: 'top' + })), provideClientHydration(withEventReplay()), importProvidersFrom(BrowserModule), provideAnimations() From 31c02fcc653aafe31bae5d1de53a0cc7d0f5ef20 Mon Sep 17 00:00:00 2001 From: Julian lechner Date: Thu, 24 Jul 2025 15:08:16 +0200 Subject: [PATCH 2/5] improve performence; updated information --- angular.json | 4 +--- package-lock.json | 4 ++-- src/app/home/home.component.html | 6 ++---- src/app/imprint/imprint.component.ts | 2 +- src/global.fields.ts | 4 ++-- 5 files changed, 8 insertions(+), 12 deletions(-) diff --git a/angular.json b/angular.json index 845bdba..3fa3689 100644 --- a/angular.json +++ b/angular.json @@ -37,9 +37,7 @@ ], "scripts": [], "server": "src/main.server.ts", - "prerender": { - "routes": ["/", "/imprint"] - }, + "prerender": true, "ssr": { "entry": "src/server.ts" } diff --git a/package-lock.json b/package-lock.json index efc461b..fed9128 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "angular-portfolio-seite", - "version": "3.0.10", + "version": "3.1.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "angular-portfolio-seite", - "version": "3.0.10", + "version": "3.1.11", "dependencies": { "@angular/animations": "^19.2.14", "@angular/cdk": "^19.2.19", diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html index 5f6c493..9e1d3b2 100644 --- a/src/app/home/home.component.html +++ b/src/app/home/home.component.html @@ -9,7 +9,7 @@ fetchpriority="high" alt="profile picture" srcset="Logo.webp 1x, Logo.webp 2x" - (click)="openStalkerInfo()" /> + (click)="openStalkerInfo()"/>

Hallo! 👋 I'm {{ globalFields.firstname }} {{ globalFields.lastname }}!

📍 Austria, Vienna

@@ -70,9 +70,7 @@
- - - + diff --git a/src/app/imprint/imprint.component.ts b/src/app/imprint/imprint.component.ts index a7c33b6..32ebf47 100644 --- a/src/app/imprint/imprint.component.ts +++ b/src/app/imprint/imprint.component.ts @@ -23,7 +23,7 @@ export class ImprintComponent implements OnInit { protected readonly zip: number = 3380; protected readonly city: string = 'Pöchlarn'; protected readonly country: string = 'Austria'; - protected readonly abuseMail: string = 'abuse@fraujulian.xyz'; + protected readonly abuseMail: string = 'abuse@lechner-systems.at'; protected contactSafeMail!: SafeUrl; protected abuseSafeMail!: SafeUrl; diff --git a/src/global.fields.ts b/src/global.fields.ts index b934913..83c85c1 100644 --- a/src/global.fields.ts +++ b/src/global.fields.ts @@ -1,9 +1,9 @@ export class globalFields { public static readonly firstname: string = 'Julian'; public static readonly lastname: string = 'Lechner'; - public static readonly contactMail: string = 'contact@fraujulian.xyz'; + public static readonly contactMail: string = 'office@lechner-systems.at'; public static readonly contactPhone: string = '+43 (0) 660 9254001'; - public static readonly hrefContactPhone: string = 'contact@fraujulian.xyz'; + public static readonly hrefContactPhone: string = '+436609254001'; public static readonly githubUsername: string = 'FrauJulian'; public static readonly numberOfLoadedRepositories: number = 999; } From fb1bc571d25de4dc99e5557d3d64ecb25b1c887a Mon Sep 17 00:00:00 2001 From: Lechner Julian - FrauJulian Date: Fri, 25 Jul 2025 14:36:40 +0200 Subject: [PATCH 3/5] added fab class to envelope icon --- src/app/home/home.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html index 9e1d3b2..528ca08 100644 --- a/src/app/home/home.component.html +++ b/src/app/home/home.component.html @@ -70,7 +70,7 @@
- + From 02e2a3112e562f0ba30914cbc02703c0b2ff7470 Mon Sep 17 00:00:00 2001 From: Julian Lechner Date: Fri, 25 Jul 2025 14:40:21 +0200 Subject: [PATCH 4/5] Update src/global.fields.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/global.fields.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/global.fields.ts b/src/global.fields.ts index 83c85c1..2d34940 100644 --- a/src/global.fields.ts +++ b/src/global.fields.ts @@ -3,7 +3,7 @@ public static readonly lastname: string = 'Lechner'; public static readonly contactMail: string = 'office@lechner-systems.at'; public static readonly contactPhone: string = '+43 (0) 660 9254001'; - public static readonly hrefContactPhone: string = '+436609254001'; + public static readonly hrefContactTel: string = '+436609254001'; public static readonly githubUsername: string = 'FrauJulian'; public static readonly numberOfLoadedRepositories: number = 999; } From b329335cdc8d2353cbab9dad8ee0c3197462cf69 Mon Sep 17 00:00:00 2001 From: Lechner Julian - FrauJulian Date: Fri, 25 Jul 2025 14:42:36 +0200 Subject: [PATCH 5/5] updated hrefContactTel --- src/app/home/home.component.html | 2 +- src/app/imprint/imprint.component.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html index 528ca08..40cc4cb 100644 --- a/src/app/home/home.component.html +++ b/src/app/home/home.component.html @@ -73,7 +73,7 @@ - + diff --git a/src/app/imprint/imprint.component.html b/src/app/imprint/imprint.component.html index a79706f..32ecaa4 100644 --- a/src/app/imprint/imprint.component.html +++ b/src/app/imprint/imprint.component.html @@ -13,7 +13,7 @@

Contact:

- Phone: {{ globalFields.contactPhone }}
+ Phone: {{ globalFields.contactPhone }}
E-Mail: {{ globalFields.contactMail }}