diff --git a/src/spa/pages/EventDetail.tsx b/src/spa/pages/EventDetail.tsx index ecb314d..b286140 100644 --- a/src/spa/pages/EventDetail.tsx +++ b/src/spa/pages/EventDetail.tsx @@ -1,7 +1,7 @@ -import React, { useState } from 'react' +import React from 'react' import { useParams, Link } from '@/spa/router' import { motion } from 'framer-motion' -import { Calendar, MapPin, Clock, Bell, BellOff, ArrowLeft, ChevronRight } from 'lucide-react' +import { Calendar, MapPin, Clock, Bell, ArrowLeft, ChevronRight } from 'lucide-react' import { getEventBySlug, EventUpdate, type BmpEvent, type EventEckdaten } from '@/spa/data/events' import { useCmsRoute } from '@/spa/cmsRoute' import { docImageUrl, mediaUrl } from '@/spa/cmsMediaField' @@ -11,7 +11,7 @@ import Image from '@/spa/components/ui/UnoptimizedImage' const NAVY = '#111D55' const GOLD = '#EFBF04' -const CREAM = '#EFE5E3' +const WHITE = '#fff' type EventDetailCms = Omit, 'updateStyles' | 'statusStyles'> & { fallbackImage?: unknown @@ -124,12 +124,11 @@ export default function EventDetail() { const sections = detail.sections || eventDetailContent.sections const updatesCopy = detail.updatesCopy || eventDetailContent.updates const bottomCta = detail.bottomCta || eventDetailContent.bottomCta - const [subscribed, setSubscribed] = useState(false) const isMobile = useIsMobile() if (!event) { return ( -
+
404
{fallbackText(notFound.title, eventDetailContent.notFound.title)}
@@ -143,7 +142,7 @@ export default function EventDetail() { const statusStyle = statusStyles[event.status] ?? statusStyles.geplant return ( -
+
{/* ── Hero ─────────────────────────────────────────────────────────── */}
@@ -275,7 +274,7 @@ export default function EventDetail() { {/* Right – Live Updates Feed (sticky on desktop, static on mobile) */}
{/* Header */} -
+
@@ -286,32 +285,8 @@ export default function EventDetail() { borderRadius: 20, padding: '2px 8px', }}>{event.updates.length}
- -
- {subscribed && ( - - {fallbackText(updatesCopy.subscribedMessage, eventDetailContent.updates.subscribedMessage)} - - )} - {/* Timeline */}
{event.updates.map((update, i) => (