import React, { useState } from "react"; import Markdown from "react-markdown"; import { AuthorProfile, Book, Project } from "../types"; import { Heart, Sparkles, BookOpen, ExternalLink, X, ArrowRight, Sun, Music } from "lucide-react"; interface ReneePortfolioProps { data: AuthorProfile; } export default function ReneePortfolio({ data }: ReneePortfolioProps) { const [selectedBook, setSelectedBook] = useState(null); const [selectedProject, setSelectedProject] = useState(null); const accentColor = data.accentColor || "#eab308"; const secondaryColor = data.secondaryColor || "#ec4899"; const bgColor = data.backgroundColor || "#0f172a"; const cardBgColor = data.cardBgColor || "#1e293b"; const fontClass = data.fontFamily === "serif" ? "font-serif" : data.fontFamily === "mono" ? "font-mono" : "font-sans"; return (
{/* Hero Banner Background if present */} {data.heroBannerUrl && (
)} {/* Decorative Yellow & Pink Warm Glows */}
{/* Header / Hero */}
{data.badgeText || "Herzklopfen & Gefühlsstark"}

{data.heroTitle || data.name || "RENEE HEART"}

{data.heroSubtitle || "HERZENSGESCHICHTEN & EMOTIONALE ROMANE"}

{/* Main Content Area */}
{/* Author Bio Section */}
{/* Outer yellow/pink glow */}
{data.name}

{data.aboutTitle || "Über Renee Heart"}

{data.bio}

{(data.bioTag1Label || data.bioTag1Value) && (
{data.bioTag1Label || "Genre"}
{data.bioTag1Value || "Emotionale Romance"}
)} {(data.bioTag2Label || data.bioTag2Value) && (
{data.bioTag2Label || "Tonalität"}
{data.bioTag2Value || "Herzlich & Hoffnungsvoll"}
)} {(data.bioTag3Label || data.bioTag3Value) && (
{data.bioTag3Label || "Fokus"}
{data.bioTag3Value || "Gefühl & Tiefe"}
)}
{/* Dynamic ongoing work writing progress */}

{data.projectsTitle || "Aus der Schreibstube"}

{data.projectsSubtitle || "Ein Blick auf meine aktuellen Geschichten in Entstehung – voller Hoffnung und Herzklopfen."}

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

{data.booksTitle || "Gefühlvolle Romane"}

{data.booksSubtitle || "Geschichten zum Mitfühlen, Träumen und Genießen."}

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

{data.customSectionTitle}

)} {data.customSectionContent && (
)}
)}
{/* Book Details Modal */} {selectedBook && (
{selectedBook.title}
Erscheinungsjahr {selectedBook.publishedYear}

{selectedBook.title}

{selectedBook.subtitle && (

{selectedBook.subtitle}

)}
{selectedBook.genres && selectedBook.genres.length > 0 && (
{selectedBook.genres.map((g, idx) => ( {g} ))}
)}
{/* Spotify Playlist player if configured */} {selectedBook.spotifyPlaylistId && (
Klangwelt zum Buch auf Spotify