feat: Hallmark-Redesign der Startseite (Theme Cobalt) und neues Design-System
- Tokens (OKLCH) für Hell und Dunkel in app/tokens.css; Marke: Logo, Orange, Blau - Schriften Familjen Grotesk + IBM Plex Sans, JetBrains Mono nur fürs ASCII-Feld - Poster-Hero über einem ASCII-Feld (Canvas, 30 fps, Pause-Taste, reduzierte Bewegung) - Slab-Navigation, Colophon-Footer, Tasten statt Pillen (wirkt auch auf Unterseiten) - Neue Komposition: Zielgruppen, Paperless als Zeilen, Datensouveränität mit Umschalter, Technologien als Index mit zugänglichem Dialog, Über uns mit Schritten und Kennzahlen, Kontakt als Formular neben den Kontaktdaten - Inhalte, Links, Formular-Logik und Supabase-Props unverändert; Umlaute in den Technologie-Erklärungen korrigiert - Platzhalterfoto lokal gehostet (CC BY-SA 3.0, Credit im Footer) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
daafff1a45
commit
3db091fafa
336
app/globals.css
336
app/globals.css
|
|
@ -1,282 +1,232 @@
|
|||
/* Hallmark · checked: 2026-11-04 · genre: modern-minimal (inferred) · scope: Startseite
|
||||
* floor: offen 48 (Farbliterale in Tailwind-Klassen) · fixed: 10a, 6a, 18, 19, 26a, 27, 29, 33, 34, 3, 54, 63, 64, 67, F2, F3
|
||||
* built: the project · redesign: polish · v2.0.0 */
|
||||
/* 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 */
|
||||
/* 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 · 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
|
||||
* Hallmark · dismissed 41: .hero und .band nehmen Text über Tokens, die im Dunkelmodus mitwechseln · 28a: das Foto liegt weit unter dem Hero, nicht LCP · 76: Credit steht im Footer (data-credits)
|
||||
* Hallmark · dropped: Schreibmaschinen-Wörter im Hero (Professionell, DSGVO-konform, Zuverlässig, Skalierbar), Zähl-Animation der Kennzahlen, Hinweis "Klick ausserhalb oder x zum Schliessen", Trenner "oder direkt" · Eyebrow "Über uns" (DB-Feld bleibt) */
|
||||
@import "./tokens.css";
|
||||
@import "./site.css";
|
||||
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
:root {
|
||||
--color-orange: #f97316;
|
||||
--color-orange-light: #fb923c;
|
||||
--color-blue: #2563eb;
|
||||
--color-blue-light: #60a5fa;
|
||||
--color-dark: #18212f;
|
||||
--color-darker: #111925;
|
||||
--color-page: #f0f4f8;
|
||||
--color-ink: #1a202c;
|
||||
--color-page-dark: #18212f;
|
||||
--color-ink-dark: #f1f5f9;
|
||||
--color-focus: #f97316;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Basis, global: gilt für alle Seiten */
|
||||
@layer base {
|
||||
html,
|
||||
body {
|
||||
overflow-x: clip;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
scroll-padding-top: calc(var(--nav-h) + var(--space-lg));
|
||||
scrollbar-color: var(--color-rule-2) var(--color-paper);
|
||||
}
|
||||
body {
|
||||
background-color: var(--color-paper);
|
||||
color: var(--color-ink);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--text-md);
|
||||
line-height: 1.55;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
caret-color: var(--color-accent);
|
||||
}
|
||||
::selection {
|
||||
background: color-mix(in oklab, var(--color-accent) 24%, transparent);
|
||||
color: var(--color-ink);
|
||||
}
|
||||
|
||||
/* Sichtbarer Tastaturfokus, sofort und ohne Übergang */
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--color-focus);
|
||||
outline-offset: 3px;
|
||||
outline-offset: 2px;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2 {
|
||||
text-wrap: balance;
|
||||
}
|
||||
p {
|
||||
text-wrap: pretty;
|
||||
}
|
||||
[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html {
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
*:not(.keep-motion),
|
||||
*:not(.keep-motion)::before,
|
||||
*:not(.keep-motion)::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--color-page);
|
||||
color: var(--color-ink);
|
||||
font-family: var(--font-inter), 'Inter', system-ui, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
.dark body {
|
||||
background-color: var(--color-page-dark);
|
||||
color: var(--color-ink-dark);
|
||||
}
|
||||
|
||||
/* Gemeinsame Bausteine, auch von den Unterseiten genutzt */
|
||||
@layer components {
|
||||
/* Primary button – orange, darkens on hover */
|
||||
/* Hauptaktion: orange Taste */
|
||||
.btn-primary {
|
||||
@apply inline-flex items-center justify-center rounded-xl
|
||||
bg-orange-500 text-white font-bold
|
||||
transition-[background-color,border-color,color,box-shadow,transform] duration-200
|
||||
hover:bg-orange-600 hover:scale-[1.03]
|
||||
hover:shadow-lg hover:shadow-orange-900/40
|
||||
active:scale-[0.98];
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-xs);
|
||||
min-height: 48px;
|
||||
border: 1px solid var(--color-signal-edge);
|
||||
border-radius: var(--radius-input);
|
||||
background: var(--color-signal);
|
||||
color: var(--color-signal-ink);
|
||||
font-family: var(--font-display);
|
||||
font-weight: 600;
|
||||
box-shadow: var(--shadow-key-signal);
|
||||
text-decoration: none;
|
||||
transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
|
||||
}
|
||||
.btn-primary:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.btn-primary:active {
|
||||
transform: translateY(3px);
|
||||
box-shadow: var(--shadow-key-press);
|
||||
}
|
||||
.btn-primary:disabled,
|
||||
.btn-primary[aria-disabled="true"] {
|
||||
opacity: 0.55;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
/* Secondary button – outlined, fills subtly on hover */
|
||||
.btn-secondary {
|
||||
@apply inline-flex items-center justify-center rounded-xl
|
||||
border border-slate-300 text-slate-700 font-semibold
|
||||
transition-[background-color,border-color,color,box-shadow,transform] duration-200
|
||||
hover:bg-slate-100 hover:border-slate-400 hover:text-slate-900
|
||||
active:scale-[0.98]
|
||||
dark:border-gray-600 dark:text-slate-300
|
||||
dark:hover:bg-white/5 dark:hover:border-gray-400 dark:hover:text-white;
|
||||
}
|
||||
|
||||
/* Small nav button */
|
||||
/* Zweitaktion: helle Taste */
|
||||
.btn-secondary,
|
||||
.btn-nav {
|
||||
@apply px-4 py-2 rounded-lg bg-orange-500 text-white text-sm font-bold
|
||||
transition-[background-color,border-color,color,box-shadow,transform] duration-200
|
||||
hover:bg-orange-600 hover:shadow-md hover:shadow-orange-900/30
|
||||
active:scale-[0.97];
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-xs);
|
||||
min-height: 48px;
|
||||
border: 1px solid var(--color-rule-2);
|
||||
border-radius: var(--radius-input);
|
||||
background: var(--color-key-face);
|
||||
color: var(--color-ink);
|
||||
font-family: var(--font-display);
|
||||
font-weight: 500;
|
||||
box-shadow: var(--shadow-key);
|
||||
text-decoration: none;
|
||||
transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
|
||||
}
|
||||
.btn-nav {
|
||||
min-height: 40px;
|
||||
padding: 0 var(--space-md);
|
||||
font-size: var(--text-sm);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.btn-secondary:hover,
|
||||
.btn-nav:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
.btn-secondary:active,
|
||||
.btn-nav:active {
|
||||
transform: translateY(3px);
|
||||
box-shadow: var(--shadow-key-press);
|
||||
}
|
||||
}
|
||||
|
||||
@layer utilities {
|
||||
/* Früher Verlaufstext; jetzt einfarbig im Signalblau */
|
||||
.text-gradient {
|
||||
@apply bg-gradient-to-r from-blue-400 to-blue-600 bg-clip-text text-transparent;
|
||||
color: var(--color-accent-text);
|
||||
}
|
||||
|
||||
.text-gradient-orange {
|
||||
@apply bg-gradient-to-r from-orange-400 to-orange-500 bg-clip-text text-transparent;
|
||||
color: var(--color-signal-text);
|
||||
}
|
||||
|
||||
/* Dot matrix – default background pattern */
|
||||
/* Punktraster auf der 8×16-Zelle des Feldes */
|
||||
.bg-grid {
|
||||
background-image: radial-gradient(rgba(249, 115, 22, 0.06) 1px, transparent 1px);
|
||||
background-size: 28px 28px;
|
||||
}
|
||||
|
||||
/* Alt: subtle line grid */
|
||||
.bg-grid-lines {
|
||||
background-image: linear-gradient(rgba(249, 115, 22, 0.05) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(249, 115, 22, 0.05) 1px, transparent 1px);
|
||||
background-size: 60px 60px;
|
||||
}
|
||||
|
||||
/* Alt: diagonal hatching */
|
||||
.bg-diagonal {
|
||||
background-image: repeating-linear-gradient(
|
||||
-45deg,
|
||||
rgba(249, 115, 22, 0.04) 0px,
|
||||
rgba(249, 115, 22, 0.04) 1px,
|
||||
transparent 1px,
|
||||
transparent 14px
|
||||
);
|
||||
background-image: radial-gradient(var(--color-glyph-1) 1px, transparent 1px);
|
||||
background-size: var(--cell-w) var(--cell-h);
|
||||
}
|
||||
|
||||
.card-hover {
|
||||
@apply transition-[transform,box-shadow] duration-300 hover:-translate-y-1 hover:shadow-lg hover:shadow-orange-500/10;
|
||||
transition: transform var(--dur-short) var(--ease-out);
|
||||
}
|
||||
.card-hover:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
}
|
||||
|
||||
/* Dark-mode bg-grid override — must live outside @layer so it wins over the base rule */
|
||||
.dark .bg-grid {
|
||||
background-image: radial-gradient(rgba(249, 115, 22, 0.15) 1px, transparent 1px);
|
||||
}
|
||||
|
||||
/* Tagline ticker animation */
|
||||
@keyframes ticker-scroll {
|
||||
0% { transform: translateX(0); }
|
||||
100% { transform: translateX(-50%); }
|
||||
}
|
||||
|
||||
.animate-ticker {
|
||||
animation: ticker-scroll 25s linear infinite;
|
||||
}
|
||||
.animate-ticker:hover,
|
||||
.animate-ticker:focus-within {
|
||||
animation-play-state: paused;
|
||||
}
|
||||
|
||||
/* Legal pages content styling */
|
||||
/* Rechtstexte (Impressum, Datenschutz) */
|
||||
.legal-content section {
|
||||
margin-bottom: 2.5rem;
|
||||
margin-bottom: var(--space-xl);
|
||||
}
|
||||
.legal-content h2 {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 700;
|
||||
color: #1a202c;
|
||||
margin-bottom: 0.75rem;
|
||||
margin-top: 2rem;
|
||||
padding-bottom: 0.5rem;
|
||||
border-bottom: 1px solid #cbd5e0;
|
||||
font-family: var(--font-display);
|
||||
font-size: var(--text-lg);
|
||||
font-weight: 600;
|
||||
color: var(--color-ink);
|
||||
margin-bottom: var(--space-sm);
|
||||
margin-top: var(--space-xl);
|
||||
padding-bottom: var(--space-xs);
|
||||
border-bottom: 1px solid var(--color-rule);
|
||||
}
|
||||
.legal-content h3 {
|
||||
font-size: 0.95rem;
|
||||
font-family: var(--font-display);
|
||||
font-size: var(--text-md);
|
||||
font-weight: 600;
|
||||
color: #ea6c00;
|
||||
margin-top: 1.25rem;
|
||||
margin-bottom: 0.4rem;
|
||||
color: var(--color-signal-text);
|
||||
margin-top: var(--space-lg);
|
||||
margin-bottom: var(--space-xs);
|
||||
}
|
||||
.legal-content p {
|
||||
color: #4a5568;
|
||||
line-height: 1.8;
|
||||
margin-bottom: 0.75rem;
|
||||
font-size: 0.925rem;
|
||||
color: var(--color-ink-2);
|
||||
line-height: 1.75;
|
||||
margin-bottom: var(--space-sm);
|
||||
}
|
||||
.legal-content ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0.75rem 0 1rem 0;
|
||||
margin: var(--space-sm) 0 var(--space-md) 0;
|
||||
}
|
||||
.legal-content ul li {
|
||||
color: #4a5568;
|
||||
font-size: 0.925rem;
|
||||
color: var(--color-ink-2);
|
||||
line-height: 1.75;
|
||||
padding-left: 1.25rem;
|
||||
padding-left: var(--space-lg);
|
||||
position: relative;
|
||||
margin-bottom: 0.5rem;
|
||||
margin-bottom: var(--space-xs);
|
||||
}
|
||||
.legal-content ul li::before {
|
||||
content: '';
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0.65rem;
|
||||
top: 0.7rem;
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: #f97316;
|
||||
background: var(--color-accent);
|
||||
}
|
||||
.legal-content a {
|
||||
color: #2563eb;
|
||||
color: var(--color-accent-text);
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 3px;
|
||||
}
|
||||
.legal-content a:hover {
|
||||
color: #f97316;
|
||||
text-decoration-color: var(--color-signal);
|
||||
}
|
||||
.legal-content strong {
|
||||
color: #1a202c;
|
||||
color: var(--color-ink);
|
||||
font-weight: 600;
|
||||
}
|
||||
.legal-content .note {
|
||||
background: #e8eef4;
|
||||
border: 1px solid rgba(249, 115, 22, 0.35);
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: 0.5rem;
|
||||
margin: 0.75rem 0;
|
||||
background: var(--color-paper-2);
|
||||
color: var(--color-ink-2);
|
||||
border: 1px solid var(--color-rule);
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
border-radius: var(--radius-input);
|
||||
margin: var(--space-sm) 0;
|
||||
}
|
||||
.legal-content .note p {
|
||||
margin-bottom: 0;
|
||||
font-size: 0.875rem !important;
|
||||
}
|
||||
|
||||
/* Legal pages – dark mode overrides */
|
||||
.dark .legal-content h2 {
|
||||
color: #f1f5f9;
|
||||
border-bottom-color: #2d3748;
|
||||
}
|
||||
.dark .legal-content h3 {
|
||||
color: #fb923c;
|
||||
}
|
||||
.dark .legal-content p,
|
||||
.dark .legal-content ul li {
|
||||
color: #94a3b8;
|
||||
}
|
||||
.dark .legal-content a {
|
||||
color: #60a5fa;
|
||||
}
|
||||
.dark .legal-content a:hover {
|
||||
color: #fb923c;
|
||||
}
|
||||
.dark .legal-content strong {
|
||||
color: #e2e8f0;
|
||||
}
|
||||
.dark .legal-content .note {
|
||||
background: #1e2a3d;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
/* Scrollbar */
|
||||
::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
::-webkit-scrollbar-track {
|
||||
background: #e8eef4;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: #94a3b8;
|
||||
border-radius: 3px;
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: #f97316;
|
||||
}
|
||||
|
||||
.dark ::-webkit-scrollbar-track {
|
||||
background: #18212f;
|
||||
}
|
||||
.dark ::-webkit-scrollbar-thumb {
|
||||
background: #2d3748;
|
||||
}
|
||||
.dark ::-webkit-scrollbar-thumb:hover {
|
||||
background: #f97316;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import type { Metadata } from "next";
|
||||
import { Inter, JetBrains_Mono } from "next/font/google";
|
||||
import { Familjen_Grotesk, IBM_Plex_Sans, JetBrains_Mono } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import Providers from "@/components/Providers";
|
||||
import { PageTracker } from "@/components/analytics/PageTracker";
|
||||
|
|
@ -7,10 +7,16 @@ import { DEFAULT_DESCRIPTION, DEFAULT_TITLE, SITE_NAME, SITE_URL } from "@/lib/s
|
|||
import { OG_COMMON } from "@/lib/seo";
|
||||
|
||||
// Schriften werden beim Build geladen und selbst ausgeliefert (kein Abruf bei Google).
|
||||
const inter = Inter({
|
||||
const familjen = Familjen_Grotesk({
|
||||
subsets: ["latin"],
|
||||
weight: ["300", "400", "500", "600", "700", "800", "900"],
|
||||
variable: "--font-inter",
|
||||
weight: ["500", "600"],
|
||||
variable: "--font-familjen",
|
||||
display: "swap",
|
||||
});
|
||||
const plex = IBM_Plex_Sans({
|
||||
subsets: ["latin"],
|
||||
weight: ["400", "500", "600"],
|
||||
variable: "--font-plex",
|
||||
display: "swap",
|
||||
});
|
||||
const jetbrainsMono = JetBrains_Mono({
|
||||
|
|
@ -63,7 +69,7 @@ export default function RootLayout({
|
|||
return (
|
||||
<html
|
||||
lang="de"
|
||||
className={`${inter.variable} ${jetbrainsMono.variable} scroll-smooth`}
|
||||
className={`${familjen.variable} ${plex.variable} ${jetbrainsMono.variable}`}
|
||||
suppressHydrationWarning
|
||||
>
|
||||
<body>
|
||||
|
|
|
|||
12
app/page.tsx
12
app/page.tsx
|
|
@ -6,7 +6,7 @@ import { DEFAULT_DESCRIPTION, DEFAULT_TITLE } from "@/lib/site";
|
|||
import Header from "@/components/Header";
|
||||
import Hero from "@/components/Hero";
|
||||
import TaglineBanner from "@/components/TaglineBanner";
|
||||
import StatsBar from "@/components/StatsBar";
|
||||
import Zielgruppen from "@/components/Zielgruppen";
|
||||
import Technologies from "@/components/Technologies";
|
||||
import DataSovereignty from "@/components/DataSovereignty";
|
||||
import PaperlessSection from "@/components/PaperlessSection";
|
||||
|
|
@ -72,7 +72,7 @@ export default async function Home() {
|
|||
}));
|
||||
|
||||
return (
|
||||
<main className="min-h-screen bg-[#f0f4f8] dark:bg-[#18212f] pb-16 lg:pb-0">
|
||||
<main className="site pb-16 lg:pb-0">
|
||||
<JsonLd data={localBusinessSchema()} />
|
||||
<Header />
|
||||
<Hero
|
||||
|
|
@ -87,8 +87,8 @@ export default async function Home() {
|
|||
bgImagePath={hero?.bg_image_path}
|
||||
badges={badges.length > 0 ? badges.map((b) => b.text) : undefined}
|
||||
/>
|
||||
<StatsBar />
|
||||
<TaglineBanner />
|
||||
<TaglineBanner text={hero?.eyebrow_text || undefined} />
|
||||
<Zielgruppen />
|
||||
<PaperlessSection />
|
||||
<DataSovereignty />
|
||||
<Technologies />
|
||||
|
|
@ -99,8 +99,8 @@ export default async function Home() {
|
|||
stats={stats.length > 0 ? stats : undefined}
|
||||
/>
|
||||
{galerieBilder.length > 0 && (
|
||||
<section className="py-16 px-4 sm:px-6 lg:px-8">
|
||||
<div className="max-w-7xl mx-auto">
|
||||
<section className="galerie-sec" aria-label="Galerie">
|
||||
<div className="wrap">
|
||||
<GalerieAnzeige bilder={galerieBilder} />
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,74 @@
|
|||
/* Hallmark-Tokens (Theme Cobalt, Markenfarben MBO-Tech-IT). Einzige Quelle für Farben, Schriften, Abstände. */
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
|
||||
--text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
|
||||
--text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
|
||||
--text-poster: clamp(3.25rem, 7.5vw, 7.5rem);
|
||||
--text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
|
||||
--ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
||||
--dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
|
||||
--container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
|
||||
--nav-h: 72px;
|
||||
--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-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-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 */
|
||||
--color-accent: oklch(54.6% 0.215 263); --color-accent-2: oklch(76% 0.13 258); --color-accent-wash: oklch(95% 0.03 260); --color-accent-ink: oklch(98.6% 0.005 250);
|
||||
--color-accent-deep: oklch(45% 0.21 265); --color-accent-edge: oklch(40% 0.17 264);
|
||||
--color-accent-text: oklch(50% 0.2 264);
|
||||
--color-focus: oklch(54.6% 0.215 263);
|
||||
|
||||
/* 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-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
|
||||
|
||||
/* ASCII-Feld */
|
||||
--color-glyph-1: oklch(89% 0.025 254); --color-glyph-2: oklch(81% 0.045 255); --color-glyph-3: oklch(70% 0.085 256); --color-glyph-4: oklch(60% 0.13 258);
|
||||
|
||||
/* Tasten */
|
||||
--color-key-face: oklch(99.4% 0.003 250); --color-key-edge: oklch(80% 0.016 254);
|
||||
|
||||
--font-display: var(--font-familjen), "Familjen Grotesk", system-ui, sans-serif;
|
||||
--font-body: var(--font-plex), "IBM Plex Sans", system-ui, sans-serif;
|
||||
--font-outlier: var(--font-mono), "JetBrains Mono", ui-monospace, monospace;
|
||||
|
||||
--radius-card: 8px; --radius-input: 6px; --radius-pill: 999px;
|
||||
--cell-w: 8px; --cell-h: 16px; --cut: 8px; --cut-l: 16px;
|
||||
--rule-hair: 1px; --shadow-card: 0 1px 2px oklch(21% 0.028 262 / 0.06);
|
||||
--shadow-key: 0 3px 0 0 var(--color-key-edge), 0 6px 8px -4px oklch(21% 0.028 262 / 0.28), inset 0 1px 0 oklch(100% 0 0 / 0.9);
|
||||
--shadow-key-signal: 0 3px 0 0 var(--color-signal-edge), 0 6px 8px -4px oklch(40% 0.12 45 / 0.4), inset 0 1px 0 oklch(100% 0 0 / 0.35);
|
||||
--shadow-key-press: inset 0 1px 2px oklch(21% 0.028 262 / 0.14);
|
||||
--tracking-display: -0.028em; --display-weight: 600;
|
||||
}
|
||||
|
||||
/* 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-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-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-deep: oklch(74% 0.15 258); --color-accent-edge: oklch(48% 0.15 262);
|
||||
--color-accent-text: oklch(76% 0.13 258);
|
||||
--color-focus: oklch(70% 0.16 262);
|
||||
--color-signal-text: oklch(76% 0.16 52);
|
||||
--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);
|
||||
--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);
|
||||
--shadow-key-press: inset 0 1px 2px oklch(0% 0 0 / 0.4);
|
||||
}
|
||||
|
||||
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; --nav-h: 64px; } }
|
||||
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
|
||||
|
|
@ -1,24 +1,28 @@
|
|||
import { Check } from "lucide-react";
|
||||
import StatsBar from "./StatsBar";
|
||||
|
||||
const highlights = [
|
||||
{
|
||||
icon: "01",
|
||||
title: "Analyse & Planung",
|
||||
description:
|
||||
"Wir analysieren Ihre bestehende Infrastruktur und planen die optimale Lösung für Ihre Anforderungen.",
|
||||
description: "Wir analysieren Ihre bestehende Infrastruktur und planen die optimale Lösung für Ihre Anforderungen.",
|
||||
},
|
||||
{
|
||||
icon: "02",
|
||||
title: "Implementierung",
|
||||
description:
|
||||
"Professionelle Umsetzung mit bewährten technischen Methoden und modernsten Tools.",
|
||||
description: "Professionelle Umsetzung mit bewährten technischen Methoden und modernsten Tools.",
|
||||
},
|
||||
{
|
||||
icon: "03",
|
||||
title: "Betrieb & Support",
|
||||
description:
|
||||
"Zuverlässiger Betrieb, Monitoring und Support – damit Ihre Systeme immer laufen.",
|
||||
description: "Zuverlässiger Betrieb, Monitoring und Support, damit Ihre Systeme immer laufen.",
|
||||
},
|
||||
];
|
||||
|
||||
const points = [
|
||||
"30+ Jahre IT-Erfahrung, von Hardware bis Cloud",
|
||||
"20+ Jahre IT-Security & Netzwerk-Expertise",
|
||||
"Spezialisiert auf Docker & Proxmox",
|
||||
"Transparente Kommunikation & faire Preise",
|
||||
];
|
||||
|
||||
interface AboutProps {
|
||||
eyebrowText?: string;
|
||||
absatz1?: string;
|
||||
|
|
@ -27,89 +31,71 @@ interface AboutProps {
|
|||
}
|
||||
|
||||
export default function About({
|
||||
eyebrowText = "Über uns",
|
||||
absatz1 = "MBO-Tech-IT steht für über 30 Jahre IT-Erfahrung — angefangen bei der einfachen Hardware-Wartung, über den Aufbau großer Client-Server-Netzwerke, bis hin zu mehr als 20 Jahren Spezialisierung in der IT-Security.",
|
||||
absatz2 = "Heute liegt der Fokus auf modernen Container-Technologien, Cloud-nativer Infrastruktur und Virtualisierung. Dieses breite Fundament ermöglicht es, Lösungen zu entwickeln, die nicht nur funktionieren — sondern auch sicher und langfristig tragfähig sind.",
|
||||
absatz1 = "MBO-Tech-IT steht für über 30 Jahre IT-Erfahrung, angefangen bei der einfachen Hardware-Wartung, über den Aufbau großer Client-Server-Netzwerke, bis hin zu mehr als 20 Jahren Spezialisierung in der IT-Security.",
|
||||
absatz2 = "Heute liegt der Fokus auf modernen Container-Technologien, Cloud-nativer Infrastruktur und Virtualisierung. Dieses breite Fundament ermöglicht es, Lösungen zu entwickeln, die nicht nur funktionieren, sondern auch sicher und langfristig tragfähig sind.",
|
||||
stats,
|
||||
}: AboutProps = {}) {
|
||||
return (
|
||||
<section id="about" className="py-24 px-4 sm:px-6 lg:px-8 relative">
|
||||
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_bottom_right,rgba(37,99,235,0.06)_0%,transparent_60%)]" />
|
||||
<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>
|
||||
<p>{absatz1}</p>
|
||||
<p>{absatz2}</p>
|
||||
|
||||
<div className="max-w-7xl mx-auto relative">
|
||||
<div className="grid lg:grid-cols-2 gap-16 items-center">
|
||||
{/* Left: Text */}
|
||||
<div>
|
||||
<h2 className="text-4xl sm:text-5xl font-black text-slate-900 dark:text-white mb-6 leading-tight">
|
||||
IT-Expertise,{" "}
|
||||
<span className="text-gradient">die Sie weiterbringt</span>
|
||||
</h2>
|
||||
<p className="text-slate-600 dark:text-slate-400 text-lg leading-relaxed mb-6">
|
||||
{absatz1}
|
||||
</p>
|
||||
<p className="text-slate-600 dark:text-slate-400 text-lg leading-relaxed mb-8">
|
||||
{absatz2}
|
||||
<p className="about__motto">
|
||||
<b>Digital Denken. Lokal Handeln.</b>
|
||||
<span>Globales Know-how, persönlicher Service.</span>
|
||||
</p>
|
||||
|
||||
{/* Tagline callout */}
|
||||
<div className="mb-8 px-5 py-4 rounded-xl border border-orange-500/30 bg-orange-500/5">
|
||||
<p className="text-orange-500 dark:text-orange-400 font-black text-base">
|
||||
Digital Denken. Lokal Handeln.
|
||||
</p>
|
||||
<p className="text-slate-600 dark:text-slate-400 text-sm mt-1">
|
||||
Globales Know-how — persönlicher Service.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Key points */}
|
||||
<div className="space-y-3">
|
||||
{[
|
||||
"30+ Jahre IT-Erfahrung – von Hardware bis Cloud",
|
||||
"20+ Jahre IT-Security & Netzwerk-Expertise",
|
||||
"Spezialisiert auf Docker & Proxmox",
|
||||
"Transparente Kommunikation & faire Preise",
|
||||
].map((point) => (
|
||||
<div key={point} className="flex items-center gap-3">
|
||||
<div className="w-5 h-5 rounded-full bg-orange-500 flex items-center justify-center flex-shrink-0">
|
||||
<svg className="w-3 h-3 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={3} d="M5 13l4 4L19 7" />
|
||||
</svg>
|
||||
</div>
|
||||
<span className="text-slate-700 dark:text-slate-300 text-sm">{point}</span>
|
||||
</div>
|
||||
<ul className="checks">
|
||||
{points.map((point) => (
|
||||
<li key={point}>
|
||||
<Check className="icon--s" aria-hidden="true" />
|
||||
<span>{point}</span>
|
||||
</li>
|
||||
))}
|
||||
</div>
|
||||
</ul>
|
||||
|
||||
{stats && stats.length > 0 && (
|
||||
<div className="flex gap-8 mt-4">
|
||||
<div className="about__dbfigs">
|
||||
{stats.map((s) => (
|
||||
<div key={s.label}>
|
||||
<div className="text-3xl font-black text-orange-400">{s.wert}</div>
|
||||
<div className="text-sm text-slate-500 dark:text-slate-400">{s.label}</div>
|
||||
<b>{s.wert}</b>
|
||||
<span>{s.label}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Right: Process steps */}
|
||||
<div className="space-y-6">
|
||||
{highlights.map((item) => (
|
||||
<div
|
||||
key={item.title}
|
||||
className="flex gap-5 p-6 rounded-2xl bg-white dark:bg-gray-900 border border-slate-200 dark:border-gray-800 hover:border-orange-500/30 transition-colors duration-300"
|
||||
<figure
|
||||
className="about__photo"
|
||||
data-slot="about"
|
||||
data-alt="Ein eigenes Foto: Sie bei der Arbeit an einem Netzwerkschrank oder Server, gern bei einem Kunden in der Region"
|
||||
>
|
||||
<div className="flex-shrink-0 w-12 h-12 rounded-xl bg-orange-500/10 border border-orange-500/20 flex items-center justify-center">
|
||||
<span className="font-mono text-orange-400 font-black text-sm">{item.icon}</span>
|
||||
</div>
|
||||
<div>
|
||||
<h3 className="text-slate-800 dark:text-white font-bold text-lg mb-2">{item.title}</h3>
|
||||
<p className="text-slate-600 dark:text-slate-400 text-sm leading-relaxed">{item.description}</p>
|
||||
</div>
|
||||
</div>
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src="/images/network-switches-1920.jpg"
|
||||
width={1920}
|
||||
height={1277}
|
||||
alt="Netzwerkkabel, die in die Ports eines Switches gesteckt sind"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
style={{ objectPosition: "40% 50%" }}
|
||||
/>
|
||||
</figure>
|
||||
|
||||
<ol className="steps" style={{ gridColumn: "1 / -1" }}>
|
||||
{highlights.map((item) => (
|
||||
<li key={item.title}>
|
||||
<h3>{item.title}</h3>
|
||||
<p>{item.description}</p>
|
||||
</li>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</ol>
|
||||
|
||||
<StatsBar />
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,257 @@
|
|||
"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>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import { CircleAlert, CircleCheck, LoaderCircle } from "lucide-react";
|
||||
|
||||
interface OeffnungsZeit { tag: string; von: string; bis: string }
|
||||
|
||||
|
|
@ -38,9 +39,8 @@ const themen: Record<Zielgruppe, string[]> = {
|
|||
],
|
||||
};
|
||||
|
||||
const inputClass =
|
||||
"w-full px-4 py-3 rounded-xl bg-slate-50 dark:bg-[#111925] border border-slate-300 dark:border-gray-700 text-slate-900 dark:text-white placeholder-slate-400 dark:placeholder-slate-600 focus:outline-none focus:border-orange-500/60 focus:ring-1 focus:ring-orange-500/20 transition-colors";
|
||||
const labelClass = "block text-sm font-medium text-slate-700 dark:text-slate-300 mb-2";
|
||||
const inputClass = "form__input";
|
||||
const labelClass = "form__label";
|
||||
|
||||
export default function Contact({
|
||||
telefon = "+49 171 9345193",
|
||||
|
|
@ -51,32 +51,16 @@ export default function Contact({
|
|||
}: ContactProps = {}) {
|
||||
const contactItems = [
|
||||
{
|
||||
icon: (
|
||||
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z" />
|
||||
</svg>
|
||||
),
|
||||
label: "Telefon",
|
||||
value: telefon,
|
||||
href: `tel:${telefon.replace(/\s/g, "")}`,
|
||||
},
|
||||
{
|
||||
icon: (
|
||||
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
|
||||
</svg>
|
||||
),
|
||||
label: "E-Mail",
|
||||
value: email,
|
||||
href: `mailto:${email}`,
|
||||
},
|
||||
{
|
||||
icon: (
|
||||
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />
|
||||
</svg>
|
||||
),
|
||||
label: "Standort",
|
||||
value: `${adresseZeile1}, ${adresseZeile2}`,
|
||||
href: `https://maps.google.com/?q=${encodeURIComponent(adresseZeile1 + " " + adresseZeile2)}`,
|
||||
|
|
@ -134,36 +118,54 @@ ${nachricht}` : ""}`
|
|||
}
|
||||
|
||||
return (
|
||||
<section id="contact" className="py-24 px-4 sm:px-6 lg:px-8 relative">
|
||||
<div className="absolute inset-0 bg-[#e8eef4] dark:bg-[#111925]" />
|
||||
<div className="absolute inset-0 bg-grid opacity-40" />
|
||||
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_center,rgba(249,115,22,0.07)_0%,transparent_70%)]" />
|
||||
|
||||
<div className="max-w-4xl mx-auto relative">
|
||||
{/* Header */}
|
||||
<div className="text-center mb-12">
|
||||
<h2 className="text-4xl sm:text-5xl font-black text-slate-900 dark:text-white mb-4">
|
||||
Projekt anfragen
|
||||
</h2>
|
||||
<p className="text-slate-600 dark:text-slate-400 text-lg max-w-xl mx-auto">
|
||||
Sie haben ein IT-Projekt oder eine Frage? Schreiben Sie uns,
|
||||
wir melden uns schnellstmöglich bei Ihnen.
|
||||
<section id="contact" className="sec" aria-labelledby="contact-title">
|
||||
<div className="wrap grid12">
|
||||
<div className="ct__info">
|
||||
<h2 id="contact-title">Projekt anfragen</h2>
|
||||
<p className="lead">
|
||||
Sie haben ein IT-Projekt oder eine Frage? Schreiben Sie uns, wir melden uns schnellstmöglich bei Ihnen.
|
||||
</p>
|
||||
|
||||
<dl className="facts">
|
||||
{contactItems.map((item) => (
|
||||
<div key={item.label}>
|
||||
<dt>{item.label}</dt>
|
||||
<dd>
|
||||
<a href={item.href} data-source-element="kontakt-section">
|
||||
{item.value}
|
||||
</a>
|
||||
</dd>
|
||||
</div>
|
||||
))}
|
||||
{oeffnungszeiten && oeffnungszeiten.length > 0 && (
|
||||
<div>
|
||||
<dt>Öffnungszeiten</dt>
|
||||
<dd>
|
||||
<ul className="hours">
|
||||
{oeffnungszeiten.map((oz) => (
|
||||
<li key={oz.tag}>
|
||||
<span>{oz.tag}</span>
|
||||
<span>
|
||||
{oz.von} bis {oz.bis}
|
||||
</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</dd>
|
||||
</div>
|
||||
)}
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<div className="bg-white dark:bg-gray-900 border border-slate-200 dark:border-gray-800 rounded-3xl p-8 sm:p-10">
|
||||
<div className="ct__form">
|
||||
<div className="well">
|
||||
{status === "success" ? (
|
||||
<div className="flex flex-col items-center justify-center py-10 text-center">
|
||||
<div className="w-16 h-16 rounded-full bg-orange-500/10 border border-orange-500/30 flex items-center justify-center mb-6">
|
||||
<svg className="w-8 h-8 text-orange-400" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M5 13l4 4L19 7" />
|
||||
</svg>
|
||||
</div>
|
||||
<h3 className="text-2xl font-bold text-slate-900 dark:text-white mb-2">Anfrage gesendet!</h3>
|
||||
<p className="text-slate-600 dark:text-slate-400 mb-8">
|
||||
Wir haben Ihre Nachricht erhalten und melden uns schnellstmöglich bei Ihnen.
|
||||
</p>
|
||||
<div className="form__done" role="status">
|
||||
<CircleCheck className="icon" aria-hidden="true" />
|
||||
<h3>Anfrage gesendet</h3>
|
||||
<p>Wir haben Ihre Nachricht erhalten und melden uns schnellstmöglich bei Ihnen.</p>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => {
|
||||
setStatus("idle");
|
||||
setName("");
|
||||
|
|
@ -174,13 +176,13 @@ ${nachricht}` : ""}`
|
|||
setNachricht("");
|
||||
setStartedAt(Date.now());
|
||||
}}
|
||||
className="btn-secondary px-6 py-2"
|
||||
className="btn-secondary btn-lg"
|
||||
>
|
||||
Neue Anfrage
|
||||
</button>
|
||||
</div>
|
||||
) : (
|
||||
<form className="space-y-6" onSubmit={handleSubmit}>
|
||||
<form className="form" onSubmit={handleSubmit}>
|
||||
{/* Honeypot: für Menschen unsichtbar, Bots füllen es aus */}
|
||||
<div aria-hidden="true" className="absolute -left-[9999px] h-0 w-0 overflow-hidden">
|
||||
<label htmlFor="contact-website">Website</label>
|
||||
|
|
@ -196,19 +198,12 @@ ${nachricht}` : ""}`
|
|||
</div>
|
||||
<fieldset>
|
||||
<legend className={labelClass}>Ich melde mich als</legend>
|
||||
<div className="grid grid-cols-2 gap-3">
|
||||
<div className="seg seg--form">
|
||||
{([
|
||||
["privat", "Privatkunde"],
|
||||
["geschaeftlich", "Geschäftskunde"],
|
||||
] as const).map(([value, label]) => (
|
||||
<label
|
||||
key={value}
|
||||
className={`cursor-pointer text-center px-4 py-3 rounded-xl border text-sm font-bold transition-colors ${
|
||||
zielgruppe === value
|
||||
? "border-orange-500 bg-orange-500/10 text-orange-500 dark:text-orange-400"
|
||||
: "border-slate-300 dark:border-gray-700 text-slate-600 dark:text-slate-400 hover:border-orange-500/40"
|
||||
}`}
|
||||
>
|
||||
<label key={value} className={`seg__key${zielgruppe === value ? " is-on" : ""}`}>
|
||||
<input
|
||||
type="radio"
|
||||
name="zielgruppe"
|
||||
|
|
@ -226,11 +221,12 @@ ${nachricht}` : ""}`
|
|||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div className="grid sm:grid-cols-2 gap-6">
|
||||
<div className="form__row">
|
||||
<div>
|
||||
<label htmlFor="contact-name" className={labelClass}>Name</label>
|
||||
<input
|
||||
id="contact-name"
|
||||
name="name"
|
||||
type="text"
|
||||
required
|
||||
autoComplete="name"
|
||||
|
|
@ -245,6 +241,7 @@ ${nachricht}` : ""}`
|
|||
<label htmlFor="contact-firma" className={labelClass}>Firma (optional)</label>
|
||||
<input
|
||||
id="contact-firma"
|
||||
name="firma"
|
||||
type="text"
|
||||
autoComplete="organization"
|
||||
value={firma}
|
||||
|
|
@ -258,6 +255,7 @@ ${nachricht}` : ""}`
|
|||
<label htmlFor="contact-email" className={labelClass}>E-Mail</label>
|
||||
<input
|
||||
id="contact-email"
|
||||
name="email"
|
||||
type="email"
|
||||
required
|
||||
autoComplete="email"
|
||||
|
|
@ -271,6 +269,7 @@ ${nachricht}` : ""}`
|
|||
<label htmlFor="contact-telefon" className={labelClass}>Telefon (optional, für Rückruf)</label>
|
||||
<input
|
||||
id="contact-telefon"
|
||||
name="telefon"
|
||||
type="tel"
|
||||
autoComplete="tel"
|
||||
value={telefonInput}
|
||||
|
|
@ -285,10 +284,11 @@ ${nachricht}` : ""}`
|
|||
<label htmlFor="contact-betreff" className={labelClass}>Worum geht es?</label>
|
||||
<select
|
||||
id="contact-betreff"
|
||||
name="betreff"
|
||||
required
|
||||
value={betreff}
|
||||
onChange={(e) => setBetreff(e.target.value)}
|
||||
className={`${inputClass} appearance-none`}
|
||||
className={inputClass}
|
||||
>
|
||||
<option value="">Thema auswählen…</option>
|
||||
{themen[zielgruppe].map((t) => (
|
||||
|
|
@ -301,27 +301,25 @@ ${nachricht}` : ""}`
|
|||
<label htmlFor="contact-nachricht" className={labelClass}>Nachricht</label>
|
||||
<textarea
|
||||
id="contact-nachricht"
|
||||
name="nachricht"
|
||||
rows={5}
|
||||
value={nachricht}
|
||||
onChange={(e) => setNachricht(e.target.value)}
|
||||
placeholder={
|
||||
zielgruppe === "privat"
|
||||
? "Beschreiben Sie kurz Ihr Problem oder Ihren Wunsch..."
|
||||
: "Beschreiben Sie Ihr Anliegen, z. B. Anzahl Arbeitsplätze und Standorte..."
|
||||
? "Beschreiben Sie kurz Ihr Problem oder Ihren Wunsch…"
|
||||
: "Beschreiben Sie Ihr Anliegen, z. B. Anzahl Arbeitsplätze und Standorte…"
|
||||
}
|
||||
className={`${inputClass} resize-none`}
|
||||
className={inputClass}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{status === "error" && (
|
||||
<div className="flex items-start gap-3 px-4 py-3 rounded-xl bg-red-500/10 border border-red-500/20 text-red-400 text-sm">
|
||||
<svg className="w-5 h-5 mt-0.5 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||
</svg>
|
||||
<div className="form__error" role="alert">
|
||||
<CircleAlert className="icon--s" aria-hidden="true" />
|
||||
<span>
|
||||
Nachricht konnte nicht gesendet werden. Bitte versuchen Sie es erneut oder
|
||||
kontaktieren Sie uns direkt.
|
||||
{errorMsg && <span className="block mt-1 text-red-400/70 text-xs">{errorMsg}</span>}
|
||||
Nachricht konnte nicht gesendet werden. Bitte versuchen Sie es erneut oder kontaktieren Sie uns direkt.
|
||||
{errorMsg && <small>{errorMsg}</small>}
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
|
|
@ -329,14 +327,12 @@ ${nachricht}` : ""}`
|
|||
<button
|
||||
type="submit"
|
||||
disabled={status === "loading"}
|
||||
className="btn-primary w-full py-4 text-lg disabled:opacity-60 disabled:cursor-not-allowed flex items-center justify-center gap-2"
|
||||
aria-busy={status === "loading"}
|
||||
className="btn-primary btn-lg"
|
||||
>
|
||||
{status === "loading" ? (
|
||||
<>
|
||||
<svg className="w-5 h-5 animate-spin motion-reduce:animate-none" fill="none" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4" />
|
||||
<path className="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v8z" />
|
||||
</svg>
|
||||
<LoaderCircle className="icon--s spin keep-motion" aria-hidden="true" />
|
||||
Wird gesendet…
|
||||
</>
|
||||
) : (
|
||||
|
|
@ -345,49 +341,7 @@ ${nachricht}` : ""}`
|
|||
</button>
|
||||
</form>
|
||||
)}
|
||||
|
||||
{/* Divider */}
|
||||
<div className="flex items-center gap-4 my-8">
|
||||
<div className="flex-1 h-px bg-slate-200 dark:bg-gray-800" />
|
||||
<span className="text-slate-400 dark:text-slate-600 text-sm">oder direkt</span>
|
||||
<div className="flex-1 h-px bg-slate-200 dark:bg-gray-800" />
|
||||
</div>
|
||||
|
||||
{/* Contact info */}
|
||||
<div className="flex flex-col sm:flex-row items-center justify-center gap-6">
|
||||
{contactItems.map((item) => (
|
||||
<a
|
||||
key={item.label}
|
||||
href={item.href}
|
||||
data-source-element="kontakt-section"
|
||||
className="flex items-center gap-3 text-slate-700 dark:text-slate-300 hover:text-orange-400 transition-colors duration-200 group"
|
||||
>
|
||||
<span className="w-10 h-10 rounded-lg bg-orange-500/10 border border-orange-500/20 flex items-center justify-center text-orange-400 group-hover:bg-orange-500/20 transition-colors duration-200">
|
||||
{item.icon}
|
||||
</span>
|
||||
<div>
|
||||
<div className="text-xs text-slate-500">{item.label}</div>
|
||||
<div className="font-medium">{item.value}</div>
|
||||
</div>
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{oeffnungszeiten && oeffnungszeiten.length > 0 && (
|
||||
<div className="mt-6 pt-6 border-t border-slate-200 dark:border-slate-700">
|
||||
<h4 className="text-sm font-semibold text-slate-500 dark:text-slate-400 mb-3">
|
||||
Öffnungszeiten
|
||||
</h4>
|
||||
<ul className="space-y-1">
|
||||
{oeffnungszeiten.map((oz) => (
|
||||
<li key={oz.tag} className="flex justify-between text-sm text-slate-600 dark:text-slate-400">
|
||||
<span>{oz.tag}</span>
|
||||
<span>{oz.von} bis {oz.bis}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -1,36 +1,36 @@
|
|||
import type { ReactElement } from "react";
|
||||
"use client";
|
||||
|
||||
import { useEffect, useRef, useState, type KeyboardEvent, type ReactElement } from "react";
|
||||
import { Cloud, Lock, Server, ShieldCheck, TriangleAlert } from "lucide-react";
|
||||
|
||||
const risks = [
|
||||
{
|
||||
title: "US Cloud Act (2018)",
|
||||
accent: "red",
|
||||
text:
|
||||
"Der Clarifying Lawful Overseas Use of Data Act verpflichtet US-amerikanische Unternehmen, gespeicherte Daten auf Anordnung US-amerikanischer Behörden herauszugeben – unabhängig davon, ob die Daten in Europa oder anderswo gespeichert sind. Microsoft, Google, Amazon und alle weiteren US-Konzerne unterliegen diesem Gesetz. Ein europäischer Serverstandort allein genügt daher nicht, wenn der Betreiber ein US-Unternehmen ist.",
|
||||
"Der Clarifying Lawful Overseas Use of Data Act verpflichtet US-amerikanische Unternehmen, gespeicherte Daten auf Anordnung US-amerikanischer Behörden herauszugeben, unabhängig davon, ob die Daten in Europa oder anderswo gespeichert sind. Microsoft, Google, Amazon und alle weiteren US-Konzerne unterliegen diesem Gesetz. Ein europäischer Serverstandort allein genügt daher nicht, wenn der Betreiber ein US-Unternehmen ist.",
|
||||
},
|
||||
{
|
||||
title: "DSGVO-Konflikt",
|
||||
accent: "red",
|
||||
text:
|
||||
"Die Datenschutz-Grundverordnung (DSGVO) verbietet die Weitergabe personenbezogener Daten an Drittländer ohne angemessenes Schutzniveau. Der US Cloud Act und die DSGVO stehen damit in direktem Widerspruch: US-Unternehmen können bei Herausgabeanordnungen nicht gleichzeitig DSGVO-konform handeln. Dieses Spannungsfeld ist bis heute rechtlich ungelöst.",
|
||||
},
|
||||
{
|
||||
title: "Wirtschaftsspionage & Datenabfluss",
|
||||
accent: "red",
|
||||
text:
|
||||
"Betriebsgeheimnisse, Kundendaten, Verträge und strategische Pläne – all das kann durch den Cloud Act für US-Behörden zugreifbar werden. Betroffen sind nicht nur große Konzerne: Jedes Unternehmen, das Daten bei US-Anbietern speichert, ist potenziell exponiert. Laut einer Studie des Bitkom haben 75 % der deutschen Unternehmen innerhalb von 3 Jahren Cyberattacken oder Datendiebstahl erlebt.",
|
||||
"Betriebsgeheimnisse, Kundendaten, Verträge und strategische Pläne: all das kann durch den Cloud Act für US-Behörden zugreifbar werden. Betroffen sind nicht nur große Konzerne: Jedes Unternehmen, das Daten bei US-Anbietern speichert, ist potenziell exponiert. Laut einer Studie des Bitkom haben 75 % der deutschen Unternehmen innerhalb von 3 Jahren Cyberattacken oder Datendiebstahl erlebt.",
|
||||
},
|
||||
];
|
||||
|
||||
const solutions = [
|
||||
{
|
||||
title: "Europäische Cloud – Hetzner",
|
||||
title: "Europäische Cloud: Hetzner",
|
||||
icon: "shield",
|
||||
text: "Hetzner ist ein deutsches Unternehmen mit Rechenzentren in Deutschland und Finnland. Als europäischer Anbieter unterliegt Hetzner nicht dem US Cloud Act. Ihre Daten bleiben in deutschen Rechenzentren – rechtssicher und DSGVO-konform.",
|
||||
text: "Hetzner ist ein deutsches Unternehmen mit Rechenzentren in Deutschland und Finnland. Als europäischer Anbieter unterliegt Hetzner nicht dem US Cloud Act. Ihre Daten bleiben in deutschen Rechenzentren, rechtssicher und DSGVO-konform.",
|
||||
},
|
||||
{
|
||||
title: "Self-Hosting auf eigenem Server",
|
||||
icon: "server",
|
||||
text: "Mit Docker oder Proxmox betreiben Sie Ihre Anwendungen auf Infrastruktur, die vollständig unter Ihrer Kontrolle liegt. Kein Drittanbieter hat Zugriff – kein Cloud Act, keine versteckten Klauseln, volle Datensouveränität.",
|
||||
text: "Mit Docker oder Proxmox betreiben Sie Ihre Anwendungen auf Infrastruktur, die vollständig unter Ihrer Kontrolle liegt. Kein Drittanbieter hat Zugriff: kein Cloud Act, keine versteckten Klauseln, volle Datensouveränität.",
|
||||
},
|
||||
{
|
||||
title: "Nextcloud statt Google Drive",
|
||||
|
|
@ -45,101 +45,120 @@ const solutions = [
|
|||
];
|
||||
|
||||
const icons: Record<string, ReactElement> = {
|
||||
shield: (
|
||||
<svg className="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" />
|
||||
</svg>
|
||||
),
|
||||
server: (
|
||||
<svg className="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01" />
|
||||
</svg>
|
||||
),
|
||||
cloud: (
|
||||
<svg className="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z" />
|
||||
</svg>
|
||||
),
|
||||
lock: (
|
||||
<svg className="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
|
||||
</svg>
|
||||
),
|
||||
shield: <ShieldCheck className="icon" aria-hidden="true" />,
|
||||
server: <Server className="icon" aria-hidden="true" />,
|
||||
cloud: <Cloud className="icon" aria-hidden="true" />,
|
||||
lock: <Lock className="icon" aria-hidden="true" />,
|
||||
};
|
||||
|
||||
const tabs = [
|
||||
{ id: "risiko", label: "Das Risiko", count: risks.length },
|
||||
{ id: "loesung", label: "Unsere Lösung", count: solutions.length },
|
||||
] as const;
|
||||
|
||||
type TabId = (typeof tabs)[number]["id"];
|
||||
|
||||
export default function DataSovereignty() {
|
||||
// Ohne Skript stehen beide Teile untereinander; erst nach dem Laden wird umgeschaltet.
|
||||
const [enhanced, setEnhanced] = useState(false);
|
||||
const [active, setActive] = useState<TabId>("risiko");
|
||||
const tabRefs = useRef<Record<TabId, HTMLButtonElement | null>>({ risiko: null, loesung: null });
|
||||
|
||||
useEffect(() => setEnhanced(true), []);
|
||||
|
||||
const onKey = (e: KeyboardEvent<HTMLButtonElement>) => {
|
||||
if (e.key !== "ArrowRight" && e.key !== "ArrowLeft") return;
|
||||
e.preventDefault();
|
||||
const next: TabId = active === "risiko" ? "loesung" : "risiko";
|
||||
setActive(next);
|
||||
tabRefs.current[next]?.focus();
|
||||
};
|
||||
|
||||
const shown = (id: TabId) => !enhanced || active === id;
|
||||
|
||||
return (
|
||||
<section id="datensouveraenitaet" className="py-24 px-4 sm:px-6 lg:px-8 relative">
|
||||
<div className="absolute inset-0 bg-[#e8eef4] dark:bg-[#111925]" />
|
||||
<div className="absolute inset-0 bg-grid opacity-30" />
|
||||
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_bottom_left,rgba(239,68,68,0.04)_0%,transparent_60%)]" />
|
||||
|
||||
<div className="max-w-7xl mx-auto relative">
|
||||
|
||||
{/* Header */}
|
||||
<div className="text-center mb-16">
|
||||
<h2 className="text-4xl sm:text-5xl font-black text-slate-900 dark:text-white mb-4">
|
||||
Ihre Daten gehören{" "}
|
||||
<span className="text-gradient">Ihnen</span>
|
||||
</h2>
|
||||
<p className="text-slate-600 dark:text-slate-400 text-lg max-w-2xl mx-auto">
|
||||
US Cloud Act, DSGVO und Datensouveränität: warum die Wahl
|
||||
Ihrer IT-Infrastruktur über mehr als Kosten entscheidet.
|
||||
<section id="datensouveraenitaet" className="sec" aria-labelledby="ds-title">
|
||||
<div className="wrap">
|
||||
<div className="head head--split">
|
||||
<h2 id="ds-title">Ihre Daten gehören Ihnen</h2>
|
||||
<p className="lead">
|
||||
US Cloud Act, DSGVO und Datensouveränität: warum die Wahl Ihrer IT-Infrastruktur über mehr als Kosten entscheidet.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Warning banner */}
|
||||
<div className="mb-12 p-5 rounded-2xl border border-red-500/30 bg-red-500/5 flex items-start gap-4">
|
||||
<div className="flex-shrink-0 w-10 h-10 rounded-xl bg-red-500/10 text-red-400 flex items-center justify-center mt-0.5">
|
||||
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
|
||||
</svg>
|
||||
</div>
|
||||
<div>
|
||||
<p className="text-red-400 font-bold text-sm mb-1">Wichtig für deutsche Unternehmen</p>
|
||||
<p className="text-slate-600 dark:text-slate-400 text-sm leading-relaxed">
|
||||
Wer Daten bei US-amerikanischen Anbietern wie Microsoft Azure, Google Cloud oder AWS speichert, kann sich nicht sicher sein, dass diese Daten nicht auf Anordnung US-amerikanischer Behörden herausgegeben werden — auch wenn die Server physisch in Deutschland stehen. Der <strong className="text-slate-900 dark:text-white">US Cloud Act</strong> hebelt den geografischen Serverstandort als Schutzargument vollständig aus.
|
||||
<div className="ds__alert">
|
||||
<TriangleAlert className="icon" aria-hidden="true" />
|
||||
<p>
|
||||
<strong>Wichtig für deutsche Unternehmen.</strong> Wer Daten bei US-amerikanischen Anbietern wie Microsoft Azure,
|
||||
Google Cloud oder AWS speichert, kann sich nicht sicher sein, dass diese Daten nicht auf Anordnung
|
||||
US-amerikanischer Behörden herausgegeben werden, auch wenn die Server physisch in Deutschland stehen. Der{" "}
|
||||
<strong>US Cloud Act</strong> hebelt den geografischen Serverstandort als Schutzargument vollständig aus.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Risks */}
|
||||
<div className="grid md:grid-cols-3 gap-6 mb-16">
|
||||
{enhanced && (
|
||||
<div className="seg" role="tablist" aria-label="Risiko und Lösung">
|
||||
{tabs.map((t) => (
|
||||
<button
|
||||
key={t.id}
|
||||
ref={(el) => {
|
||||
tabRefs.current[t.id] = el;
|
||||
}}
|
||||
type="button"
|
||||
role="tab"
|
||||
id={`ds-tab-${t.id}`}
|
||||
aria-selected={active === t.id}
|
||||
aria-controls={`ds-panel-${t.id}`}
|
||||
tabIndex={active === t.id ? 0 : -1}
|
||||
className="seg__key"
|
||||
onClick={() => setActive(t.id)}
|
||||
onKeyDown={onKey}
|
||||
>
|
||||
{t.label}
|
||||
<span className="seg__count">{t.count}</span>
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div
|
||||
className="ds__panel"
|
||||
id="ds-panel-risiko"
|
||||
role={enhanced ? "tabpanel" : undefined}
|
||||
aria-labelledby={enhanced ? "ds-tab-risiko" : undefined}
|
||||
hidden={!shown("risiko")}
|
||||
>
|
||||
<h3 className={enhanced ? "visually-hidden" : "ds__panel-title"}>Das Risiko</h3>
|
||||
<ul className="rows rows--wide">
|
||||
{risks.map((risk) => (
|
||||
<div key={risk.title} className="p-6 rounded-2xl bg-white dark:bg-gray-900 border border-red-500/20 hover:border-red-500/40 transition-colors duration-300">
|
||||
<div className="flex items-center gap-3 mb-4">
|
||||
<div className="w-2 h-2 rounded-full bg-red-400 flex-shrink-0" />
|
||||
<h3 className="text-slate-800 dark:text-white font-bold text-base">{risk.title}</h3>
|
||||
</div>
|
||||
<p className="text-slate-600 dark:text-slate-400 text-sm leading-relaxed">{risk.text}</p>
|
||||
</div>
|
||||
<li key={risk.title}>
|
||||
<h3>{risk.title}</h3>
|
||||
<p>{risk.text}</p>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{/* Divider with CTA */}
|
||||
<div className="flex items-center gap-6 mb-16">
|
||||
<div className="flex-1 h-px bg-gradient-to-r from-transparent via-slate-300 dark:via-gray-700 to-transparent" />
|
||||
<div className="px-6 py-2 rounded-full border border-orange-500/40 bg-orange-500/5 text-orange-500 dark:text-orange-400 text-sm font-black whitespace-nowrap">
|
||||
Unsere Lösung
|
||||
</div>
|
||||
<div className="flex-1 h-px bg-gradient-to-r from-transparent via-slate-300 dark:via-gray-700 to-transparent" />
|
||||
</div>
|
||||
|
||||
{/* Solutions */}
|
||||
<div className="grid md:grid-cols-2 gap-6 mb-16">
|
||||
<div
|
||||
className="ds__panel"
|
||||
id="ds-panel-loesung"
|
||||
role={enhanced ? "tabpanel" : undefined}
|
||||
aria-labelledby={enhanced ? "ds-tab-loesung" : undefined}
|
||||
hidden={!shown("loesung")}
|
||||
>
|
||||
<h3 className={enhanced ? "visually-hidden" : "ds__panel-title"}>Unsere Lösung</h3>
|
||||
<ul className="ds__sol">
|
||||
{solutions.map((sol) => (
|
||||
<div key={sol.title} className="flex gap-5 p-6 rounded-2xl bg-white dark:bg-gray-900 border border-orange-500/20 hover:border-orange-500/40 transition-[border-color,transform] duration-300 hover:-translate-y-0.5 motion-reduce:hover:translate-y-0">
|
||||
<div className="flex-shrink-0 w-12 h-12 rounded-xl bg-orange-500/10 text-orange-400 flex items-center justify-center">
|
||||
<li key={sol.title} className="cut">
|
||||
<div className="ds__sol-top">
|
||||
{icons[sol.icon]}
|
||||
<h3>{sol.title}</h3>
|
||||
</div>
|
||||
<div>
|
||||
<h3 className="text-slate-800 dark:text-white font-bold text-base mb-2">{sol.title}</h3>
|
||||
<p className="text-slate-600 dark:text-slate-400 text-sm leading-relaxed">{sol.text}</p>
|
||||
</div>
|
||||
</div>
|
||||
<p>{sol.text}</p>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -33,73 +33,55 @@ export default function Footer() {
|
|||
const year = new Date().getFullYear();
|
||||
|
||||
return (
|
||||
<footer className="bg-[#e8eef4] dark:bg-[#111925] border-t border-slate-200 dark:border-gray-800">
|
||||
{/* Tagline strip */}
|
||||
<div className="border-b border-slate-200 dark:border-gray-800 py-6 px-4">
|
||||
<div className="max-w-7xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-4">
|
||||
<p className="text-2xl sm:text-3xl font-black text-slate-900 dark:text-white tracking-tight">
|
||||
<span className="text-orange-500 dark:text-orange-400">Digital Denken.</span>{" "}
|
||||
<span className="text-blue-600 dark:text-blue-400">Lokal Handeln.</span>
|
||||
<footer className="ft">
|
||||
<div className="wrap">
|
||||
<div className="grid12 ft__top">
|
||||
<div className="ft__brand">
|
||||
<Link href="/" className="wordmark" aria-label="MBO-Tech-IT, zur Startseite">
|
||||
<Logo className="h-8 w-auto" />
|
||||
<span className="wordmark__text">
|
||||
<span className="wordmark__name">
|
||||
MBO-<span className="wordmark__blue">Tech-IT</span>
|
||||
</span>
|
||||
<span className="wordmark__tag">Digital Denken. Lokal Handeln.</span>
|
||||
</span>
|
||||
</Link>
|
||||
<p className="ft__colophon">
|
||||
Ihr IT-Dienstleister aus Crailsheim, für zu Hause und für Ihr Unternehmen. Persönlich, zuverlässig und zum
|
||||
fairen Preis.
|
||||
</p>
|
||||
<a
|
||||
href="/#contact"
|
||||
className="btn-primary flex-shrink-0 px-6 py-3 text-sm"
|
||||
>
|
||||
<a href="/#contact" className="btn-secondary btn-lg">
|
||||
Jetzt starten
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16">
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-10 mb-12">
|
||||
{/* Brand */}
|
||||
<div className="lg:col-span-1">
|
||||
<div className="flex items-center gap-3 mb-4">
|
||||
<Logo className="h-8 w-auto" />
|
||||
<div className="flex flex-col leading-tight">
|
||||
<span className="font-black text-slate-900 dark:text-white text-base tracking-wider uppercase">
|
||||
MBO-<span className="bg-gradient-to-r from-blue-400 to-blue-600 bg-clip-text text-transparent">TECH-IT</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<p className="text-slate-600 dark:text-slate-400 text-sm leading-relaxed mb-4">
|
||||
Ihr IT-Dienstleister aus Crailsheim, für zu Hause und für Ihr
|
||||
Unternehmen. Persönlich, zuverlässig und zum fairen Preis.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Links */}
|
||||
<nav className="ft__nav" aria-label="Fußzeile">
|
||||
{footerLinks.map((group) => (
|
||||
<div key={group.title}>
|
||||
<h4 className="text-slate-800 dark:text-white font-bold text-sm mb-4">{group.title}</h4>
|
||||
<ul className="space-y-2">
|
||||
<h2 className="ft__group-title">{group.title}</h2>
|
||||
<ul className="ft__links">
|
||||
{group.links.map((link) => (
|
||||
<li key={link.label}>
|
||||
<Link
|
||||
href={link.href}
|
||||
className="text-slate-600 dark:text-slate-400 hover:text-orange-400 transition-colors text-sm"
|
||||
>
|
||||
{link.label}
|
||||
</Link>
|
||||
<Link href={link.href}>{link.label}</Link>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
))}
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
{/* Bottom bar */}
|
||||
<div className="pt-8 border-t border-slate-200 dark:border-gray-800 flex flex-col sm:flex-row items-center justify-between gap-4">
|
||||
<p className="text-slate-500 dark:text-slate-400 text-sm">
|
||||
© {year} MBO-Tech-IT. Alle Rechte vorbehalten.
|
||||
</p>
|
||||
<div className="flex items-center gap-4 text-slate-500 dark:text-slate-400 text-sm">
|
||||
<Link href="/impressum" className="hover:text-orange-400 transition-colors">Impressum</Link>
|
||||
<Link href="/datenschutz" className="hover:text-orange-400 transition-colors">Datenschutz</Link>
|
||||
<span className="flex items-center gap-2">
|
||||
Alle Systeme betriebsbereit
|
||||
</span>
|
||||
<div className="ft__bottom">
|
||||
<p>© {year} MBO-Tech-IT. Alle Rechte vorbehalten.</p>
|
||||
<div className="ft__legal">
|
||||
<Link href="/impressum">Impressum</Link>
|
||||
<Link href="/datenschutz">Datenschutz</Link>
|
||||
<span>Alle Systeme betriebsbereit</span>
|
||||
</div>
|
||||
<p className="ft__credits" data-credits>
|
||||
Foto: <a href="https://commons.wikimedia.org/wiki/File:Network_switches.jpg">ShakataGaNai</a> (CC BY-SA 3.0,
|
||||
Wikimedia Commons)
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
"use client";
|
||||
|
||||
import { useState, useEffect } from "react";
|
||||
import { useState } from "react";
|
||||
import Link from "next/link";
|
||||
import { Menu, Phone, X } from "lucide-react";
|
||||
import Logo from "./Logo";
|
||||
import ThemeToggle from "./ThemeToggle";
|
||||
|
||||
|
|
@ -19,106 +20,66 @@ const navLinks = [
|
|||
];
|
||||
|
||||
export default function Header() {
|
||||
const [scrolled, setScrolled] = useState(false);
|
||||
const [menuOpen, setMenuOpen] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
const onScroll = () => setScrolled(window.scrollY > 20);
|
||||
window.addEventListener("scroll", onScroll);
|
||||
return () => window.removeEventListener("scroll", onScroll);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<header
|
||||
className={`fixed top-0 left-0 right-0 z-50 transition-[background-color,border-color] duration-300 ${
|
||||
scrolled
|
||||
? "bg-white/95 dark:bg-[#111925]/95 backdrop-blur-md border-b border-slate-200 dark:border-gray-800"
|
||||
: "bg-transparent"
|
||||
}`}
|
||||
>
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="flex items-center justify-between h-16">
|
||||
{/* Logo */}
|
||||
<Link href="/" className="flex items-center gap-3 group">
|
||||
<header className="nav">
|
||||
<div className="wrap nav__inner">
|
||||
<Link href="/" className="wordmark" aria-label="MBO-Tech-IT, zur Startseite">
|
||||
<Logo className="h-8 w-auto" />
|
||||
<div className="flex flex-col leading-tight">
|
||||
<span className="font-black text-slate-900 dark:text-white text-base tracking-wider uppercase">
|
||||
MBO-<span className="text-gradient">TECH-IT</span>
|
||||
<span className="wordmark__text">
|
||||
<span className="wordmark__name">
|
||||
MBO-<span className="wordmark__blue">Tech-IT</span>
|
||||
</span>
|
||||
<span className="text-[11px] font-medium text-orange-500 dark:text-orange-400/80 hidden sm:block">
|
||||
Digital Denken. Lokal Handeln.
|
||||
<span className="wordmark__tag hidden sm:block">Digital Denken. Lokal Handeln.</span>
|
||||
</span>
|
||||
</div>
|
||||
</Link>
|
||||
|
||||
{/* Desktop Nav */}
|
||||
<nav className="hidden lg:flex items-center gap-6">
|
||||
<nav className="nav__links" aria-label="Hauptnavigation">
|
||||
{navLinks.map((link) => (
|
||||
<Link
|
||||
key={link.href}
|
||||
href={link.href}
|
||||
className="text-slate-600 dark:text-slate-400 hover:text-blue-600 dark:hover:text-blue-400 transition-colors text-sm font-medium"
|
||||
>
|
||||
<Link key={link.href} href={link.href} className="nav__link">
|
||||
{link.label}
|
||||
</Link>
|
||||
))}
|
||||
<a
|
||||
href={PHONE_HREF}
|
||||
aria-label={`Anrufen: ${PHONE_DISPLAY}`}
|
||||
className="flex items-center gap-2 text-slate-700 dark:text-slate-300 hover:text-orange-400 transition-colors text-sm font-semibold"
|
||||
>
|
||||
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z" /></svg>
|
||||
<span className="hidden xl:inline">{PHONE_DISPLAY}</span>
|
||||
</nav>
|
||||
|
||||
<div className="nav__end">
|
||||
<div className="nav__desk nav__end">
|
||||
<a href={PHONE_HREF} aria-label={`Anrufen: ${PHONE_DISPLAY}`} className="nav__phone">
|
||||
<Phone className="icon--s" aria-hidden="true" />
|
||||
<span>{PHONE_DISPLAY}</span>
|
||||
</a>
|
||||
<Link
|
||||
href="/#contact"
|
||||
className="btn-nav"
|
||||
>
|
||||
<Link href="/#contact" className="btn-nav">
|
||||
Jetzt anfragen
|
||||
</Link>
|
||||
<ThemeToggle />
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
{/* Mobile Menu Button */}
|
||||
<button
|
||||
className="lg:hidden text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-white transition-colors"
|
||||
type="button"
|
||||
className="nav__burger"
|
||||
onClick={() => setMenuOpen(!menuOpen)}
|
||||
aria-label={menuOpen ? "Menü schließen" : "Menü öffnen"}
|
||||
aria-expanded={menuOpen}
|
||||
aria-controls="nav-drawer"
|
||||
>
|
||||
<svg className="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
||||
{menuOpen ? (
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M6 18L18 6M6 6l12 12" />
|
||||
) : (
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4 6h16M4 12h16M4 18h16" />
|
||||
)}
|
||||
</svg>
|
||||
{menuOpen ? <X className="icon" aria-hidden="true" /> : <Menu className="icon" aria-hidden="true" />}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Mobile Menu */}
|
||||
{menuOpen && (
|
||||
<div className="lg:hidden bg-white/98 dark:bg-[#111925]/98 backdrop-blur-md border-t border-slate-200 dark:border-gray-800">
|
||||
<nav className="px-4 py-4 flex flex-col gap-4">
|
||||
<div className="nav__drawer" id="nav-drawer">
|
||||
<nav className="wrap" aria-label="Mobile Navigation">
|
||||
{navLinks.map((link) => (
|
||||
<Link
|
||||
key={link.href}
|
||||
href={link.href}
|
||||
className="text-slate-600 dark:text-slate-400 hover:text-blue-600 dark:hover:text-blue-400 transition-colors text-sm font-medium py-1"
|
||||
onClick={() => setMenuOpen(false)}
|
||||
>
|
||||
<Link key={link.href} href={link.href} className="nav__link" onClick={() => setMenuOpen(false)}>
|
||||
{link.label}
|
||||
</Link>
|
||||
))}
|
||||
<Link
|
||||
href="/#contact"
|
||||
className="px-4 py-2 rounded-lg bg-orange-500 hover:bg-orange-400 text-white text-sm font-bold text-center mt-2 transition-colors"
|
||||
onClick={() => setMenuOpen(false)}
|
||||
>
|
||||
<div className="nav__drawer-end">
|
||||
<Link href="/#contact" className="btn-primary btn-lg" onClick={() => setMenuOpen(false)}>
|
||||
Jetzt anfragen
|
||||
</Link>
|
||||
<div className="flex justify-end pt-1">
|
||||
<ThemeToggle />
|
||||
</div>
|
||||
</nav>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
"use client";
|
||||
|
||||
import { useMemo } from "react";
|
||||
import { useTypewriter } from "@/hooks/useTypewriter";
|
||||
import type { CSSProperties } from "react";
|
||||
import AsciiField from "./AsciiField";
|
||||
|
||||
interface HeroProps {
|
||||
eyebrowText?: string;
|
||||
|
|
@ -16,11 +14,13 @@ interface HeroProps {
|
|||
badges?: string[];
|
||||
}
|
||||
|
||||
const privatFelder = ["WLAN & Heimnetz", "PC & Notebook", "Datensicherung", "Familienschutz", "Eigene Cloud"];
|
||||
const geschaeftsFelder = ["Netzwerk & WLAN", "Firewall & Sicherheit", "VPN & Fernzugriff", "Webseiten & Web-Apps", "Backup & Dokumentenarchiv"];
|
||||
// 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)}%`;
|
||||
}
|
||||
|
||||
export default function Hero({
|
||||
eyebrowText = "Digital Denken. Lokal Handeln.",
|
||||
headline1 = "Ihr IT-Service in Crailsheim.",
|
||||
subtext1 = "Ihr IT-Dienstleister in Crailsheim, egal ob zu Hause oder im Büro. Von Hard- & Software über Netzwerk & WLAN bis hin zu Webseiten & Webanwendungen: Wir lösen Ihre IT-Probleme persönlich und zum fairen Preis.",
|
||||
subtext2 = "",
|
||||
|
|
@ -31,109 +31,46 @@ export default function Hero({
|
|||
bgImagePath = null,
|
||||
badges = ["Docker", "Proxmox", "Hetzner Cloud", "Linux"],
|
||||
}: HeroProps = {}) {
|
||||
const words = useMemo(() => ["Professionell.", "DSGVO-konform.", "Zuverlässig.", "Skalierbar."], []);
|
||||
const typed = useTypewriter(words);
|
||||
|
||||
return (
|
||||
<section className="relative min-h-svh flex items-center justify-center overflow-hidden pt-24 pb-24 sm:pt-20">
|
||||
{/* Background grid */}
|
||||
<div className="absolute inset-0 bg-grid opacity-50" />
|
||||
|
||||
{/* Radial gradient glow */}
|
||||
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_center,rgba(249,115,22,0.10)_0%,transparent_65%)]" />
|
||||
|
||||
<section className="hero" aria-labelledby="hero-title">
|
||||
{bgImagePath && (
|
||||
<div
|
||||
className="absolute inset-0 bg-cover bg-center opacity-20"
|
||||
style={{ backgroundImage: `url(${process.env.NEXT_PUBLIC_SUPABASE_URL}/storage/v1/object/public/hero-bilder/${bgImagePath})` }}
|
||||
<div className="hero__photo" data-slot="hero" data-alt="Hintergrundbild aus der Verwaltung (hero-bilder)">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={`${process.env.NEXT_PUBLIC_SUPABASE_URL}/storage/v1/object/public/hero-bilder/${bgImagePath}`}
|
||||
alt=""
|
||||
fetchPriority="high"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
|
||||
{/* Headline */}
|
||||
<h1 className="text-5xl sm:text-6xl lg:text-7xl font-black text-slate-900 dark:text-white leading-tight mb-6 tracking-tight">
|
||||
{headline1}{" "}
|
||||
<span className="text-gradient">
|
||||
{typed}
|
||||
<span className="animate-pulse motion-reduce:animate-none" aria-hidden="true">|</span>
|
||||
</span>
|
||||
</h1>
|
||||
<AsciiField />
|
||||
|
||||
{/* Subheadline */}
|
||||
{subtext1 && (
|
||||
<p className="text-lg sm:text-xl text-slate-600 dark:text-slate-400 max-w-3xl mx-auto mb-6 leading-relaxed">
|
||||
{subtext1}
|
||||
</p>
|
||||
)}
|
||||
{subtext2 && (
|
||||
<p className="text-lg sm:text-xl text-slate-600 dark:text-slate-400 max-w-3xl mx-auto mb-6 leading-relaxed">
|
||||
{subtext2}
|
||||
</p>
|
||||
)}
|
||||
<div className="wrap grid12 hero__content">
|
||||
<div className="hero__text">
|
||||
<h1 id="hero-title">{headline1}</h1>
|
||||
{subtext1 && <p className="hero__sub">{subtext1}</p>}
|
||||
{subtext2 && <p className="hero__sub">{subtext2}</p>}
|
||||
|
||||
{/* Zielgruppen-Weiche */}
|
||||
<div className="grid sm:grid-cols-2 gap-4 max-w-3xl mx-auto mb-10 text-left">
|
||||
<a
|
||||
href="/privatkunden"
|
||||
className="group p-5 rounded-2xl bg-white/80 dark:bg-gray-900/80 border border-slate-200 dark:border-gray-700 hover:border-orange-500/60 hover:shadow-lg hover:shadow-orange-500/10 transition-[border-color,box-shadow] duration-200"
|
||||
>
|
||||
<div className="flex items-center justify-between mb-1">
|
||||
<span className="text-lg font-black text-slate-900 dark:text-white">Ich bin Privatkunde</span>
|
||||
<span className="text-orange-400 group-hover:translate-x-1 motion-reduce:group-hover:translate-x-0 transition-transform" aria-hidden="true">→</span>
|
||||
</div>
|
||||
<p className="text-sm text-slate-600 dark:text-slate-400">
|
||||
WLAN, PC, Familienschutz und eigene Cloud für zu Hause.
|
||||
</p>
|
||||
<ul className="flex flex-wrap gap-1.5 mt-3">
|
||||
{privatFelder.map((f) => (
|
||||
<li key={f} className="px-2 py-0.5 rounded-md text-xs font-medium bg-orange-500/10 text-orange-600 dark:text-orange-400 border border-orange-500/20">
|
||||
{f}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</a>
|
||||
<a
|
||||
href="/geschaeftskunden"
|
||||
className="group p-5 rounded-2xl bg-white/80 dark:bg-gray-900/80 border border-slate-200 dark:border-gray-700 hover:border-blue-500/60 hover:shadow-lg hover:shadow-blue-500/10 transition-[border-color,box-shadow] duration-200"
|
||||
>
|
||||
<div className="flex items-center justify-between mb-1">
|
||||
<span className="text-lg font-black text-slate-900 dark:text-white">Ich bin Geschäftskunde</span>
|
||||
<span className="text-blue-400 group-hover:translate-x-1 motion-reduce:group-hover:translate-x-0 transition-transform" aria-hidden="true">→</span>
|
||||
</div>
|
||||
<p className="text-sm text-slate-600 dark:text-slate-400">
|
||||
Netzwerk, sicherer Fernzugriff, Dokumentenarchiv und IT-Betreuung.
|
||||
</p>
|
||||
<ul className="flex flex-wrap gap-1.5 mt-3">
|
||||
{geschaeftsFelder.map((f) => (
|
||||
<li key={f} className="px-2 py-0.5 rounded-md text-xs font-medium bg-blue-500/10 text-blue-600 dark:text-blue-400 border border-blue-500/20">
|
||||
{f}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
{/* Tech pills */}
|
||||
<div className="flex flex-wrap items-center justify-center gap-2 mb-8 opacity-70">
|
||||
{badges.map((badge) => (
|
||||
<span
|
||||
key={badge}
|
||||
className="px-2.5 py-0.5 rounded-md bg-slate-100 dark:bg-gray-900 border border-slate-200 dark:border-gray-700 text-slate-700 dark:text-slate-300 text-xs"
|
||||
>
|
||||
{badge}
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{/* CTAs */}
|
||||
<div className="flex flex-col sm:flex-row items-center justify-center gap-4">
|
||||
<a href={cta1Href} className="btn-primary w-full sm:w-auto px-8 py-4 text-lg">
|
||||
<div className="hero__actions">
|
||||
<a href={cta1Href} className="btn-primary btn-lg">
|
||||
{cta1Text}
|
||||
</a>
|
||||
<a href={cta2Href === "#services" ? "/services" : cta2Href} className="btn-secondary w-full sm:w-auto px-8 py-4 text-lg">
|
||||
<a href={cta2Href === "#services" ? "/services" : cta2Href} className="btn-secondary btn-lg">
|
||||
{cta2Text}
|
||||
</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>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,19 +1,13 @@
|
|||
import { Phone } from "lucide-react";
|
||||
|
||||
export default function MobileContactBar() {
|
||||
return (
|
||||
<div className="lg:hidden fixed bottom-0 left-0 right-0 z-40 grid grid-cols-2 gap-2 p-2 bg-white/95 dark:bg-[#111925]/95 backdrop-blur-md border-t border-slate-200 dark:border-gray-800">
|
||||
<a
|
||||
href="tel:+491719345193"
|
||||
className="flex items-center justify-center gap-2 py-3 rounded-xl border border-orange-500/40 text-orange-500 dark:text-orange-400 text-sm font-bold"
|
||||
>
|
||||
<svg className="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z" />
|
||||
</svg>
|
||||
<div className="mbar">
|
||||
<a href="tel:+491719345193" className="btn-secondary btn-lg">
|
||||
<Phone className="icon--s" aria-hidden="true" />
|
||||
Anrufen
|
||||
</a>
|
||||
<a
|
||||
href="/#contact"
|
||||
className="flex items-center justify-center py-3 rounded-xl bg-orange-500 hover:bg-orange-400 text-white text-sm font-bold transition-colors"
|
||||
>
|
||||
<a href="/#contact" className="btn-primary btn-lg">
|
||||
Anfrage senden
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,21 +1,18 @@
|
|||
// components/PaperlessSection.tsx
|
||||
import ScrollReveal from "@/components/ScrollReveal";
|
||||
import { Check } from "lucide-react";
|
||||
|
||||
const requirements = [
|
||||
{
|
||||
accent: "orange",
|
||||
title: "DSGVO-konforme Archivierung",
|
||||
text: "Alle Dokumente bleiben auf Ihrer eigenen Infrastruktur — in Deutschland oder bei Hetzner. Kein Zugriff durch Drittanbieter, keine US-Cloud. Vollständig DSGVO-konform.",
|
||||
text: "Alle Dokumente bleiben auf Ihrer eigenen Infrastruktur, in Deutschland oder bei Hetzner. Kein Zugriff durch Drittanbieter, keine US-Cloud. Vollständig DSGVO-konform.",
|
||||
},
|
||||
{
|
||||
accent: "blue",
|
||||
title: "GoBD-Anforderungen erfüllt",
|
||||
text: "Revisionssichere, unveränderliche Ablage steuerrelevanter Belege. Paperless-ngx protokolliert alle Änderungen und erfüllt die Anforderungen der GoBD an die digitale Buchführung.",
|
||||
},
|
||||
{
|
||||
accent: "orange",
|
||||
title: "Selbstgehostet & unter Kontrolle",
|
||||
text: "Betrieb auf Ihrem eigenen Server oder auf einem deutschen Hetzner-VPS. Sie haben die volle Kontrolle über Ihre Daten — heute, morgen und in 10 Jahren.",
|
||||
text: "Betrieb auf Ihrem eigenen Server oder auf einem deutschen Hetzner-VPS. Sie haben die volle Kontrolle über Ihre Daten: heute, morgen und in 10 Jahren.",
|
||||
},
|
||||
];
|
||||
|
||||
|
|
@ -26,109 +23,55 @@ const services = [
|
|||
"Schulung & Dokumentation für Ihr Team",
|
||||
];
|
||||
|
||||
const colorMap = {
|
||||
orange: {
|
||||
border: "border-orange-500/20 hover:border-orange-500/50",
|
||||
dot: "bg-orange-400",
|
||||
dotBg: "bg-orange-500/10",
|
||||
},
|
||||
blue: {
|
||||
border: "border-blue-500/20 hover:border-blue-500/50",
|
||||
dot: "bg-blue-400",
|
||||
dotBg: "bg-blue-500/10",
|
||||
},
|
||||
};
|
||||
const tags = ["Open Source", "Self-Hosted", "OCR", "Volltextsuche", "Automatische Tags"];
|
||||
|
||||
export default function PaperlessSection() {
|
||||
return (
|
||||
<section id="paperless" className="py-24 px-4 sm:px-6 lg:px-8 relative">
|
||||
<div className="absolute inset-0 bg-[#e8eef4] dark:bg-[#111925]" />
|
||||
<div className="absolute inset-0 bg-grid opacity-20" />
|
||||
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_top_right,rgba(34,197,94,0.04)_0%,transparent_60%)]" />
|
||||
|
||||
<div className="max-w-7xl mx-auto relative">
|
||||
|
||||
{/* Header */}
|
||||
<ScrollReveal>
|
||||
<div className="text-center mb-16">
|
||||
<h2 className="text-4xl sm:text-5xl font-black text-slate-900 dark:text-white mb-4">
|
||||
DSGVO & GoBD mit{" "}
|
||||
<span className="text-gradient-orange">Paperless-ngx</span>
|
||||
</h2>
|
||||
<p className="text-slate-600 dark:text-slate-400 text-lg max-w-2xl mx-auto">
|
||||
Digitale Dokumentenverwaltung, die rechtssicher ist: DSGVO-konform,
|
||||
GoBD-tauglich, selbstgehostet. Kein Abo, keine US-Cloud, volle Kontrolle.
|
||||
<section id="paperless" className="sec" aria-labelledby="paperless-title">
|
||||
<div className="wrap grid12">
|
||||
<div className="pl__head">
|
||||
<h2 id="paperless-title">DSGVO & GoBD mit Paperless-ngx</h2>
|
||||
<p className="lead">
|
||||
Digitale Dokumentenverwaltung, die rechtssicher ist: DSGVO-konform, GoBD-tauglich, selbstgehostet. Kein Abo,
|
||||
keine US-Cloud, volle Kontrolle.
|
||||
</p>
|
||||
<div className="pl__what">
|
||||
<h3>Was ist Paperless-ngx?</h3>
|
||||
<p>
|
||||
Paperless-ngx ist ein Open-Source Dokumentenmanagementsystem (DMS), das Ihre Papierflut digitalisiert und
|
||||
durchsuchbar macht. Rechnungen, Verträge, Briefe: automatisch per OCR erkannt, kategorisiert und archiviert.
|
||||
Betrieben auf Ihrer eigenen Infrastruktur, ohne Abhängigkeit von Cloud-Anbietern.
|
||||
</p>
|
||||
<ul className="tags" aria-label="Eigenschaften">
|
||||
{tags.map((tag) => (
|
||||
<li key={tag}>{tag}</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</ScrollReveal>
|
||||
|
||||
{/* What is Paperless */}
|
||||
<ScrollReveal delay={100}>
|
||||
<div className="mb-12 p-6 rounded-2xl bg-white dark:bg-gray-900 border border-orange-500/20 flex flex-col md:flex-row gap-6 items-start">
|
||||
<div className="flex-shrink-0 w-14 h-14 rounded-xl bg-orange-500/10 text-orange-400 flex items-center justify-center">
|
||||
<svg className="w-7 h-7" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
|
||||
</svg>
|
||||
</div>
|
||||
<div className="pl__body">
|
||||
<ul className="rows">
|
||||
{requirements.map((req) => (
|
||||
<li key={req.title}>
|
||||
<h3>{req.title}</h3>
|
||||
<p>{req.text}</p>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
<div>
|
||||
<h3 className="text-slate-800 dark:text-white font-bold text-lg mb-2">Was ist Paperless-ngx?</h3>
|
||||
<p className="text-slate-600 dark:text-slate-400 text-sm leading-relaxed">
|
||||
Paperless-ngx ist ein Open-Source Dokumentenmanagementsystem (DMS), das Ihre Papierflut digitalisiert
|
||||
und durchsuchbar macht. Rechnungen, Verträge, Briefe — automatisch per OCR erkannt, kategorisiert und
|
||||
archiviert. Betrieben auf Ihrer eigenen Infrastruktur, ohne Abhängigkeit von Cloud-Anbietern.
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-2 mt-3">
|
||||
{["Open Source", "Self-Hosted", "OCR", "Volltextsuche", "Automatische Tags"].map((tag) => (
|
||||
<span key={tag} className="px-3 py-1 rounded-full bg-orange-500/10 border border-orange-500/20 text-orange-400 text-xs font-mono">
|
||||
{tag}
|
||||
</span>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ScrollReveal>
|
||||
|
||||
{/* Requirements grid */}
|
||||
<div className="grid md:grid-cols-3 gap-6 mb-16">
|
||||
{requirements.map((req, index) => {
|
||||
const c = colorMap[req.accent as keyof typeof colorMap];
|
||||
return (
|
||||
<ScrollReveal key={req.title} delay={index * 100}>
|
||||
<div className={`p-6 rounded-2xl bg-white dark:bg-gray-900 border ${c.border} h-full`}>
|
||||
<div className={`w-2 h-2 rounded-full ${c.dot} mb-4`} />
|
||||
<h3 className="text-slate-800 dark:text-white font-bold text-base mb-3">{req.title}</h3>
|
||||
<p className="text-slate-600 dark:text-slate-400 text-sm leading-relaxed">{req.text}</p>
|
||||
</div>
|
||||
</ScrollReveal>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
|
||||
{/* Divider */}
|
||||
<div className="flex items-center gap-6 mb-12">
|
||||
<div className="flex-1 h-px bg-gradient-to-r from-transparent via-slate-300 dark:via-gray-700 to-transparent" />
|
||||
<div className="px-6 py-2 rounded-full border border-orange-500/40 bg-orange-500/5 text-orange-500 dark:text-orange-400 text-sm font-black whitespace-nowrap">
|
||||
Unser Leistungsumfang
|
||||
</div>
|
||||
<div className="flex-1 h-px bg-gradient-to-r from-transparent via-slate-300 dark:via-gray-700 to-transparent" />
|
||||
</div>
|
||||
|
||||
{/* Services list */}
|
||||
<ScrollReveal delay={100}>
|
||||
<div className="grid sm:grid-cols-2 gap-4 mb-16">
|
||||
<h3 className="pl__sub">Unser Leistungsumfang</h3>
|
||||
<ul className="checks">
|
||||
{services.map((item) => (
|
||||
<div key={item} className="flex items-center gap-3 p-4 rounded-xl bg-white dark:bg-gray-900 border border-slate-200 dark:border-gray-800">
|
||||
<div className="w-5 h-5 rounded-full bg-orange-500 flex items-center justify-center flex-shrink-0">
|
||||
<svg className="w-3 h-3 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={3} d="M5 13l4 4L19 7" />
|
||||
</svg>
|
||||
</div>
|
||||
<span className="text-slate-700 dark:text-slate-300 text-sm">{item}</span>
|
||||
</div>
|
||||
<li key={item}>
|
||||
<Check className="icon--s" aria-hidden="true" />
|
||||
<span>{item}</span>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</ScrollReveal>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,72 +1,20 @@
|
|||
// components/StatsBar.tsx
|
||||
"use client";
|
||||
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
|
||||
// Kennzahlen des Inhabers, unverändert übernommen; statisch gesetzt, damit sie auch ohne Skript stimmen.
|
||||
const stats = [
|
||||
{ value: 30, suffix: "+", label: "Jahre IT-Erfahrung", accent: "orange" },
|
||||
{ value: 99, suffix: "%", label: "Server-Uptime", accent: "blue" },
|
||||
{ value: 50, suffix: "+", label: "Abgeschlossene Projekte", accent: "orange" },
|
||||
{ value: 24, suffix: "h", label: "Support-Reaktionszeit", accent: "blue" },
|
||||
{ value: "30+", label: "Jahre IT-Erfahrung" },
|
||||
{ value: "99 %", label: "Server-Uptime" },
|
||||
{ value: "50+", label: "Abgeschlossene Projekte" },
|
||||
{ value: "24 h", label: "Support-Reaktionszeit" },
|
||||
];
|
||||
|
||||
function Counter({ value, suffix, accent }: { value: number; suffix: string; accent: string }) {
|
||||
const [count, setCount] = useState(0);
|
||||
const ref = useRef<HTMLSpanElement>(null);
|
||||
const started = useRef(false);
|
||||
|
||||
useEffect(() => {
|
||||
const el = ref.current;
|
||||
if (!el) return;
|
||||
|
||||
const observer = new IntersectionObserver(
|
||||
([entry]) => {
|
||||
if (entry.isIntersecting && !started.current) {
|
||||
started.current = true;
|
||||
const duration = 1500;
|
||||
const start = performance.now();
|
||||
|
||||
const tick = (now: number) => {
|
||||
const progress = Math.min((now - start) / duration, 1);
|
||||
const eased = 1 - Math.pow(1 - progress, 3);
|
||||
setCount(Math.floor(eased * value));
|
||||
if (progress < 1) requestAnimationFrame(tick);
|
||||
};
|
||||
|
||||
requestAnimationFrame(tick);
|
||||
observer.disconnect();
|
||||
}
|
||||
},
|
||||
{ threshold: 0.3 }
|
||||
);
|
||||
|
||||
observer.observe(el);
|
||||
return () => observer.disconnect();
|
||||
}, [value]);
|
||||
|
||||
const color = accent === "orange" ? "text-orange-400" : "text-blue-400";
|
||||
|
||||
return (
|
||||
<span ref={ref} className={`text-4xl sm:text-5xl font-black ${color}`}>
|
||||
{count}{suffix}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
export default function StatsBar() {
|
||||
return (
|
||||
<section className="py-12 px-4 sm:px-6 lg:px-8 relative">
|
||||
<div className="absolute inset-0 bg-[#e8eef4] dark:bg-[#111925]" />
|
||||
<div className="max-w-7xl mx-auto relative">
|
||||
<div className="grid grid-cols-2 lg:grid-cols-4 gap-8">
|
||||
<div className="figs" style={{ gridColumn: "1 / -1" }}>
|
||||
{stats.map((stat) => (
|
||||
<div key={stat.label} className="text-center">
|
||||
<Counter value={stat.value} suffix={stat.suffix} accent={stat.accent} />
|
||||
<p className="text-slate-600 dark:text-slate-400 text-sm mt-1">{stat.label}</p>
|
||||
<div key={stat.label}>
|
||||
<b>{stat.value}</b>
|
||||
<span>{stat.label}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,19 +1,34 @@
|
|||
export default function TaglineBanner() {
|
||||
const phrase = "Digital Denken. Lokal Handeln.";
|
||||
const items = Array(12).fill(phrase);
|
||||
// Trenner zwischen Hero und Seite: der Slogan auf Graphit, darunter eine Zeichenzeile aus dem Feld.
|
||||
const RAMP = " .:-=+*#";
|
||||
|
||||
function glyphRow(length: number) {
|
||||
let out = "";
|
||||
for (let i = 0; i < length; i++) {
|
||||
const v = (Math.sin(i * 0.37) + Math.sin(i * 0.11 + 1.3) + Math.sin(i * 0.053 + 2.1)) / 3;
|
||||
out += RAMP[Math.max(0, Math.min(RAMP.length - 1, Math.floor(((v + 1) / 2) * RAMP.length)))];
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
const GLYPHS = glyphRow(220);
|
||||
|
||||
export default function TaglineBanner({ text = "Digital Denken. Lokal Handeln." }: { text?: string }) {
|
||||
const parts = text.split(/(?<=\.)\s+/);
|
||||
return (
|
||||
<div className="group relative overflow-hidden bg-orange-500 py-3 select-none" aria-label="Digital Denken. Lokal Handeln.">
|
||||
<div className="flex animate-ticker whitespace-nowrap group-hover:[animation-play-state:paused]" aria-hidden="true">
|
||||
{items.map((text, i) => (
|
||||
<span
|
||||
key={i}
|
||||
className="inline-flex items-center gap-6 px-6 text-white font-black text-base"
|
||||
>
|
||||
{text}
|
||||
<span className="text-orange-200 opacity-60">●</span>
|
||||
</span>
|
||||
))}
|
||||
<div className="tagband">
|
||||
<div className="wrap tagband__inner">
|
||||
<p className="tagband__line">
|
||||
{parts.length === 2 ? (
|
||||
<>
|
||||
{parts[0]} <span>{parts[1]}</span>
|
||||
</>
|
||||
) : (
|
||||
text
|
||||
)}
|
||||
</p>
|
||||
<p className="tagband__glyphs" aria-hidden="true">
|
||||
{GLYPHS}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1,168 +1,140 @@
|
|||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
import { X } from "lucide-react";
|
||||
|
||||
const techStack = [
|
||||
{
|
||||
name: "Docker",
|
||||
category: "Container",
|
||||
color: "text-blue-400",
|
||||
description:
|
||||
"Stellen Sie sich Docker wie eine standardisierte Versandbox vor: Ihre Anwendung und alles, was sie zum Laufen braucht, wird in eine einheitliche Box verpackt. Diese Box funktioniert auf jedem Rechner identisch - egal ob auf Ihrem Laptop, dem Firmenserver oder in der Cloud. Schluss mit 'Bei mir lauft es doch!'. Docker macht Software-Installationen zuverlassig und reproduzierbar.",
|
||||
"Stellen Sie sich Docker wie eine standardisierte Versandbox vor: Ihre Anwendung und alles, was sie zum Laufen braucht, wird in eine einheitliche Box verpackt. Diese Box funktioniert auf jedem Rechner identisch, egal ob auf Ihrem Laptop, dem Firmenserver oder in der Cloud. Schluss mit „Bei mir läuft es doch!“. Docker macht Software-Installationen zuverlässig und reproduzierbar.",
|
||||
},
|
||||
{
|
||||
name: "Proxmox VE",
|
||||
category: "Virtualisierung",
|
||||
color: "text-orange-400",
|
||||
description:
|
||||
"Proxmox verwandelt einen einzigen leistungsstarken Server in viele virtuelle Computer. Statt funf separate Maschinen zu kaufen, nutzen Sie eine - und teilen sie in funf logische Bereiche auf. Das spart Strom, Platz und Geld. Jeder virtuelle Computer lauft vollstandig isoliert, als ware er ein echter eigener Server. Ideal fur Homelab-Setups oder kleine Unternehmen.",
|
||||
"Proxmox verwandelt einen einzigen leistungsstarken Server in viele virtuelle Computer. Statt fünf separate Maschinen zu kaufen, nutzen Sie eine und teilen sie in fünf logische Bereiche auf. Das spart Strom, Platz und Geld. Jeder virtuelle Computer läuft vollständig isoliert, als wäre er ein echter eigener Server. Ideal für Homelab-Setups oder kleine Unternehmen.",
|
||||
},
|
||||
{
|
||||
name: "Hetzner Cloud",
|
||||
category: "Cloud",
|
||||
color: "text-orange-400",
|
||||
description:
|
||||
"Hetzner ist ein deutsches Rechenzentrum, das Server auf Abruf vermietet - zu einem Bruchteil der Kosten von Amazon oder Google. Sie zahlen nur, was Sie nutzen, und Ihre Daten liegen in Deutschland (DSGVO-konform). Wir nutzen Hetzner, um Ihnen professionelle Cloud-Infrastruktur zu fairen Preisen anzubieten: zuverlassig, schnell und datenschutzfreundlich.",
|
||||
"Hetzner ist ein deutsches Rechenzentrum, das Server auf Abruf vermietet, zu einem Bruchteil der Kosten von Amazon oder Google. Sie zahlen nur, was Sie nutzen, und Ihre Daten liegen in Deutschland (DSGVO-konform). Wir nutzen Hetzner, um Ihnen professionelle Cloud-Infrastruktur zu fairen Preisen anzubieten: zuverlässig, schnell und datenschutzfreundlich.",
|
||||
},
|
||||
{
|
||||
name: "Terraform",
|
||||
category: "Infrastruktur als Code",
|
||||
color: "text-purple-400",
|
||||
description:
|
||||
"Terraform ist wie ein Bauplan fur Ihre IT-Infrastruktur. Statt Server manuell anzuklicken und einzurichten, wird alles als Code aufgeschrieben. Dieser Code lasst sich in Sekunden ausfuhren - und baut Ihre gesamte Infrastruktur automatisch auf. Anderungen sind nachvollziehbar, wiederholbar und sicher ruckgangig zu machen.",
|
||||
"Terraform ist wie ein Bauplan für Ihre IT-Infrastruktur. Statt Server manuell anzuklicken und einzurichten, wird alles als Code aufgeschrieben. Dieser Code lässt sich in Sekunden ausführen und baut Ihre gesamte Infrastruktur automatisch auf. Änderungen sind nachvollziehbar, wiederholbar und sicher rückgängig zu machen.",
|
||||
},
|
||||
{
|
||||
name: "Ansible",
|
||||
category: "Automatisierung",
|
||||
color: "text-purple-400",
|
||||
description:
|
||||
"Ansible ist Ihr digitaler Hausmeister: Es erledigt wiederkehrende Aufgaben auf Servern automatisch. Updates einspielen, Konfigurationen angleichen, Software installieren - auf einem oder hundert Servern gleichzeitig, ohne manuelle Eingriffe. Das spart Zeit, verhindert Fehler und sorgt dafur, dass alle Systeme immer in einem definierten, sicheren Zustand sind.",
|
||||
"Ansible ist Ihr digitaler Hausmeister: Es erledigt wiederkehrende Aufgaben auf Servern automatisch. Updates einspielen, Konfigurationen angleichen, Software installieren, auf einem oder hundert Servern gleichzeitig, ohne manuelle Eingriffe. Das spart Zeit, verhindert Fehler und sorgt dafür, dass alle Systeme immer in einem definierten, sicheren Zustand sind.",
|
||||
},
|
||||
{
|
||||
name: "Linux",
|
||||
category: "Betriebssystem",
|
||||
color: "text-green-400",
|
||||
description:
|
||||
"Linux ist das meistgenutzte Serverbetriebssystem der Welt - kostenlos, stabil und sicher. Anders als Windows lauft Linux auf Servern oft jahrelang ohne Neustart. Es ist die Grundlage fur fast alles im Internet: Webseiten, Apps, Cloud-Dienste. Wir setzen auf Linux, weil es uns maximale Kontrolle, Stabilitat und Sicherheit fur Ihre Infrastruktur bietet.",
|
||||
"Linux ist das meistgenutzte Serverbetriebssystem der Welt: kostenlos, stabil und sicher. Anders als Windows läuft Linux auf Servern oft jahrelang ohne Neustart. Es ist die Grundlage für fast alles im Internet: Webseiten, Apps, Cloud-Dienste. Wir setzen auf Linux, weil es uns maximale Kontrolle, Stabilität und Sicherheit für Ihre Infrastruktur bietet.",
|
||||
},
|
||||
{
|
||||
name: "Nginx",
|
||||
category: "Webserver",
|
||||
color: "text-green-400",
|
||||
description:
|
||||
"Nginx (ausgesprochen 'Engine-X') ist der Turksteher Ihrer Webserver-Infrastruktur. Wenn jemand Ihre Webseite aufruft, nimmt Nginx die Anfrage entgegen und leitet sie an den richtigen Dienst weiter - blitzschnell und fur Tausende gleichzeitige Besucher ausgelegt. Er kann auch SSL-Verschlusselung (das 'https://') bereitstellen und als Sicherheitsschicht dienen.",
|
||||
"Nginx (ausgesprochen „Engine-X“) ist der Türsteher Ihrer Webserver-Infrastruktur. Wenn jemand Ihre Webseite aufruft, nimmt Nginx die Anfrage entgegen und leitet sie an den richtigen Dienst weiter, blitzschnell und für Tausende gleichzeitige Besucher ausgelegt. Er kann auch SSL-Verschlüsselung (das „https://“) bereitstellen und als Sicherheitsschicht dienen.",
|
||||
},
|
||||
{
|
||||
name: "Traefik",
|
||||
category: "Reverse Proxy",
|
||||
color: "text-cyan-400",
|
||||
description:
|
||||
"Traefik ist ein intelligenter Verkehrsregler fur Ihre Anwendungen. Wenn Sie viele Dienste auf einem Server betreiben - z.B. Nextcloud, Paperless, eine Webseite - erkennt Traefik automatisch, welcher Dienst unter welcher Adresse erreichbar sein soll, und stellt SSL-Zertifikate gleich kostenlos dazu. Kein manuelles Konfigurieren mehr: Traefik lernt selbst, was wo lauft.",
|
||||
"Traefik ist ein intelligenter Verkehrsregler für Ihre Anwendungen. Wenn Sie viele Dienste auf einem Server betreiben, z. B. Nextcloud, Paperless, eine Webseite, erkennt Traefik automatisch, welcher Dienst unter welcher Adresse erreichbar sein soll, und stellt SSL-Zertifikate gleich kostenlos dazu. Kein manuelles Konfigurieren mehr: Traefik lernt selbst, was wo läuft.",
|
||||
},
|
||||
{
|
||||
name: "Grafana",
|
||||
category: "Monitoring",
|
||||
color: "text-yellow-400",
|
||||
description:
|
||||
"Grafana verwandelt trockene Serverdaten in ubersichtliche, bunte Dashboards. Sie sehen auf einen Blick: Wie viel CPU nutzt mein Server? Wie viel Speicher ist frei? Gibt es Fehler? Wir richten Grafana so ein, dass Sie jederzeit den Gesundheitszustand Ihrer Infrastruktur uberblicken - wie ein Cockpit fur Ihre IT.",
|
||||
"Grafana verwandelt trockene Serverdaten in übersichtliche, bunte Dashboards. Sie sehen auf einen Blick: Wie viel CPU nutzt mein Server? Wie viel Speicher ist frei? Gibt es Fehler? Wir richten Grafana so ein, dass Sie jederzeit den Gesundheitszustand Ihrer Infrastruktur überblicken, wie ein Cockpit für Ihre IT.",
|
||||
},
|
||||
{
|
||||
name: "Prometheus",
|
||||
category: "Monitoring",
|
||||
color: "text-yellow-400",
|
||||
description:
|
||||
"Prometheus ist der fleissige Datensammler hinter Grafana. Er fragt alle paar Sekunden Ihre Server ab und speichert diese Messwerte fur Grafana. Prometheus kann auch Alarm schlagen, wenn etwas nicht stimmt - zum Beispiel wenn ein Server zu voll wird oder ein Dienst nicht mehr antwortet. So erfahren wir Probleme, bevor Sie sie uberhaupt bemerken.",
|
||||
"Prometheus ist der fleißige Datensammler hinter Grafana. Er fragt alle paar Sekunden Ihre Server ab und speichert diese Messwerte für Grafana. Prometheus kann auch Alarm schlagen, wenn etwas nicht stimmt, zum Beispiel wenn ein Server zu voll wird oder ein Dienst nicht mehr antwortet. So erfahren wir Probleme, bevor Sie sie überhaupt bemerken.",
|
||||
},
|
||||
{
|
||||
name: "GitLab CI",
|
||||
category: "CI/CD",
|
||||
color: "text-orange-400",
|
||||
description:
|
||||
"GitLab CI automatisiert den Weg vom geschriebenen Code bis zum laufenden Programm. Jedes Mal, wenn Code geandert wird, startet GitLab automatisch Tests, pruft die Qualitat und spielt die Anderung auf den Server aus - alles ohne manuellen Aufwand. Das Ergebnis: Neue Funktionen und Sicherheitsupdates kommen schneller und zuverlassiger bei Ihnen an.",
|
||||
"GitLab CI automatisiert den Weg vom geschriebenen Code bis zum laufenden Programm. Jedes Mal, wenn Code geändert wird, startet GitLab automatisch Tests, prüft die Qualität und spielt die Änderung auf den Server aus, alles ohne manuellen Aufwand. Das Ergebnis: Neue Funktionen und Sicherheitsupdates kommen schneller und zuverlässiger bei Ihnen an.",
|
||||
},
|
||||
];
|
||||
|
||||
export default function Technologies() {
|
||||
const [active, setActive] = useState<string | null>(null);
|
||||
const activeTech = techStack.find((t) => t.name === active);
|
||||
const closeRef = useRef<HTMLButtonElement>(null);
|
||||
const openerRef = useRef<HTMLButtonElement | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
if (!activeTech) return;
|
||||
closeRef.current?.focus();
|
||||
const onKey = (e: globalThis.KeyboardEvent) => {
|
||||
if (e.key === "Escape") setActive(null);
|
||||
};
|
||||
document.addEventListener("keydown", onKey);
|
||||
return () => {
|
||||
document.removeEventListener("keydown", onKey);
|
||||
openerRef.current?.focus();
|
||||
};
|
||||
}, [activeTech]);
|
||||
|
||||
return (
|
||||
<section id="technologies" className="py-24 px-4 sm:px-6 lg:px-8 relative">
|
||||
<div className="absolute inset-0 bg-[#e8eef4] dark:bg-[#111925]" />
|
||||
<div className="absolute inset-0 bg-grid opacity-40" />
|
||||
<div className="absolute inset-0 bg-[radial-gradient(ellipse_at_center,rgba(249,115,22,0.06)_0%,transparent_70%)]" />
|
||||
|
||||
<div className="max-w-7xl mx-auto relative">
|
||||
{/* Section header */}
|
||||
<div className="text-center mb-16">
|
||||
<h2 className="text-4xl sm:text-5xl font-black text-slate-900 dark:text-white mb-4">
|
||||
Unsere Technologien
|
||||
</h2>
|
||||
<p className="text-slate-600 dark:text-slate-400 text-lg max-w-2xl mx-auto">
|
||||
Klicken Sie auf eine Technologie und erhalten Sie eine
|
||||
verständliche Erklärung, ganz ohne Fachwissen.
|
||||
</p>
|
||||
<section id="technologies" className="sec band" aria-labelledby="tech-title">
|
||||
<div className="wrap">
|
||||
<div className="head head--split">
|
||||
<h2 id="tech-title">Unsere Technologien</h2>
|
||||
<p className="lead">Klicken Sie auf eine Technologie und erhalten Sie eine verständliche Erklärung, ganz ohne Fachwissen.</p>
|
||||
</div>
|
||||
|
||||
{/* Tech grid */}
|
||||
<div className="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-4 mb-20">
|
||||
<ul className="tech__index">
|
||||
{techStack.map((tech) => (
|
||||
<li key={tech.name}>
|
||||
<button
|
||||
key={tech.name}
|
||||
onClick={() => setActive(tech.name)}
|
||||
className="group flex flex-col items-center gap-2 p-4 rounded-xl border bg-white dark:bg-gray-900 border-slate-200 dark:border-gray-800 hover:border-orange-500/50 hover:-translate-y-1 motion-reduce:hover:translate-y-0 active:translate-y-0 transition-[border-color,transform] duration-300 w-full"
|
||||
type="button"
|
||||
className="tech__row"
|
||||
aria-haspopup="dialog"
|
||||
onClick={(e) => {
|
||||
openerRef.current = e.currentTarget;
|
||||
setActive(tech.name);
|
||||
}}
|
||||
>
|
||||
<span className="text-xs text-orange-600 dark:text-orange-400/80">{tech.category}</span>
|
||||
<span className="font-semibold text-sm text-center text-slate-900 dark:text-white group-hover:text-orange-400 transition-colors">
|
||||
{tech.name}
|
||||
</span>
|
||||
<span className="text-xs text-slate-500 dark:text-slate-400 font-medium mt-0.5">Details</span>
|
||||
<span className="tech__name">{tech.name}</span>
|
||||
<span className="tech__cat">{tech.category}</span>
|
||||
<span className="tech__more">Erklärung</span>
|
||||
</button>
|
||||
</li>
|
||||
))}
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{/* Modal overlay */}
|
||||
{activeTech && (
|
||||
<div className="dlg" onClick={() => setActive(null)}>
|
||||
<div
|
||||
className="fixed inset-0 z-50 flex items-center justify-center p-4"
|
||||
onClick={() => setActive(null)}
|
||||
>
|
||||
{/* Backdrop */}
|
||||
<div className="absolute inset-0 bg-black/75" />
|
||||
|
||||
{/* Modal */}
|
||||
<div
|
||||
className="relative z-10 w-full max-w-lg bg-[#dde4ed] dark:bg-[#1a2535] border border-orange-500/30 rounded-2xl shadow-[0_24px_48px_-12px_rgba(0,0,0,0.6)] p-8"
|
||||
className="cut dlg__panel"
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
aria-labelledby="tech-dialog-title"
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
>
|
||||
{/* Close button */}
|
||||
<button
|
||||
onClick={() => setActive(null)}
|
||||
className="absolute top-4 right-4 w-8 h-8 rounded-lg bg-slate-200 dark:bg-gray-800 hover:bg-slate-300 dark:hover:bg-gray-700 text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-white transition-colors flex items-center justify-center text-sm font-bold"
|
||||
aria-label="Schließen"
|
||||
>
|
||||
<span aria-hidden="true">×</span>
|
||||
<button ref={closeRef} type="button" onClick={() => setActive(null)} className="dlg__close" aria-label="Schließen">
|
||||
<X className="icon--s" aria-hidden="true" />
|
||||
</button>
|
||||
|
||||
{/* Header */}
|
||||
<div className="mb-5 pr-8">
|
||||
<h3 className="text-2xl font-black text-slate-900 dark:text-white">{activeTech.name}</h3>
|
||||
<p className="text-orange-500 dark:text-orange-400 text-sm font-semibold mt-1">
|
||||
{activeTech.category}
|
||||
</p>
|
||||
<div className="w-10 h-0.5 bg-orange-500 rounded mt-3" />
|
||||
</div>
|
||||
|
||||
{/* Description */}
|
||||
<p className="text-slate-700 dark:text-slate-300 text-base leading-relaxed">
|
||||
{activeTech.description}
|
||||
</p>
|
||||
|
||||
{/* Footer hint */}
|
||||
<p className="text-slate-500 dark:text-slate-600 text-xs mt-6 text-center">
|
||||
Klick ausserhalb oder x zum Schliessen
|
||||
</p>
|
||||
<h3 id="tech-dialog-title">{activeTech.name}</h3>
|
||||
<p className="dlg__cat">{activeTech.category}</p>
|
||||
<p className="dlg__text">{activeTech.description}</p>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ export default function ThemeToggle() {
|
|||
setMounted(true);
|
||||
}, []);
|
||||
|
||||
if (!mounted) return null;
|
||||
if (!mounted) return <span className="mode-key" aria-hidden="true" />;
|
||||
|
||||
const isDark = resolvedTheme === "dark";
|
||||
|
||||
|
|
@ -20,11 +20,8 @@ export default function ThemeToggle() {
|
|||
onClick={() => setTheme(isDark ? "light" : "dark")}
|
||||
title={isDark ? "Light Mode" : "Dark Mode"}
|
||||
aria-label={isDark ? "Zu Hell-Modus wechseln" : "Zu Dunkel-Modus wechseln"}
|
||||
className={
|
||||
isDark
|
||||
? "rounded-md p-2 bg-[#1f2937] border border-[#374151] text-slate-400 hover:text-orange-400 transition-colors"
|
||||
: "rounded-md p-2 bg-[#e2e8f0] border border-[#cbd5e0] text-slate-600 hover:text-orange-500 transition-colors"
|
||||
}
|
||||
type="button"
|
||||
className="mode-key"
|
||||
>
|
||||
{isDark ? (
|
||||
// Sun icon — click to go light
|
||||
|
|
|
|||
|
|
@ -0,0 +1,44 @@
|
|||
import { ArrowRight } from "lucide-react";
|
||||
|
||||
const gruppen = [
|
||||
{
|
||||
href: "/privatkunden",
|
||||
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",
|
||||
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"],
|
||||
},
|
||||
];
|
||||
|
||||
export default function Zielgruppen() {
|
||||
return (
|
||||
<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>
|
||||
</div>
|
||||
<div className="aud__grid">
|
||||
{gruppen.map((g) => (
|
||||
<a key={g.href} href={g.href} className="cut aud__panel">
|
||||
<span className="aud__top">
|
||||
<h3>{g.titel}</h3>
|
||||
<ArrowRight className="icon" aria-hidden="true" />
|
||||
</span>
|
||||
<p className="aud__desc">{g.text}</p>
|
||||
<ul className="aud__list">
|
||||
{g.felder.map((f) => (
|
||||
<li key={f}>{f}</li>
|
||||
))}
|
||||
</ul>
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 449 KiB |
|
|
@ -10,6 +10,13 @@ const config: Config = {
|
|||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
paper: { DEFAULT: "var(--color-paper)", 2: "var(--color-paper-2)", 3: "var(--color-paper-3)" },
|
||||
ink: { DEFAULT: "var(--color-ink)", 2: "var(--color-ink-2)" },
|
||||
muted: "var(--color-muted)",
|
||||
rule: { DEFAULT: "var(--color-rule)", 2: "var(--color-rule-2)" },
|
||||
accent: { DEFAULT: "var(--color-accent)", text: "var(--color-accent-text)", wash: "var(--color-accent-wash)", ink: "var(--color-accent-ink)" },
|
||||
signal: { DEFAULT: "var(--color-signal)", text: "var(--color-signal-text)", ink: "var(--color-signal-ink)" },
|
||||
graphite: { DEFAULT: "var(--color-graphite)", 2: "var(--color-graphite-2)", ink: "var(--color-graphite-ink)", muted: "var(--color-graphite-muted)" },
|
||||
brand: {
|
||||
orange: "#f97316",
|
||||
"orange-light": "#fb923c",
|
||||
|
|
@ -24,8 +31,9 @@ const config: Config = {
|
|||
},
|
||||
},
|
||||
fontFamily: {
|
||||
sans: ["var(--font-inter)", "Inter", "system-ui", "sans-serif"],
|
||||
mono: ["var(--font-mono)", "JetBrains Mono", "Fira Code", "monospace"],
|
||||
sans: ["var(--font-body)"],
|
||||
display: ["var(--font-display)"],
|
||||
mono: ["var(--font-outlier)"],
|
||||
},
|
||||
animation: {
|
||||
"fade-in": "fadeIn 0.6s ease-out forwards",
|
||||
|
|
|
|||
Loading…
Reference in New Issue