import { useState } from "react"; import Markdown from "react-markdown"; import { Book, Project, AuthorProfile } from "../types"; import { BookOpen, Star, HelpCircle, Award, Compass, ArrowRight, ExternalLink, Moon } from "lucide-react"; interface SciFiPortfolioProps { data: AuthorProfile; } export default function SciFiPortfolio({ data }: SciFiPortfolioProps) { const [selectedBook, setSelectedBook] = useState(null); const [selectedProject, setSelectedProject] = useState(null); const accentColor = data.accentColor || "#06b6d4"; const secondaryColor = data.secondaryColor || "#a855f7"; const bgColor = data.backgroundColor || "#020617"; const cardBgColor = data.cardBgColor || "#0f172a"; const fontClass = data.fontFamily === "serif" ? "font-serif" : data.fontFamily === "mono" ? "font-mono" : "font-sans"; return (
{/* Hero Banner Background if present */} {data.heroBannerUrl && (
)} {/* Decorative starry background with magical aura */}
{/* Hero Section */}
{/* Subtle magical/futuristic accent */}
{data.badgeText || "Cyber-Mystisches Archive"}

{data.heroTitle || data.name || "DANIEL HESSE"}

{data.heroSubtitle || "WELTENWANDLER & STERNENZEICHNER"}

{/* Main Container */}
{/* Section 1: Über mich */}
{/* Outer neon ring */}
{data.name}

{data.aboutTitle || "Über den Autor"}

{data.bio}

Fokus
Sci-Fi & Fantasy
Welten
Techno-Magie
Stil
Episch & Atmosphärisch
{/* Section 2: Aktuelle Projekte */}

{data.projectsTitle || "Aktuelle Projekte"}

{data.projectsSubtitle || "Ein exklusiver Blick auf das, was sich gerade auf meinem Schreib-Amboss befindet."}

Laufendes Telemetrie-Tracking
{data.projects.map((project) => ( ))}
{/* Section 3: Bücherregal */}

{data.booksTitle || "Das Bücherregal"}

{data.booksSubtitle || "Veröffentlichte Meilensteine. Klicken oder Tippen Sie auf ein Cover, um Geheimnisse zu enthüllen."}

{data.books.map((book) => ( ))}
{/* Section 4: Custom Highlight Section if present */} {(data.customSectionTitle || data.customSectionContent) && (
CUSTOM_INFO_MODULE
{data.customSectionTitle && (

{data.customSectionTitle}

)} {data.customSectionContent && (
{data.customSectionContent}
)}
)}
{/* Book details modular interface modal */} {selectedBook && (
{/* Overlay background */}
setSelectedBook(null)} />
{/* Close Button */}
{/* Book Cover */}
{selectedBook.title}
{selectedBook.buyLink && ( Invasion starten (Kauf-Link) )}
{/* Book Details */}
Erschienen: {selectedBook.publishedYear} {selectedBook.genres?.map((genre) => ( {genre} ))}

{selectedBook.title}

{selectedBook.subtitle && (

{selectedBook.subtitle}

)}
{selectedBook.description}
{/* Integrated Spotify web player playlist if available */} {selectedBook.spotifyPlaylistId && selectedBook.spotifyPlaylistId.trim() !== "" && (

INTEGRIERTES ATMOSPHÄREN-SYSTEM (SPOTIFY PLAYLIST)