diff --git a/shop/components/WorkspaceZentrale.tsx b/shop/components/WorkspaceZentrale.tsx new file mode 100644 index 0000000..e70f596 --- /dev/null +++ b/shop/components/WorkspaceZentrale.tsx @@ -0,0 +1,132 @@ +'use client' + +import React, { useState } from 'react' +import { motion } from 'framer-motion' +import { MessageSquare, BookOpen, LifeBuoy, ExternalLink } from 'lucide-react' + +interface WorkspaceItem { + id: string + title: string + subtitle: string + hoverText: string + icon: React.ElementType + link: string +} + +const workspaceItems: WorkspaceItem[] = [ + { + id: 'zulip', + title: 'Zulip Chat', + subtitle: 'Treten Sie unserem Partner-Chat bei!', + hoverText: 'Tauschen Sie sich direkt und unkompliziert mit anderen CASPOS Partnern aus.', + icon: MessageSquare, + link: 'https://caspos.zulipchat.com' + }, + { + id: 'wiki', + title: 'CASPOS Wiki', + subtitle: 'Ihr Wissens-Portal...', + hoverText: '...für die gesamte CASPOS Produktfamilie. Hier finden Sie alle technischen Dokumentationen.', + icon: BookOpen, + link: 'https://wiki.caspos.de' + }, + { + id: 'support', + title: 'Support Portal', + subtitle: 'Sie haben ein technisches Problem?', + hoverText: 'Erstellen Sie jetzt ein Ticket in der CASPOS, damit sich unsere Experten darum kümmern.', + icon: LifeBuoy, + link: 'https://support.caspos.de' + } +] + +export function WorkspaceZentrale() { + const [hoveredId, setHoveredId] = useState(null) + + return ( +
+
+
+

+ Workspace Zentrale +

+
+ + {/* 3-Spalten Grid mit fester Kartenhöhe */} +
+ {workspaceItems.map((item) => { + const Icon = item.icon + const isHovered = hoveredId === item.id + + return ( + setHoveredId(item.id)} + onMouseLeave={() => setHoveredId(null)} + className={`group relative p-6 rounded-2xl border transition-all duration-300 backdrop-blur-md flex flex-col justify-between h-[210px] overflow-hidden cursor-pointer ${ + isHovered + ? 'border-sky-500 bg-slate-900/90 shadow-[0_0_25px_rgba(14,165,233,0.2)]' + : 'border-slate-800 bg-slate-900/60' + }`} + > +
+ {/* Header: Icon & Link */} +
+
+ +
+ +
+ + {/* Title */} +

+ {item.title} +

+ + {/* Subtitle / Hover-Text Überblendung ohne Höhenänderung */} +
+

+ {item.subtitle} +

+

+ {item.hoverText} +

+
+
+ + {/* Subtile Hover-Linie unten */} +
+ + ) + })} +
+
+
+ ) +}