xithead 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/bin/xithead.js +486 -226
  2. package/index.d.ts +57 -0
  3. package/index.js +139 -0
  4. package/package.json +44 -63
  5. package/postinstall.js +43 -0
  6. package/LICENSE +0 -190
  7. package/README.md +0 -108
  8. package/app/api/config/route.ts +0 -22
  9. package/app/api/export/route.ts +0 -83
  10. package/app/api/models/route.ts +0 -12
  11. package/app/api/stats/route.ts +0 -46
  12. package/app/dashboard/page.tsx +0 -445
  13. package/app/globals.css +0 -35
  14. package/app/installation/page.tsx +0 -293
  15. package/app/layout.tsx +0 -35
  16. package/app/master-design-system.css +0 -2076
  17. package/app/master-design-system.source.css +0 -8
  18. package/app/page.tsx +0 -187
  19. package/app/rechtliches/agb/page.tsx +0 -165
  20. package/app/rechtliches/datenschutz/page.tsx +0 -128
  21. package/app/rechtliches/impressum/page.tsx +0 -122
  22. package/app/rechtliches/widerruf/page.tsx +0 -185
  23. package/components/layout/AppShell.tsx +0 -25
  24. package/components/layout/Footer.tsx +0 -120
  25. package/components/layout/Header.tsx +0 -145
  26. package/components/marketing/LegalHighlights.tsx +0 -45
  27. package/components/marketing/LegalPageShell.tsx +0 -49
  28. package/components/marketing/LegalPanel.tsx +0 -41
  29. package/components/marketing/index.ts +0 -3
  30. package/design-system/README.md +0 -80
  31. package/design-system/base.css +0 -127
  32. package/design-system/components.css +0 -1943
  33. package/design-system/fonts.css +0 -17
  34. package/design-system/tailwind-preset.js +0 -95
  35. package/design-system/tokens.css +0 -48
  36. package/design-system/utilities.css +0 -53
  37. package/lib/config/index.ts +0 -12
  38. package/lib/hooks/index.ts +0 -4
  39. package/lib/hooks/use-mounted.ts +0 -13
  40. package/lib/hooks/use-session.ts +0 -34
  41. package/lib/hooks/use-settings.ts +0 -49
  42. package/lib/utils/index.ts +0 -1
  43. package/lib/utils/settings.ts +0 -162
  44. package/lib/utils/utils.ts +0 -6
  45. package/middleware.ts +0 -26
  46. package/next-env.d.ts +0 -7
  47. package/next.config.ts +0 -12
  48. package/postcss.config.mjs +0 -7
  49. package/public/apple-touch-icon.png +0 -0
  50. package/public/logo-transparent.png +0 -0
  51. package/public/xithead.ps1 +0 -937
  52. package/scripts/README.md +0 -77
  53. package/scripts/audit_wheel_glibc_symbols.py +0 -217
  54. package/scripts/build-master-design-system.cjs +0 -33
  55. package/scripts/build_rust_extension.sh +0 -58
  56. package/scripts/changelog-gen.py +0 -203
  57. package/scripts/eval_output_shaper.py +0 -235
  58. package/scripts/export_kompress_v2_onnx.py +0 -267
  59. package/scripts/fixtures/anthropic_replay_body.json +0 -133
  60. package/scripts/fixtures/codex_response_create_frame.json +0 -52
  61. package/scripts/install-git-hooks.sh +0 -104
  62. package/scripts/install.ps1 +0 -1809
  63. package/scripts/install.sh +0 -1673
  64. package/scripts/pr-governance.py +0 -297
  65. package/scripts/record_fixtures.py +0 -59
  66. package/scripts/refresh_model_limits.sh +0 -48
  67. package/scripts/replay_codex_ws_load.py +0 -445
  68. package/scripts/repro_codex_replay.py +0 -699
  69. package/scripts/smoke_issue_327.py +0 -233
  70. package/scripts/sync-plugin-versions.py +0 -116
  71. package/scripts/tests/test_changelog_gen.py +0 -302
  72. package/scripts/tests/test_pr_governance.py +0 -163
  73. package/scripts/tests/test_pr_health_labels.py +0 -94
  74. package/scripts/tests/test_pr_health_workflow.py +0 -14
  75. package/scripts/tests/test_sync_plugin_versions.py +0 -131
  76. package/scripts/tests/test_version_sync.py +0 -291
  77. package/scripts/validate-workflows.sh +0 -39
  78. package/scripts/verify-versions.py +0 -106
  79. package/scripts/version-sync.py +0 -207
  80. package/tailwind.config.js +0 -31
  81. package/tailwind.master.config.cjs +0 -47
  82. package/tsconfig.json +0 -84
  83. package/types/api.ts +0 -12
  84. package/types/config.ts +0 -9
  85. package/types/index.ts +0 -2
@@ -1,185 +0,0 @@
1
- import { Clock, ExternalLink, FileText, Info, ListChecks, Phone, RefreshCw, Scale, XCircle } from "lucide-react"
2
-
3
- import { LegalHighlights, LegalPageShell, LegalPanel } from "@/components/marketing"
4
-
5
- export const metadata = {
6
- title: "Widerrufsrecht",
7
- description: "Widerrufsrecht und Widerrufsbelehrung - Xtream-ITSolutions UG",
8
- }
9
-
10
- export default function Widerruf() {
11
- const updatedAt = new Date().toLocaleDateString("de-DE", { year: "numeric", month: "long", day: "numeric" })
12
-
13
- return (
14
- <LegalPageShell
15
- badge="Widerrufsrecht"
16
- title="Widerrufsrecht"
17
- description="Belehrung zum Widerrufsrecht gemäß § 355 BGB"
18
- icon={FileText}
19
- updatedAt={updatedAt}
20
- tone="rose"
21
- >
22
- <div className="space-y-12">
23
- <LegalHighlights
24
- tone="rose"
25
- items={[
26
- { icon: Clock, label: "Widerrufsfrist", value: "14 Tage" },
27
- { icon: Scale, label: "Rechtsgrundlage", value: "§ 355 BGB" },
28
- ]}
29
- />
30
-
31
- <div className="grid gap-5 md:grid-cols-2">
32
- <LegalPanel icon={FileText} title="Widerrufsrecht" tone="rose">
33
- <p>
34
- Sie haben das Recht, Ihren Vertrag innerhalb von 14 Tagen ohne Angabe von Gründen zu widerrufen. Die
35
- Widerrufsfrist beträgt 14 Tage ab dem Tag, an dem der Vertrag geschlossen wurde.
36
- </p>
37
- <p>
38
- Um Ihr Widerrufsrecht auszuüben, müssen Sie uns mit einer eindeutigen Erklärung (per Post, Fax oder
39
- E-Mail) mitteilen, dass Sie von diesem Vertrag zurücktreten möchten. Sie können das beigefügte
40
- Muster-Widerrufsformular oder eine andere eindeutige Erklärung verwenden.
41
- </p>
42
- </LegalPanel>
43
-
44
- <LegalPanel icon={Phone} title="Kontakt für Widerruf" tone="rose">
45
- <p>Wenden Sie sich für einen Widerruf an:</p>
46
- <div className="rounded-lg border border-brand-500/10 bg-brand-500/5 p-4">
47
- <p className="font-semibold text-white">Xtream-ITSolutions UG</p>
48
- <p>Sophienstr. 9, 45699 Herten</p>
49
- <p>Deutschland</p>
50
- <p className="mt-2">
51
- Telefon:{" "}
52
- <a href="tel:+4923665830630" className="text-brand-300 hover:text-brand-200">
53
- +49 (0) 236 658 30 630
54
- </a>
55
- </p>
56
- <p>
57
- E-Mail:{" "}
58
- <a href="mailto:info@xtream-itsolutions.com" className="text-brand-300 hover:text-brand-200">
59
- info@xtream-itsolutions.com
60
- </a>
61
- </p>
62
- </div>
63
- </LegalPanel>
64
-
65
- <LegalPanel icon={RefreshCw} title="Folgen des Widerrufs" tone="rose">
66
- <p>
67
- Wenn Sie den Vertrag widerrufen, müssen wir alle Zahlungen, die wir von Ihnen erhalten haben, sowie
68
- alle Leistungen, die wir erbracht haben, unverzüglich rückgängig machen. Dies geschieht mit denselben
69
- Zahlungsmitteln, die Sie verwendet haben, es sei denn, es wurde etwas anderes vereinbart.
70
- </p>
71
- <p>
72
- Beachten Sie, dass für Leistungen, die vollständig erbracht wurden, möglicherweise Ausnahmen vom
73
- Widerrufsrecht gelten. Besondere Regelungen können für digitale Inhalte und Dienstleistungen gelten.
74
- </p>
75
- </LegalPanel>
76
-
77
- <LegalPanel icon={XCircle} title="Ausnahmen vom Widerrufsrecht" tone="rose">
78
- <p>Das Widerrufsrecht besteht nicht für:</p>
79
- <ul className="list-disc list-inside space-y-2 ml-4">
80
- <li>Dienstleistungen, die vollständig ausgeführt wurden, sofern nicht anders vereinbart</li>
81
- <li>Digitale Inhalte, die vollständig heruntergeladen wurden</li>
82
- <li>
83
- Verträge mit Verbrauchern, bei denen die Parteien von Anfang an vereinbart haben, dass der
84
- Unternehmer mit der Erbringung der Dienstleistung vor Ende der Widerrufsfrist beginnt
85
- </li>
86
- </ul>
87
- </LegalPanel>
88
-
89
- <LegalPanel icon={ListChecks} title="Muster-Widerrufsformular" tone="rose">
90
- <p>
91
- Wenn Sie den Vertrag durch ein Musterformular widerrufen möchten, können Sie folgende Vorlage
92
- verwenden und an uns senden:
93
- </p>
94
- <div className="rounded-lg border border-brand-500/10 bg-black/50 p-4">
95
- <p className="font-mono text-sm text-white">
96
- ---
97
- <br />
98
- <br />
99
- Widerrufsformular
100
- <br />
101
- <br />
102
- An Xtream-ITSolutions UG, Sophienstr. 9, 45699 Herten,
103
- <br />
104
- E-Mail: info@xtream-itsolutions.com
105
- <br />
106
- <br />
107
- Hiermit widerrufe(n) ich/wir (*) den von mir/uns (*) abgeschlossenen Vertrag über die
108
- <br />
109
- Erbringung der folgenden Dienstleistung (*)
110
- <br />
111
- <br />
112
- ____________________________________________________________________
113
- <br />
114
- <br />
115
- Bestellt/erhalten am (*)
116
- <br />
117
- ____________________________________________________________________
118
- <br />
119
- <br />
120
- Name des/der Verbraucher(s)
121
- <br />
122
- ____________________________________________________________________
123
- <br />
124
- <br />
125
- Adresse des/der Verbraucher(s)
126
- <br />
127
- ____________________________________________________________________
128
- <br />
129
- <br />
130
- Unterschrift des/der Verbraucher(s) (nur bei schriftlicher Mitteilung)
131
- <br />
132
- ____________________________________________________________________
133
- <br />
134
- <br />
135
- Datum
136
- <br />
137
- ____________________________________________________________________
138
- <br />
139
- <br />
140
- (*) Unzutreffendes streichen
141
- </p>
142
- </div>
143
- </LegalPanel>
144
-
145
- <LegalPanel icon={Info} title="Wichtige Hinweise" tone="rose">
146
- <p>
147
- Bitte beachten Sie, dass das Widerrufsrecht nicht in allen Fällen gilt. Insbesondere bei digitalen
148
- Dienstleistungen, die vollständig erbracht wurden, besteht möglicherweise kein Widerrufsrecht mehr.
149
- </p>
150
- <p>
151
- Wenn Sie unsicher sind, ob Ihr Widerruf berechtigt ist, oder wenn Sie weitere Fragen haben, können Sie
152
- sich jederzeit an uns wenden. Wir helfen Ihnen gerne weiter.
153
- </p>
154
- </LegalPanel>
155
-
156
- <LegalPanel icon={ExternalLink} title="Weitere Informationen" tone="rose">
157
- <p>Weitere Informationen zu Ihren Verbraucherrechten finden Sie unter:</p>
158
- <ul className="list-disc list-inside space-y-2 ml-4">
159
- <li>
160
- <a
161
- href="https://www.verbraucherzentrale.de"
162
- target="_blank"
163
- rel="noopener"
164
- className="text-brand-300 hover:text-brand-200"
165
- >
166
- Verbraucherzentrale Deutschland
167
- </a>
168
- </li>
169
- <li>
170
- <a
171
- href="https://www.bafin.de"
172
- target="_blank"
173
- rel="noopener"
174
- className="text-brand-300 hover:text-brand-200"
175
- >
176
- BaFin - Bundesanstalt für Finanzdienstleistungsaufsicht
177
- </a>
178
- </li>
179
- </ul>
180
- </LegalPanel>
181
- </div>
182
- </div>
183
- </LegalPageShell>
184
- )
185
- }
@@ -1,25 +0,0 @@
1
- "use client"
2
-
3
- import type { ReactNode } from "react"
4
- import { Header } from "@/components/layout/Header"
5
- import { Footer } from "@/components/layout/Footer"
6
-
7
- type AppShellProps = {
8
- children: ReactNode
9
- }
10
-
11
- export function AppShell({ children }: AppShellProps) {
12
- return (
13
- <div className="app-gradient-bg flex min-h-screen flex-col overflow-x-hidden max-w-full">
14
- <div className="sticky top-0 z-50">
15
- <Header />
16
- </div>
17
- <main id="main-content" className="min-w-0 max-w-full flex-1 overflow-x-clip focus:outline-none" tabIndex={-1} aria-label="Hauptinhalt">
18
- <div className="layout-content py-3 sm:py-5">
19
- <div className="layout-page-stack">{children}</div>
20
- </div>
21
- </main>
22
- <Footer />
23
- </div>
24
- )
25
- }
@@ -1,120 +0,0 @@
1
- import Link from "next/link"
2
- import Image from "next/image"
3
- import { ArrowUpRight, Zap, Shield, Gauge } from "lucide-react"
4
- import { config } from "@/lib/config"
5
-
6
- type FooterLink = { href: string; label: string; internal?: boolean }
7
- type FooterColumn = { title: string; links: FooterLink[] }
8
-
9
- const footerColumns: FooterColumn[] = [
10
- {
11
- title: "Produkt",
12
- links: [
13
- { href: "/", label: "Startseite", internal: true },
14
- { href: "/installation", label: "Installation", internal: true },
15
- ],
16
- },
17
- {
18
- title: "Community",
19
- links: [
20
- { href: config.discordUrl, label: "Discord" },
21
- { href: config.githubUrl.replace(/\/xithead$/, ""), label: "GitHub" },
22
- { href: config.githubUrl + "/issues", label: "Issues" },
23
- ],
24
- },
25
- {
26
- title: "Unternehmen",
27
- links: [
28
- { href: config.companyUrl, label: "Xtream-ITSolutions" },
29
- { href: config.companyUrl + "/impressum", label: "Impressum" },
30
- { href: config.companyUrl + "/datenschutz", label: "Datenschutz" },
31
- ],
32
- },
33
- {
34
- title: "Rechtliches",
35
- links: [
36
- { href: "https://www.apache.org/licenses/LICENSE-2.0", label: "Apache 2.0 Lizenz" },
37
- { href: config.companyUrl + "/rechtliches/agb", label: "AGB" },
38
- { href: config.companyUrl + "/rechtliches/widerrufsrecht", label: "Widerrufsrecht" },
39
- ],
40
- },
41
- ]
42
-
43
- const features = [
44
- { icon: Zap, title: "Instant Setup", description: "Automatische Bereitstellung mit einem Befehl" },
45
- { icon: Shield, title: "100% Lokal", description: "Kein Server, keine geteilten Daten, privat" },
46
- { icon: Gauge, title: "Live Dashboard", description: "localhost:8787/dashboard — deine Stats" },
47
- ]
48
-
49
- function FooterDestination({ link }: { link: FooterLink }) {
50
- const content = <><ArrowUpRight aria-hidden="true" size={12} /><span>{link.label}</span></>
51
- const className = "group flex items-center gap-1.5 text-sm text-white transition-colors hover:text-white overflow-hidden"
52
- return link.internal ? <Link href={link.href} className={className}>{content}</Link> : <a href={link.href} target="_blank" rel="noreferrer" className={className}>{content}</a>
53
- }
54
-
55
- export function Footer() {
56
- return <footer className="relative mt-auto w-full">
57
- <div className="h-px w-full bg-gradient-to-r from-transparent via-brand-400/30 to-transparent" />
58
- <div
59
- className="relative w-full border-t py-12"
60
- style={{
61
- backdropFilter: "blur(16px)",
62
- WebkitBackdropFilter: "blur(16px)",
63
- background: "rgba(0, 0, 0, 0.4)",
64
- borderColor: "rgba(0, 127, 255, 0.2)",
65
- }}
66
- >
67
- <div className="layout-content">
68
- <div className="grid gap-10 border-b border-brand-400/10 pb-10 lg:grid-cols-[1fr_auto] lg:items-start">
69
- <section className="max-w-sm min-w-0" aria-labelledby="footer-title">
70
- <div className="mb-5 min-w-0">
71
- <Image
72
- src="/logo-transparent.png"
73
- alt="Xtream-ITSolutions"
74
- width={220}
75
- height={88}
76
- className="h-14 w-auto object-contain"
77
- />
78
- </div>
79
- <p id="footer-title" className="text-sm leading-7 text-white">Lokaler Claude Code Proxy — Anthropic Prompt Cache maximieren und Token-Kosten bis zu 88% reduzieren.</p>
80
- </section>
81
- <section className="grid grid-cols-1 sm:grid-cols-3 gap-3 lg:w-[400px]" aria-label="XIT Head Funktionen">
82
- {features.map(({ icon: Icon, title, description }) => <article
83
- key={title}
84
- className="glass-card p-4"
85
- >
86
- <div className="mb-3 flex h-8 w-8 items-center justify-center rounded-xl border border-brand-300/20 bg-brand-300/10 text-brand-300 shrink-0">
87
- <Icon className="h-4 w-4" aria-hidden="true" />
88
- </div>
89
- <p className="text-xs font-bold text-white line-clamp-2">{title}</p>
90
- <p className="mt-2 text-[12px] leading-5 text-white line-clamp-3">{description}</p>
91
- </article>)}
92
- </section>
93
- </div>
94
-
95
- <div className="grid grid-cols-2 gap-6 border-b border-brand-400/10 py-10 sm:gap-8 sm:grid-cols-4">
96
- {footerColumns.map((column) => <section key={column.title} className="min-w-0">
97
- <h2 className="mb-4 text-[10px] font-bold uppercase tracking-[0.22em] text-white truncate">{column.title}</h2>
98
- <div className="flex flex-col gap-2.5">
99
- {column.links.map((link) => (
100
- <FooterDestination key={link.href} link={link} />
101
- ))}
102
- </div>
103
- </section>)}
104
- </div>
105
-
106
- <div className="flex flex-col gap-3 pt-6 sm:flex-row sm:items-center sm:justify-between">
107
- <p className="text-xs text-white break-words">
108
- © 2024–{new Date().getFullYear()} Xtream-ITSolutions UG &nbsp;|&nbsp; Entwickelt mit{" "}
109
- <span className="text-red-500/70">❤</span> &nbsp;|&nbsp; Alle Rechte vorbehalten.
110
- </p>
111
- <div className="flex flex-wrap items-center gap-x-3 gap-y-1 text-xs sm:justify-end">
112
- <a href={config.companyUrl} target="_blank" rel="noreferrer" className="text-white transition-colors hover:text-brand-200">
113
- Eine Seite der Xtream-ITSolutions UG
114
- </a>
115
- </div>
116
- </div>
117
- </div>
118
- </div>
119
- </footer>
120
- }
@@ -1,145 +0,0 @@
1
- "use client"
2
-
3
- import Link from "next/link"
4
- import { usePathname } from "next/navigation"
5
- import { useState, useEffect, useRef } from "react"
6
- import { Menu, X } from "lucide-react"
7
- import Image from "next/image"
8
- import { config } from "@/lib/config"
9
-
10
- const NAV = [
11
- { href: "/", label: "Startseite" },
12
- { href: "/installation", label: "Installation" },
13
- ]
14
-
15
- export function Header() {
16
- const path = usePathname()
17
- const [mobileOpen, setMobileOpen] = useState(false)
18
- const [scrolled, setScrolled] = useState(false)
19
- const headerRef = useRef<HTMLElement | null>(null)
20
-
21
- useEffect(() => {
22
- const onClickOutside = (e: MouseEvent) => {
23
- if (headerRef.current && !headerRef.current.contains(e.target as Node)) {
24
- setMobileOpen(false)
25
- }
26
- }
27
- const onEscape = (e: KeyboardEvent) => {
28
- if (e.key === "Escape") setMobileOpen(false)
29
- }
30
- document.addEventListener("mousedown", onClickOutside)
31
- document.addEventListener("keydown", onEscape)
32
- return () => {
33
- document.removeEventListener("mousedown", onClickOutside)
34
- document.removeEventListener("keydown", onEscape)
35
- }
36
- }, [])
37
-
38
- useEffect(() => {
39
- const onScroll = () => setScrolled(window.scrollY > 12)
40
- onScroll()
41
- window.addEventListener("scroll", onScroll, { passive: true })
42
- return () => window.removeEventListener("scroll", onScroll)
43
- }, [])
44
-
45
- return (
46
- <header
47
- ref={headerRef}
48
- className="relative z-[120]"
49
- >
50
- <div className="absolute inset-x-0 top-0 h-[1px] bg-gradient-to-r from-transparent via-brand-400/30 to-transparent pointer-events-none z-10" />
51
-
52
- <div
53
- className={`relative w-full border-b transition-all duration-300 backdrop-blur-xl bg-black/85 ${
54
- scrolled ? "shadow-[0_12px_48px_rgba(12,8,20,0.4)]" : ""
55
- }`}
56
- style={{
57
- backdropFilter: "blur(16px)",
58
- WebkitBackdropFilter: "blur(16px)",
59
- borderColor: "rgba(0, 127, 255, 0.2)",
60
- }}
61
- >
62
- <div className="layout-content">
63
- <div className="flex min-h-[88px] items-center justify-between gap-4 py-3 sm:min-h-[112px] xl:min-h-[136px]">
64
- <Link href="/" onClick={() => setMobileOpen(false)} className="group flex shrink-0 items-center">
65
- <Image
66
- src="/logo-transparent.png"
67
- alt="Xtream-ITSolutions"
68
- width={180}
69
- height={72}
70
- priority
71
- className="h-12 w-auto object-contain sm:h-14 xl:h-16"
72
- />
73
- </Link>
74
-
75
- <nav aria-label="Hauptnavigation" className="hidden items-center gap-2 lg:flex">
76
- {NAV.map(({ href, label }) => (
77
- <Link
78
- key={href}
79
- href={href}
80
- aria-current={path === href ? "page" : undefined}
81
- className={`rounded-lg border border-transparent px-3 py-2 text-sm font-semibold text-white transition-all hover:border-brand-300/20 hover:bg-white/[0.06] hover:text-white a11y-focus-ring${path === href ? " border-brand-300/20 bg-brand-400/10 text-brand-100" : ""}`}
82
- >
83
- {label}
84
- </Link>
85
- ))}
86
- </nav>
87
-
88
- <div className="flex shrink-0 items-center gap-2">
89
- <a
90
- href={config.discordUrl}
91
- target="_blank"
92
- rel="noopener noreferrer"
93
- className="hidden items-center gap-2 rounded-lg border border-brand-300/20 bg-black/65 px-3 py-2 text-sm font-semibold text-white transition-all hover:border-brand-300/35 hover:bg-brand/10 sm:inline-flex a11y-focus-ring"
94
- >
95
- <svg width="15" height="11" viewBox="0 0 16 12" fill="currentColor" aria-hidden="true">
96
- <path d="M13.545 1.058A13.16 13.16 0 0 0 10.29 0c-.142.257-.308.603-.422.877a12.194 12.194 0 0 0-3.735 0A9.847 9.847 0 0 0 5.71 0 13.188 13.188 0 0 0 2.454 1.06 13.942 13.942 0 0 0 .07 10.51a13.274 13.274 0 0 0 4.048 2.051 9.934 9.934 0 0 0 .86-1.41 8.66 8.66 0 0 1-1.354-.654c.114-.083.225-.17.333-.258a9.452 9.452 0 0 0 8.088 0c.109.09.22.175.333.258-.433.258-.891.479-1.356.655.25.494.537.966.86 1.41a13.24 13.24 0 0 0 4.05-2.052 13.926 13.926 0 0 0-2.387-9.452ZM5.34 8.606c-.806 0-1.469-.743-1.469-1.657 0-.913.646-1.658 1.469-1.658.822 0 1.482.746 1.468 1.658.001.914-.646 1.657-1.468 1.657Zm5.32 0c-.806 0-1.469-.743-1.469-1.657 0-.913.646-1.658 1.469-1.658.822 0 1.48.746 1.468 1.658 0 .914-.646 1.657-1.468 1.657Z" />
97
- </svg>
98
- <span className="hidden xl:inline">Discord</span>
99
- </a>
100
- <button
101
- type="button"
102
- className="inline-flex h-11 w-11 items-center justify-center rounded-lg border border-brand-300/20 bg-black/65 text-white transition-all hover:border-brand-300/35 hover:bg-brand/10 a11y-focus-ring lg:hidden"
103
- onClick={() => setMobileOpen((open) => !open)}
104
- aria-label={mobileOpen ? "Menü schließen" : "Menü öffnen"}
105
- aria-expanded={mobileOpen}
106
- >
107
- {mobileOpen ? <X className="h-5 w-5" /> : <Menu className="h-5 w-5" />}
108
- </button>
109
- </div>
110
- </div>
111
- </div>
112
-
113
- {mobileOpen ? (
114
- <div className="border-t border-brand-300/15 bg-black/90 backdrop-blur-xl lg:hidden">
115
- <nav aria-label="Mobile Hauptnavigation" className="layout-content grid gap-2 py-3">
116
- {NAV.map(({ href, label }) => (
117
- <Link
118
- key={href}
119
- href={href}
120
- onClick={() => setMobileOpen(false)}
121
- aria-current={path === href ? "page" : undefined}
122
- className={`rounded-lg px-4 py-3 text-sm font-semibold text-white transition-colors hover:bg-white/[0.06] hover:text-white a11y-focus-ring${path === href ? " bg-brand-400/10 text-brand-100" : ""}`}
123
- >
124
- {label}
125
- </Link>
126
- ))}
127
- <a
128
- href={config.discordUrl}
129
- target="_blank"
130
- rel="noopener noreferrer"
131
- onClick={() => setMobileOpen(false)}
132
- className="mt-2 inline-flex items-center gap-2 rounded-lg bg-brand-500 px-3 py-2 text-sm font-semibold text-white transition-colors hover:bg-brand-600 a11y-focus-ring"
133
- >
134
- <svg width="15" height="11" viewBox="0 0 16 12" fill="currentColor" aria-hidden="true">
135
- <path d="M13.545 1.058A13.16 13.16 0 0 0 10.29 0c-.142.257-.308.603-.422.877a12.194 12.194 0 0 0-3.735 0A9.847 9.847 0 0 0 5.71 0 13.188 13.188 0 0 0 2.454 1.06 13.942 13.942 0 0 0 .07 10.51a13.274 13.274 0 0 0 4.048 2.051 9.934 9.934 0 0 0 .86-1.41 8.66 8.66 0 0 1-1.354-.654c.114-.083.225-.17.333-.258a9.452 9.452 0 0 0 8.088 0c.109.09.22.175.333.258-.433.258-.891.479-1.356.655.25.494.537.966.86 1.41a13.24 13.24 0 0 0 4.05-2.052 13.926 13.926 0 0 0-2.387-9.452ZM5.34 8.606c-.806 0-1.469-.743-1.469-1.657 0-.913.646-1.658 1.469-1.658.822 0 1.482.746 1.468 1.658.001.914-.646 1.657-1.468 1.657Zm5.32 0c-.806 0-1.469-.743-1.469-1.657 0-.913.646-1.658 1.469-1.658.822 0 1.48.746 1.468 1.658 0 .914-.646 1.657-1.468 1.657Z" />
136
- </svg>
137
- Discord
138
- </a>
139
- </nav>
140
- </div>
141
- ) : null}
142
- </div>
143
- </header>
144
- )
145
- }
@@ -1,45 +0,0 @@
1
- import React from 'react';
2
- import { LucideIcon } from 'lucide-react';
3
-
4
- interface HighlightItem {
5
- icon?: LucideIcon;
6
- label: string;
7
- value: string;
8
- }
9
-
10
- interface LegalHighlightsProps {
11
- items?: Array<HighlightItem | string>;
12
- tone?: string;
13
- }
14
-
15
- export default function LegalHighlights({ items = [], tone }: LegalHighlightsProps) {
16
- if (!items || items.length === 0) {
17
- return null;
18
- }
19
-
20
- return (
21
- <div className="grid gap-4 my-6">
22
- {items.map((item, idx) => {
23
- const isObject = typeof item === 'object';
24
- const Icon = isObject ? item.icon : undefined;
25
-
26
- return (
27
- <div key={idx} className="glass-card p-4 flex gap-3">
28
- {Icon && <Icon className="w-5 h-5 flex-shrink-0" />}
29
- {!Icon && <span className="text-lg flex-shrink-0">✓</span>}
30
- <div className="flex-1">
31
- {isObject ? (
32
- <>
33
- <p className="font-semibold text-sm">{item.label}</p>
34
- <p className="text-sm text-muted-foreground">{item.value}</p>
35
- </>
36
- ) : (
37
- <p className="text-sm">{item}</p>
38
- )}
39
- </div>
40
- </div>
41
- );
42
- })}
43
- </div>
44
- );
45
- }
@@ -1,49 +0,0 @@
1
- import React from 'react';
2
- import { LucideIcon } from 'lucide-react';
3
-
4
- interface LegalPageShellProps {
5
- children: React.ReactNode;
6
- badge?: string;
7
- title: string;
8
- description?: string;
9
- icon?: LucideIcon;
10
- updatedAt?: string;
11
- tone?: string;
12
- }
13
-
14
- export default function LegalPageShell({
15
- children,
16
- badge,
17
- title,
18
- description,
19
- icon: Icon,
20
- updatedAt,
21
- }: LegalPageShellProps) {
22
- return (
23
- <div className="layout-content py-12">
24
- <div className="max-w-3xl mx-auto">
25
- {(badge || Icon || updatedAt) && (
26
- <div className="mb-8">
27
- {badge && (
28
- <span className="inline-block px-3 py-1 text-sm font-semibold rounded-full bg-primary/10 text-primary mb-4">
29
- {badge}
30
- </span>
31
- )}
32
- <h1 className="text-4xl font-bold mb-4">{title}</h1>
33
- {description && (
34
- <p className="text-lg text-muted-foreground mb-4">
35
- {description}
36
- </p>
37
- )}
38
- {updatedAt && (
39
- <p className="text-sm text-muted-foreground">
40
- Zuletzt aktualisiert: {updatedAt}
41
- </p>
42
- )}
43
- </div>
44
- )}
45
- {children}
46
- </div>
47
- </div>
48
- );
49
- }
@@ -1,41 +0,0 @@
1
- import React from 'react';
2
- import { LucideIcon } from 'lucide-react';
3
-
4
- interface LegalPanelProps {
5
- children: React.ReactNode;
6
- title?: string;
7
- icon?: LucideIcon;
8
- tone?: string;
9
- }
10
-
11
- export default function LegalPanel({
12
- children,
13
- title,
14
- icon: Icon,
15
- tone,
16
- }: LegalPanelProps) {
17
- const toneClasses = {
18
- amber: 'bg-amber/10 border-amber/20',
19
- blue: 'bg-blue-500/10 border-blue-500/20',
20
- green: 'bg-green-500/10 border-green-500/20',
21
- red: 'bg-red-500/10 border-red-500/20',
22
- };
23
-
24
- const toneClass = tone && tone in toneClasses
25
- ? toneClasses[tone as keyof typeof toneClasses]
26
- : 'bg-primary/10 border-primary/20';
27
-
28
- return (
29
- <div className={`glass-card p-6 my-4 border ${toneClass}`}>
30
- {(Icon || title) && (
31
- <div className="flex items-center gap-3 mb-4">
32
- {Icon && <Icon className="w-6 h-6" />}
33
- {title && <h3 className="text-lg font-bold">{title}</h3>}
34
- </div>
35
- )}
36
- <div className="prose prose-invert max-w-none text-sm">
37
- {children}
38
- </div>
39
- </div>
40
- );
41
- }
@@ -1,3 +0,0 @@
1
- export { default as LegalPageShell } from './LegalPageShell';
2
- export { default as LegalPanel } from './LegalPanel';
3
- export { default as LegalHighlights } from './LegalHighlights';