@@ -2,6 +2,7 @@ import React from 'react';
22import { Button } from '@/components/ui/button' ;
33import { Card , CardContent , CardDescription , CardHeader , CardTitle } from '@/components/ui/card' ;
44import { ExternalLink , Users , Gamepad2 , Leaf , DollarSign , Music , Shield , Zap } from 'lucide-react' ;
5+ import EcoProductCarousel from '@/components/EcoProductCarousel' ;
56
67interface PlatformLink {
78 name : string ;
@@ -99,37 +100,40 @@ const FeaturedClubCard = ({ club }: { club: FeaturedClubProps }) => {
99100 { club . description }
100101 </ p >
101102
102- { /* Sections */ }
103- < div className = "space-y-4 mb-6" >
103+ { /* Sections - Horizontal Layout */ }
104+ < div className = "space-y-6 mb-6" >
104105 { club . sections . map ( ( section , index ) => (
105- < Card key = { index } className = "bg-alien-space-dark/60 border-alien-gold/20 backdrop-blur-sm" >
106- < CardHeader className = "pb-3" >
107- < CardTitle className = "flex items-center text-alien-gold text-sm font-nasalization" >
108- { section . icon }
109- < span className = "ml-2" > { section . title } </ span >
110- </ CardTitle >
111- < CardDescription className = "text-xs text-gray-300 font-[Exo]" >
112- { section . description }
113- </ CardDescription >
114- </ CardHeader >
115- < CardContent className = "pt-0" >
116- < div className = "grid grid-cols-2 gap-2" >
117- { section . platforms . map ( ( platform , pIndex ) => (
106+ < div key = { index } className = "bg-alien-space-dark/60 border border-alien-gold/20 backdrop-blur-sm rounded-lg p-4" >
107+ < div className = "flex items-center text-alien-gold text-sm font-nasalization mb-3" >
108+ { section . icon }
109+ < span className = "ml-2" > { section . title } </ span >
110+ </ div >
111+ < p className = "text-xs text-gray-300 font-[Exo] mb-4" > { section . description } </ p >
112+
113+ { /* Special handling for EcoFlow product carousel */ }
114+ { club . name === 'Δ EcoFlow' && section . title === 'Eco Products Catalog' ? (
115+ < div className = "mt-4" >
116+ < EcoProductCarousel />
117+ </ div >
118+ ) : (
119+ < div className = "flex flex-wrap gap-2" >
120+ { section . platforms . sort ( ( a , b ) => a . name . localeCompare ( b . name ) ) . map ( ( platform , pIndex ) => (
118121 < Button
119122 key = { pIndex }
120123 variant = "ghost"
121124 size = "sm"
122- className = { `${ section . color } text-white hover:bg-white/20 text-xs h-8 justify-start font-[Exo]` }
125+ className = { `${ section . color } text-white hover:bg-white/20 text-xs h-8 justify-center font-[Exo] min-w-[100px] flex-1 max-w-[140px ]` }
123126 onClick = { ( ) => platform . url && window . open ( platform . url , '_blank' ) }
124127 disabled = { ! platform . url }
125128 >
126- < ExternalLink className = "h-3 w-3 mr-1" />
129+ { platform . icon && < img src = { platform . icon } alt = { platform . name } className = "h-3 w-3 mr-1" /> }
130+ { ! platform . icon && < ExternalLink className = "h-3 w-3 mr-1" /> }
127131 { platform . name }
128132 </ Button >
129133 ) ) }
130134 </ div >
131- </ CardContent >
132- </ Card >
135+ ) }
136+ </ div >
133137 ) ) }
134138 </ div >
135139
0 commit comments