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
-| + | ||||||||
|---|---|---|---|---|---|---|---|---|
| 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} |