Initial Hugo gallery site with custom landing page

- Hugo site with nicokaiser/hugo-theme-gallery (git submodule)
- Full-viewport hero with parallax scrolling (bg at 70%, text at 85% speed)
- Entrance animations on hero title and subtitle
- Bouncing scroll arrow that fades out on scroll
- Header suppressed on homepage, shown on all other pages
- Intro text section between hero and album grid
- Cats placeholder album with 8 images
- .gitignore excludes public/, resources/, .hugo_build.lock, .idea/

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
yvierkoetter
2026-06-18 21:37:39 +02:00
parent 347058a1bf
commit f481646821
31 changed files with 258 additions and 295 deletions
+4
View File
@@ -0,0 +1,4 @@
public/
resources/
.hugo_build.lock
.idea/
View File
+137
View File
@@ -0,0 +1,137 @@
/* ── Hero ─────────────────────────────────────────────── */
section.hero {
position: relative;
overflow: hidden;
width: 100%;
height: 100vh;
padding: 0;
margin: 0 0 4rem;
}
/* Background image layer — oversized so parallax has room */
.hero-bg {
position: absolute;
top: -30%;
left: 0;
width: 100%;
height: 160%;
background-position: center;
background-size: cover;
background-repeat: no-repeat;
will-change: transform;
}
/* Gradient overlay sits above bg, below content */
.hero-bg::after {
content: "";
position: absolute;
inset: 0;
background:
linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 40%),
linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 20%);
}
/* Foreground layer — content + scroll arrow */
.hero-fg {
position: relative;
z-index: 1;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
will-change: transform;
}
/* ── Hero content ─────────────────────────────────────── */
.hero-content {
padding: 3rem 1.5rem 0;
text-align: center;
max-width: 768px;
width: 100%;
}
.hero-content h1 {
color: #fafafa;
font-weight: 600;
font-size: clamp(2rem, 5vw, 3.5rem);
line-height: 1.15;
text-wrap: balance;
letter-spacing: -0.01em;
margin-bottom: 0.75rem;
animation: hero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-content p {
color: rgba(250, 250, 250, 0.85);
font-size: clamp(1rem, 2vw, 1.125rem);
line-height: 1.6;
text-wrap: balance;
animation: hero-fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
/* ── Scroll arrow ─────────────────────────────────────── */
.hero-scroll {
padding-bottom: 2rem;
color: rgba(250, 250, 250, 0.75);
animation: hero-fade-in 0.6s ease 0.5s both;
}
.hero-scroll-icon {
display: block;
animation: hero-bounce 2s ease-in-out 1.1s infinite;
}
.hero-scroll svg {
width: 2rem;
height: 2rem;
display: block;
}
/* ── Intro text section ───────────────────────────────── */
.home-intro {
max-width: 640px;
margin: 0 auto 4rem;
padding: 0 1.5rem;
text-align: center;
}
.home-intro .prose p {
color: var(--text-1);
font-size: 1.0625rem;
line-height: 1.75;
margin-top: 1em;
margin-bottom: 1em;
}
.home-intro .prose p:first-child {
margin-top: 0;
}
/* ── Keyframes ────────────────────────────────────────── */
@keyframes hero-fade-up {
from {
opacity: 0;
transform: translateY(1.25rem);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes hero-fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes hero-bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(7px); }
}
+39
View File
@@ -0,0 +1,39 @@
(function () {
var hero = document.querySelector('.hero');
if (!hero) return;
var heroBg = hero.querySelector('.hero-bg');
var heroFg = hero.querySelector('.hero-fg');
var heroScroll = hero.querySelector('.hero-scroll');
var heroH = hero.offsetHeight;
var ticking = false;
function update() {
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)';
// 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
if (heroScroll) {
heroScroll.style.opacity = Math.max(0, 1 - s / (heroH * 0.25)).toFixed(3);
}
ticking = false;
}
window.addEventListener('scroll', function () {
if (!ticking) {
requestAnimationFrame(update);
ticking = true;
}
}, { passive: true });
window.addEventListener('resize', function () {
heroH = hero.offsetHeight;
});
})();
+1
View File
@@ -2,6 +2,7 @@
"compilerOptions": {
"paths": {
"*": [
"*",
"../themes/gallery/assets/*"
]
}
+7 -1
View File
@@ -1,3 +1,9 @@
---
title: "Hochzeit"
title: "Herzlich Willkommen"
params:
tagline: "Schön, dass ihr da seid."
---
Hier findet ihr die Erinnerungen an unseren besonderen Tag — festgehalten in Bildern, die für immer bleiben.
Schreibt euch diesen Moment ins Gedächtnis: die Musik, das Lachen, die Umarmungen. Wir freuen uns, ihn mit euch geteilt zu haben.
Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 KiB

+4
View File
@@ -0,0 +1,4 @@
---
title: "Cats"
date: 2026-06-18
---
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

+36
View File
@@ -0,0 +1,36 @@
{{ define "main" }}
{{ $heroImage := .Resources.GetMatch "hero*" }}
{{ if $heroImage }}
{{ $img := $heroImage.Filter (slice images.AutoOrient (images.Process "fit 1920x1080")) }}
<section class="hero">
<div class="hero-bg" style="background-image: url({{ $img.RelPermalink }})"></div>
<div class="hero-fg">
<div class="hero-content">
<h1>{{ .Title }}</h1>
{{ with .Params.tagline }}<p>{{ . }}</p>{{ end }}
</div>
<div class="hero-scroll" aria-hidden="true">
<span class="hero-scroll-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M6 9l6 6 6-6"/>
</svg>
</span>
</div>
</div>
</section>
{{ else }}
{{ partial "title.html" . }}
{{ end }}
{{ with .Content }}
<section class="home-intro">
<div class="prose">{{ . }}</div>
</section>
{{ end }}
{{ partial "categories.html" }}
{{ partial "featured.html" . }}
<section class="galleries">
{{ range where .Pages "Params.private" "ne" true }}
{{ partial "album-card.html" . }}
{{ end }}
</section>
{{ end }}
+30
View File
@@ -0,0 +1,30 @@
{{ if not .IsHome }}
<header>
{{ with .Parent }}
<a class="btn btn-square" href="{{ .RelPermalink | default .Site.Home.RelPermalink }}" title="{{ .Title }}">
<svg width="24" height="24" data-slot="icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<path clip-rule="evenodd" fill-rule="evenodd" d="M11.03 3.97a.75.75 0 0 1 0 1.06l-6.22 6.22H21a.75.75 0 0 1 0 1.5H4.81l6.22 6.22a.75.75 0 1 1-1.06 1.06l-7.5-7.5a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</a>
{{ else }}
<a class="btn" href="{{ .Site.Home.RelPermalink }}">
{{ .Site.Title }}
</a>
{{ end }}
{{ if site.Menus.main }}
<ul>
<li>
<button class="btn btn-square" id="menu-toggle" aria-expanded="false" type="button" title="{{ T "menu" }}">
<svg class="icon-menu" width="24" height="24" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<path clip-rule="evenodd" fill-rule="evenodd" d="M3 6.75A.75.75 0 0 1 3.75 6h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 6.75ZM3 12a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75A.75.75 0 0 1 3 12Zm0 5.25a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75Z"></path>
</svg>
<svg class="icon-close hidden" width="24" height="24" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<path clip-rule="evenodd" fill-rule="evenodd" d="M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z"></path>
</svg>
</button>
</li>
</ul>
{{ end }}
</header>
{{ partial "menu.html" . }}
{{ end }}
-62
View File
@@ -1,62 +0,0 @@
<!doctype html>
<html class="dark" lang="de">
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>404 Page not found - Hochzeit</title>
<link rel="canonical" href="http://localhost:1313/404.html" />
<link rel="icon" type="image/svg+xml" href="/images/favicon.svg" />
<link rel="icon" type="image/png" href="/images/favicon.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png" />
<meta name="description" content="Hochzeit" />
<meta name="robots" content="index, follow" />
<meta property="og:url" content="http://localhost:1313/404.html" />
<meta property="og:site_name" content="Hochzeit" />
<meta property="og:title" content="404 Page not found" />
<meta property="og:description" content="Hochzeit" />
<meta property="og:locale" content="de" />
<meta property="og:type" content="website" />
<link rel="stylesheet" href="/css/main.min.929a37b4f846bf86c1bf9935695bb75dbed775e4c8f11304661afa14f26407c0.css" />
<script src="/js/main.75057ede3364264b9f45fbfca44cf7e53a346fde2ca503bcff0bb59c924e8bbd.js" defer></script></head>
<body>
<header>
<a class="btn btn-square" href="/" title="Hochzeit">
<svg width="24" height="24" data-slot="icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<path clip-rule="evenodd" fill-rule="evenodd" d="M11.03 3.97a.75.75 0 0 1 0 1.06l-6.22 6.22H21a.75.75 0 0 1 0 1.5H4.81l6.22 6.22a.75.75 0 1 1-1.06 1.06l-7.5-7.5a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</a>
</header>
<main>
<hgroup>
<h1>404</h1>
<p>Seite nicht gefunden</p>
</hgroup>
</main>
<footer>
<section>
</section>
</footer>
</body>
</html>
File diff suppressed because one or more lines are too long
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 292 B

-6
View File
@@ -1,6 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" width="24" height="24"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-6 h-6">
<path d="M12 9a3.75 3.75 0 100 7.5A3.75 3.75 0 0012 9z"></path>
<path fill-rule="evenodd" d="M9.344 3.071a49.52 49.52 0 015.312 0c.967.052 1.83.585 2.332 1.39l.821 1.317c.24.383.645.643 1.11.71.386.054.77.113 1.152.177 1.432.239 2.429 1.493 2.429 2.909V18a3 3 0 01-3 3h-15a3 3 0 01-3-3V9.574c0-1.416.997-2.67 2.429-2.909.382-.064.766-.123 1.151-.178a1.56 1.56 0 001.11-.71l.822-1.315a2.942 2.942 0 012.332-1.39zM6.75 12.75a5.25 5.25 0 1110.5 0 5.25 5.25 0 01-10.5 0zm12-1.5a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd"></path>
</svg><style>@media (prefers-color-scheme: light) { :root { filter: none; } }
@media (prefers-color-scheme: dark) { :root { filter: invert(100%); } }
</style></svg>

Before

Width:  |  Height:  |  Size: 959 B

-90
View File
@@ -1,90 +0,0 @@
<!doctype html>
<html class="dark" lang="de">
<head>
<meta name="generator" content="Hugo 0.163.2"><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Hochzeit - Hochzeit</title>
<link rel="canonical" href="http://localhost:1313/" />
<link rel="icon" type="image/svg+xml" href="/images/favicon.svg" />
<link rel="icon" type="image/png" href="/images/favicon.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png" />
<meta name="description" content="Hochzeit" />
<meta name="robots" content="index, follow" />
<link rel="alternate" type="application/rss+xml" href="http://localhost:1313/index.xml" title="Hochzeit" />
<meta property="og:url" content="http://localhost:1313/" />
<meta property="og:site_name" content="Hochzeit" />
<meta property="og:title" content="Hochzeit" />
<meta property="og:description" content="Hochzeit" />
<meta property="og:locale" content="de" />
<meta property="og:type" content="website" />
<link rel="stylesheet" href="/css/main.min.929a37b4f846bf86c1bf9935695bb75dbed775e4c8f11304661afa14f26407c0.css" />
<script src="/js/main.75057ede3364264b9f45fbfca44cf7e53a346fde2ca503bcff0bb59c924e8bbd.js" defer></script></head>
<body>
<header>
<a class="btn" href="/">
Hochzeit
</a>
</header>
<main>
<hgroup>
<h1>Hochzeit</h1>
</hgroup>
<section class="galleries">
<a class="card" href="/cats/" title="Cats">
<figure style="background-color: #4a3223">
<img class="lazyload" width="598" height="600" data-src="/cats/cat-1_hu_84333123757c2a16.jpg" alt="Cats" />
</figure>
<div>
<h2>Cats</h2>
<p>
8 Fotos
</p>
</div>
</a>
</section>
</main>
<footer>
<section>
</section>
</footer>
</body>
</html>
-23
View File
@@ -1,23 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Hochzeit</title>
<link>http://localhost:1313/</link>
<description>Recent content on Hochzeit</description>
<generator>Hugo -- gohugo.io</generator>
<language>de</language>
<managingEditor>yannis.vierkoetter@bill-x.de (Yannis Vierkoetter)</managingEditor>
<webMaster>yannis.vierkoetter@bill-x.de (Yannis Vierkoetter)</webMaster>
<lastBuildDate>Thu, 18 Jun 2026 00:00:00 +0200</lastBuildDate><atom:link href="http://localhost:1313/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Cats</title>
<link>http://localhost:1313/cats/</link>
<pubDate>Thu, 18 Jun 2026 00:00:00 +0200</pubDate><author>yannis.vierkoetter@bill-x.de (Yannis Vierkoetter)</author>
<guid>http://localhost:1313/cats/</guid>
<media:content url="http://localhost:1313/cats/cat-1_hu_548bdd44fbce1fd0.jpg" type="image/jpeg"/>
<description>
&lt;img src=&quot;http://localhost:1313/cats/cat-1_hu_548bdd44fbce1fd0.jpg&quot; /&gt;
&lt;p&gt;&lt;no value&gt;&lt;/p&gt;
</description></item>
</channel>
</rss>
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
User-agent: *
-11
View File
@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>http://localhost:1313/cats/</loc>
<lastmod>2026-06-18T00:00:00+02:00</lastmod>
</url><url>
<loc>http://localhost:1313/</loc>
<lastmod>2026-06-18T00:00:00+02:00</lastmod>
</url>
</urlset>
-80
View File
@@ -1,80 +0,0 @@
<!doctype html>
<html class="dark" lang="de">
<head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Zeremonie - Hochzeit</title>
<link rel="canonical" href="http://localhost:1313/zeremonie/" />
<link rel="icon" type="image/svg+xml" href="/images/favicon.svg" />
<link rel="icon" type="image/png" href="/images/favicon.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png" />
<meta name="description" content="Hochzeit" />
<meta name="robots" content="index, follow" />
<meta property="og:url" content="http://localhost:1313/zeremonie/" />
<meta property="og:site_name" content="Hochzeit" />
<meta property="og:title" content="Zeremonie" />
<meta property="og:description" content="Hochzeit" />
<meta property="og:locale" content="de" />
<meta property="og:type" content="article" />
<meta property="article:published_time" content="2024-01-01T00:00:00+01:00" />
<meta property="article:modified_time" content="2024-01-01T00:00:00+01:00" />
<link rel="stylesheet" href="/css/main.min.929a37b4f846bf86c1bf9935695bb75dbed775e4c8f11304661afa14f26407c0.css" />
<script src="/js/main.75057ede3364264b9f45fbfca44cf7e53a346fde2ca503bcff0bb59c924e8bbd.js" defer></script></head>
<body>
<header>
<a class="btn btn-square" href="/" title="Hochzeit">
<svg width="24" height="24" data-slot="icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<path clip-rule="evenodd" fill-rule="evenodd" d="M11.03 3.97a.75.75 0 0 1 0 1.06l-6.22 6.22H21a.75.75 0 0 1 0 1.5H4.81l6.22 6.22a.75.75 0 1 1-1.06 1.06l-7.5-7.5a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</a>
</header>
<main>
<hgroup>
<h1>Zeremonie</h1>
</hgroup>
<section class="gallery">
<div id="gallery" style="visibility: hidden; height: 1px; overflow: hidden">
</div>
</section>
</main>
<footer>
<section>
</section>
</footer>
</body>
</html>
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"Target":"/css/main.min.929a37b4f846bf86c1bf9935695bb75dbed775e4c8f11304661afa14f26407c0.css","MediaType":"text/css","Data":{"Integrity":"sha256-kpo3tPhGv4bBv5k1aVu3Xb7XdeTI8RMEZhr6FPJkB8A="}}