website refactor

This commit is contained in:
2026-01-20 12:16:58 +01:00
parent 3556db494f
commit a0d8d47e49
8 changed files with 276 additions and 187 deletions

View File

@@ -1,6 +1,6 @@
'use client';
import { Group } from '@/ui/Group';
import { Box } from '@/ui/Box';
import { Input } from '@/ui/Input';
import { Search } from 'lucide-react';
@@ -11,13 +11,14 @@ interface DriverSearchBarProps {
export function DriverSearchBar({ query, onChange }: DriverSearchBarProps) {
return (
<Group fullWidth>
<Box as="div" width="full" maxWidth="400px">
<Input
value={query}
onChange={(e) => onChange(e.target.value)}
placeholder="Search drivers by name or nationality..."
icon={<Search size={20} />}
placeholder="Search competitors..."
icon={<Search size={16} />}
size="sm"
/>
</Group>
</Box>
);
}