diff --git a/assets/css/custom.css b/assets/css/custom.css index 893a881..51ae335 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -41,9 +41,7 @@ section.hero { content: ""; position: absolute; inset: 0; - background: - linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 45%), - linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 20%); + background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, transparent 40%); } .hero-fg { @@ -53,7 +51,7 @@ section.hero { height: 100%; display: flex; flex-direction: column; - justify-content: space-between; + justify-content: flex-end; align-items: center; will-change: transform; } @@ -61,10 +59,13 @@ section.hero { /* ── Hero content ─────────────────────────────────────── */ .hero-content { - padding: 4rem 2rem 0; - text-align: center; - max-width: 900px; width: 100%; + padding: 2.5rem 3rem; + text-align: center; + background: rgba(10, 8, 6, 0.38); + backdrop-filter: blur(5px); + -webkit-backdrop-filter: blur(8px); + border-top: 1px solid rgba(255, 255, 255, 0.1); } .hero-content h1 { @@ -93,7 +94,10 @@ section.hero { /* ── Scroll arrow ─────────────────────────────────────── */ .hero-scroll { - padding-bottom: 2rem; + display: flex; + justify-content: center; + padding-top: 1.25rem; + padding-bottom: 0.25rem; color: rgba(250, 250, 250, 0.6); animation: hero-fade-in 0.6s ease 0.6s both; } diff --git a/assets/js/custom.js b/assets/js/custom.js index 797dfd1..6660b6d 100644 --- a/assets/js/custom.js +++ b/assets/js/custom.js @@ -12,15 +12,13 @@ var s = window.scrollY; if (s > heroH) { ticking = false; return; } - // Background: moves at ~70% of scroll speed (30% slower) - if (heroBg) heroBg.style.transform = 'translateY(' + (s * 0.3) + 'px)'; + // Background at 55%, text at 80% — both slower than normal, image slowest + if (heroBg) heroBg.style.transform = 'translateY(' + (s * 0.45) + 'px)'; + if (heroFg) heroFg.style.transform = 'translateY(' + (s * 0.35) + 'px)'; - // Foreground text: moves at ~85% of scroll speed (15% slower) - if (heroFg) heroFg.style.transform = 'translateY(' + (s * 0.15) + 'px)'; - - // Scroll arrow: fades out in the first 25% of the hero height + // Scroll arrow fades out over the first 30% of hero height if (heroScroll) { - heroScroll.style.opacity = Math.max(0, 1 - s / (heroH * 0.25)).toFixed(3); + heroScroll.style.opacity = Math.max(0, 1 - s / (heroH * 0.3)).toFixed(3); } ticking = false; diff --git a/content/zeremonie/cat-5.jpg b/content/zeremonie/cat-5.jpg new file mode 100644 index 0000000..6e78090 Binary files /dev/null and b/content/zeremonie/cat-5.jpg differ diff --git a/content/zeremonie/index.md b/content/zeremonie/index.md index ceb1dc0..fdc75de 100644 --- a/content/zeremonie/index.md +++ b/content/zeremonie/index.md @@ -1,4 +1,4 @@ --- title: "Zeremonie" -date: 2026-06-20 +date: 2026-06-18 --- diff --git a/layouts/_default/home.html b/layouts/_default/home.html index ad7dba9..19271b2 100644 --- a/layouts/_default/home.html +++ b/layouts/_default/home.html @@ -8,13 +8,13 @@

{{ .Title }}

{{ with .Params.tagline }}

{{ . }}

{{ end }} -
-