-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.js
170 lines (156 loc) · 4.58 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
import 'react-native-gesture-handler';
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { StyleSheet, Text, View, Button, SafeAreaView, Alert ,Image, TouchableOpacity} from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import signUpScreen from './src/signUp';
import profileScreen from './src/setProfile';
import interestScreen from './src/setInterest';
import MainScreen from './src/Mainpage';
import calculateScreen from './src/calculate';
import privateScreen from './src/privateStatus';
import completeScreen from './src/complete';
import welcomeScreen from './src/welcome';
import detailScreen from './src/detail';
// 업체 회원 페이지
import recruitScreen from './src/business/Recruit.js';
import logo from './src/images/logoWhite.png';
const colors = {
blue: "#0036d5",
flatBlueSkyLight: "#fdfeff",
signatureBlue: "#0047cc",
veryLightPink: "#d0d0d0",
lightGray: "#ededed",
white: "#ffffff",
textMiscBtnCenterBlackStyle: "#0b0b0b",
veryLightPinkTwo: "#b7b7b7",
signatureBlue2: "rgba(0, 71, 204, 0.2)",
colorPrimary500: "#00d5a7"
};
const loginCopy = {
width: 331,
height: 55,
borderRadius: 27.6,
borderStyle: "solid",
borderWidth: 1.7,
borderColor: colors.white,
marginTop: 200
};
const login = {
width: 331,
height: 55,
borderRadius: 27.6,
borderStyle: "solid",
borderWidth: 1.7,
borderColor: colors.white,
backgroundColor: colors.white,
marginTop: 15
};
const signUpLayer = {
fontFamily: basicFont,
fontSize: 17.7,
fontWeight: "bold",
fontStyle: "normal",
letterSpacing: 0.44,
textAlign: "center",
color: colors.white,
paddingTop: 15
};
const loginLayer = {
fontFamily: basicFont,
fontSize: 17.7,
fontWeight: "bold",
fontStyle: "normal",
letterSpacing: 0.44,
textAlign: "center",
color: colors.blue,
paddingTop: 15
};
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: colors.signatureBlue,
alignItems: 'center',
},
logoContainer:{
width: 200,
height: 200,
marginTop: 107
},
signUp: loginCopy,
signUpLayer : signUpLayer,
loginLayer : loginLayer,
login: login,
});
function HomeScreen({navigation}) {
return (
<View style={styles.container}>
<Image style={styles.logoContainer} source={logo} />
<TouchableOpacity
style={styles.signUp}
onPress={() => navigation.navigate('signUp')}>
<Text style={styles.signUpLayer}>회원가입</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.login}
onPress={() => navigation.navigate('main')}>
<Text style={styles.loginLayer}>로그인</Text>
</TouchableOpacity>
<StatusBar style="auto" />
</View>
);
}
const Stack = createStackNavigator();
export default function App() {
return ( <NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="home" component={HomeScreen} options={{headerShown:false, headerTitle:""}} />
<Stack.Screen name="signUp" component={signUpScreen}
options={{
headerTitle:"회원가입",
headerBackTitle:" ",
}}/>
<Stack.Screen name="setProfile" component={profileScreen}
options={{
headerTitle:"회원가입",
headerBackTitle:" ",
}}/>
<Stack.Screen name="setInterest" component={interestScreen}
options={{
headerTitle:"회원가입",
headerBackTitle:" ",
}}/>
<Stack.Screen name="main" component={MainScreen}
options={{
headerShown:false
}} />
<Stack.Screen name="recruit" component={recruitScreen}
options={{
headerTitle:"모집하기",
headerBackTitle:" ",
}}/>
<Stack.Screen name="calculate" component={calculateScreen}
options={{
headerShown:false
}}/>
<Stack.Screen name="private" component={privateScreen}
options={{
headerShown:false
}} />
<Stack.Screen name="complete" component={completeScreen}
options={{
headerShown:false
}} />
<Stack.Screen name="welcome" component={welcomeScreen}
options={{
headerShown:false
}} />
<Stack.Screen name="detail" component={detailScreen}
options={{
headerShown:false
}} />
</Stack.Navigator>
</NavigationContainer>
);
}
export const basicFont = require('./assets/fonts/NotoSansCJKkr-Bold.otf');