website refactor
This commit is contained in:
@@ -14,15 +14,15 @@ import { Grid } from '@/ui/Grid';
|
||||
import { GridItem } from '@/ui/GridItem';
|
||||
import { Surface } from '@/ui/Surface';
|
||||
import { Icon } from '@/ui/Icon';
|
||||
import { FeaturedDriverCard } from '@/components/drivers/FeaturedDriverCard';
|
||||
import { SkillDistribution } from '@/components/drivers/SkillDistribution';
|
||||
import { CategoryDistribution } from '@/components/drivers/CategoryDistribution';
|
||||
import { LeaderboardPreview } from '@/components/drivers/LeaderboardPreview';
|
||||
import { RecentActivity } from '@/components/drivers/RecentActivity';
|
||||
import { HeroSection } from '@/components/shared/HeroSection';
|
||||
import { FeaturedDriverCard } from '@/ui/FeaturedDriverCard';
|
||||
import { SkillDistribution } from '@/ui/SkillDistribution';
|
||||
import { CategoryDistribution } from '@/ui/CategoryDistribution';
|
||||
import { LeaderboardPreview } from '@/ui/LeaderboardPreview';
|
||||
import { RecentActivity } from '@/ui/RecentActivity';
|
||||
import { PageHero } from '@/ui/PageHero';
|
||||
import { Users, Trophy } from 'lucide-react';
|
||||
import { DriversSearch } from '@/components/drivers/DriversSearch';
|
||||
import { EmptyState } from '@/components/shared/state/EmptyState';
|
||||
import { DriversSearch } from '@/ui/DriversSearch';
|
||||
import { EmptyState } from '@/ui/EmptyState';
|
||||
import type { DriversViewData } from '@/lib/types/view-data/DriversViewData';
|
||||
|
||||
interface DriversTemplateProps {
|
||||
@@ -54,7 +54,7 @@ export function DriversTemplate({
|
||||
<Container size="lg" py={8}>
|
||||
<Stack gap={10}>
|
||||
{/* Hero Section */}
|
||||
<HeroSection
|
||||
<PageHero
|
||||
title="Drivers"
|
||||
description="Meet the racers who make every lap count. From rookies to champions, track their journey and see who's dominating the grid."
|
||||
icon={Users}
|
||||
@@ -114,7 +114,11 @@ export function DriversTemplate({
|
||||
{!searchQuery && <CategoryDistribution drivers={drivers} />}
|
||||
|
||||
{/* Leaderboard Preview */}
|
||||
<LeaderboardPreview drivers={filteredDrivers} onDriverClick={onDriverClick} />
|
||||
<LeaderboardPreview
|
||||
drivers={filteredDrivers}
|
||||
onDriverClick={onDriverClick}
|
||||
onNavigate={() => onViewLeaderboard()}
|
||||
/>
|
||||
|
||||
{/* Empty State */}
|
||||
{filteredDrivers.length === 0 && (
|
||||
|
||||
Reference in New Issue
Block a user