-
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: event & club preview components (#1034)
Co-authored-by: Alder Whiteford <[email protected]>
- Loading branch information
1 parent
b731b2e
commit ab2b9e2
Showing
44 changed files
with
1,307 additions
and
496 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
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
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
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
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
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 |
---|---|---|
@@ -1,47 +1,7 @@ | ||
import React from 'react'; | ||
import { Pressable, StyleSheet } from 'react-native'; | ||
|
||
import { router } from 'expo-router'; | ||
|
||
import { Box, Text } from '@/src/app/(design-system)'; | ||
import { EventCard } from '@/src/app/(design-system)/components/EventCard'; | ||
|
||
const HomePage = () => { | ||
const item = { | ||
name: 'Your Event Name', | ||
host: 'Your Club Name', | ||
start_time: new Date(), | ||
end_time: new Date() | ||
}; | ||
|
||
return ( | ||
<Box style={styles.container}> | ||
<Text variant="body-1">Home</Text> | ||
<Pressable onPress={() => router.push(`/event/1`)}> | ||
<EventCard | ||
variant="small" | ||
event={item.name} | ||
club={item.host} | ||
eventId="1" | ||
startTime={item.start_time} | ||
endTime={item.end_time} | ||
image="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSLF3ord7lnV_5Je-pC2AUgUiesHNPcZlpI7A&s" | ||
/> | ||
</Pressable> | ||
</Box> | ||
); | ||
return <></>; | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
alignItems: 'center', | ||
justifyContent: 'center' | ||
}, | ||
contentContainer: { | ||
flex: 1, | ||
alignItems: 'center' | ||
} | ||
}); | ||
|
||
export default HomePage; |
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
Oops, something went wrong.