mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2024-11-17 06:19:25 +08:00
Homepage and container improvements
This commit is contained in:
parent
9e8317e7c0
commit
d7710478b6
3 changed files with 16 additions and 23 deletions
|
@ -10,14 +10,7 @@ export interface props {
|
||||||
export default function AnimatedContainer(props: props) {
|
export default function AnimatedContainer(props: props) {
|
||||||
return (
|
return (
|
||||||
<MotiScrollView
|
<MotiScrollView
|
||||||
contentContainerStyle={{
|
contentContainerStyle={styles.container}
|
||||||
alignItems: "center",
|
|
||||||
alignSelf: "center",
|
|
||||||
justifyContent: "flex-start",
|
|
||||||
display: "flex",
|
|
||||||
flexDirection: "column",
|
|
||||||
flex: 1,
|
|
||||||
}}
|
|
||||||
from={{
|
from={{
|
||||||
borderRadius: 0,
|
borderRadius: 0,
|
||||||
backgroundColor: colors.orange_2,
|
backgroundColor: colors.orange_2,
|
||||||
|
|
|
@ -52,13 +52,17 @@ export default function Home() {
|
||||||
return <MapView style={styles.map} initialRegion={ustpCoords} />;
|
return <MapView style={styles.map} initialRegion={ustpCoords} />;
|
||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<Text style={styles.text_white_small}>
|
<View>
|
||||||
You must be within 1km of USTP to use Stud-E{"\n"}
|
<Text style={styles.text_white_medium}>
|
||||||
{dist}km away from USTP {"\n"}
|
You must be within 1km of USTP to use Stud-E{"\n"}
|
||||||
User Location:
|
</Text>
|
||||||
{"\n"} Latitude {location.coords.latitude}
|
<Text style={styles.text_white_small}>
|
||||||
{"\n"} Longitude {location.coords.longitude}
|
{dist}km away from USTP {"\n"}
|
||||||
</Text>
|
User Location:
|
||||||
|
{"\n"} Latitude {location.coords.latitude}
|
||||||
|
{"\n"} Longitude {location.coords.longitude}
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -35,18 +35,13 @@ const styles = StyleSheet.create({
|
||||||
width: "100%",
|
width: "100%",
|
||||||
},
|
},
|
||||||
container: {
|
container: {
|
||||||
flex: 1,
|
|
||||||
marginVertical: "5%",
|
|
||||||
width: "92%",
|
|
||||||
borderRadius: 15,
|
|
||||||
// backgroundColor: colors.blue_2,
|
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
alignSelf: "center",
|
alignSelf: "center",
|
||||||
paddingTop: 32,
|
justifyContent: "center",
|
||||||
paddingBottom: 32,
|
|
||||||
justifyContent: "flex-start",
|
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
|
flex: 1,
|
||||||
|
paddingHorizontal: 4,
|
||||||
},
|
},
|
||||||
flex_row: {
|
flex_row: {
|
||||||
display: "flex",
|
display: "flex",
|
||||||
|
@ -57,6 +52,7 @@ const styles = StyleSheet.create({
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
|
justifyContent: "center",
|
||||||
},
|
},
|
||||||
text_white_tiny: {
|
text_white_tiny: {
|
||||||
color: colors.text_default,
|
color: colors.text_default,
|
||||||
|
|
Loading…
Reference in a new issue