diff --git a/src/components/statistics/DailyActivityChart.tsx b/src/components/statistics/DailyActivityChart.tsx index f6af6af..b3f300e 100755 --- a/src/components/statistics/DailyActivityChart.tsx +++ b/src/components/statistics/DailyActivityChart.tsx @@ -29,8 +29,8 @@ export function DailyActivityChart({ data }: DailyActivityChartProps) { { label: 'Sessions', data: data.map((item) => item.sessionsCount), - backgroundColor: 'rgba(59, 130, 246, 0.8)', - borderColor: 'rgb(59, 130, 246)', + backgroundColor: '#3fb950', + borderColor: '#3fb950', borderWidth: 1 } ] @@ -43,27 +43,27 @@ export function DailyActivityChart({ data }: DailyActivityChartProps) { legend: { position: 'top' as const, labels: { - color: '#e5e7eb' + color: '#e6edf3' } } }, scales: { x: { ticks: { - color: '#9ca3af' + color: '#8b949e' }, grid: { - color: '#374151' + color: '#21262d' } }, y: { beginAtZero: true, ticks: { - color: '#9ca3af', + color: '#8b949e', stepSize: 1 }, grid: { - color: '#374151' + color: '#21262d' } } } diff --git a/src/components/statistics/PlayerCountChart.tsx b/src/components/statistics/PlayerCountChart.tsx index 49a4b85..996fb73 100755 --- a/src/components/statistics/PlayerCountChart.tsx +++ b/src/components/statistics/PlayerCountChart.tsx @@ -43,8 +43,8 @@ export function PlayerCountChart({ data }: PlayerCountChartProps) { x: new Date(point.timestamp), y: point.count })), - borderColor: 'rgb(59, 130, 246)', - backgroundColor: 'rgba(59, 130, 246, 0.1)', + borderColor: '#58a6ff', + backgroundColor: '#58a6ff1a', tension: 0.4 } ] @@ -57,7 +57,7 @@ export function PlayerCountChart({ data }: PlayerCountChartProps) { legend: { position: 'top' as const, labels: { - color: '#e5e7eb' + color: '#e6edf3' } } }, @@ -68,20 +68,20 @@ export function PlayerCountChart({ data }: PlayerCountChartProps) { unit: 'hour' as const }, ticks: { - color: '#9ca3af' + color: '#8b949e' }, grid: { - color: '#374151' + color: '#21262d' } }, y: { beginAtZero: true, ticks: { - color: '#9ca3af', + color: '#8b949e', stepSize: 1 }, grid: { - color: '#374151' + color: '#21262d' } } } diff --git a/src/components/statistics/RecentSessions.tsx b/src/components/statistics/RecentSessions.tsx index a6cd72c..5a5c734 100755 --- a/src/components/statistics/RecentSessions.tsx +++ b/src/components/statistics/RecentSessions.tsx @@ -29,51 +29,52 @@ export function RecentSessions({ sessions }: RecentSessionsProps) { if (sessions.length === 0) { return ( -
-
📊
-

No recent sessions found

-
+
No recent sessions found
); } return (
- +
- - + - - - - - + {sessions.map((session) => ( - - + - - - + - diff --git a/src/components/statistics/SessionTypesChart.tsx b/src/components/statistics/SessionTypesChart.tsx index 3ba5e23..c594313 100755 --- a/src/components/statistics/SessionTypesChart.tsx +++ b/src/components/statistics/SessionTypesChart.tsx @@ -15,12 +15,10 @@ interface SessionTypesChartProps { } const colors = [ - '#3b82f6', // blue - '#10b981', // emerald - '#f59e0b', // amber - '#ef4444', // red - '#8b5cf6', // violet - '#06b6d4' // cyan + '#3fb950', // gh-green + '#58a6ff', // gh-blue + '#f78166', // gh-red + '#d29922' // gh-yellow ]; export function SessionTypesChart({ data }: SessionTypesChartProps) { @@ -43,7 +41,7 @@ export function SessionTypesChart({ data }: SessionTypesChartProps) { legend: { position: 'bottom' as const, labels: { - color: '#e5e7eb', + color: '#e6edf3', padding: 20 } }, diff --git a/src/components/statistics/StatCard.tsx b/src/components/statistics/StatCard.tsx index 6c2b32c..8216b99 100755 --- a/src/components/statistics/StatCard.tsx +++ b/src/components/statistics/StatCard.tsx @@ -6,16 +6,12 @@ interface StatCardProps { export function StatCard({ title, value, icon }: StatCardProps) { return ( -
-
-
- {icon} -
-
-
{value}
-
{title}
-
+
+
+ {icon} + {title}
+
{value}
); } diff --git a/src/components/statistics/StatisticsDashboard.tsx b/src/components/statistics/StatisticsDashboard.tsx index 498f781..ef79bd2 100755 --- a/src/components/statistics/StatisticsDashboard.tsx +++ b/src/components/statistics/StatisticsDashboard.tsx @@ -14,17 +14,18 @@ interface StatisticsDashboardProps { export function StatisticsDashboard({ stats }: StatisticsDashboardProps) { if (!stats) { return ( -
-
📊
-

No Statistics Available

-

No data found for the selected date range.

+
+
📊
+

No Statistics Available

+

No data found for the selected date range.

); } return ( -
-
+
+ {/* 4 stat cards */} +
- {/* Charts */} -
-
-

Player Count Over Time

+ {/* Charts row */} +
+
+

Player Count Over Time

- -
-

Session Types

+
+

Session Types

-
-

Daily Activity

+
+

Daily Activity

- {/* Recent Sessions */} -
-

Recent Sessions

+ {/* Recent sessions */} +
+
Recent Sessions
+
Date + Type + Track + Duration + Players
+
{formatDate(session.date)} - - {session.type} + + + {session.type === 'R' ? 'Race' : session.type === 'Q' ? 'Qualify' : 'Practice'} {session.track} + {session.track} {formatDuration(session.duration)} + {session.players}