website refactor
This commit is contained in:
19
apps/website/components/drivers/DriverGrid.tsx
Normal file
19
apps/website/components/drivers/DriverGrid.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
'use client';
|
||||
|
||||
import React, { ReactNode } from 'react';
|
||||
import { Grid } from '@/ui/Grid';
|
||||
|
||||
interface DriverGridProps {
|
||||
children: ReactNode;
|
||||
}
|
||||
|
||||
/**
|
||||
* DriverGrid - A semantic layout for displaying driver cards.
|
||||
*/
|
||||
export function DriverGrid({ children }: DriverGridProps) {
|
||||
return (
|
||||
<Grid cols={{ base: 1, md: 2, lg: 3, xl: 4 }} gap={4}>
|
||||
{children}
|
||||
</Grid>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user