feat: plakat redesign phase 3 (windows on desktop, sheets on mobile)

- Tapping an object on the desk opens a window (desktop) or a bottom sheet
  (mobile) instead of flipping: projects, now, servers, reading, about, contact
- Desktop windows in poster style (2px ink rule, hard offset shadow), open
  from the tapped object, thrown by the title bar with momentum and elastic
  viewport edges, stack by focus, minimize into a tray, Escape closes the top
  window, focus moves to close and returns to the trigger
- Mobile sheets via vaul 1.1.2: drag down to dismiss, overlay, focus trap
- Project window shows live/source links from Directus when present
- Hero "Write me" opens the contact window; still a plain #contact link
  without JavaScript
- Shared current-book loader for desk, deck and reading window
- Texts in de/en, i18n key check extended

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
denshooter
2026-10-15 18:56:48 +02:00
parent 62f2fb7742
commit f0e257ad19
19 changed files with 1413 additions and 113 deletions
+18 -14
View File
@@ -1,6 +1,8 @@
import Header from "../components/Header.server";
import Hero from "../components/Hero";
import TischSection from "../components/tisch/TischSection";
import WindowProvider from "../components/fenster/WindowProvider";
import { getWindowLabels } from "../components/fenster/getWindowLabels";
import ScrollFadeIn from "../components/ScrollFadeIn";
import Script from "next/script";
import {
@@ -20,10 +22,11 @@ interface HomePageServerProps {
export default async function HomePageServer({ locale }: HomePageServerProps) {
// Parallel laden aller Translations (hero translations handled by Hero server component)
const [aboutT, contactT, footerT] = await Promise.all([
const [aboutT, contactT, footerT, windowLabels] = await Promise.all([
getAboutTranslations(locale),
getContactTranslations(locale),
getFooterTranslations(locale),
getWindowLabels(locale),
]);
return (
@@ -86,22 +89,23 @@ export default async function HomePageServer({ locale }: HomePageServerProps) {
}}
/>
<Header locale={locale} />
<main className="relative">
<Hero locale={locale} />
<TischSection locale={locale} />
<WindowProvider labels={windowLabels}>
<main className="relative">
<Hero locale={locale} />
<TischSection locale={locale} />
<ScrollFadeIn>
<AboutClient locale={locale} translations={aboutT} />
</ScrollFadeIn>
<ScrollFadeIn>
<ContactClient locale={locale} translations={contactT} />
</ScrollFadeIn>
</main>
<ScrollFadeIn>
<AboutClient locale={locale} translations={aboutT} />
<FooterClient locale={locale} translations={footerT} />
</ScrollFadeIn>
<ScrollFadeIn>
<ContactClient locale={locale} translations={contactT} />
</ScrollFadeIn>
</main>
<ScrollFadeIn>
<FooterClient locale={locale} translations={footerT} />
</ScrollFadeIn>
</WindowProvider>
</div>
);
}