style: added new screens and designs
This commit is contained in:
@@ -7,6 +7,7 @@ type ShowCardProps = {
|
||||
liveBadgeText?: string;
|
||||
liveBadgeContainerStyle?: object;
|
||||
genres: string[];
|
||||
title: string;
|
||||
onPress?: () => void;
|
||||
};
|
||||
|
||||
@@ -17,6 +18,7 @@ const ShowCard = ({
|
||||
liveBadgeContainerStyle,
|
||||
genres,
|
||||
onPress,
|
||||
title,
|
||||
}: ShowCardProps) => {
|
||||
return (
|
||||
<TouchableOpacity
|
||||
@@ -43,6 +45,18 @@ const ShowCard = ({
|
||||
<Text style={styles.liveBadgeText}>{liveBadgeText}</Text>
|
||||
</View>
|
||||
)}
|
||||
|
||||
<View style={styles.titleSection}>
|
||||
<Text
|
||||
style={{
|
||||
color: "white",
|
||||
fontWeight: "bold",
|
||||
fontSize: 12,
|
||||
}}
|
||||
>
|
||||
{title}
|
||||
</Text>
|
||||
</View>
|
||||
<View style={styles.genreSection}>
|
||||
{genres.map((genre) => (
|
||||
<Text key={genre} style={styles.genreLabel}>
|
||||
@@ -98,7 +112,7 @@ const styles = StyleSheet.create({
|
||||
},
|
||||
genreSection: {
|
||||
position: "absolute",
|
||||
bottom: 12,
|
||||
bottom: 15,
|
||||
left: 20,
|
||||
flexDirection: "row",
|
||||
alignItems: "center",
|
||||
@@ -116,6 +130,18 @@ const styles = StyleSheet.create({
|
||||
backgroundColor: "rgba(255, 255, 255, 1)",
|
||||
overflow: "hidden",
|
||||
},
|
||||
titleSection: {
|
||||
width: "auto",
|
||||
height: 45,
|
||||
paddingHorizontal: 20,
|
||||
backgroundColor: "rgba(0, 0, 0, 0.6)",
|
||||
position: "absolute",
|
||||
top: 50,
|
||||
justifyContent: "center",
|
||||
alignItems: "flex-start",
|
||||
borderTopRightRadius: 15,
|
||||
borderBottomRightRadius: 15,
|
||||
},
|
||||
});
|
||||
|
||||
export default ShowCard;
|
||||
|
||||
Reference in New Issue
Block a user