Merge branch 'feature/site-redesign' into 'main'
feat: Web-Variante von Bild_Leon (800px, EXIF gestrippt) See merge request leon/portfolio-photo!17
This commit is contained in:
commit
4c7e931f1a
27 files changed
+640
-22
No files matched your search
@@ -0,0 +1,353 @@
|
||||
# Über-mich-Porträt Implementation Plan
|
||||
|
||||
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
|
||||
|
||||
**Goal:** Porträt-Bild von Leon Tonhäuser in den Hero-Bereich der `über-mich.html` einbauen, mit Gold-Akzent-Rahmen und Graustufen-Hover-Animation. EXIF-Copyright "Panthjeet Lucky Singh - ptjtluckys_pictures" als `<figcaption>` sichtbar.
|
||||
|
||||
**Architecture:** Reine CSS-Lösung. Eine neue Web-Bild-Variante (`Bild_Leon-web.jpg`, 800px, ~150 KB) wird per `sips` aus dem Original erzeugt. Ein neues `<figure class="portrait-hero reveal">` wird in `über-mich.html` vor dem bestehenden Hero-Text eingefügt. CSS-Regeln für `.portrait-hero` werden in `site.css` ergänzt — Float rechts, Gold-Rahmen, Graustufen-Filter mit Hover-Transition zu Farbe + scale(1.03), Mobile-Override bei 720px. Reveal-Animation wird vom bestehenden `transitions.js`-IntersectionObserver wiederverwendet.
|
||||
|
||||
**Tech Stack:** macOS-natives `sips` (Bild-Optimierung), Vanilla HTML + CSS, kein JS, kein neues Build-Tool.
|
||||
|
||||
**Spec:** `docs/superpowers/specs/2026-06-17-ueber-mich-portrait-design.md`
|
||||
|
||||
## Global Constraints
|
||||
|
||||
- **Branch:** `feature/site-redesign` (nie direkt auf `main`).
|
||||
- **Commit-Sprache:** Deutsch, Imperativ, Conventional-Commits-Präfix (`feat:`, `fix:`, `docs:`, `chore:`).
|
||||
- **Sprache:** Deutsch (`<html lang="de">` bereits gesetzt).
|
||||
- **Original-Asset unangetastet:** `public/assets/Bild_Leon.JPG` bleibt in voller Auflösung + mit EXIF. Nur Web-Variante daneben.
|
||||
- **Kein neues JS:** Reveal-Animation wird vom bestehenden `transitions.js` getriggert.
|
||||
- **Kein neues Build-Tool:** `sips` ist macOS-nativ vorhanden.
|
||||
- **LFS:** Original `Bild_Leon.JPG` bleibt LFS-getrackt. Web-Variante `< 200 KB` wird nicht via LFS erfasst.
|
||||
|
||||
---
|
||||
|
||||
## File Structure
|
||||
|
||||
| Datei | Aktion | Verantwortlichkeit |
|
||||
|---|---|---|
|
||||
| `public/assets/Bild_Leon-web.jpg` | Create | Web-optimiertes Porträt (800px breit, JPEG q=82, EXIF gestrippt, ≤ 200 KB) |
|
||||
| `public/über-mich.html` | Modify | `<figure class="portrait-hero reveal">` als erstes Element in `<main>`, vor bestehendem Hero-Absatz |
|
||||
| `public/custom/site.css` | Modify | `.portrait-hero`-Regelblock (Float, Rahmen, Hover-Transitions, Mobile-Override) am Ende der Reveal-Animation-Sektion |
|
||||
|
||||
**Bestehende Dateien (NICHT modifiziert):** `public/custom/transitions.js`, `public/custom/seo-config.js`, `public/custom/seo.js`, `public/assets/Bild_Leon.JPG`, alle anderen 20 HTML-Seiten.
|
||||
|
||||
---
|
||||
|
||||
## Task 1: Web-Bild-Variante generieren
|
||||
|
||||
**Files:**
|
||||
- Create: `public/assets/Bild_Leon-web.jpg`
|
||||
|
||||
**Interfaces:**
|
||||
- Consumes: `public/assets/Bild_Leon.JPG` (Original, 4002×6000, 4.5 MB)
|
||||
- Produces: `public/assets/Bild_Leon-web.jpg` (800px breit, JPEG q=82, ≤ 200 KB, EXIF gestrippt)
|
||||
|
||||
- [ ] **Step 1: Tool-Verfügbarkeit prüfen**
|
||||
|
||||
Run:
|
||||
```bash
|
||||
which sips && sips --version
|
||||
```
|
||||
Expected: Ausgabe mit Pfad (z. B. `/usr/bin/sips`) und Version. Falls `sips` fehlt: zu Pillow-Fallback wechseln (siehe Spec §1, Pillow-Variante).
|
||||
|
||||
- [ ] **Step 2: Web-Variante aus Original erzeugen**
|
||||
|
||||
Run:
|
||||
```bash
|
||||
sips -Z 800 --setProperty format jpeg --setProperty formatOptions 82 \
|
||||
public/assets/Bild_Leon.JPG --out public/assets/Bild_Leon-web.jpg
|
||||
```
|
||||
Expected: Ausgabe enthält `public/assets/Bild_Leon-web.jpg` als JPEG-Datei.
|
||||
|
||||
- [ ] **Step 3: Dateigröße und Format verifizieren**
|
||||
|
||||
Run:
|
||||
```bash
|
||||
ls -la public/assets/Bild_Leon-web.jpg
|
||||
file public/assets/Bild_Leon-web.jpg
|
||||
```
|
||||
Expected:
|
||||
- Dateigröße: ≤ 200 000 Bytes (≈ 200 KB)
|
||||
- `file` zeigt: `JPEG image data, ...` mit Breite ≤ 800 px
|
||||
|
||||
- [ ] **Step 4: EXIF-Copyright prüfen (sollte gestrippt sein)**
|
||||
|
||||
Run:
|
||||
```bash
|
||||
sips -g all public/assets/Bild_Leon-web.jpg | grep -i copyright || echo "no copyright tag"
|
||||
```
|
||||
Expected: `no copyright tag` (oder leere Ausgabe). Falls Copyright-Tag noch da: `exiftool -all= public/assets/Bild_Leon-web.jpg` als Cleanup.
|
||||
|
||||
- [ ] **Step 5: Commit**
|
||||
|
||||
```bash
|
||||
git add public/assets/Bild_Leon-web.jpg
|
||||
git commit -m "feat: Web-Variante von Bild_Leon (800px, EXIF gestrippt)"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Task 2: HTML-Markup + CSS-Regeln einbauen
|
||||
|
||||
**Files:**
|
||||
- Modify: `public/über-mich.html` (1× Insertion in `<main>`)
|
||||
- Modify: `public/custom/site.css` (1× Insertion nach `.einblenden.sichtbar`-Block, ca. Zeile 216)
|
||||
|
||||
**Interfaces:**
|
||||
- Consumes: `public/assets/Bild_Leon-web.jpg` (aus Task 1)
|
||||
- Produces:
|
||||
- `<figure class="portrait-hero reveal">` am Anfang von `<main>` in `über-mich.html`
|
||||
- `.portrait-hero`-CSS-Regeln in `site.css`
|
||||
|
||||
- [ ] **Step 1: Aktuelle Hero-Struktur in `über-mich.html` lokalisieren**
|
||||
|
||||
Run:
|
||||
```bash
|
||||
grep -n '<main\|</main\|class="einblenden"\|class="page-hero"' public/über-mich.html
|
||||
```
|
||||
Expected: Eine Zeile mit `<main` (Start) und mehrere mit Sektionen.
|
||||
|
||||
- [ ] **Step 2: `<figure class="portrait-hero">` direkt nach `<main>` einfügen**
|
||||
|
||||
Verwende Read+Edit: Lese `public/über-mich.html` Zeilen rund um `<main>`, identifiziere die exakte `<main ...>`-Zeile, und füge direkt danach ein:
|
||||
|
||||
```html
|
||||
<figure class="portrait-hero reveal">
|
||||
<img src="assets/Bild_Leon-web.jpg" alt="Leon Tonhäuser, Sportfotograf" loading="eager" width="800" height="1200">
|
||||
<figcaption>Foto: Panthjeet Lucky Singh – ptjtluckys_pictures</figcaption>
|
||||
</figure>
|
||||
```
|
||||
|
||||
**Wichtig:** Tab-Einrückung wie umgebende Zeilen (`\t\t` = zwei Tabs in dieser Datei, da `<main>` in einem Tab-Block liegt).
|
||||
|
||||
- [ ] **Step 3: HTML-Insertion verifizieren**
|
||||
|
||||
Run:
|
||||
```bash
|
||||
grep -n 'portrait-hero\|Bild_Leon-web' public/über-mich.html
|
||||
```
|
||||
Expected: Genau ein `<figure class="portrait-hero reveal">` und genau ein `<img src="assets/Bild_Leon-web.jpg"`.
|
||||
|
||||
- [ ] **Step 4: Aktuelle `.reveal`-Section in `site.css` lokalisieren**
|
||||
|
||||
Run:
|
||||
```bash
|
||||
grep -n '\.einblenden\|\.reveal\|prefers-reduced-motion' public/custom/site.css
|
||||
```
|
||||
Expected: Mehrere Zeilen mit `.einblenden` (um Z. 215–216) und `.reveal` (um Z. 175–176).
|
||||
|
||||
- [ ] **Step 5: `.portrait-hero`-CSS-Regeln am Ende der Reveal-Section einfügen**
|
||||
|
||||
Verwende Read+Edit: Lese `public/custom/site.css` am Ende des Reveal-Animation-Blocks (nach `.einblenden.sichtbar`, vor dem nächsten top-level Block). Füge ein:
|
||||
|
||||
```css
|
||||
|
||||
.portrait-hero {
|
||||
margin: 0 0 32px;
|
||||
float: right;
|
||||
width: 320px;
|
||||
max-width: 40%;
|
||||
shape-outside: margin-box;
|
||||
}
|
||||
.portrait-hero img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border-radius: 12px;
|
||||
border: 2px solid var(--akzent-gold);
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
||||
filter: grayscale(100%);
|
||||
transition: filter 0.6s ease-out, transform 0.4s ease-out;
|
||||
}
|
||||
.portrait-hero:hover img,
|
||||
.portrait-hero:focus-within img {
|
||||
filter: grayscale(0%);
|
||||
transform: scale(1.03);
|
||||
}
|
||||
.portrait-hero figcaption {
|
||||
margin-top: 10px;
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.4px;
|
||||
color: var(--text-leise);
|
||||
text-align: right;
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
.portrait-hero {
|
||||
float: none;
|
||||
width: 100%;
|
||||
max-width: 320px;
|
||||
margin: 0 auto 32px;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**Wichtig:** Tab-Einrückung wie umgebende Selektoren (typisch `\t\t`).
|
||||
|
||||
- [ ] **Step 6: CSS-Insertion verifizieren**
|
||||
|
||||
Run:
|
||||
```bash
|
||||
grep -c 'portrait-hero' public/custom/site.css
|
||||
```
|
||||
Expected: ≥ 1 (mehrere Vorkommen in den Regeln, aber mindestens 1 — exakte Anzahl: 7 wenn alle Selektoren + Media-Query zählen, aber `grep -c` zählt Zeilen, also mind. 6).
|
||||
|
||||
- [ ] **Step 7: Manueller Quick-Check — Datei lädt noch sauber**
|
||||
|
||||
Run:
|
||||
```bash
|
||||
grep -nE 'portrait-hero|akzent-gold|text-leise' public/custom/site.css | head -5
|
||||
```
|
||||
Expected: Variablen `--akzent-gold` und `--text-leise` werden in den neuen Regeln referenziert. Sanity-Check, dass keine Tippfehler im Selektor-Namen.
|
||||
|
||||
- [ ] **Step 8: Commit**
|
||||
|
||||
```bash
|
||||
git add public/über-mich.html public/custom/site.css
|
||||
git commit -m "feat: Über-mich-Porträt mit Gold-Rahmen und Graustufen-Hover"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Task 3: Verifikation im Browser + Smoke-Test
|
||||
|
||||
**Files:**
|
||||
- Keine Code-Änderungen. Reine Verifikation.
|
||||
|
||||
- [ ] **Step 1: Lokalen Server starten**
|
||||
|
||||
Run:
|
||||
```bash
|
||||
lsof -ti:8002 | xargs -r kill -9 2>/dev/null; sleep 0.3
|
||||
(npx --yes serve -p 8002 public > /tmp/seo-serve.log 2>&1 & echo $! > /tmp/seo-serve.pid)
|
||||
sleep 4
|
||||
curl -s -o /dev/null -w "Server: %{http_code}\n" http://localhost:8002/über-mich
|
||||
```
|
||||
Expected: `Server: 200`.
|
||||
|
||||
- [ ] **Step 2: Bild-Asset erreichbar prüfen**
|
||||
|
||||
Run:
|
||||
```bash
|
||||
curl -s -o /dev/null -w "Bild: %{http_code}, %{size_download} bytes\n" \
|
||||
http://localhost:8002/assets/Bild_Leon-web.jpg
|
||||
```
|
||||
Expected: `Bild: 200, <Zahl>` (Größe > 0, ≤ 200 000).
|
||||
|
||||
- [ ] **Step 3: HTML-Markup im served Content prüfen**
|
||||
|
||||
Run:
|
||||
```bash
|
||||
curl -s http://localhost:8002/über-mich | grep -E 'portrait-hero|Bild_Leon-web|figCaption|Foto: Panthjeet'
|
||||
```
|
||||
Expected: Mehrere Treffer für `portrait-hero`, `Bild_Leon-web`, `Foto: Panthjeet`.
|
||||
|
||||
- [ ] **Step 4: Server stoppen**
|
||||
|
||||
Run:
|
||||
```bash
|
||||
kill -9 "$(cat /tmp/seo-serve.pid)" 2>/dev/null
|
||||
lsof -ti:8002 | xargs -r kill -9 2>/dev/null
|
||||
echo done
|
||||
```
|
||||
Expected: `done`.
|
||||
|
||||
- [ ] **Step 5: Manuelle Browser-Verifikation (Leon, subjektiv)**
|
||||
|
||||
Im Browser: `http://localhost:8002/über-mich` öffnen.
|
||||
|
||||
| Test | Erwartung |
|
||||
|---|---|
|
||||
| Seite lädt | Hero zeigt Porträt rechts neben Text, in Graustufen, mit Gold-Rahmen und Schatten |
|
||||
| Hover über Bild | Bild wechselt zu Farbe, zoomt sanft auf 103% |
|
||||
| Maus weg | Bild kehrt zu Graustufen + Originalgröße zurück |
|
||||
| Tab-Taste zum Bild (Tastatur) | `:focus-within` löst Farb-Wechsel aus |
|
||||
| Browser-Viewport auf 600px Breite | Bild rutscht unter Text, wird zentriert, max 320px breit |
|
||||
| `<figcaption>` sichtbar | "Foto: Panthjeet Lucky Singh – ptjtluckys_pictures" unter dem Bild, gedämpfte Farbe |
|
||||
| DevTools → Console | Keine JS-Errors, keine 404 für `Bild_Leon-web.jpg` |
|
||||
| DevTools → Lighthouse | Kein CLS-Shift (Bild hat width/height-Attribute) |
|
||||
|
||||
- [ ] **Step 6: Optional — Headless-Test mit Puppeteer (falls verfügbar)**
|
||||
|
||||
Falls Puppeteer global installiert ist (`ls ~/node_modules/puppeteer 2>/dev/null`):
|
||||
|
||||
```bash
|
||||
cat > /tmp/portrait-headless.mjs <<'EOF'
|
||||
import puppeteer from 'puppeteer';
|
||||
import { spawn } from 'node:child_process';
|
||||
import { setTimeout as wait } from 'node:timers/promises';
|
||||
|
||||
const PORT = 8005;
|
||||
const server = spawn('npx', ['--yes', 'serve', '-p', String(PORT),
|
||||
'/Users/leon/IdeaProjects/framer-leon-tonhaeuser.de/public'], { stdio: 'ignore' });
|
||||
await wait(8000);
|
||||
|
||||
try {
|
||||
const browser = await puppeteer.launch({ args: ['--no-sandbox'] });
|
||||
const page = await browser.newPage();
|
||||
await page.goto(`http://localhost:${PORT}/über-mich`, { waitUntil: 'domcontentloaded' });
|
||||
await wait(2000);
|
||||
|
||||
const imgOk = await page.evaluate(() => {
|
||||
const img = document.querySelector('.portrait-hero img');
|
||||
return img && img.naturalWidth > 0;
|
||||
});
|
||||
const filterOk = await page.evaluate(() => {
|
||||
const img = document.querySelector('.portrait-hero img');
|
||||
return getComputedStyle(img).filter.includes('grayscale');
|
||||
});
|
||||
const captionOk = await page.evaluate(() => {
|
||||
const fc = document.querySelector('.portrait-hero figcaption');
|
||||
return fc && fc.textContent.includes('Panthjeet');
|
||||
});
|
||||
|
||||
console.log(`img-loaded: ${imgOk}`);
|
||||
console.log(`grayscale-filter: ${filterOk}`);
|
||||
console.log(`figcaption-credit: ${captionOk}`);
|
||||
|
||||
await browser.close();
|
||||
if (!(imgOk && filterOk && captionOk)) process.exit(1);
|
||||
} finally {
|
||||
server.kill('SIGKILL');
|
||||
}
|
||||
EOF
|
||||
lsof -ti:8005 | xargs -r kill -9 2>/dev/null
|
||||
cd ~ && node /tmp/portrait-headless.mjs
|
||||
rm /tmp/portrait-headless.mjs
|
||||
```
|
||||
Expected: 3× `true`-Ausgaben, Exit 0.
|
||||
|
||||
- [ ] **Step 7: Branch-Status & Push vorbereiten**
|
||||
|
||||
Run:
|
||||
```bash
|
||||
git status --short
|
||||
git log --oneline -5
|
||||
```
|
||||
Expected: Working tree clean (oder nur bekannte untracked files), 3 neue Commits oben (Task 1, Task 2, plus ggf. SEO-Stufe-2-Commits).
|
||||
|
||||
Push erfolgt NICHT in diesem Task — der User merged per MR (siehe `mr-statt-direkt-push.md`).
|
||||
|
||||
---
|
||||
|
||||
## Self-Review
|
||||
|
||||
**1. Spec-Coverage:**
|
||||
- §Architektur & Komponenten → Task 1 (Bild) + Task 2 (HTML+CSS) ✓
|
||||
- §Komponenten-Detail (HTML, CSS, Bild) → Task 1 + Task 2 ✓
|
||||
- §Datenfluss → dokumentiert im Spec, nicht im Plan nötig ✓
|
||||
- §Edge-Cases → Task 3 (manuell + Headless) ✓
|
||||
- §Accessibility → Task 3 (Tastatur-Test) ✓
|
||||
- §SEO-Impact → Spec sagt "Null" → kein Task nötig ✓
|
||||
- §Tests (manuell + Build + Headless) → Task 3 ✓
|
||||
- §Out of Scope → dokumentiert im Spec, nicht im Plan nötig ✓
|
||||
|
||||
**2. Placeholder-Scan:** Keine TBDs, TODOs, oder vage Schritte. Alle Code-Blöcke sind vollständig.
|
||||
|
||||
**3. Type-Konsistenz:**
|
||||
- Selektor `.portrait-hero` wird in Task 2 sowohl in HTML (`class="portrait-hero reveal"`) als auch in CSS (`.portrait-hero`, `.portrait-hero img`, etc.) konsistent verwendet ✓
|
||||
- Bildpfad `assets/Bild_Leon-web.jpg` in HTML referenziert Task 1's Output ✓
|
||||
- CSS-Variablen `--akzent-gold` und `--text-leise` sind in `:root` (Z. 11–20) definiert ✓
|
||||
- `.reveal`-Klasse wird vom bestehenden `transitions.js` IntersectionObserver erkannt ✓
|
||||
|
||||
**Geprüft, keine Lücken.**
|
||||
@@ -0,0 +1,202 @@
|
||||
# Über-mich-Porträt — Design
|
||||
|
||||
**Datum:** 2026-06-17
|
||||
**Status:** Abgestimmt
|
||||
**Branch:** `feature/site-redesign`
|
||||
|
||||
## Ziel
|
||||
|
||||
Auf der Seite `über-mich.html` wird im Hero-Bereich ein Porträt von Leon Tonhäuser ergänzt — rechts neben dem bestehenden Einleitungstext, eingerahmt mit dem Gold-Akzent der Site, in Graustufen mit Hover-Animation zu Farbe. Das Bild ist ein bestehendes Asset aus `public/assets/`, das per EXIF einem anderen Fotografen zugeordnet ist; dieser Credit wird sichtbar als `<figcaption>` ausgewiesen.
|
||||
|
||||
## Architektur
|
||||
|
||||
Eine neue Komponente `.portrait-hero` in `public/über-mich.html`. Reine CSS-Lösung — keine JS-Änderungen, keine neuen Dependencies. Bild wird als zusätzliche Web-optimierte Variante angelegt; das Original bleibt unangetastet.
|
||||
|
||||
### Komponenten-Übersicht
|
||||
|
||||
| Komponente | Datei | Verantwortlichkeit |
|
||||
|---|---|---|
|
||||
| Web-Bild | `public/assets/Bild_Leon-web.jpg` (NEU) | 800px breit, JPEG q=82, EXIF gestrippt, ~150 KB |
|
||||
| HTML-Markup | `public/über-mich.html` (MODIFY) | `<figure class="portrait-hero reveal">` am Anfang von `<main>` |
|
||||
| CSS-Regeln | `public/custom/site.css` (MODIFY) | `.portrait-hero` Block: Float, Rahmen, Hover-Transitions, Mobile-Override |
|
||||
|
||||
### Was wird NICHT angefasst
|
||||
|
||||
- `public/custom/transitions.js` (Reveal-Pattern wird wiederverwendet, keine Änderung nötig)
|
||||
- `public/custom/seo-config.js` / `seo.js` (kein neuer Page-Eintrag nötig)
|
||||
- `public/assets/Bild_Leon.JPG` (Original bleibt, EXIF bleibt, LFS-Eintrag unverändert)
|
||||
- Andere 20 HTML-Seiten
|
||||
|
||||
## Komponenten-Detail
|
||||
|
||||
### 1. Bild-Generierung
|
||||
|
||||
**Input:** `public/assets/Bild_Leon.JPG` (4 579 846 Bytes, 4002×6000, EXIF Copyright "Panthjeet Lucky Singh - ptjtluckys_pictures")
|
||||
**Output:** `public/assets/Bild_Leon-web.jpg` (≤ 200 KB, 800px breit, EXIF gestrippt)
|
||||
|
||||
**Tool-Wahl (Vor-Check in der Implementierung):**
|
||||
1. `sips` ist verfügbar (macOS Default, immer da) → nutze `sips`
|
||||
2. Wenn nicht: Pillow-Check `python3 -c "import PIL; print('ok')"`. Falls ok, Pillow-Script. Falls nicht ok: User informieren.
|
||||
|
||||
**Mit sips:**
|
||||
```bash
|
||||
sips -Z 800 --setProperty format jpeg --setProperty formatOptions 82 \
|
||||
public/assets/Bild_Leon.JPG --out public/assets/Bild_Leon-web.jpg
|
||||
```
|
||||
|
||||
**Mit Pillow** (in `tools/build_web_assets.py`):
|
||||
```python
|
||||
from PIL import Image
|
||||
img = Image.open('public/assets/Bild_Leon.JPG')
|
||||
w, h = img.size
|
||||
img = img.resize((800, int(800 * h / w)), Image.LANCZOS)
|
||||
img.save('public/assets/Bild_Leon-web.jpg', 'JPEG', quality=82, optimize=True)
|
||||
# EXIF wird beim Resize+Save nicht automatisch gestrippt; konservativ:
|
||||
# img.save(...) ohne exif-Argument schreibt nur die Basis-Tags
|
||||
```
|
||||
|
||||
Bevorzugt: `sips` — keine neue Datei, keine neue Dependency, läuft im macOS-Terminal ohne Setup. Pillow-Fallback nur wenn `sips` fehlt (Linux-CI, etc.).
|
||||
|
||||
### 2. HTML-Markup
|
||||
|
||||
Eingefügt am Anfang von `<main>` in `public/über-mich.html`, **vor** dem bestehenden Hero-Absatz (`.page-hero` oder vergleichbar). Der bestehende Hero-Text rutscht durch CSS-Float automatisch nach links.
|
||||
|
||||
```html
|
||||
<figure class="portrait-hero reveal">
|
||||
<img src="assets/Bild_Leon-web.jpg" alt="Leon Tonhäuser, Sportfotograf" loading="eager" width="800" height="1200">
|
||||
<figcaption>Foto: Panthjeet Lucky Singh – ptjtluckys_pictures</figcaption>
|
||||
</figure>
|
||||
```
|
||||
|
||||
**Attribute-Begründung:**
|
||||
- `alt="Leon Tonhäuser, Sportfotograf"` — beschreibend, SEO-tauglich (Leon Tonhäuser ist im Title der Seite, doppelt nennen ist OK)
|
||||
- `loading="eager"` — above the fold, kein Lazy-Load gewünscht
|
||||
- `width="800" height="1200"` — verhindert Layout-Shift, korrekte Aspect-Ratio 2:3
|
||||
|
||||
### 3. CSS-Regeln
|
||||
|
||||
In `public/custom/site.css` am Ende des Reveal-Animation-Blocks (nach Zeile 216 `.einblenden.sichtbar`):
|
||||
|
||||
```css
|
||||
.portrait-hero {
|
||||
margin: 0 0 32px;
|
||||
float: right;
|
||||
width: 320px;
|
||||
max-width: 40%;
|
||||
shape-outside: margin-box;
|
||||
}
|
||||
.portrait-hero img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border-radius: 12px;
|
||||
border: 2px solid var(--akzent-gold);
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,0.12);
|
||||
filter: grayscale(100%);
|
||||
transition: filter 0.6s ease-out, transform 0.4s ease-out;
|
||||
}
|
||||
.portrait-hero:hover img,
|
||||
.portrait-hero:focus-within img {
|
||||
filter: grayscale(0%);
|
||||
transform: scale(1.03);
|
||||
}
|
||||
.portrait-hero figcaption {
|
||||
margin-top: 10px;
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.4px;
|
||||
color: var(--text-leise);
|
||||
text-align: right;
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
.portrait-hero {
|
||||
float: none;
|
||||
width: 100%;
|
||||
max-width: 320px;
|
||||
margin: 0 auto 32px;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**Bestehende CSS-Variablen genutzt:** `--akzent-gold` (Gold-Akzent), `--text-leise` (gedämpfter Caption-Text). Beide sind in `:root` (Z. 11–20) definiert.
|
||||
|
||||
**Reveal-Pattern:** `.reveal` (Z. 175) macht das Bild initially unsichtbar und faded es via IntersectionObserver ein. Der bestehende `transitions.js`-Code erkennt `.reveal`-Klassen automatisch — keine JS-Änderung.
|
||||
|
||||
## Datenfluss
|
||||
|
||||
1. Browser lädt `über-mich.html` (HTTP 200, gecached nach erstem Request)
|
||||
2. CSS `site.css` wird mitgeladen, `.portrait-hero`-Regeln sind aktiv
|
||||
3. `<img>` triggert eager-Load von `Bild_Leon-web.jpg` (~150 KB)
|
||||
4. `transitions.js` registriert `.reveal`-Element via IntersectionObserver
|
||||
5. Sobald `<figure>` in den Viewport kommt: `.sichtbar`-Klasse wird gesetzt → opacity 1, transform none
|
||||
6. CSS `:hover` / `:focus-within` triggert: `filter: grayscale(0)` + `transform: scale(1.03)`
|
||||
7. Beim Verlassen: Rückanimation zu grayscale(100%) + scale(1)
|
||||
|
||||
## Edge-Cases
|
||||
|
||||
| Fall | Verhalten |
|
||||
|---|---|
|
||||
| Bild fehlt / 404 | `<figcaption>` ist sichtbar, Gold-Rahmen bleibt sichtbar als leerer Container. Keine JS-Error. |
|
||||
| Browser unterstützt kein `filter: grayscale` | Filter wird ignoriert, Bild erscheint direkt in Farbe. Kein Layout-Shift. |
|
||||
| Sehr schmale Viewports (< 400px) | `max-width: 320px` greift, Bild bleibt proportional |
|
||||
| Hochformat-Tablet (768×1024) | `max-width: 720px` greift nicht, `float: right` mit `max-width: 40%` — passt |
|
||||
| User mit `prefers-reduced-motion: reduce` | CSS-Transitions werden vom Browser automatisch reduziert. `transform: scale(1.03)` entfällt visuell. Graustufen-Wechsel bleibt (kein motion-relevant). |
|
||||
| EXIF-Copyright | `<figcaption>` macht den Credit sichtbar, unabhängig von Bild-Eigenschaften |
|
||||
| Bild sehr langsam ladend | `width`/`height`-Attribute reservieren Layout-Slot — kein CLS-Shift |
|
||||
|
||||
## Accessibility
|
||||
|
||||
- `alt="Leon Tonhäuser, Sportfotograf"` — beschreibend, SEO-tauglich
|
||||
- `<figcaption>` ist semantisch korrekt mit `<figure>` verknüpft
|
||||
- `:focus-within` löst die Farb-Animation auch bei Tastatur-Navigation aus
|
||||
- Kein `aria-hidden` — Bild ist Inhalt, nicht Deko
|
||||
- Kontrast Caption-Text (`--text-leise: #667085`) auf weißem Hintergrund ≥ 4.5:1 ✓
|
||||
|
||||
## SEO-Impact
|
||||
|
||||
Null. Die Seite ist bereits in `seo-config.js` mit `'/über-mich'` als PAGES-Eintrag gemappt (siehe Task 1). Das Bild erscheint nur in `<figure>` innerhalb des bestehenden Hero-Bereichs — kein neuer Page-Map-Eintrag nötig, kein neuer Structured-Data-Block.
|
||||
|
||||
## Tests
|
||||
|
||||
### Manuelle Browser-Verifikation
|
||||
|
||||
| Test | Erwartung |
|
||||
|---|---|
|
||||
| `http://localhost:8002/über-mich` laden | Bild erscheint rechts neben Hero-Text, Graustufen |
|
||||
| Über das Bild hovern | Bild wechselt zu Farbe, zoomt 1.03x sanft (0.4s) |
|
||||
| Maus weg | Bild kehrt zu Graustufen + Originalgröße zurück (0.6s filter, 0.4s transform) |
|
||||
| Tab-Taste zum Bild | `:focus-within` löst Farb-Wechsel aus (Tastatur-Test) |
|
||||
| Viewport auf 600px Breite ziehen | Bild wird zentriert unter Text, max 320px breit |
|
||||
| DevTools → Emulate reduced motion | Transitions werden instant, kein Zoom-Effekt |
|
||||
| Browser-Devtools → 404 für `Bild_Leon-web.jpg` simulieren | Gold-Rahmen bleibt sichtbar, `<figcaption>` wird angezeigt, keine JS-Error |
|
||||
| Lighthouse Performance | Kein LCP-Impact, kein CLS-Shift |
|
||||
|
||||
### Build-Tests
|
||||
|
||||
1. **Bild-Generierung:** `ls -la public/assets/Bild_Leon-web.jpg` zeigt Datei ≤ 200 KB, `file public/assets/Bild_Leon-web.jpg` zeigt JPEG.
|
||||
2. **HTML-Validierung:** `grep -c "portrait-hero" public/über-mich.html` → 1 (genau ein Vorkommen)
|
||||
3. **CSS-Validierung:** `grep -c "portrait-hero" public/custom/site.css` → ≥ 1
|
||||
4. **EXIF-Strip:** `sips -g all public/assets/Bild_Leon-web.jpg` zeigt keine Copyright-EXIF-Tags
|
||||
|
||||
### Headless-Test (optional, Puppeteer)
|
||||
|
||||
Falls Puppeteer-Setup vorhanden:
|
||||
- Lade `http://localhost:8003/über-mich`
|
||||
- Assert: `.portrait-hero img.naturalWidth > 0` (Bild erfolgreich geladen)
|
||||
- Assert: computed `filter` enthält `grayscale(1)` im Initial-State
|
||||
- Assert: `<figcaption>` enthält "Panthjeet Lucky Singh"
|
||||
|
||||
## Out of Scope
|
||||
|
||||
- Andere Seiten als `über-mich.html` bekommen das Bild nicht
|
||||
- Kein neues `PAGES`-Eintrag in `seo-config.js`
|
||||
- Kein Lightbox / Klick-Vergrößerung
|
||||
- Kein zweites Bild (z. B. "behind the scenes")
|
||||
- Kein automatisierter Build-Step für `sips` (manueller Aufruf, einmalig)
|
||||
- Kein `Pillow`-Requirement in `requirements.txt` (nutzt `sips`, das macOS-nativ ist)
|
||||
|
||||
## Annahmen
|
||||
|
||||
- macOS-Entwicklungsumgebung (wegen `sips`)
|
||||
- `public/assets/Bild_Leon.JPG` ist das gewünschte Bild (EXIF-Copyright bestätigt durch Leon in Brainstorming)
|
||||
- LFS-Tracking für `Bild_Leon.JPG` bleibt; Web-Variante wird nicht via LFS erfasst (≤ 200 KB, kleiner als LFS-Threshold)
|
||||
- Bestehende `.reveal`-IntersectionObserver-Logik in `transitions.js` funktioniert ohne Anpassung
|
||||
+1
-1
@@ -345,7 +345,7 @@
|
||||
|
||||
|
||||
<div id="__framer-editorbar-container" dir="ltr" style="right: 10px; top: calc(-15px + 50vh); transform: translate(0px, 0px); transition: transform 100ms cubic-bezier(0.2, 0, 0, 1); cursor: pointer;"><span aria-label="Edit Framer Content" id="__framer-editorbar-label" style="right: 40px;">Edit Content</span><button type="button" aria-labelledby="__framer-editorbar-label" id="__framer-editorbar-button"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none"><path d="M8.75 2.25a1.77 1.77 0 0 1 2.5 0h0c.69.69.69 1.81 0 2.5l-7 7h-2.5v-2.5Z" fill="transparent" stroke-width="1.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M8 11.75h3.75" fill="transparent" stroke-width="1.5" stroke="currentColor" stroke-linecap="round"></path></svg></button></div><iframe id="__framer-editorbar" src="https://framer.com/edit?framerSiteId=4502e3637824008d6522cbff7279027331ac97d631ba027929477f332afb3b2e&source=personal-information-818164.framer.app&features=%7B%22editorBarDisableFrameAncestorsSecurity%22%3Afalse%2C%22onPageLocalizationSupport%22%3Atrue%2C%22onPageMoveTool%22%3Atrue%7D&loadStart=1781096396747&forceShow=true" aria-hidden="true" allow="autoplay" tabindex="-1" class="status_visually_hidden"></iframe></body>
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</html>
|
||||
@@ -347,7 +347,7 @@
|
||||
|
||||
|
||||
<div id="__framer-editorbar-container" dir="ltr" style="right: 10px; top: calc(-15px + 50vh); transform: translate(0px, 0px); transition: transform 100ms cubic-bezier(0.2, 0, 0, 1); cursor: pointer;"><span aria-label="Edit Framer Content" id="__framer-editorbar-label" style="right: 40px;">Edit Content</span><button type="button" aria-labelledby="__framer-editorbar-label" id="__framer-editorbar-button"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none"><path d="M8.75 2.25a1.77 1.77 0 0 1 2.5 0h0c.69.69.69 1.81 0 2.5l-7 7h-2.5v-2.5Z" fill="transparent" stroke-width="1.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M8 11.75h3.75" fill="transparent" stroke-width="1.5" stroke="currentColor" stroke-linecap="round"></path></svg></button></div><iframe id="__framer-editorbar" src="https://framer.com/edit?framerSiteId=4502e3637824008d6522cbff7279027331ac97d631ba027929477f332afb3b2e&source=personal-information-818164.framer.app&features=%7B%22editorBarDisableFrameAncestorsSecurity%22%3Afalse%2C%22onPageLocalizationSupport%22%3Atrue%2C%22onPageMoveTool%22%3Atrue%7D&loadStart=1781096353210&forceShow=true" aria-hidden="true" allow="autoplay" tabindex="-1" class="status_visually_hidden"></iframe></body>
|
||||
<script src="../custom/transitions.js"></script>
|
||||
<script src="../custom/vendor/lenis.min.js"></script><script src="../custom/smooth-scroll.js"></script>&<script src="../custom/transitions.js"></script>
|
||||
<script src="../custom/seo-config.js"></script>
|
||||
<script src="../custom/seo.js"></script>
|
||||
</html>
|
||||
@@ -347,7 +347,7 @@
|
||||
|
||||
|
||||
<div id="__framer-editorbar-container" dir="ltr" style="right: 10px; top: calc(-15px + 50vh); transform: translate(0px, 0px); transition: transform 100ms cubic-bezier(0.2, 0, 0, 1); cursor: pointer;"><span aria-label="Edit Framer Content" id="__framer-editorbar-label" style="right: 40px;">Edit Content</span><button type="button" aria-labelledby="__framer-editorbar-label" id="__framer-editorbar-button"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none"><path d="M8.75 2.25a1.77 1.77 0 0 1 2.5 0h0c.69.69.69 1.81 0 2.5l-7 7h-2.5v-2.5Z" fill="transparent" stroke-width="1.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M8 11.75h3.75" fill="transparent" stroke-width="1.5" stroke="currentColor" stroke-linecap="round"></path></svg></button></div><iframe id="__framer-editorbar" src="https://framer.com/edit?framerSiteId=4502e3637824008d6522cbff7279027331ac97d631ba027929477f332afb3b2e&source=personal-information-818164.framer.app&features=%7B%22editorBarDisableFrameAncestorsSecurity%22%3Afalse%2C%22onPageLocalizationSupport%22%3Atrue%2C%22onPageMoveTool%22%3Atrue%7D&loadStart=1781096359409&forceShow=true" aria-hidden="true" allow="autoplay" tabindex="-1" class="status_visually_hidden"></iframe></body>
|
||||
<script src="../custom/transitions.js"></script>
|
||||
<script src="../custom/vendor/lenis.min.js"></script><script src="../custom/smooth-scroll.js"></script>&<script src="../custom/transitions.js"></script>
|
||||
<script src="../custom/seo-config.js"></script>
|
||||
<script src="../custom/seo.js"></script>
|
||||
</html>
|
||||
@@ -347,7 +347,7 @@
|
||||
|
||||
|
||||
<div id="__framer-editorbar-container" dir="ltr" style="right: 10px; top: calc(-15px + 50vh); transform: translate(0px, 0px); transition: transform 100ms cubic-bezier(0.2, 0, 0, 1); cursor: pointer;"><span aria-label="Edit Framer Content" id="__framer-editorbar-label" style="right: 40px;">Edit Content</span><button type="button" aria-labelledby="__framer-editorbar-label" id="__framer-editorbar-button"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none"><path d="M8.75 2.25a1.77 1.77 0 0 1 2.5 0h0c.69.69.69 1.81 0 2.5l-7 7h-2.5v-2.5Z" fill="transparent" stroke-width="1.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M8 11.75h3.75" fill="transparent" stroke-width="1.5" stroke="currentColor" stroke-linecap="round"></path></svg></button></div><iframe id="__framer-editorbar" src="https://framer.com/edit?framerSiteId=4502e3637824008d6522cbff7279027331ac97d631ba027929477f332afb3b2e&source=personal-information-818164.framer.app&features=%7B%22editorBarDisableFrameAncestorsSecurity%22%3Afalse%2C%22onPageLocalizationSupport%22%3Atrue%2C%22onPageMoveTool%22%3Atrue%7D&loadStart=1781096345834&forceShow=true" aria-hidden="true" allow="autoplay" tabindex="-1" class="status_visually_hidden"></iframe></body>
|
||||
<script src="../custom/transitions.js"></script>
|
||||
<script src="../custom/vendor/lenis.min.js"></script><script src="../custom/smooth-scroll.js"></script>&<script src="../custom/transitions.js"></script>
|
||||
<script src="../custom/seo-config.js"></script>
|
||||
<script src="../custom/seo.js"></script>
|
||||
</html>
|
||||
@@ -347,7 +347,7 @@
|
||||
|
||||
|
||||
<div id="__framer-editorbar-container" dir="ltr" style="right: 10px; top: calc(-15px + 50vh); transform: translate(0px, 0px); transition: transform 100ms cubic-bezier(0.2, 0, 0, 1); cursor: pointer;"><span aria-label="Edit Framer Content" id="__framer-editorbar-label" style="right: 40px;">Edit Content</span><button type="button" aria-labelledby="__framer-editorbar-label" id="__framer-editorbar-button"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none"><path d="M8.75 2.25a1.77 1.77 0 0 1 2.5 0h0c.69.69.69 1.81 0 2.5l-7 7h-2.5v-2.5Z" fill="transparent" stroke-width="1.5" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"></path><path d="M8 11.75h3.75" fill="transparent" stroke-width="1.5" stroke="currentColor" stroke-linecap="round"></path></svg></button></div><iframe id="__framer-editorbar" src="https://framer.com/edit?framerSiteId=4502e3637824008d6522cbff7279027331ac97d631ba027929477f332afb3b2e&source=personal-information-818164.framer.app&features=%7B%22editorBarDisableFrameAncestorsSecurity%22%3Afalse%2C%22onPageLocalizationSupport%22%3Atrue%2C%22onPageMoveTool%22%3Atrue%7D&loadStart=1781096366976&forceShow=true" aria-hidden="true" allow="autoplay" tabindex="-1" class="status_visually_hidden"></iframe></body>
|
||||
<script src="../custom/transitions.js"></script>
|
||||
<script src="../custom/vendor/lenis.min.js"></script><script src="../custom/smooth-scroll.js"></script>&<script src="../custom/transitions.js"></script>
|
||||
<script src="../custom/seo-config.js"></script>
|
||||
<script src="../custom/seo.js"></script>
|
||||
</html>
|
||||
Binary file not shown.
+1
-1
@@ -39,7 +39,7 @@
|
||||
<p>Hier schreibe ich bald über Shootings, Hintergründe und alles, was neben der Kamera passiert.</p>
|
||||
<p><a href="./">← Zurück zur Startseite</a></p>
|
||||
</main>
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</body>
|
||||
|
||||
+45
-1
@@ -16,7 +16,12 @@
|
||||
--akzent-gold: #c9a227;
|
||||
}
|
||||
|
||||
html { scroll-behavior: smooth; }
|
||||
/* Lenis (smooth scroll) — CSS aus Framers SmoothScroll_Prod.js */
|
||||
html.lenis { height: auto; }
|
||||
.lenis.lenis-smooth { scroll-behavior: auto !important; }
|
||||
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
|
||||
.lenis.lenis-stopped { overflow: hidden; }
|
||||
.lenis.lenis-scrolling iframe { pointer-events: none; }
|
||||
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
@@ -215,6 +220,45 @@
|
||||
.einblenden { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
|
||||
.einblenden.sichtbar { opacity: 1; transform: none; }
|
||||
|
||||
/* ==================== ÜBER-MICH PORTRÄT (schwebt rechts, Graustufen → Farbe) ==================== */
|
||||
.portrait-hero {
|
||||
margin: 0 0 32px;
|
||||
float: right;
|
||||
width: 320px;
|
||||
max-width: 40%;
|
||||
shape-outside: margin-box;
|
||||
}
|
||||
.portrait-hero img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border-radius: 12px;
|
||||
border: 2px solid var(--akzent-gold);
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
|
||||
filter: grayscale(100%);
|
||||
transition: filter 0.6s ease-out, transform 0.4s ease-out;
|
||||
}
|
||||
.portrait-hero:hover img,
|
||||
.portrait-hero:focus-within img {
|
||||
filter: grayscale(0%);
|
||||
transform: scale(1.03);
|
||||
}
|
||||
.portrait-hero figcaption {
|
||||
margin-top: 10px;
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.4px;
|
||||
color: var(--text-leise);
|
||||
text-align: right;
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
.portrait-hero {
|
||||
float: none;
|
||||
width: 100%;
|
||||
max-width: 320px;
|
||||
margin: 0 auto 32px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ==================== SEITENÜBERGANG (Staub-Fade) ==================== */
|
||||
body { transition: opacity 0.3s ease-out, transform 0.3s ease-out, filter 0.3s ease-out; }
|
||||
.seite-ausgang { opacity: 0; transform: translateY(-12px); filter: blur(3px); }
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
// Smooth scroll via Lenis. Ersetzt Framers SmoothScroll_Prod.js-Modul
|
||||
// (intensity=10 → duration=1.0). Lenis macht Anchor-Handling + data-lenis-prevent
|
||||
// seit v1.1 intern; MutationObserver für [data-frameruni-stop-scroll] ist auf dem
|
||||
// statischen Export nirgends aktiv, also weggelassen.
|
||||
(function () {
|
||||
if (typeof Lenis !== 'function') return;
|
||||
const lenis = new Lenis({ duration: 1.0 });
|
||||
function raf(time) { lenis.raf(time); requestAnimationFrame(raf); }
|
||||
requestAnimationFrame(raf);
|
||||
})();
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(t="undefined"!=typeof globalThis?globalThis:t||self).Lenis=i()}(this,(function(){"use strict";function clamp(t,i,e){return Math.max(t,Math.min(i,e))}class Animate{constructor(){this.isRunning=!1,this.value=0,this.from=0,this.to=0,this.currentTime=0}advance(t){var i;if(!this.isRunning)return;let e=!1;if(this.duration&&this.easing){this.currentTime+=t;const i=clamp(0,this.currentTime/this.duration,1);e=i>=1;const s=e?1:this.easing(i);this.value=this.from+(this.to-this.from)*s}else this.lerp?(this.value=function damp(t,i,e,s){return function lerp(t,i,e){return(1-e)*t+e*i}(t,i,1-Math.exp(-e*s))}(this.value,this.to,60*this.lerp,t),Math.round(this.value)===this.to&&(this.value=this.to,e=!0)):(this.value=this.to,e=!0);e&&this.stop(),null===(i=this.onUpdate)||void 0===i||i.call(this,this.value,e)}stop(){this.isRunning=!1}fromTo(t,i,{lerp:e,duration:s,easing:o,onStart:n,onUpdate:l}){this.from=this.value=t,this.to=i,this.lerp=e,this.duration=s,this.easing=o,this.currentTime=0,this.isRunning=!0,null==n||n(),this.onUpdate=l}}class Dimensions{constructor(t,i,{autoResize:e=!0,debounce:s=250}={}){this.wrapper=t,this.content=i,this.width=0,this.height=0,this.scrollHeight=0,this.scrollWidth=0,this.resize=()=>{this.onWrapperResize(),this.onContentResize()},this.onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)},this.onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)},e&&(this.debouncedResize=function debounce(t,i){let e;return function(...s){let o=this;clearTimeout(e),e=setTimeout((()=>{e=void 0,t.apply(o,s)}),i)}}(this.resize,s),this.wrapper instanceof Window?window.addEventListener("resize",this.debouncedResize,!1):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){var t,i;null===(t=this.wrapperResizeObserver)||void 0===t||t.disconnect(),null===(i=this.contentResizeObserver)||void 0===i||i.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener("resize",this.debouncedResize,!1)}get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}}class Emitter{constructor(){this.events={}}emit(t,...i){var e;let s=this.events[t]||[];for(let t=0,o=s.length;t<o;t++)null===(e=s[t])||void 0===e||e.call(s,...i)}on(t,i){var e;return(null===(e=this.events[t])||void 0===e?void 0:e.push(i))||(this.events[t]=[i]),()=>{var e;this.events[t]=null===(e=this.events[t])||void 0===e?void 0:e.filter((t=>i!==t))}}off(t,i){var e;this.events[t]=null===(e=this.events[t])||void 0===e?void 0:e.filter((t=>i!==t))}destroy(){this.events={}}}const t=100/6,i={passive:!1};class VirtualScroll{constructor(e,s={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=s,this.touchStart={x:0,y:0},this.lastDelta={x:0,y:0},this.window={width:0,height:0},this.emitter=new Emitter,this.onTouchStart=t=>{const{clientX:i,clientY:e}=t.targetTouches?t.targetTouches[0]:t;this.touchStart.x=i,this.touchStart.y=e,this.lastDelta={x:0,y:0},this.emitter.emit("scroll",{deltaX:0,deltaY:0,event:t})},this.onTouchMove=t=>{const{clientX:i,clientY:e}=t.targetTouches?t.targetTouches[0]:t,s=-(i-this.touchStart.x)*this.options.touchMultiplier,o=-(e-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=i,this.touchStart.y=e,this.lastDelta={x:s,y:o},this.emitter.emit("scroll",{deltaX:s,deltaY:o,event:t})},this.onTouchEnd=t=>{this.emitter.emit("scroll",{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:t})},this.onWheel=i=>{let{deltaX:e,deltaY:s,deltaMode:o}=i;e*=1===o?t:2===o?this.window.width:1,s*=1===o?t:2===o?this.window.height:1,e*=this.options.wheelMultiplier,s*=this.options.wheelMultiplier,this.emitter.emit("scroll",{deltaX:e,deltaY:s,event:i})},this.onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}},window.addEventListener("resize",this.onWindowResize,!1),this.onWindowResize(),this.element.addEventListener("wheel",this.onWheel,i),this.element.addEventListener("touchstart",this.onTouchStart,i),this.element.addEventListener("touchmove",this.onTouchMove,i),this.element.addEventListener("touchend",this.onTouchEnd,i)}on(t,i){return this.emitter.on(t,i)}destroy(){this.emitter.destroy(),window.removeEventListener("resize",this.onWindowResize,!1),this.element.removeEventListener("wheel",this.onWheel,i),this.element.removeEventListener("touchstart",this.onTouchStart,i),this.element.removeEventListener("touchmove",this.onTouchMove,i),this.Line truncated
|
||||
//# sourceMappingURL=lenis.min.js.map
|
||||
@@ -252,7 +252,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</body>
|
||||
|
||||
+1
-1
@@ -323,7 +323,7 @@
|
||||
|
||||
<script src="custom/vendor/canvas-confetti.min.js"></script>
|
||||
<script src="custom/tiefenflug.js"></script>
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
<script>
|
||||
|
||||
+1
-1
@@ -141,7 +141,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -135,7 +135,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -131,7 +131,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -130,7 +130,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -166,7 +166,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</body>
|
||||
|
||||
@@ -83,6 +83,10 @@
|
||||
</nav>
|
||||
|
||||
<main>
|
||||
<figure class="portrait-hero reveal">
|
||||
<img src="assets/Bild_Leon-web.jpg" alt="Leon Tonhäuser, Sportfotograf" loading="eager" width="800" height="1199">
|
||||
<figcaption>Foto: Panthjeet Lucky Singh – ptjtluckys_pictures</figcaption>
|
||||
</figure>
|
||||
<div class="container">
|
||||
<div class="page-hero">
|
||||
<div class="hero-label">— 03 / Über mich</div>
|
||||
@@ -142,7 +146,7 @@
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="custom/transitions.js"></script>
|
||||
<script src="custom/vendor/lenis.min.js"></script><script src="custom/smooth-scroll.js"></script>&<script src="custom/transitions.js"></script>
|
||||
<script src="custom/seo-config.js"></script>
|
||||
<script src="custom/seo.js"></script>
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user