website refactor
This commit is contained in:
@@ -5,7 +5,6 @@ import { Thermometer, Wind, Droplets, Sun, type LucideIcon } from 'lucide-react'
|
||||
import { Text } from '@/ui/Text';
|
||||
import { Stack } from '@/ui/Stack';
|
||||
import { Icon } from '@/ui/Icon';
|
||||
import { Box } from '@/ui/Box';
|
||||
|
||||
interface TrackConditionsPanelProps {
|
||||
airTemp: string;
|
||||
@@ -23,12 +22,12 @@ export function TrackConditionsPanel({
|
||||
weatherType,
|
||||
}: TrackConditionsPanelProps) {
|
||||
return (
|
||||
<Box as="section" bg="bg-surface-charcoal" border borderColor="border-outline-steel" p={4}>
|
||||
<Stack as="section" bg="bg-surface-charcoal" border borderColor="border-outline-steel" p={4}>
|
||||
<Text size="xs" weight="bold" color="text-gray-500" uppercase block mb={4}>
|
||||
Track Conditions
|
||||
</Text>
|
||||
|
||||
<Box display="grid" gridCols={2} mdCols={4} gap={4}>
|
||||
<Stack display="grid" gridCols={2} mdCols={4} gap={4}>
|
||||
<ConditionItem
|
||||
icon={Thermometer}
|
||||
label="Air Temp"
|
||||
@@ -53,13 +52,13 @@ export function TrackConditionsPanel({
|
||||
value={windSpeed}
|
||||
color="text-gray-400"
|
||||
/>
|
||||
</Box>
|
||||
</Stack>
|
||||
|
||||
<Box mt={4} pt={4} borderTop borderColor="border-outline-steel" bgOpacity={0.5} display="flex" alignItems="center" gap={3}>
|
||||
<Stack mt={4} pt={4} borderTop borderColor="border-outline-steel" bgOpacity={0.5} display="flex" alignItems="center" gap={3}>
|
||||
<Icon icon={Sun} size={4} color="#FFBE4D" />
|
||||
<Text size="sm" color="text-gray-300">{weatherType}</Text>
|
||||
</Box>
|
||||
</Box>
|
||||
</Stack>
|
||||
</Stack>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user