feat: create history card component
This commit is contained in:
parent
1f028cf1fa
commit
041866d84d
2 changed files with 34 additions and 1 deletions
29
src/components/HistoryCard.tsx
Normal file
29
src/components/HistoryCard.tsx
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import { Heading, HStack, Text, VStack } from '@gluestack-ui/themed';
|
||||
|
||||
export function HistoryCard() {
|
||||
return (
|
||||
<HStack
|
||||
w="$full"
|
||||
px="$5"
|
||||
py="$4"
|
||||
mb="$3"
|
||||
bg="$gray600"
|
||||
rounded="$md"
|
||||
alignItems="center"
|
||||
justifyContent="space-between">
|
||||
<VStack mr="$5">
|
||||
<Heading color="$white" fontSize="$md" textTransform="capitalize">
|
||||
Costas
|
||||
</Heading>
|
||||
|
||||
<Text color="$gray100" fontSize="$lg" numberOfLines={1}>
|
||||
Puxada Frontal
|
||||
</Text>
|
||||
</VStack>
|
||||
|
||||
<Text color="$gray300" fontSize="$md">
|
||||
08:36
|
||||
</Text>
|
||||
</HStack>
|
||||
);
|
||||
}
|
||||
|
|
@ -1,10 +1,14 @@
|
|||
import { ScreenHeader } from '@components/ScreenHeader';
|
||||
import { VStack } from '@gluestack-ui/themed';
|
||||
|
||||
import { HistoryCard } from '@components/HistoryCard';
|
||||
import { ScreenHeader } from '@components/ScreenHeader';
|
||||
|
||||
export function History() {
|
||||
return (
|
||||
<VStack flex={1}>
|
||||
<ScreenHeader title="Histórico" />
|
||||
|
||||
<HistoryCard />
|
||||
</VStack>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue