-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from AudacityMusic/homescreen
Update HomeScreen.js
- Loading branch information
Showing
1 changed file
with
71 additions
and
4 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 |
---|---|---|
@@ -1,13 +1,80 @@ | ||
import React from "react"; | ||
import { StyleSheet, Text } from "react-native"; | ||
import { StyleSheet, Text, Image, View, Pressable } from "react-native"; | ||
|
||
export default function HomeScreen() { | ||
return ( | ||
// TODO | ||
<Text>Home</Text> | ||
<View style={styles.container}> | ||
<Image source={require("./../assets/logo.png")} style={styles.logo} /> | ||
<Pressable style={styles.volunteer}> | ||
<Text style={styles.buttonText}>Volunteer</Text> | ||
</Pressable> | ||
<Pressable style={styles.request}> | ||
<Text style={[styles.buttonText, { fontSize: 24 }]}> | ||
Request a Concert | ||
</Text> | ||
</Pressable> | ||
<Pressable> | ||
<Text style={styles.smallButton}>Donate</Text> | ||
</Pressable> | ||
<Pressable> | ||
<Text style={styles.smallButton}>Visit our websites</Text> | ||
</Pressable> | ||
</View> | ||
); | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
// TODO | ||
container: { | ||
display: "flex", | ||
flex: 1, | ||
flexDirection: "column", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
columnGap: 24, | ||
}, | ||
logo: { | ||
flexDirection: "column", | ||
justifyContent: "center", | ||
width: 387, | ||
height: 208, | ||
}, | ||
volunteer: { | ||
flexDirection: "column", | ||
justifyContent: "center", | ||
borderRadius: 15, | ||
borderWidth: 1, | ||
width: 267, | ||
height: 74, | ||
backgroundColor: "#4B5588", | ||
marginBottom: 24, | ||
shadowColor: "black", | ||
shadowOpacity: 0.25, | ||
shadowOffset: { width: 0, height: 4 }, | ||
shadowRadius: 4, | ||
}, | ||
buttonText: { | ||
textAlign: "center", | ||
fontSize: 36, | ||
fontWeight: "medium", | ||
color: "white", | ||
}, | ||
request: { | ||
flexDirection: "column", | ||
justifyContent: "center", | ||
borderRadius: 15, | ||
borderWidth: 1, | ||
width: 267, | ||
height: 74, | ||
backgroundColor: "#000000", | ||
marginBottom: 24, | ||
shadowColor: "black", | ||
shadowOpacity: 0.25, | ||
shadowOffset: { width: 0, height: 4 }, | ||
shadowRadius: 4, | ||
}, | ||
smallButton: { | ||
borderBottomWidth: 2, | ||
fontSize: 24, | ||
marginBottom: 10, | ||
}, | ||
}); |