-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
147 lines (138 loc) · 3.91 KB
/
App.js
File metadata and controls
147 lines (138 loc) · 3.91 KB
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
import React from 'react';
import { StyleSheet, View, Text, SafeAreaView, TouchableOpacity, Platform } from 'react-native';
import { LinearGradient } from 'expo-linear-gradient';
import { Ionicons } from '@expo/vector-icons';
const App = () => {
return (
<SafeAreaView style={styles.container}>
<View style={styles.header}>
<Text style={styles.headerTitle}>파밍</Text>
<Ionicons name="notifications-outline" size={24} color="black" />
</View>
<View style={styles.mainContent}>
<LinearGradient
colors={['#E3EAFB', '#FFFFFF']}
style={styles.circleContainer}
>
<View style={styles.circle}>
<Text style={styles.circleText}>80%</Text>
</View>
</LinearGradient>
<View style={styles.infoContainer}>
<Text style={styles.infoText}>습도: 55%</Text>
<Text style={styles.infoText}>일조량: 10시간</Text>
</View>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>내 작물 바로가기</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>경보: 태풍경보</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.button}>
<Text style={styles.buttonText}>공지사항</Text>
</TouchableOpacity>
</View>
<View style={styles.footer}>
<TouchableOpacity style={styles.footerItem}>
<Ionicons name="home" size={24} color="#0E6CA5" />
<Text style={styles.footerText}>홈</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.footerItem}>
<Ionicons name="chatbubble-outline" size={24} color="black" />
<Text style={styles.footerText}>채팅</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.footerItem}>
<Ionicons name="people-outline" size={24} color="black" />
<Text style={styles.footerText}>커뮤니티</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.footerItem}>
<Ionicons name="person-outline" size={24} color="black" />
<Text style={styles.footerText}>마이</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.footerItem}>
<Ionicons name="settings-outline" size={24} color="black" />
<Text style={styles.footerText}>설정</Text>
</TouchableOpacity>
</View>
</SafeAreaView>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#FFFFFF',
paddingTop: Platform.OS === 'android' ? 25 : 0,
},
header: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
padding: 16,
},
headerTitle: {
fontSize: 20,
fontWeight: 'bold',
},
mainContent: {
flex: 1,
alignItems: 'center',
padding: 16,
},
circleContainer: {
width: 200,
height: 200,
borderRadius: 100,
justifyContent: 'center',
alignItems: 'center',
marginBottom: 20,
},
circle: {
width: 180,
height: 180,
borderRadius: 90,
backgroundColor: '#FFFFFF',
justifyContent: 'center',
alignItems: 'center',
borderWidth: 10,
borderColor: '#0E6CA5',
},
circleText: {
fontSize: 40,
fontWeight: 'bold',
color: '#0E6CA5',
},
infoContainer: {
marginBottom: 20,
},
infoText: {
fontSize: 16,
marginBottom: 8,
},
button: {
backgroundColor: '#E3EAFB',
padding: 12,
borderRadius: 8,
width: '100%',
alignItems: 'center',
marginBottom: 12,
},
buttonText: {
fontSize: 16,
color: '#000000',
},
footer: {
flexDirection: 'row',
justifyContent: 'space-around',
borderTopWidth: 1,
borderTopColor: '#E3EAFB',
paddingVertical: 8,
},
footerItem: {
alignItems: 'center',
},
footerText: {
fontSize: 12,
marginTop: 4,
},
});
export default App;