Skip to content

Commit

Permalink
Merge pull request #12 from AudacityMusic/homescreen
Browse files Browse the repository at this point in the history
Update HomeScreen.js
  • Loading branch information
TenType authored Jun 22, 2024
2 parents 6917245 + 12e466c commit fda0bbe
Showing 1 changed file with 71 additions and 4 deletions.
75 changes: 71 additions & 4 deletions src/screens/HomeScreen.js
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,
},
});

0 comments on commit fda0bbe

Please sign in to comment.