feat: Startseite farbiger, Netz-Animation, Paperless und Datensouveränität als Unterseiten
- Farben zurück Richtung Original: Navy #18212f/#111925 im Dunkelmodus, #f0f4f8/#e8eef4 hell, Slogan-Band in Orange, Privat orange und Geschäft blau, farbige Phrasen in Überschriften, farbige Kennzahlen und Schritte - Hero: Netz aus Punkten unterschiedlicher Größe mit wandernden Datenpaketen; Knoten mit Begriffen für Nicht-Techniker (WLAN, Netzwerk, Webseiten, ...) - Paperless-ngx nach /paperless, Datensouveränität nach /datensouveraenitaet; Navigation, Footer und Sitemap verlinken dorthin Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3db091fafa
commit
af835e1c3c
|
|
@ -0,0 +1,34 @@
|
|||
import type { Metadata } from "next";
|
||||
import Header from "@/components/Header";
|
||||
import Footer from "@/components/Footer";
|
||||
import JsonLd from "@/components/JsonLd";
|
||||
import DataSovereignty from "@/components/DataSovereignty";
|
||||
import Contact from "@/components/Contact";
|
||||
import MobileContactBar from "@/components/MobileContactBar";
|
||||
import { OG_COMMON, breadcrumbSchema } from "@/lib/seo";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Datensouveränität: US Cloud Act, DSGVO und europäische Alternativen",
|
||||
description:
|
||||
"Warum der Serverstandort allein nicht schützt: US Cloud Act und DSGVO im Konflikt. Europäische Cloud, Self-Hosting und Nextcloud als Lösung, aus Crailsheim.",
|
||||
openGraph: {
|
||||
title: "Datensouveränität: US Cloud Act, DSGVO und europäische Alternativen",
|
||||
description: "US Cloud Act und DSGVO im Konflikt, und wie Sie Ihre Daten unter eigener Kontrolle behalten.",
|
||||
url: "/datensouveraenitaet",
|
||||
...OG_COMMON,
|
||||
},
|
||||
alternates: { canonical: "/datensouveraenitaet" },
|
||||
};
|
||||
|
||||
export default function DatensouveraenitaetPage() {
|
||||
return (
|
||||
<main className="site pb-16 lg:pb-0">
|
||||
<JsonLd data={breadcrumbSchema([{ name: "Datensouveränität", path: "/datensouveraenitaet" }])} />
|
||||
<Header />
|
||||
<DataSovereignty standalone />
|
||||
<Contact />
|
||||
<Footer />
|
||||
<MobileContactBar />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
|
@ -1,7 +1,10 @@
|
|||
/* Hallmark · shape: Marquee Hero (draw ff210f) · genre: modern-minimal · theme: Cobalt (deal 1/3, seed local-service-homes-small-21ad·35e5309b·2026-11-04·r0) · brand: Logo, Orange #f97316, Blau #2563eb · redesign: full · scope: Startseite + System
|
||||
* hero: Poster · nav: slab · footer: colophon block · imagery: photographs, library 1, duotone (Platzhalter) · signature: ASCII-Feld, Rauschen links, geordnete Leitungen in den Stack rechts
|
||||
* axes: light/grotesk-sans/cool · posture: restrained · modes: light+dark · contrast: pass · fold: pass · v2.0.0 */
|
||||
* hero: Poster · nav: slab · footer: colophon block · imagery: photographs, library 1, duotone (Platzhalter) · signature: Netz aus Punkten verschiedener Größe, Knoten mit Leistungen in Alltagssprache
|
||||
* axes: light/grotesk-sans/cool · posture: committed (Original-Navy und Flächen #f0f4f8/#e8eef4, Slogan-Band in Orange) · modes: light+dark · contrast: pass · fold: pass · v2.0.0 */
|
||||
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, Datensouveränität trägt viel Text; per Umschalter halbiert, Wörter bleiben die des Inhabers */
|
||||
/* Hallmark · waive 38iii: farbige Phrase in Überschriften (Original-Look, ausdrücklicher Wunsch des Inhabers), einfarbig ohne Verlauf
|
||||
* Hallmark · moved: Paperless nach /paperless, Datensouveränität nach /datensouveraenitaet (Wunsch des Inhabers); Stack-Badges (DB hero_badges) im Hero nicht mehr angezeigt
|
||||
*/
|
||||
/* Hallmark · theme override: Cobalt "kein warmer Akzent" weicht der Marke; Orange ist Markenfarbe (Vorgabe des Inhabers), nur Logo und Hauptaktion */
|
||||
/* Hallmark · answered F4: .btn-secondary ist eine helle Taste, keine zweite Füllung; gefüllt ist nur Orange (Hero und Formular, beide "anfragen") · answered F7: alle Tasten teilen bewusst ein Rezept (Cobalt-Keycaps)
|
||||
* Hallmark · kept: /privatkunden und /geschaeftskunden stehen jetzt in components/Zielgruppen.tsx (Daten-Array); Technologien-onClick ruft weiter setActive(tech.name) und merkt sich den Auslöser für den Fokus
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@ import Hero from "@/components/Hero";
|
|||
import TaglineBanner from "@/components/TaglineBanner";
|
||||
import Zielgruppen from "@/components/Zielgruppen";
|
||||
import Technologies from "@/components/Technologies";
|
||||
import DataSovereignty from "@/components/DataSovereignty";
|
||||
import PaperlessSection from "@/components/PaperlessSection";
|
||||
import About from "@/components/About";
|
||||
import Contact from "@/components/Contact";
|
||||
import Footer from "@/components/Footer";
|
||||
|
|
@ -89,8 +87,6 @@ export default async function Home() {
|
|||
/>
|
||||
<TaglineBanner text={hero?.eyebrow_text || undefined} />
|
||||
<Zielgruppen />
|
||||
<PaperlessSection />
|
||||
<DataSovereignty />
|
||||
<Technologies />
|
||||
<About
|
||||
eyebrowText={ueberUns?.eyebrow_text}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,34 @@
|
|||
import type { Metadata } from "next";
|
||||
import Header from "@/components/Header";
|
||||
import Footer from "@/components/Footer";
|
||||
import JsonLd from "@/components/JsonLd";
|
||||
import PaperlessSection from "@/components/PaperlessSection";
|
||||
import Contact from "@/components/Contact";
|
||||
import MobileContactBar from "@/components/MobileContactBar";
|
||||
import { OG_COMMON, breadcrumbSchema } from "@/lib/seo";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Dokumentenarchiv mit Paperless-ngx: DSGVO & GoBD",
|
||||
description:
|
||||
"Digitale Dokumentenverwaltung, die rechtssicher ist: Paperless-ngx DSGVO-konform und GoBD-tauglich, selbstgehostet. Einrichtung und Schulung aus Crailsheim.",
|
||||
openGraph: {
|
||||
title: "Dokumentenarchiv mit Paperless-ngx: DSGVO & GoBD",
|
||||
description: "Paperless-ngx DSGVO-konform und GoBD-tauglich, selbstgehostet. Einrichtung aus Crailsheim.",
|
||||
url: "/paperless",
|
||||
...OG_COMMON,
|
||||
},
|
||||
alternates: { canonical: "/paperless" },
|
||||
};
|
||||
|
||||
export default function PaperlessPage() {
|
||||
return (
|
||||
<main className="site pb-16 lg:pb-0">
|
||||
<JsonLd data={breadcrumbSchema([{ name: "Dokumentenarchiv (Paperless)", path: "/paperless" }])} />
|
||||
<Header />
|
||||
<PaperlessSection standalone />
|
||||
<Contact />
|
||||
<Footer />
|
||||
<MobileContactBar />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
114
app/site.css
114
app/site.css
|
|
@ -50,6 +50,12 @@
|
|||
.site p {
|
||||
margin: 0;
|
||||
}
|
||||
.hl {
|
||||
color: var(--color-accent-text);
|
||||
}
|
||||
.hl--warm {
|
||||
color: var(--color-signal-text);
|
||||
}
|
||||
.lead {
|
||||
font-size: var(--text-lead);
|
||||
line-height: 1.45;
|
||||
|
|
@ -85,7 +91,7 @@
|
|||
.cut {
|
||||
border: var(--rule-hair) solid var(--color-rule);
|
||||
border-radius: var(--radius-card);
|
||||
background: var(--color-paper);
|
||||
background: var(--color-card);
|
||||
}
|
||||
@supports (corner-shape: bevel) {
|
||||
.cut {
|
||||
|
|
@ -346,8 +352,8 @@
|
|||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 0;
|
||||
background-image: radial-gradient(var(--color-glyph-2) 1px, transparent 1px);
|
||||
background-size: var(--cell-w) var(--cell-h);
|
||||
background-image: radial-gradient(color-mix(in oklab, var(--color-accent) 35%, transparent) 1.5px, transparent 1.5px);
|
||||
background-size: 24px 24px;
|
||||
-webkit-mask-image: linear-gradient(90deg, transparent 30%, var(--color-ink) 75%);
|
||||
mask-image: linear-gradient(90deg, transparent 30%, var(--color-ink) 75%);
|
||||
}
|
||||
|
|
@ -395,22 +401,25 @@
|
|||
gap: var(--space-sm);
|
||||
margin-top: var(--space-xl);
|
||||
}
|
||||
.hero__stack {
|
||||
.hero__net {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.hero__stack li {
|
||||
.hero__net li {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 500;
|
||||
font-weight: 600;
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-ink);
|
||||
background: var(--color-paper);
|
||||
border: 1px solid var(--color-rule-2);
|
||||
border-radius: var(--cut) 2px;
|
||||
padding: var(--space-3xs) var(--space-xs);
|
||||
background: var(--color-card);
|
||||
border: 1px solid color-mix(in oklab, var(--color-accent) 55%, transparent);
|
||||
border-radius: var(--radius-input);
|
||||
padding: var(--space-2xs) var(--space-sm);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.hero__net li.is-warm {
|
||||
border-color: color-mix(in oklab, var(--color-signal) 70%, transparent);
|
||||
}
|
||||
.hero__pause {
|
||||
position: absolute;
|
||||
right: var(--gutter);
|
||||
|
|
@ -435,11 +444,11 @@
|
|||
box-shadow: var(--shadow-key-press);
|
||||
}
|
||||
@media (min-width: 60.01rem) {
|
||||
.hero__stack li {
|
||||
.hero__net li {
|
||||
position: absolute;
|
||||
right: var(--gutter);
|
||||
left: var(--x);
|
||||
top: var(--y);
|
||||
transform: translateY(-50%);
|
||||
transform: translate(14px, -50%);
|
||||
z-index: 2;
|
||||
}
|
||||
}
|
||||
|
|
@ -453,7 +462,7 @@
|
|||
.hero__field {
|
||||
opacity: 0.45;
|
||||
}
|
||||
.hero__stack {
|
||||
.hero__net {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-xs);
|
||||
|
|
@ -466,10 +475,9 @@
|
|||
|
||||
/* ---------- Trenner: Slogan auf Graphit ---------- */
|
||||
.tagband {
|
||||
background: var(--color-graphite);
|
||||
color: var(--color-graphite-ink);
|
||||
padding-block: var(--space-2xl);
|
||||
border-top: 2px solid var(--color-ink);
|
||||
background: var(--color-signal);
|
||||
color: var(--color-signal-ink);
|
||||
padding-block: var(--space-xl);
|
||||
}
|
||||
.tagband__inner {
|
||||
display: flex;
|
||||
|
|
@ -485,15 +493,15 @@
|
|||
font-size: var(--text-display-s);
|
||||
letter-spacing: var(--tracking-display);
|
||||
line-height: 1.02;
|
||||
color: var(--color-graphite-ink);
|
||||
color: var(--color-signal-ink);
|
||||
}
|
||||
.tagband__line span {
|
||||
color: var(--color-signal);
|
||||
color: var(--color-signal-ink);
|
||||
}
|
||||
.tagband__glyphs {
|
||||
font-family: var(--font-outlier);
|
||||
font-size: var(--text-xs);
|
||||
color: var(--color-graphite-muted);
|
||||
color: var(--color-signal-edge);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
max-width: 100%;
|
||||
|
|
@ -514,8 +522,23 @@
|
|||
text-decoration: none;
|
||||
transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
|
||||
}
|
||||
.aud__panel {
|
||||
border-top: 3px solid var(--tone);
|
||||
border-radius: var(--radius-card);
|
||||
corner-shape: round;
|
||||
}
|
||||
.aud__panel:hover {
|
||||
border-color: var(--color-accent);
|
||||
border-color: var(--tone);
|
||||
}
|
||||
.aud__panel--warm {
|
||||
--tone: var(--color-signal);
|
||||
--tone-text: var(--color-signal-text);
|
||||
--tone-wash: var(--color-signal-wash);
|
||||
}
|
||||
.aud__panel--cool {
|
||||
--tone: var(--color-accent);
|
||||
--tone-text: var(--color-accent-text);
|
||||
--tone-wash: var(--color-accent-wash);
|
||||
}
|
||||
.aud__panel:active {
|
||||
transform: translateY(1px);
|
||||
|
|
@ -527,7 +550,7 @@
|
|||
gap: var(--space-md);
|
||||
}
|
||||
.aud__top .icon {
|
||||
color: var(--color-accent-text);
|
||||
color: var(--tone-text);
|
||||
transition: transform var(--dur-short) var(--ease-out);
|
||||
}
|
||||
.aud__panel:hover .aud__top .icon {
|
||||
|
|
@ -540,14 +563,17 @@
|
|||
list-style: none;
|
||||
margin: var(--space-sm) 0 0;
|
||||
padding: 0;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
column-gap: var(--space-lg);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-xs);
|
||||
}
|
||||
.aud__list li {
|
||||
padding-block: var(--space-sm);
|
||||
border-top: 1px solid var(--color-rule);
|
||||
font-size: var(--text-md);
|
||||
padding: var(--space-2xs) var(--space-sm);
|
||||
border-radius: var(--radius-input);
|
||||
background: var(--tone-wash);
|
||||
color: var(--tone-text);
|
||||
font-size: var(--text-sm);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* ---------- Zeilen, Häkchen, Tags ---------- */
|
||||
|
|
@ -594,7 +620,7 @@
|
|||
border-bottom: 1px solid var(--color-rule);
|
||||
}
|
||||
.checks .icon--s {
|
||||
color: var(--color-accent-text);
|
||||
color: var(--color-signal-text);
|
||||
margin-top: var(--space-3xs);
|
||||
}
|
||||
.tags {
|
||||
|
|
@ -772,7 +798,7 @@
|
|||
.tech__cat {
|
||||
grid-column: 1;
|
||||
font-size: var(--text-sm);
|
||||
color: var(--color-muted);
|
||||
color: var(--color-signal-text);
|
||||
}
|
||||
.tech__more {
|
||||
grid-row: 1 / span 2;
|
||||
|
|
@ -924,9 +950,12 @@
|
|||
font-weight: 600;
|
||||
font-size: var(--text-3xl);
|
||||
line-height: 1;
|
||||
color: var(--color-accent-text);
|
||||
color: var(--color-signal-text);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.steps > li {
|
||||
border-top-color: var(--color-signal);
|
||||
}
|
||||
.steps p {
|
||||
color: var(--color-ink-2);
|
||||
}
|
||||
|
|
@ -956,6 +985,12 @@
|
|||
line-height: 1;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.figs > div:nth-child(odd) b {
|
||||
color: var(--color-signal-text);
|
||||
}
|
||||
.figs > div:nth-child(even) b {
|
||||
color: var(--color-accent-text);
|
||||
}
|
||||
.figs span {
|
||||
display: block;
|
||||
margin-top: var(--space-xs);
|
||||
|
|
@ -1025,7 +1060,9 @@
|
|||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.well {
|
||||
background: var(--color-paper-2);
|
||||
background: var(--color-card);
|
||||
border: 1px solid var(--color-rule);
|
||||
border-top: 3px solid var(--color-signal);
|
||||
border-radius: var(--radius-card);
|
||||
padding: var(--space-xl);
|
||||
}
|
||||
|
|
@ -1141,7 +1178,7 @@ select.form__input {
|
|||
|
||||
/* ---------- Footer: Colophon ---------- */
|
||||
.ft {
|
||||
background: var(--color-paper);
|
||||
background: var(--color-paper-2);
|
||||
color: var(--color-ink);
|
||||
border-top: 2px solid var(--color-ink);
|
||||
padding-block: var(--space-3xl) var(--space-xl);
|
||||
|
|
@ -1221,6 +1258,15 @@ select.form__input {
|
|||
color: inherit;
|
||||
}
|
||||
|
||||
/* ---------- Unterseiten ---------- */
|
||||
.sec--page {
|
||||
padding-top: calc(var(--nav-h) + var(--space-3xl));
|
||||
}
|
||||
.site h1.page-title {
|
||||
font-size: var(--text-display);
|
||||
max-width: 20ch;
|
||||
}
|
||||
|
||||
/* ---------- Mobile Kontaktleiste ---------- */
|
||||
.mbar {
|
||||
position: fixed;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,8 @@ const paths = [
|
|||
"/privatkunden",
|
||||
"/geschaeftskunden",
|
||||
"/services",
|
||||
"/paperless",
|
||||
"/datensouveraenitaet",
|
||||
"/pakete",
|
||||
"/pakete/familyguard",
|
||||
"/pakete/nextcloud",
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@
|
|||
--z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
|
||||
|
||||
/* Papier, Tinte, Linien */
|
||||
--color-paper: oklch(98.6% 0.005 250); --color-paper-2: oklch(96.2% 0.008 252); --color-paper-3: oklch(93% 0.011 252);
|
||||
--color-paper: oklch(96.4% 0.008 248); --color-paper-2: oklch(94.4% 0.011 248); --color-paper-3: oklch(91% 0.015 250); --color-card: oklch(99.3% 0.003 250);
|
||||
--color-ink: oklch(21% 0.028 262); --color-ink-2: oklch(36% 0.022 260); --color-muted: oklch(48% 0.018 258);
|
||||
--color-rule: oklch(90% 0.009 252); --color-rule-2: oklch(83% 0.012 252);
|
||||
--color-rule: oklch(88% 0.014 252); --color-rule-2: oklch(80% 0.018 252);
|
||||
--color-graphite: oklch(21% 0.024 262); --color-graphite-2: oklch(26.5% 0.026 262); --color-graphite-ink: oklch(93% 0.010 250); --color-graphite-muted: oklch(72% 0.022 256);
|
||||
|
||||
/* Signal: Markenblau #2563eb */
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
/* Marke: Orange #f97316, die eine Hauptaktion und das Logo */
|
||||
--color-signal: oklch(70.5% 0.191 47.6); --color-signal-edge: oklch(54% 0.17 42); --color-signal-ink: oklch(21% 0.028 262);
|
||||
--color-signal-text: oklch(55% 0.19 40);
|
||||
--color-signal-text: oklch(55% 0.19 40); --color-signal-wash: oklch(95.5% 0.035 60);
|
||||
|
||||
--color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
|
||||
|
||||
|
|
@ -52,18 +52,18 @@
|
|||
/* Dunkel: neu abgeleitet, nicht invertiert. Gleiche Farbtöne, Tiefe über Helligkeit statt Schatten. */
|
||||
.dark {
|
||||
color-scheme: dark;
|
||||
--color-paper: oklch(17% 0.02 262); --color-paper-2: oklch(20.5% 0.022 262); --color-paper-3: oklch(24% 0.024 262);
|
||||
--color-paper: oklch(24.5% 0.03 262); --color-paper-2: oklch(20.5% 0.028 262); --color-paper-3: oklch(29% 0.034 262); --color-card: oklch(27.5% 0.033 262);
|
||||
--color-ink: oklch(94% 0.01 250); --color-ink-2: oklch(83% 0.015 252); --color-muted: oklch(71% 0.02 256);
|
||||
--color-rule: oklch(29% 0.022 262); --color-rule-2: oklch(37% 0.025 260);
|
||||
--color-rule: oklch(34% 0.03 262); --color-rule-2: oklch(41% 0.032 260);
|
||||
--color-graphite: oklch(13% 0.018 262); --color-graphite-2: oklch(19% 0.02 262); --color-graphite-ink: oklch(93% 0.01 250); --color-graphite-muted: oklch(72% 0.022 256);
|
||||
--color-accent: oklch(66% 0.17 262); --color-accent-2: oklch(80% 0.1 256); --color-accent-wash: oklch(25% 0.05 262); --color-accent-ink: oklch(15% 0.02 262);
|
||||
--color-accent: oklch(66% 0.17 262); --color-accent-2: oklch(80% 0.1 256); --color-accent-wash: oklch(30% 0.06 262); --color-accent-ink: oklch(15% 0.02 262);
|
||||
--color-accent-deep: oklch(74% 0.15 258); --color-accent-edge: oklch(48% 0.15 262);
|
||||
--color-accent-text: oklch(76% 0.13 258);
|
||||
--color-accent-text: oklch(71.4% 0.143 254.6);
|
||||
--color-focus: oklch(70% 0.16 262);
|
||||
--color-signal-text: oklch(76% 0.16 52);
|
||||
--color-signal-text: oklch(75% 0.16 55); --color-signal-wash: oklch(30% 0.055 50);
|
||||
--color-error: oklch(70% 0.16 27); --color-success: oklch(72% 0.13 150);
|
||||
--color-glyph-1: oklch(27% 0.03 262); --color-glyph-2: oklch(35% 0.05 260); --color-glyph-3: oklch(47% 0.09 258); --color-glyph-4: oklch(60% 0.13 258);
|
||||
--color-key-face: oklch(24% 0.022 262); --color-key-edge: oklch(11% 0.02 262);
|
||||
--color-key-face: oklch(30% 0.034 262); --color-key-edge: oklch(15% 0.025 262);
|
||||
--shadow-card: 0 0 0 1px var(--color-rule);
|
||||
--shadow-key: 0 3px 0 0 var(--color-key-edge), inset 0 1px 0 oklch(100% 0 0 / 0.06);
|
||||
--shadow-key-signal: 0 3px 0 0 var(--color-signal-edge), inset 0 1px 0 oklch(100% 0 0 / 0.3);
|
||||
|
|
|
|||
|
|
@ -39,7 +39,9 @@ export default function About({
|
|||
<section id="about" className="sec" aria-labelledby="about-title">
|
||||
<div className="wrap grid12">
|
||||
<div className="about__text">
|
||||
<h2 id="about-title">IT-Expertise, die Sie weiterbringt</h2>
|
||||
<h2 id="about-title">
|
||||
IT-Expertise, <span className="hl">die Sie weiterbringt</span>
|
||||
</h2>
|
||||
<p>{absatz1}</p>
|
||||
<p>{absatz2}</p>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,257 +0,0 @@
|
|||
"use client";
|
||||
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import { Pause, Play } from "lucide-react";
|
||||
|
||||
/*
|
||||
* Das ASCII-Feld des Hero (Theme Cobalt): ein Zeichenraster auf 8 × 16 px.
|
||||
* Links bleibt es ruhig (dort steht der Text), in der Mitte rauscht ein ungeordnetes
|
||||
* Netz, rechts laufen daraus geordnete Leitungen in die Stack-Labels (.hero__stack li).
|
||||
* Läuft mit 30 fps, pausiert außerhalb des Sichtfelds, per Taste und bei reduzierter Bewegung.
|
||||
*/
|
||||
|
||||
const CW = 8;
|
||||
const CH = 16;
|
||||
const RAMP = " .:-=+*#%@";
|
||||
|
||||
function hash(x: number, y: number) {
|
||||
let h = (Math.imul(x, 374761393) + Math.imul(y, 668265263)) | 0;
|
||||
h = Math.imul(h ^ (h >>> 13), 1274126177);
|
||||
return ((h ^ (h >>> 16)) >>> 0) / 4294967295;
|
||||
}
|
||||
function fade(t: number) {
|
||||
return t * t * (3 - 2 * t);
|
||||
}
|
||||
function noise(x: number, y: number) {
|
||||
const xi = Math.floor(x);
|
||||
const yi = Math.floor(y);
|
||||
const u = fade(x - xi);
|
||||
const v = fade(y - yi);
|
||||
const a = hash(xi, yi);
|
||||
const b = hash(xi + 1, yi);
|
||||
const c = hash(xi, yi + 1);
|
||||
const d = hash(xi + 1, yi + 1);
|
||||
return a + (b - a) * u + (c - a) * v + (a - b - c + d) * u * v;
|
||||
}
|
||||
function smoothstep(e0: number, e1: number, x: number) {
|
||||
const t = Math.min(1, Math.max(0, (x - e0) / (e1 - e0)));
|
||||
return t * t * (3 - 2 * t);
|
||||
}
|
||||
|
||||
type Line = { x: number; y: number; i: number };
|
||||
|
||||
export default function AsciiField() {
|
||||
const wrapRef = useRef<HTMLDivElement>(null);
|
||||
const canvasRef = useRef<HTMLCanvasElement>(null);
|
||||
const heldRef = useRef(false);
|
||||
const syncRef = useRef<() => void>(() => {});
|
||||
const [live, setLive] = useState(false);
|
||||
const [held, setHeld] = useState(false);
|
||||
const [canPause, setCanPause] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
const wrap = wrapRef.current;
|
||||
const canvas = canvasRef.current;
|
||||
const hero = wrap?.parentElement;
|
||||
if (!wrap || !canvas || !hero) return;
|
||||
const ctx = canvas.getContext("2d");
|
||||
if (!ctx) return;
|
||||
|
||||
const reduced = window.matchMedia("(prefers-reduced-motion: reduce)");
|
||||
const wide = window.matchMedia("(min-width: 60.01rem)");
|
||||
const fine = window.matchMedia("(pointer: fine)");
|
||||
|
||||
let W = 0;
|
||||
let H = 0;
|
||||
let lines: Line[] = [];
|
||||
let colors: string[] = [];
|
||||
let family = "monospace";
|
||||
let pointer: { x: number; y: number } | null = null;
|
||||
let visible = true;
|
||||
let raf = 0;
|
||||
let last = 0;
|
||||
let t0 = performance.now();
|
||||
let tPaused = 0;
|
||||
|
||||
const readColors = () => {
|
||||
const cs = getComputedStyle(document.documentElement);
|
||||
colors = ["--color-glyph-1", "--color-glyph-2", "--color-glyph-3", "--color-glyph-4", "--color-accent-deep"].map((n) =>
|
||||
cs.getPropertyValue(n).trim()
|
||||
);
|
||||
family = getComputedStyle(canvas).fontFamily || "monospace";
|
||||
};
|
||||
|
||||
const measure = () => {
|
||||
const r = hero.getBoundingClientRect();
|
||||
W = r.width;
|
||||
H = r.height;
|
||||
const dpr = Math.min(window.devicePixelRatio || 1, 2);
|
||||
canvas.width = Math.round(W * dpr);
|
||||
canvas.height = Math.round(H * dpr);
|
||||
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
|
||||
lines = [];
|
||||
if (wide.matches) {
|
||||
hero.querySelectorAll<HTMLElement>(".hero__stack li").forEach((li, i) => {
|
||||
const b = li.getBoundingClientRect();
|
||||
lines.push({ x: b.left - r.left - CW * 2, y: b.top - r.top + b.height / 2, i });
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
const draw = (t: number) => {
|
||||
ctx.clearRect(0, 0, W, H);
|
||||
ctx.font = `12px ${family}`;
|
||||
ctx.textAlign = "center";
|
||||
ctx.textBaseline = "middle";
|
||||
|
||||
const narrow = !wide.matches;
|
||||
const cx = narrow ? W * 0.78 : W * 0.6;
|
||||
const cy = narrow ? H * 0.07 : H * 0.47;
|
||||
const rx = W * (narrow ? 0.28 : 0.15);
|
||||
const ry = H * (narrow ? 0.08 : 0.33);
|
||||
const lineStart = cx + rx * 0.35;
|
||||
const calmEnd = W * (narrow ? 0.45 : 0.34);
|
||||
const calmFull = W * (narrow ? 0.9 : 0.58);
|
||||
const buckets: [string, number, number][][] = [[], [], [], [], []];
|
||||
const cols = Math.ceil(W / CW);
|
||||
const rows = Math.ceil(H / CH);
|
||||
|
||||
for (let r = 0; r < rows; r++) {
|
||||
const py = r * CH + CH / 2;
|
||||
let row: Line | null = null;
|
||||
for (const L of lines) if (Math.abs(py - L.y) < CH / 2) row = L;
|
||||
for (let c = 0; c < cols; c++) {
|
||||
const px = c * CW + CW / 2;
|
||||
const f = smoothstep(calmEnd, calmFull, px);
|
||||
const lens = pointer ? Math.exp(-((px - pointer.x) ** 2 + (py - pointer.y) ** 2) / (2 * 64 * 64)) : 0;
|
||||
if (f === 0 && lens < 0.05) continue;
|
||||
|
||||
let d = Math.pow(noise(px * 0.018 + t * 0.25, py * 0.03 - t * 0.1), 5) * 0.55 * f;
|
||||
const dx = (px - cx) / rx;
|
||||
const dy = (py - cy) / ry;
|
||||
const g = Math.exp(-(dx * dx + dy * dy) * 1.6);
|
||||
if (g > 0.01) d = Math.max(d, g * (0.3 + 0.9 * noise(px * 0.045 - t * 0.6, py * 0.06 + t * 0.3)));
|
||||
|
||||
let isLine = false;
|
||||
if (row && px > lineStart && px < row.x) {
|
||||
const along = (px - lineStart) / (row.x - lineStart);
|
||||
const pulse = Math.max(0, Math.sin(px * 0.035 - t * 5 + row.i * 1.7));
|
||||
d = Math.max(d, 0.42 + 0.12 * (1 - along) + 0.5 * Math.pow(pulse, 6));
|
||||
isLine = true;
|
||||
}
|
||||
d = Math.min(0.999, d + lens * 0.55 * Math.max(f, 0.25));
|
||||
if (d < 0.1) continue;
|
||||
|
||||
const ch = isLine ? (d > 0.8 ? "=" : "-") : RAMP[Math.floor(d * RAMP.length)];
|
||||
if (ch === " ") continue;
|
||||
const b = d < 0.3 ? 0 : d < 0.5 ? 1 : d < 0.68 ? 2 : d < 0.86 ? 3 : 4;
|
||||
buckets[b].push([ch, px, py]);
|
||||
}
|
||||
}
|
||||
buckets.forEach((cells, i) => {
|
||||
if (!cells.length) return;
|
||||
ctx.fillStyle = colors[i] || "currentColor";
|
||||
for (const [ch, x, y] of cells) ctx.fillText(ch, x, y);
|
||||
});
|
||||
};
|
||||
|
||||
const running = () => visible && !heldRef.current && !reduced.matches;
|
||||
|
||||
const loop = (now: number) => {
|
||||
raf = 0;
|
||||
if (!running()) return;
|
||||
if (now - last >= 33) {
|
||||
last = now;
|
||||
draw((now - t0) / 1000);
|
||||
}
|
||||
raf = requestAnimationFrame(loop);
|
||||
};
|
||||
|
||||
const sync = () => {
|
||||
if (running()) {
|
||||
if (!raf) {
|
||||
t0 = performance.now() - tPaused * 1000;
|
||||
raf = requestAnimationFrame(loop);
|
||||
}
|
||||
} else {
|
||||
if (raf) cancelAnimationFrame(raf);
|
||||
raf = 0;
|
||||
tPaused = (performance.now() - t0) / 1000;
|
||||
draw(reduced.matches ? 2.4 : tPaused);
|
||||
}
|
||||
};
|
||||
syncRef.current = sync;
|
||||
|
||||
readColors();
|
||||
measure();
|
||||
draw(reduced.matches ? 2.4 : 0);
|
||||
setLive(true);
|
||||
setCanPause(!reduced.matches);
|
||||
sync();
|
||||
|
||||
const onResize = () => {
|
||||
measure();
|
||||
if (!running()) draw(reduced.matches ? 2.4 : tPaused);
|
||||
};
|
||||
const ro = new ResizeObserver(onResize);
|
||||
ro.observe(hero);
|
||||
|
||||
const io = new IntersectionObserver(([e]) => {
|
||||
visible = e.isIntersecting;
|
||||
sync();
|
||||
});
|
||||
io.observe(hero);
|
||||
|
||||
const mo = new MutationObserver(() => {
|
||||
readColors();
|
||||
if (!running()) draw(reduced.matches ? 2.4 : tPaused);
|
||||
});
|
||||
mo.observe(document.documentElement, { attributes: true, attributeFilter: ["class"] });
|
||||
|
||||
const onMove = (e: PointerEvent) => {
|
||||
if (!fine.matches) return;
|
||||
const r = hero.getBoundingClientRect();
|
||||
pointer = { x: e.clientX - r.left, y: e.clientY - r.top };
|
||||
};
|
||||
const onLeave = () => {
|
||||
pointer = null;
|
||||
};
|
||||
hero.addEventListener("pointermove", onMove);
|
||||
hero.addEventListener("pointerleave", onLeave);
|
||||
const onMotion = () => {
|
||||
setCanPause(!reduced.matches);
|
||||
sync();
|
||||
};
|
||||
reduced.addEventListener("change", onMotion);
|
||||
|
||||
return () => {
|
||||
if (raf) cancelAnimationFrame(raf);
|
||||
ro.disconnect();
|
||||
io.disconnect();
|
||||
mo.disconnect();
|
||||
hero.removeEventListener("pointermove", onMove);
|
||||
hero.removeEventListener("pointerleave", onLeave);
|
||||
reduced.removeEventListener("change", onMotion);
|
||||
};
|
||||
}, []);
|
||||
|
||||
const toggle = () => {
|
||||
heldRef.current = !heldRef.current;
|
||||
setHeld(heldRef.current);
|
||||
syncRef.current();
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div ref={wrapRef} className={`hero__field${live ? " is-live" : ""}`} aria-hidden="true">
|
||||
<canvas ref={canvasRef} className="font-mono" />
|
||||
</div>
|
||||
{canPause && (
|
||||
<button type="button" className="hero__pause" onClick={toggle} aria-pressed={held}>
|
||||
{held ? <Play className="icon--s" aria-hidden="true" /> : <Pause className="icon--s" aria-hidden="true" />}
|
||||
{held ? "Animation fortsetzen" : "Animation anhalten"}
|
||||
</button>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
@ -118,7 +118,7 @@ ${nachricht}` : ""}`
|
|||
}
|
||||
|
||||
return (
|
||||
<section id="contact" className="sec" aria-labelledby="contact-title">
|
||||
<section id="contact" className="sec band" aria-labelledby="contact-title">
|
||||
<div className="wrap grid12">
|
||||
<div className="ct__info">
|
||||
<h2 id="contact-title">Projekt anfragen</h2>
|
||||
|
|
|
|||
|
|
@ -58,7 +58,8 @@ const tabs = [
|
|||
|
||||
type TabId = (typeof tabs)[number]["id"];
|
||||
|
||||
export default function DataSovereignty() {
|
||||
export default function DataSovereignty({ standalone = false }: { standalone?: boolean }) {
|
||||
const Title = standalone ? "h1" : "h2";
|
||||
// Ohne Skript stehen beide Teile untereinander; erst nach dem Laden wird umgeschaltet.
|
||||
const [enhanced, setEnhanced] = useState(false);
|
||||
const [active, setActive] = useState<TabId>("risiko");
|
||||
|
|
@ -77,10 +78,12 @@ export default function DataSovereignty() {
|
|||
const shown = (id: TabId) => !enhanced || active === id;
|
||||
|
||||
return (
|
||||
<section id="datensouveraenitaet" className="sec" aria-labelledby="ds-title">
|
||||
<section id="datensouveraenitaet" className={standalone ? "sec sec--page" : "sec"} aria-labelledby="ds-title">
|
||||
<div className="wrap">
|
||||
<div className="head head--split">
|
||||
<h2 id="ds-title">Ihre Daten gehören Ihnen</h2>
|
||||
<Title id="ds-title" className={standalone ? "page-title" : undefined}>
|
||||
Ihre Daten gehören <span className="hl">Ihnen</span>
|
||||
</Title>
|
||||
<p className="lead">
|
||||
US Cloud Act, DSGVO und Datensouveränität: warum die Wahl Ihrer IT-Infrastruktur über mehr als Kosten entscheidet.
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ const footerLinks = [
|
|||
{ label: "PC & Notebook Support", href: "/leistungen/pc-support-crailsheim" },
|
||||
{ label: "Datensicherung & Backup", href: "/leistungen/datensicherung-crailsheim" },
|
||||
{ label: "Webseiten & Web-Apps", href: "/leistungen/webseiten-crailsheim" },
|
||||
{ label: "Dokumentenarchiv (Paperless)", href: "/paperless" },
|
||||
{ label: "Alle Services", href: "/services" },
|
||||
],
|
||||
},
|
||||
|
|
@ -17,6 +18,7 @@ const footerLinks = [
|
|||
links: [
|
||||
{ label: "Über uns", href: "/#about" },
|
||||
{ label: "Technologien", href: "/#technologies" },
|
||||
{ label: "Datensouveränität", href: "/datensouveraenitaet" },
|
||||
{ label: "Kontakt", href: "/#contact" },
|
||||
],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ const navLinks = [
|
|||
{ label: "Privatkunden", href: "/privatkunden" },
|
||||
{ label: "Geschäftskunden", href: "/geschaeftskunden" },
|
||||
{ label: "Technologien", href: "/#technologies" },
|
||||
{ label: "Datensouveränität", href: "/#datensouveraenitaet" },
|
||||
{ label: "Datensouveränität", href: "/datensouveraenitaet" },
|
||||
{ label: "Über uns", href: "/#about" },
|
||||
{ label: "Kontakt", href: "/#contact" },
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import type { CSSProperties } from "react";
|
||||
import AsciiField from "./AsciiField";
|
||||
import NetField from "./NetField";
|
||||
|
||||
interface HeroProps {
|
||||
eyebrowText?: string;
|
||||
|
|
@ -14,11 +14,17 @@ interface HeroProps {
|
|||
badges?: string[];
|
||||
}
|
||||
|
||||
// Senkrechte Lage der Stack-Labels; das ASCII-Feld führt seine Leitungen genau dorthin.
|
||||
function labelY(i: number, n: number) {
|
||||
if (n <= 1) return "50%";
|
||||
return `${30 + (i * 40) / (n - 1)}%`;
|
||||
}
|
||||
// Knoten im Netz: was wir tun, in Worten für Nicht-Techniker. x/y in Prozent des Hero.
|
||||
const netLabels = [
|
||||
{ text: "WLAN", x: 58, y: 22 },
|
||||
{ text: "Netzwerk", x: 75, y: 15 },
|
||||
{ text: "PC & Notebook", x: 84, y: 32 },
|
||||
{ text: "Eigene Cloud", x: 64, y: 42 },
|
||||
{ text: "Webseiten", x: 80, y: 52 },
|
||||
{ text: "Datensicherung", x: 58, y: 63 },
|
||||
{ text: "Fernzugriff", x: 86, y: 68 },
|
||||
{ text: "IT-Sicherheit", x: 71, y: 78 },
|
||||
];
|
||||
|
||||
export default function Hero({
|
||||
headline1 = "Ihr IT-Service in Crailsheim.",
|
||||
|
|
@ -29,7 +35,6 @@ export default function Hero({
|
|||
cta2Text = "Unsere Leistungen",
|
||||
cta2Href = "/services",
|
||||
bgImagePath = null,
|
||||
badges = ["Docker", "Proxmox", "Hetzner Cloud", "Linux"],
|
||||
}: HeroProps = {}) {
|
||||
return (
|
||||
<section className="hero" aria-labelledby="hero-title">
|
||||
|
|
@ -44,7 +49,7 @@ export default function Hero({
|
|||
</div>
|
||||
)}
|
||||
|
||||
<AsciiField />
|
||||
<NetField />
|
||||
|
||||
<div className="wrap grid12 hero__content">
|
||||
<div className="hero__text">
|
||||
|
|
@ -61,15 +66,17 @@ export default function Hero({
|
|||
</a>
|
||||
</div>
|
||||
|
||||
{badges.length > 0 && (
|
||||
<ul className="hero__stack" aria-label="Technik, mit der wir arbeiten">
|
||||
{badges.map((badge, i) => (
|
||||
<li key={badge} style={{ "--y": labelY(i, badges.length) } as CSSProperties}>
|
||||
{badge}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
<ul className="hero__net" aria-label="Wobei wir helfen">
|
||||
{netLabels.map((l, i) => (
|
||||
<li
|
||||
key={l.text}
|
||||
className={i % 2 === 0 ? "is-warm" : undefined}
|
||||
style={{ "--x": `${l.x}%`, "--y": `${l.y}%` } as CSSProperties}
|
||||
>
|
||||
{l.text}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,340 @@
|
|||
"use client";
|
||||
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import { Pause, Play } from "lucide-react";
|
||||
|
||||
/*
|
||||
* Das Netz im Hero: Punkte unterschiedlicher Größe, verbunden wie ein Netzwerk.
|
||||
* Die großen Knoten sitzen an den Begriffen (.hero__net li), kleine Datenpakete
|
||||
* wandern über die Leitungen. Links bleibt es ruhig, dort steht der Text.
|
||||
* 30 fps, pausiert außerhalb des Sichtfelds und per Taste; bei reduzierter Bewegung ein Standbild.
|
||||
*/
|
||||
|
||||
type Node = { bx: number; by: number; r: number; ph: number; amp: number; sp: number; hub: boolean; warm: boolean };
|
||||
type Packet = { a: number; b: number; p: number; v: number; warm: boolean };
|
||||
|
||||
function rng(seed: number) {
|
||||
let s = seed >>> 0;
|
||||
return () => {
|
||||
s = (s + 0x6d2b79f5) >>> 0;
|
||||
let t = s;
|
||||
t = Math.imul(t ^ (t >>> 15), t | 1);
|
||||
t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
|
||||
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
|
||||
};
|
||||
}
|
||||
|
||||
export default function NetField() {
|
||||
const wrapRef = useRef<HTMLDivElement>(null);
|
||||
const canvasRef = useRef<HTMLCanvasElement>(null);
|
||||
const heldRef = useRef(false);
|
||||
const syncRef = useRef<() => void>(() => {});
|
||||
const [live, setLive] = useState(false);
|
||||
const [held, setHeld] = useState(false);
|
||||
const [canPause, setCanPause] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
const wrap = wrapRef.current;
|
||||
const canvas = canvasRef.current;
|
||||
const hero = wrap?.parentElement;
|
||||
if (!wrap || !canvas || !hero) return;
|
||||
const ctx = canvas.getContext("2d");
|
||||
if (!ctx) return;
|
||||
|
||||
const reduced = window.matchMedia("(prefers-reduced-motion: reduce)");
|
||||
const wide = window.matchMedia("(min-width: 60.01rem)");
|
||||
const fine = window.matchMedia("(pointer: fine)");
|
||||
|
||||
let W = 0;
|
||||
let H = 0;
|
||||
let nodes: Node[] = [];
|
||||
let edges: [number, number][] = [];
|
||||
let adj: number[][] = [];
|
||||
let packets: Packet[] = [];
|
||||
let blue = "";
|
||||
let orange = "";
|
||||
let dark = false;
|
||||
let pointer: { x: number; y: number } | null = null;
|
||||
let visible = true;
|
||||
let raf = 0;
|
||||
let last = 0;
|
||||
let lastT = 0;
|
||||
let t0 = performance.now();
|
||||
let tPaused = 0;
|
||||
|
||||
const readColors = () => {
|
||||
const cs = getComputedStyle(document.documentElement);
|
||||
blue = cs.getPropertyValue("--color-accent").trim() || blue;
|
||||
orange = cs.getPropertyValue("--color-signal").trim() || orange;
|
||||
dark = document.documentElement.classList.contains("dark");
|
||||
};
|
||||
|
||||
const build = () => {
|
||||
const r = hero.getBoundingClientRect();
|
||||
W = r.width;
|
||||
H = r.height;
|
||||
const dpr = Math.min(window.devicePixelRatio || 1, 2);
|
||||
canvas.width = Math.round(W * dpr);
|
||||
canvas.height = Math.round(H * dpr);
|
||||
ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
|
||||
|
||||
const rand = rng(20261104);
|
||||
nodes = [];
|
||||
const blocked: DOMRect[] = [];
|
||||
|
||||
if (wide.matches) {
|
||||
hero.querySelectorAll<HTMLElement>(".hero__net li").forEach((li, i) => {
|
||||
const b = li.getBoundingClientRect();
|
||||
blocked.push(new DOMRect(b.left - r.left - 12, b.top - r.top - 10, b.width + 24, b.height + 20));
|
||||
nodes.push({
|
||||
bx: b.left - r.left - 14,
|
||||
by: b.top - r.top + b.height / 2,
|
||||
r: 6,
|
||||
ph: rand() * 6.28,
|
||||
amp: 2,
|
||||
sp: 0.3,
|
||||
hub: true,
|
||||
warm: i % 2 === 0,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
const count = wide.matches ? 150 : 55;
|
||||
const x0 = wide.matches ? 0.47 : 0.25;
|
||||
const y1 = wide.matches ? 0.97 : 0.42;
|
||||
let guard = 0;
|
||||
while (nodes.length < count + (wide.matches ? 8 : 0) && guard++ < 4000) {
|
||||
const x = W * (x0 + rand() * (0.995 - x0));
|
||||
const y = H * (0.05 + rand() * (y1 - 0.05));
|
||||
// links dünner besetzt, damit der Übergang zum Text weich bleibt
|
||||
const lean = (x / W - x0) / (1 - x0);
|
||||
if (rand() > 0.35 + lean * 0.8) continue;
|
||||
if (blocked.some((b) => x > b.left && x < b.right && y > b.top && y < b.bottom)) continue;
|
||||
const s = rand();
|
||||
nodes.push({
|
||||
bx: x,
|
||||
by: y,
|
||||
r: 1 + s * s * 3.2,
|
||||
ph: rand() * 6.28,
|
||||
amp: 2 + rand() * 5,
|
||||
sp: 0.2 + rand() * 0.4,
|
||||
hub: false,
|
||||
warm: rand() < 0.12,
|
||||
});
|
||||
}
|
||||
|
||||
// Verbindungen: jeder Punkt zu seinen nächsten Nachbarn
|
||||
const seen = new Set<string>();
|
||||
edges = [];
|
||||
adj = nodes.map(() => []);
|
||||
const link = (a: number, b: number) => {
|
||||
const k = a < b ? `${a}-${b}` : `${b}-${a}`;
|
||||
if (seen.has(k)) return;
|
||||
seen.add(k);
|
||||
edges.push([a, b]);
|
||||
adj[a].push(b);
|
||||
adj[b].push(a);
|
||||
};
|
||||
nodes.forEach((n, i) => {
|
||||
const near = nodes
|
||||
.map((m, j) => ({ j, d: Math.hypot(m.bx - n.bx, m.by - n.by) }))
|
||||
.filter((o) => o.j !== i)
|
||||
.sort((p, q) => p.d - q.d);
|
||||
const k = n.hub ? 5 : 3;
|
||||
near.slice(0, k).forEach((o) => {
|
||||
if (o.d < (n.hub ? 240 : 140)) link(i, o.j);
|
||||
});
|
||||
});
|
||||
|
||||
packets = [];
|
||||
const pc = wide.matches ? 22 : 8;
|
||||
for (let i = 0; i < pc && edges.length; i++) {
|
||||
const [a, b] = edges[Math.floor(rand() * edges.length)];
|
||||
packets.push({ a, b, p: rand(), v: 70 + rand() * 70, warm: i % 3 === 0 });
|
||||
}
|
||||
};
|
||||
|
||||
const pos = (n: Node, t: number) => [n.bx + Math.sin(t * n.sp + n.ph) * n.amp, n.by + Math.cos(t * n.sp * 0.8 + n.ph) * n.amp];
|
||||
|
||||
const draw = (t: number, dt: number) => {
|
||||
ctx.clearRect(0, 0, W, H);
|
||||
const P = nodes.map((n) => pos(n, t));
|
||||
|
||||
// Leitungen
|
||||
ctx.lineWidth = 1;
|
||||
ctx.strokeStyle = blue;
|
||||
for (const [a, b] of edges) {
|
||||
const hubEdge = nodes[a].hub || nodes[b].hub;
|
||||
ctx.globalAlpha = (hubEdge ? 0.34 : 0.18) * (dark ? 1.25 : 1);
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(P[a][0], P[a][1]);
|
||||
ctx.lineTo(P[b][0], P[b][1]);
|
||||
ctx.stroke();
|
||||
}
|
||||
|
||||
// Zeiger: kurze Verbindungen zu nahen Punkten
|
||||
if (pointer) {
|
||||
for (let i = 0; i < nodes.length; i++) {
|
||||
const d = Math.hypot(P[i][0] - pointer.x, P[i][1] - pointer.y);
|
||||
if (d > 130) continue;
|
||||
ctx.globalAlpha = (1 - d / 130) * 0.5;
|
||||
ctx.strokeStyle = orange;
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(pointer.x, pointer.y);
|
||||
ctx.lineTo(P[i][0], P[i][1]);
|
||||
ctx.stroke();
|
||||
}
|
||||
ctx.strokeStyle = blue;
|
||||
}
|
||||
|
||||
// Punkte
|
||||
for (let i = 0; i < nodes.length; i++) {
|
||||
const n = nodes[i];
|
||||
const near = pointer ? Math.max(0, 1 - Math.hypot(P[i][0] - pointer.x, P[i][1] - pointer.y) / 130) : 0;
|
||||
const r = n.r * (1 + near * 0.6);
|
||||
if (n.hub) {
|
||||
ctx.globalAlpha = 0.25 + 0.15 * Math.sin(t * 1.4 + n.ph);
|
||||
ctx.strokeStyle = n.warm ? orange : blue;
|
||||
ctx.lineWidth = 1.5;
|
||||
ctx.beginPath();
|
||||
ctx.arc(P[i][0], P[i][1], r + 6, 0, Math.PI * 2);
|
||||
ctx.stroke();
|
||||
ctx.lineWidth = 1;
|
||||
ctx.globalAlpha = 1;
|
||||
ctx.fillStyle = n.warm ? orange : blue;
|
||||
} else {
|
||||
ctx.globalAlpha = Math.min(1, 0.35 + n.r * 0.16 + near * 0.4);
|
||||
ctx.fillStyle = n.warm ? orange : blue;
|
||||
}
|
||||
ctx.beginPath();
|
||||
ctx.arc(P[i][0], P[i][1], r, 0, Math.PI * 2);
|
||||
ctx.fill();
|
||||
}
|
||||
|
||||
// Datenpakete
|
||||
ctx.globalAlpha = 1;
|
||||
for (const k of packets) {
|
||||
const ax = P[k.a][0];
|
||||
const ay = P[k.a][1];
|
||||
const bx = P[k.b][0];
|
||||
const by = P[k.b][1];
|
||||
const len = Math.max(1, Math.hypot(bx - ax, by - ay));
|
||||
k.p += (k.v * dt) / len;
|
||||
if (k.p >= 1) {
|
||||
const next = adj[k.b].filter((j) => j !== k.a);
|
||||
const pick = next.length ? next[Math.floor(Math.random() * next.length)] : k.a;
|
||||
k.a = k.b;
|
||||
k.b = pick;
|
||||
k.p = 0;
|
||||
}
|
||||
const x = ax + (bx - ax) * Math.min(1, k.p);
|
||||
const y = ay + (by - ay) * Math.min(1, k.p);
|
||||
ctx.fillStyle = k.warm ? orange : blue;
|
||||
ctx.beginPath();
|
||||
ctx.arc(x, y, 2.4, 0, Math.PI * 2);
|
||||
ctx.fill();
|
||||
}
|
||||
ctx.globalAlpha = 1;
|
||||
};
|
||||
|
||||
const still = () => draw(reduced.matches ? 3 : tPaused, 0);
|
||||
const running = () => visible && !heldRef.current && !reduced.matches;
|
||||
|
||||
const loop = (now: number) => {
|
||||
raf = 0;
|
||||
if (!running()) return;
|
||||
if (now - last >= 33) {
|
||||
const t = (now - t0) / 1000;
|
||||
draw(t, Math.min(0.1, t - lastT));
|
||||
lastT = t;
|
||||
last = now;
|
||||
}
|
||||
raf = requestAnimationFrame(loop);
|
||||
};
|
||||
|
||||
const sync = () => {
|
||||
if (running()) {
|
||||
if (!raf) {
|
||||
t0 = performance.now() - tPaused * 1000;
|
||||
lastT = tPaused;
|
||||
raf = requestAnimationFrame(loop);
|
||||
}
|
||||
} else {
|
||||
if (raf) cancelAnimationFrame(raf);
|
||||
raf = 0;
|
||||
tPaused = lastT;
|
||||
still();
|
||||
}
|
||||
};
|
||||
syncRef.current = sync;
|
||||
|
||||
readColors();
|
||||
build();
|
||||
still();
|
||||
setLive(true);
|
||||
setCanPause(!reduced.matches);
|
||||
sync();
|
||||
|
||||
const ro = new ResizeObserver(() => {
|
||||
build();
|
||||
if (!running()) still();
|
||||
});
|
||||
ro.observe(hero);
|
||||
const io = new IntersectionObserver(([e]) => {
|
||||
visible = e.isIntersecting;
|
||||
sync();
|
||||
});
|
||||
io.observe(hero);
|
||||
const mo = new MutationObserver(() => {
|
||||
readColors();
|
||||
if (!running()) still();
|
||||
});
|
||||
mo.observe(document.documentElement, { attributes: true, attributeFilter: ["class"] });
|
||||
|
||||
const onMove = (e: PointerEvent) => {
|
||||
if (!fine.matches) return;
|
||||
const r = hero.getBoundingClientRect();
|
||||
pointer = { x: e.clientX - r.left, y: e.clientY - r.top };
|
||||
};
|
||||
const onLeave = () => {
|
||||
pointer = null;
|
||||
};
|
||||
hero.addEventListener("pointermove", onMove);
|
||||
hero.addEventListener("pointerleave", onLeave);
|
||||
const onMotion = () => {
|
||||
setCanPause(!reduced.matches);
|
||||
sync();
|
||||
};
|
||||
reduced.addEventListener("change", onMotion);
|
||||
|
||||
return () => {
|
||||
if (raf) cancelAnimationFrame(raf);
|
||||
ro.disconnect();
|
||||
io.disconnect();
|
||||
mo.disconnect();
|
||||
hero.removeEventListener("pointermove", onMove);
|
||||
hero.removeEventListener("pointerleave", onLeave);
|
||||
reduced.removeEventListener("change", onMotion);
|
||||
};
|
||||
}, []);
|
||||
|
||||
const toggle = () => {
|
||||
heldRef.current = !heldRef.current;
|
||||
setHeld(heldRef.current);
|
||||
syncRef.current();
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<div ref={wrapRef} className={`hero__field${live ? " is-live" : ""}`} aria-hidden="true">
|
||||
<canvas ref={canvasRef} />
|
||||
</div>
|
||||
{canPause && (
|
||||
<button type="button" className="hero__pause" onClick={toggle} aria-pressed={held}>
|
||||
{held ? <Play className="icon--s" aria-hidden="true" /> : <Pause className="icon--s" aria-hidden="true" />}
|
||||
{held ? "Animation fortsetzen" : "Animation anhalten"}
|
||||
</button>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
@ -25,12 +25,15 @@ const services = [
|
|||
|
||||
const tags = ["Open Source", "Self-Hosted", "OCR", "Volltextsuche", "Automatische Tags"];
|
||||
|
||||
export default function PaperlessSection() {
|
||||
export default function PaperlessSection({ standalone = false }: { standalone?: boolean }) {
|
||||
const Title = standalone ? "h1" : "h2";
|
||||
return (
|
||||
<section id="paperless" className="sec" aria-labelledby="paperless-title">
|
||||
<section id="paperless" className={standalone ? "sec sec--page" : "sec"} aria-labelledby="paperless-title">
|
||||
<div className="wrap grid12">
|
||||
<div className="pl__head">
|
||||
<h2 id="paperless-title">DSGVO & GoBD mit Paperless-ngx</h2>
|
||||
<Title id="paperless-title" className={standalone ? "page-title" : undefined}>
|
||||
DSGVO & GoBD mit <span className="hl hl--warm">Paperless-ngx</span>
|
||||
</Title>
|
||||
<p className="lead">
|
||||
Digitale Dokumentenverwaltung, die rechtssicher ist: DSGVO-konform, GoBD-tauglich, selbstgehostet. Kein Abo,
|
||||
keine US-Cloud, volle Kontrolle.
|
||||
|
|
|
|||
|
|
@ -3,12 +3,14 @@ import { ArrowRight } from "lucide-react";
|
|||
const gruppen = [
|
||||
{
|
||||
href: "/privatkunden",
|
||||
ton: "warm",
|
||||
titel: "Ich bin Privatkunde",
|
||||
text: "WLAN, PC, Familienschutz und eigene Cloud für zu Hause.",
|
||||
felder: ["WLAN & Heimnetz", "PC & Notebook", "Datensicherung", "Familienschutz", "Eigene Cloud"],
|
||||
},
|
||||
{
|
||||
href: "/geschaeftskunden",
|
||||
ton: "cool",
|
||||
titel: "Ich bin Geschäftskunde",
|
||||
text: "Netzwerk, sicherer Fernzugriff, Dokumentenarchiv und IT-Betreuung.",
|
||||
felder: ["Netzwerk & WLAN", "Firewall & Sicherheit", "VPN & Fernzugriff", "Webseiten & Web-Apps", "Backup & Dokumentenarchiv"],
|
||||
|
|
@ -20,11 +22,13 @@ export default function Zielgruppen() {
|
|||
<section className="sec" aria-labelledby="zielgruppen-title">
|
||||
<div className="wrap">
|
||||
<div className="head">
|
||||
<h2 id="zielgruppen-title">Für zu Hause und für Ihr Unternehmen</h2>
|
||||
<h2 id="zielgruppen-title">
|
||||
Für <span className="hl hl--warm">zu Hause</span> und für <span className="hl">Ihr Unternehmen</span>
|
||||
</h2>
|
||||
</div>
|
||||
<div className="aud__grid">
|
||||
{gruppen.map((g) => (
|
||||
<a key={g.href} href={g.href} className="cut aud__panel">
|
||||
<a key={g.href} href={g.href} className={`cut aud__panel aud__panel--${g.ton}`}>
|
||||
<span className="aud__top">
|
||||
<h3>{g.titel}</h3>
|
||||
<ArrowRight className="icon" aria-hidden="true" />
|
||||
|
|
|
|||
Loading…
Reference in New Issue