'use client'; import React, { useState } from 'react'; import Link from 'next/link'; import { INITIAL_GROUP_RIDES } from './fixtures'; import { GroupRideSummary } from './types'; import { LivePackRadar } from './live-pack-radar'; interface GroupRidesShowcaseProps { isLoggedIn?: boolean; userEmail?: string | null; onGoToManagement?: () => void; } export function GroupRidesShowcase({ isLoggedIn = false, userEmail, onGoToManagement, }: GroupRidesShowcaseProps) { const [selectedFilter, setSelectedFilter] = useState<'all' | 'brisk' | 'track' | 'tour'>('all'); const [sampleRides] = useState(INITIAL_GROUP_RIDES); const filteredRides = sampleRides.filter((ride) => { if (selectedFilter === 'brisk') return ride.paceClassification === 'Brisk Pace'; if (selectedFilter === 'track') return ride.paceClassification === 'Track Pace'; if (selectedFilter === 'tour') return ( ride.paceClassification === 'Weekend Tours' || ride.paceClassification === 'Endurance / Chill' ); return true; }); return (
{/* Dynamic Atmospheric Glow Background Layers */}
{/* Authenticated Rider Quick Notice (if logged-in user visits showcase) */} {isLoggedIn && (
verified_user You're viewing the public showcase.{userEmail ? ` (${userEmail})` : ''}
{onGoToManagement ? ( ) : ( Return to Group Rides Console arrow_forward )}
)} {/* Hero Section */}
{/* Eyebrow Badge */}
Formation Telemetry Showcase
{/* Headline */}

Ride in pack formation.
Never lose a wingman.

{/* Subheading */}

Real-time rider radar, staggered formation spacing alerts, instant incident broadcast, and automated regroup checkpoints calibrated for fast canyon runs and transcontinental tours.

{/* Showcase Action CTAs */}
{isLoggedIn ? ( <> {onGoToManagement ? ( ) : ( dashboard Manage My Group Rides )} radar Explore Radar Simulation ) : ( <> how_to_reg Get Started Free download Download App login Sign In to Join Runs expand_more Live Radar Demo )}
{/* Interactive Live Pack Radar Cockpit */}
{/* Group Ride Features Grid (6 Core Subsystems) */}
Formation Architecture

Engineered for Squadron Cohesion

High-frequency mesh communications keep the entire formation synchronized through blind apexes, mountain passes, and dense urban corridors.

{/* Feature 1: Paceline Audit */}
spatial_audio_off
01 / Paceline Spacing

Staggered Paceline Warnings

Spatial audio HUD chimes dynamically sound whenever rider follow distance or lane positioning falls beneath calculated emergency stopping thresholds.

Latency: <12ms arrow_forward
{/* Feature 2: Swarm Broadcast & Crash Separation */}
fmd_bad
02 / Swarm Broadcast

Swarm Broadcast & Crash Separation

Autonomous 6-axis IMU impact detection pings the entire pack instantly. Visual yellow and red telemetry flags highlight coordinates for immediate regrouping.

IMU Sensing: 6-Axis arrow_forward
{/* Feature 3: P2P Mesh */}
hub
03 / Offline Link

Peer-to-Peer Mesh Sync

Never rely on cellular towers in deep canyons. Ad-hoc Bluetooth and Wi-Fi Direct protocols daisy-chain vital bike metrics from road lead to sweep.

Zero-cell Ready arrow_forward
{/* Feature 4: Mission Debrief */}
history_toggle_off
04 / Mission Debrief

3D Multi-Bike Replay & Debrief

Relive the run with synced multi-bike timelines. Compare apex entries, sector speeds, and individual lean angles across the entire squad simultaneously.

3D Replay Engine arrow_forward
{/* Feature 5: Multi-Band GNSS Precision */}
satellite_alt
05 / Precision Mesh

Multi-Band GNSS Precision

Dual-frequency L1+L5 satellite tracking ensures accurate relative positioning even in dense canyon canopy where consumer navigation drifts.

Sub-Meter Precision arrow_forward
{/* Feature 6: Offline Cell-Tower Fallback */}
cell_tower
06 / Zero-Cell Fallback

Offline Cell-Tower Fallback

Zero cellular dependency. Dynamic mesh packet hopping ensures formation telemetry, deceleration warnings, and regroup coordinates stay live without cell tower connectivity.

Zero-Cell Resilient arrow_forward
{/* Hardware & Intercom Strip */}
Hardware Compatibility

Sync directly with your helmet comms & bike dash

Integrates seamlessly with Cardo DMC, Sena Mesh, Bluetooth LE, and Android Auto / Apple CarPlay dashboards for live peg-to-peg telemetry cues without taking your eyes off the corner exit.

headset_mic Cardo DMC & Sena Mesh
bluetooth Bluetooth LE
directions_car Android Auto / CarPlay
{/* Sample Community Runs Preview */}
Community Network Preview

Sample Pack Formations

Preview public squadron runs organized by regional riders across North America.

{/* Filter Toggles */}
{/* Showcase Cards Grid */}
{filteredRides.map((ride) => (
{/* Header Badges */}
{ride.paceClassification} calendar_today {ride.scheduledDate} • {ride.scheduledTime}

{ride.title}

{ride.description}

location_on {ride.region}
flag Rally: {ride.meetingPoint}
Lead: {ride.leadHandle} {ride.participantCount} / {ride.participantLimit} Riders
{isLoggedIn ? ( add_circle View in Management Console ) : ( lock Sign In to Join Pack )}
))}
{/* Bottom Conversion Section */}
Ready to Lead Formation?

Organize, coordinate, and debrief group rides with precision telemetry.

Join thousands of sport riders and touring groups who keep their squad in formation with MotorSignal. Create your account in under 60 seconds.

Create Free Account Sign In
); }