generated from t3-oss/create-t3-turbo
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add event screen with event card
- Loading branch information
1 parent
ff378dd
commit 8c826ae
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import React from 'react'; | ||
import { View, Text, Image, StyleSheet } from 'react-native'; | ||
|
||
const EventCard = ({ city, groupName, imageSource }) => { | ||
return ( | ||
<View style={styles.cardContainer}> | ||
<Image source={imageSource} style={styles.image} /> | ||
<View style={styles.textContainer}> | ||
<Text style={styles.cityText}>{city} : </Text> | ||
<Text style={styles.groupText}>{groupName}</Text> | ||
</View> | ||
</View> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
cardContainer: { | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
backgroundColor: '#b9f8f4', | ||
borderRadius: 20, | ||
marginBottom: 25, | ||
padding: 15, | ||
}, | ||
image: { | ||
width: 45, | ||
height: 45, | ||
borderRadius: 40, | ||
marginRight: 20, | ||
}, | ||
textContainer: { | ||
flex: 1, | ||
flexDirection:"row", | ||
}, | ||
cityText: { | ||
fontSize: 22, | ||
color: '#fff', | ||
fontWeight: 'bold', | ||
}, | ||
groupText: { | ||
fontSize: 22, | ||
color: '#fff', | ||
fontWeight: 'bold', | ||
}, | ||
}); | ||
|
||
export default EventCard; |