feat: add exercise done button
This commit is contained in:
parent
e874874a4c
commit
b0812182fc
1 changed files with 41 additions and 2 deletions
|
|
@ -1,9 +1,12 @@
|
||||||
import { Center, Heading, HStack, Icon, Text, VStack } from '@gluestack-ui/themed';
|
import { Box, Center, Heading, HStack, Icon, Image, Text, VStack } from '@gluestack-ui/themed';
|
||||||
import { useNavigation } from '@react-navigation/native';
|
import { useNavigation } from '@react-navigation/native';
|
||||||
import { ArrowLeft } from 'lucide-react-native';
|
import { ArrowLeft } from 'lucide-react-native';
|
||||||
import { TouchableOpacity } from 'react-native';
|
import { ScrollView, TouchableOpacity } from 'react-native';
|
||||||
|
|
||||||
import BodySvg from '@assets/body.svg';
|
import BodySvg from '@assets/body.svg';
|
||||||
|
import SeriesSvg from '@assets/series.svg';
|
||||||
|
import RepetitionSvg from '@assets/repetitions.svg';
|
||||||
|
import { Button } from '@components/Button';
|
||||||
|
|
||||||
export function Exercise() {
|
export function Exercise() {
|
||||||
const navigation = useNavigation();
|
const navigation = useNavigation();
|
||||||
|
|
@ -32,6 +35,42 @@ export function Exercise() {
|
||||||
</HStack>
|
</HStack>
|
||||||
</HStack>
|
</HStack>
|
||||||
</VStack>
|
</VStack>
|
||||||
|
|
||||||
|
<ScrollView
|
||||||
|
showsVerticalScrollIndicator={false}
|
||||||
|
contentContainerStyle={{ paddingBottom: 32 }}>
|
||||||
|
<VStack p="$8">
|
||||||
|
<Image
|
||||||
|
source={{ uri: 'https://i.pravatar.cc/200' }}
|
||||||
|
alt="imagem do exercício"
|
||||||
|
mb="$3"
|
||||||
|
resizeMode="cover"
|
||||||
|
rounded="$lg"
|
||||||
|
w="$full"
|
||||||
|
h="$80"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<Box bg="$gray600" rounded="$md" pb="$4" px="$4">
|
||||||
|
<HStack alignItems="center" justifyContent="space-around" mb="$6" mt="$5">
|
||||||
|
<HStack>
|
||||||
|
<SeriesSvg />
|
||||||
|
<Text color="$gray200" ml="$2">
|
||||||
|
3 séries
|
||||||
|
</Text>
|
||||||
|
</HStack>
|
||||||
|
|
||||||
|
<HStack>
|
||||||
|
<RepetitionSvg />
|
||||||
|
<Text color="$gray200" ml="$2">
|
||||||
|
12 repetições
|
||||||
|
</Text>
|
||||||
|
</HStack>
|
||||||
|
</HStack>
|
||||||
|
|
||||||
|
<Button title="Marcar como realizado" />
|
||||||
|
</Box>
|
||||||
|
</VStack>
|
||||||
|
</ScrollView>
|
||||||
</VStack>
|
</VStack>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue