'use client'; import React from 'react'; import { Section } from '@/ui/Section'; import { Heading } from '@/ui/Heading'; import { Text } from '@/ui/Text'; import { Card } from '@/ui/Card'; import { Button } from '@/ui/Button'; import { FeatureGrid } from '@/ui/FeatureGrid'; import { Stack } from '@/ui/Stack'; import { Trophy, Users, Flag } from 'lucide-react'; interface EcosystemGridProps { leagues: Array<{ id: string; name: string; description: string }>; teams: Array<{ id: string; name: string; description: string }>; races: Array<{ id: string; track: string; car: string; formattedDate: string }>; } /** * EcosystemGrid - Discovery section for the live ecosystem. * Designed with a "grid" layout and precision details. * Uses ONLY UI components. */ export function EcosystemGrid({ leagues, teams, races }: EcosystemGridProps) { return (
Live Ecosystem THE GRID Explore the leagues, teams, and races that define the GridPilot ecosystem. {/* Leagues Column */} Top Leagues {leagues.slice(0, 3).map((league) => ( {league.name} {league.description} ))} {/* Teams Column */} Active Teams {teams.slice(0, 3).map((team) => ( {team.name} {team.description} ))} {/* Races Column */} Upcoming Races {races.slice(0, 3).map((race) => ( {race.track} {race.car} {race.formattedDate} ))}
); }