diff --git a/front/components/BigActionButton.tsx b/front/components/BigActionButton.tsx index 1bde532..fd3d364 100644 --- a/front/components/BigActionButton.tsx +++ b/front/components/BigActionButton.tsx @@ -3,6 +3,7 @@ import { Box, Center, Heading, + View, Image, Text, Pressable, @@ -11,7 +12,6 @@ import { Row, PresenceTransition, } from "native-base"; -import { FontAwesome5 } from "@expo/vector-icons"; import { StyleProp, ViewStyle } from "react-native"; type BigActionButtonProps = { @@ -24,8 +24,6 @@ type BigActionButtonProps = { onPress: () => void; }; -// a button with a picture in the background a title and a subtitle -// on hover the picture is zoomed in and the title and subtitle are displayed const BigActionButton = ({ title, subtitle, @@ -36,6 +34,7 @@ const BigActionButton = ({ onPress, }: BigActionButtonProps) => { const screenSize = useBreakpointValue({ base: "small", md: "big" }); + return ( {({ isHovered, isPressed }) => { @@ -69,22 +68,21 @@ const BigActionButton = ({ width: "100%", height: "100%", resizeMode: "cover", - borderRadius: 10, }} /> - - - - - {title} - - - + + + + {title} + + {isHovered && ( - + {subtitle}