style: added ParticipantDeatails component
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import StackHeader from "@/components/ui/StackHeader";
|
||||
import { useLocalSearchParams, router } from "expo-router";
|
||||
import ShowInfo from "@/components/ui/ShowInfo";
|
||||
import ParticipantDetails from "@/components/ParticipantDeatails";
|
||||
import React from "react";
|
||||
import {
|
||||
Dimensions,
|
||||
@@ -200,16 +201,12 @@ export default function ShowDetails() {
|
||||
</View>
|
||||
</>
|
||||
) : (
|
||||
<View style={styles.participantsDetailsContainer}>
|
||||
<Text style={styles.detailTitle}>Beschreibung:</Text>
|
||||
<Text style={styles.detailLabel}>{description}</Text>
|
||||
<Text style={styles.detailTitle}>Konzept:</Text>
|
||||
<Text style={styles.detailLabel}>{concept}</Text>
|
||||
<Text style={styles.detailTitle}>Genres:</Text>
|
||||
<Text style={styles.detailLabel}>{genres}</Text>
|
||||
<Text style={styles.detailTitle}>Produktion:</Text>
|
||||
<Text style={styles.detailLabel}>{streamingService}</Text>
|
||||
</View>
|
||||
<ParticipantDetails
|
||||
description={description as string}
|
||||
concept={concept as string}
|
||||
genres={genres as string}
|
||||
streamingService={streamingService as string}
|
||||
/>
|
||||
)}
|
||||
</ScrollView>
|
||||
</View>
|
||||
|
||||
55
components/ParticipantDeatails.tsx
Normal file
55
components/ParticipantDeatails.tsx
Normal file
@@ -0,0 +1,55 @@
|
||||
import { View, Text, StyleSheet } from "react-native";
|
||||
|
||||
type ParticipantDetailsProps = {
|
||||
description: string;
|
||||
concept: string;
|
||||
genres: string;
|
||||
streamingService: string;
|
||||
};
|
||||
|
||||
const ParticipantDetails = ({
|
||||
description,
|
||||
concept,
|
||||
genres,
|
||||
streamingService,
|
||||
}: ParticipantDetailsProps) => {
|
||||
return (
|
||||
<View style={styles.participantsDetailsContainer}>
|
||||
<Text style={styles.detailTitle}>Beschreibung:</Text>
|
||||
<Text style={styles.detailLabel}>{description}</Text>
|
||||
<Text style={styles.detailTitle}>Konzept:</Text>
|
||||
<Text style={styles.detailLabel}>{concept}</Text>
|
||||
<Text style={styles.detailTitle}>Genres:</Text>
|
||||
<Text style={styles.detailLabel}>{genres}</Text>
|
||||
<Text style={styles.detailTitle}>Produktion:</Text>
|
||||
<Text style={styles.detailLabel}>{streamingService}</Text>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
participantsDetailsContainer: {
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
backgroundColor: "hsl(221, 39%, 2%)",
|
||||
},
|
||||
detailTitle: {
|
||||
color: "hsl(0, 0%, 100%)",
|
||||
fontSize: 14,
|
||||
fontWeight: "bold",
|
||||
marginTop: 10,
|
||||
marginLeft: 20,
|
||||
marginBottom: 5,
|
||||
},
|
||||
detailLabel: {
|
||||
color: "hsl(0, 0%, 80%)",
|
||||
fontSize: 14,
|
||||
lineHeight: 20,
|
||||
width: "90%",
|
||||
fontWeight: "300",
|
||||
marginLeft: 20,
|
||||
marginTop: 5,
|
||||
},
|
||||
});
|
||||
|
||||
export default ParticipantDetails;
|
||||
Reference in New Issue
Block a user