-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
39 lines (34 loc) · 1.3 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { useState } from "react";
import { StatusBar } from "expo-status-bar";
import { View, Text, Pressable } from "react-native";
import { landingStyles } from "./styles";
//components
import LandingForm from "./components/LandingForm";
import ModalTemplate from "./components/ModalTemplate";
import HostsLandingInfo from "./components/HostsLandingInfo";
export default function App() {
const [modalShown, setModalShown] = useState(false);
return (
<View style={landingStyles.container}>
<Text style={landingStyles.h1}>Ufarms</Text>
<Text style={landingStyles.h2}>Grow Your Own Crops</Text>
<Text style={landingStyles.h3}>
Rent backyard farm plots in your Denver neighborhood
</Text>
<LandingForm />
<Text style={landingStyles.h2}>Info:</Text>
<View style={landingStyles.btnsContainer}>
<Pressable onPress={() => alert("Button for farmers")}>
<Text style={landingStyles.h3}>For Farmers</Text>
</Pressable>
<Pressable onPress={() => setModalShown(true)}>
<Text style={landingStyles.h3}>For Hosts</Text>
</Pressable>
</View>
<StatusBar style="auto" />
<ModalTemplate modalShown={modalShown} setModalShown={setModalShown}>
<HostsLandingInfo />
</ModalTemplate>
</View>
);
}