'use client' import React, { useState } from 'react' import Link from 'next/link' import { Shield, Code, Download, Smartphone, FileCode, Lock, ChevronRight, Copy, Check, Zap, Globe, Layers, BookOpen, Terminal } from 'lucide-react' import { SDKDocsSidebar } from '@/components/SDKDocsSidebar' type Framework = 'npm' | 'yarn' | 'pnpm' const installCommands: Record = { npm: 'npm install @breakpilot/consent-sdk', yarn: 'yarn add @breakpilot/consent-sdk', pnpm: 'pnpm add @breakpilot/consent-sdk', } function CopyButton({ text }: { text: string }) { const [copied, setCopied] = useState(false) const handleCopy = async () => { await navigator.clipboard.writeText(text) setCopied(true) setTimeout(() => setCopied(false), 2000) } return ( ) } export default function ConsentSDKHubPage() { const [selectedPM, setSelectedPM] = useState('npm') const quickLinks = [ { title: 'Installation', description: 'SDK in wenigen Minuten einrichten', href: '/sdk/consent/installation', icon: Download, color: 'bg-blue-500', }, { title: 'API Referenz', description: 'Vollstaendige API-Dokumentation', href: '/sdk/consent/api-reference', icon: FileCode, color: 'bg-purple-500', }, { title: 'Frameworks', description: 'React, Vue, Angular Integration', href: '/sdk/consent/frameworks', icon: Layers, color: 'bg-green-500', }, { title: 'Mobile SDKs', description: 'iOS, Android, Flutter', href: '/sdk/consent/mobile', icon: Smartphone, color: 'bg-orange-500', }, { title: 'Sicherheit', description: 'Best Practices & Compliance', href: '/sdk/consent/security', icon: Lock, color: 'bg-red-500', }, ] const features = [ { title: 'DSGVO & TTDSG Konform', description: 'Vollstaendige Unterstuetzung fuer EU-Datenschutzverordnungen mit revisionssicherer Consent-Speicherung.', icon: Shield, }, { title: 'Google Consent Mode v2', description: 'Native Integration mit automatischer Synchronisation zu Google Analytics und Ads.', icon: Globe, }, { title: 'Script Blocking', description: 'Automatisches Blockieren von Third-Party Scripts bis zur Einwilligung.', icon: Code, }, { title: 'Multi-Platform', description: 'Unterstuetzung fuer Web, PWA, iOS, Android und Flutter aus einer Codebasis.', icon: Smartphone, }, ] return (
{/* Header */}

Consent SDK

v1.0.0 DSGVO/TTDSG Compliant

Das Consent SDK ermoeglicht DSGVO-konforme Einwilligungsverwaltung fuer Web, PWA und Mobile Apps. Mit nativer Unterstuetzung fuer React, Vue, Angular und Mobile Platforms.

{/* Quick Install */}

Schnellinstallation

{(['npm', 'yarn', 'pnpm'] as const).map((pm) => ( ))}
$ {installCommands[selectedPM]}
{/* Quick Links */}

Dokumentation

{quickLinks.map((link) => (

{link.title}

{link.description}

))}
{/* Quick Start Code */}

Schnellstart

{`import { ConsentManager } from '@breakpilot/consent-sdk';

// Manager initialisieren
const consent = new ConsentManager({
  apiEndpoint: 'https://api.example.com/consent',
  siteId: 'your-site-id',
});

// SDK starten
await consent.init();

// Consent pruefen
if (consent.hasConsent('analytics')) {
  // Analytics laden
}

// Events abonnieren
consent.on('change', (state) => {
  console.log('Consent geaendert:', state);
});`}
              
{/* Features */}

Features

{features.map((feature) => (

{feature.title}

{feature.description}

))}
{/* Compliance Notice */}

DSGVO & TTDSG Compliance

Das Consent SDK erfuellt alle Anforderungen der DSGVO (Art. 6, 7, 13, 14, 17, 20) und des TTDSG (ยง 25). Alle Einwilligungen werden revisionssicher gespeichert und koennen jederzeit exportiert werden.

) }