Compare commits
4 Commits
0b88d4e670
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
054715688f | ||
|
|
cb044eb720 | ||
|
|
b1a16e6bb8 | ||
|
|
0979f62718 |
Binary file not shown.
|
Before Width: | Height: | Size: 3.2 MiB After Width: | Height: | Size: 84 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 629 KiB |
@@ -20,7 +20,7 @@ export class Background {
|
||||
private minBlink = 0.2;
|
||||
private maxBlink = 1;
|
||||
private blinkSpeed = 0.002; // Stern blinkt langsamer oder schneller
|
||||
private maxSpeed = 0.1; // Sternbewegungsgeschwindigkeit
|
||||
private maxSpeed = .8; // Sternbewegungsgeschwindigkeit
|
||||
private parallaxFactor = 0.5; // Scroll-Parallax-Faktor
|
||||
|
||||
// Feature toggles
|
||||
@@ -47,8 +47,6 @@ export class Background {
|
||||
|
||||
this.bodyHeight = document.body.scrollHeight + 110; // navbar height
|
||||
|
||||
console.log(this.bodyHeight)
|
||||
|
||||
for (let i = 0; i < this.numStars * (this.bodyHeight / this.height); i++) {
|
||||
this.stars.push({
|
||||
x: Math.random() * this.width,
|
||||
|
||||
@@ -73,5 +73,4 @@
|
||||
<div class="block md:hidden w-full h-full fixed top-0 left-0 z-40 backdrop-blur-md"></div>
|
||||
}
|
||||
|
||||
<div class="blur blur1"></div>
|
||||
<div class="blur blur2"></div>
|
||||
<div class="z-10 backdrop-blur-xl fixed top-0 left-0 w-full h-[150px] mask-b-from-70%"></div>
|
||||
|
||||
@@ -35,33 +35,6 @@ ul li a {
|
||||
}
|
||||
|
||||
.mobile-menu ul li a {
|
||||
font-size: 1.3rem;
|
||||
font-size: 1rem;
|
||||
padding: 15px 30px;
|
||||
}
|
||||
|
||||
.blur {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.blur1 {
|
||||
z-index: 10;
|
||||
backdrop-filter: blur(3px);
|
||||
mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
|
||||
-webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
|
||||
}
|
||||
|
||||
.blur2 {
|
||||
z-index: 20;
|
||||
backdrop-filter: blur(5px);
|
||||
mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 1) 100%);
|
||||
-webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 1) 100%);
|
||||
}
|
||||
|
||||
.blurred {
|
||||
backdrop-filter: blur(5px);
|
||||
}
|
||||
@@ -1,16 +1,12 @@
|
||||
<main class="flex flex-row flex-wrap justify-center items-center gap-10 py-10">
|
||||
<div class="lg:w-[40%] w-[80%] text-center lg:text-left"
|
||||
<main class="flex flex-row flex-wrap justify-center items-center gap-10 py-10"
|
||||
pAnimateOnScroll
|
||||
enterClass="animate-enter fade-in-10 slide-in-from-{{ isMobile() ? 't' : 'l' }}-8 animate-duration-1000"
|
||||
leaveClass="animate-leave fade-out-0">
|
||||
enterClass="animate-enter fade-in-10 slide-in-from-t-8 animate-duration-1000">
|
||||
<div class="lg:w-[40%] w-[80%] text-center lg:text-left">
|
||||
<span class="block text-[3rem]/[1.1] lg:text-[4rem]/[1.1] font-bold mb-4" [innerHTML]="'home.header' | translate"></span>
|
||||
<span class="block text-[1rem]/[1.3] lg:text-[1.5rem]/[1.3] text-gray">{{ 'home.subheader' | translate }}</span>
|
||||
<a class="block mt-5" href="https://www.google.com/maps/place/Dobersberg,+Nieder%C3%B6sterreich" target="_blank"><p-chip label="Dobersberg, Niederösterreich" icon="fa-solid fa-location-dot"/></a>
|
||||
</div>
|
||||
<div class="lg:w-[30%] w-[80%] text-center"
|
||||
pAnimateOnScroll
|
||||
enterClass="animate-enter fade-in-10 slide-in-from-{{ isMobile() ? 'b' : 'r' }}-8 animate-duration-1000"
|
||||
leaveClass="animate-leave fade-out-0">
|
||||
<div class="lg:w-[30%] w-[80%] text-center">
|
||||
<img src="img/me.png" alt="">
|
||||
<div class="pt-5 p-3 flex gap-3 flex-wrap justify-center">
|
||||
<a pButton outlined severity="secondary" label="nico@td-haider.at" icon="fa-solid fa-envelope" href="mailto:nico@td-haider.at"></a>
|
||||
|
||||
@@ -13,8 +13,4 @@ import { AnimateOnScrollModule } from 'primeng/animateonscroll';
|
||||
})
|
||||
export class Home {
|
||||
|
||||
isMobile() {
|
||||
return window.innerWidth < 1024;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user