import { useState } from "react"; import Markdown from "react-markdown"; import { Book, Project, AuthorProfile } from "../types"; import { Heart, Key, Star, Sparkles, BookOpen, ExternalLink, ArrowRight } from "lucide-react"; interface EroticaPortfolioProps { data: AuthorProfile; } export default function EroticaPortfolio({ data }: EroticaPortfolioProps) { const [selectedBook, setSelectedBook] = useState(null); const [selectedProject, setSelectedProject] = useState(null); const accentColor = data.accentColor || "#f97316"; const secondaryColor = data.secondaryColor || "#f59e0b"; const bgColor = data.backgroundColor || "#0a0a0a"; const cardBgColor = data.cardBgColor || "#171717"; const fontClass = data.fontFamily === "sans" ? "font-sans" : data.fontFamily === "mono" ? "font-mono" : "font-serif"; return (
{/* Hero Banner Background if present */} {data.heroBannerUrl && (
)} {/* Decorative Warm background gradient and peach glow vibes */}
{/* Header / Hero */}
{data.badgeText || "Stilvolle Sinnlichkeit & Romantik"}

{data.heroTitle || data.name || "M. S. VELVET"}

{data.heroSubtitle || "ELEGANT-SINNLICHE LITERATUR"}

{/* Main Grid */}
{/* About writer */}
{/* Outer warm glow */}
{data.name}

{data.aboutTitle || "Das Geheimnis hinter der Feder"}

{data.bio}

{(data.bioTag1Label || data.bioTag1Value) && (
{data.bioTag1Label || "Genre"}
{data.bioTag1Value || "Sinnliche Romance"}
)} {(data.bioTag2Label || data.bioTag2Value) && (
{data.bioTag2Label || "Tonalität"}
{data.bioTag2Value || "Elegant & Knisternd"}
)} {(data.bioTag3Label || data.bioTag3Value) && (
{data.bioTag3Label || "Identität"}
{data.bioTag3Value || "Diskret / Pseudonym"}
)}
{/* Dynamic ongoing work writing progress */}

{data.projectsTitle || "In der Entstehung..."}

{data.projectsSubtitle || "Ein diskreter Blick hinter die Samtvorhänge meiner aktuellen Manuskripte."}

{data.projects.map((project) => ( ))}
{/* Bookshelf display */}

{data.booksTitle || "Das Samtregal"}

{data.booksSubtitle || "Wählen Sie ein Buch aus, um tiefer in die Versuchung einzutauchen."}

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

{data.customSectionTitle}

)} {data.customSectionContent && (
)}
)}
{/* Book details modular modal */} {selectedBook && (
setSelectedBook(null)} />
{/* Book Cover */} {/* Details text area */}
Sinnlich seit: {selectedBook.publishedYear} {selectedBook.genres?.map((genre) => ( {genre} ))}

{selectedBook.title}

{selectedBook.subtitle && (

{selectedBook.subtitle}

)}
{selectedBook.description}
{/* Embedded Spotify player */} {selectedBook.spotifyPlaylistId && selectedBook.spotifyPlaylistId.trim() !== "" && (

Sinnliche Begleitmusik (Spotify Playlist)