11import React from 'react' ;
22import { Pressable , Text , View } from 'react-native' ;
33import { Feather } from '@expo/vector-icons' ;
4+ import { SafeAreaView } from 'react-native-safe-area-context' ;
45
56interface Props {
67 onComplete : ( ) => void ;
78}
89
910const Onboarding : React . FC < Props > = ( { onComplete } ) => {
1011 return (
11- < View className = "absolute inset-0 z-10 items-center justify-center bg-stone-200 px-5 py-6" >
12- < View className = "w-full max-w-xl rounded-2xl bg-white p-5 shadow-2xl shadow-black/10" >
13- < View className = "items-center space-y-3.5" >
14- < View className = "h-14 w-14 items-center justify-center rounded-full bg-gray-100" >
15- < Feather name = "star" size = { 26 } color = "#111827" />
16- </ View >
17- < Text className = "text-2xl font-bold text-gray-900" > 하루 일력</ Text >
18- < Text className = "text-center text-sm leading-5 text-gray-500" >
19- 매일 아침, 종이 일력을 뜯듯 당신의 하루를 확인해보세요.
20- </ Text >
12+ < SafeAreaView edges = { [ 'top' ] } className = "flex-1 bg-white p-4" >
13+ < View >
14+ < View className = "w-full rounded-2xl bg-white gap-8" >
15+ < View className = "items-center gap-6" >
16+ < View className = "h-14 w-14 items-center justify-center rounded-full bg-gray-100" >
17+ < Feather name = "star" size = { 26 } color = "#111827" />
18+ </ View >
19+ < Text className = "text-4xl font-bold text-gray-900" > 하루 일력</ Text >
20+ < Text className = "text-center text-lg leading-5 text-gray-500" >
21+ 매일 아침, 종이 일력을 뜯듯 당신의 하루를 확인해보세요.
22+ </ Text >
2123
22- < View className = "w-full space-y-3 rounded-xl border border-gray-200 bg-gray-50 p-4" >
23- < GuideItem
24- icon = "scissors"
25- title = "다음 날로 넘기기"
26- text = "상단을 눌러 종이를 뜯듯 내일로 넘어가요."
27- />
28- < GuideItem
29- icon = "calendar"
30- title = "오늘의 총평"
31- text = "큰 날짜 아래 핵심 운세를 바로 볼 수 있어요."
32- />
33- < GuideItem
34- icon = "chevron-down"
35- title = "상세 운세"
36- text = "스크롤로 재물·애정·성공운을 확인하세요."
37- />
24+ < View className = "w-full rounded-xl border border-gray-200 bg-gray-50 p-4 gap-8" >
25+ < GuideItem
26+ icon = "scissors"
27+ title = "다음 날로 넘기기"
28+ text = "상단을 눌러 종이를 뜯듯 내일로 넘어가요."
29+ />
30+ < GuideItem
31+ icon = "calendar"
32+ title = "오늘의 총평"
33+ text = "큰 날짜 아래 핵심 운세를 바로 볼 수 있어요."
34+ />
35+ < GuideItem
36+ icon = "chevron-down"
37+ title = "상세 운세"
38+ text = "스크롤로 재물·애정·성공운을 확인하세요."
39+ />
40+ </ View >
3841 </ View >
39- </ View >
4042
41- < Pressable
42- className = "mt-5 rounded-xl bg-gray-900 py-3.5 active:opacity-90"
43- onPress = { onComplete }
44- accessibilityLabel = "온보딩 완료"
45- >
46- < Text className = "text-center text-lg font-bold text-white" > 시작하기</ Text >
47- </ Pressable >
43+ < Pressable
44+ className = "mt-5 rounded-xl bg-gray-900 py-3.5 active:opacity-90"
45+ onPress = { onComplete }
46+ accessibilityLabel = "온보딩 완료"
47+ >
48+ < Text className = "text-center text-lg font-bold text-white" > 시작하기</ Text >
49+ </ Pressable >
50+ </ View >
4851 </ View >
49- </ View >
52+ </ SafeAreaView >
5053 ) ;
5154} ;
5255
@@ -59,11 +62,11 @@ const GuideItem = ({
5962 title : string ;
6063 text : string ;
6164} ) => (
62- < View className = "flex-row space-x-3 " >
63- < Feather name = { icon } size = { 16 } color = "#6b7280" style = { { marginTop : 2 } } />
65+ < View className = "flex-row gap-4 items-center " >
66+ < Feather name = { icon } size = { 25 } color = "#6b7280" style = { { marginTop : 2 } } />
6467 < View className = "flex-1" >
65- < Text className = "text-sm font-bold text-gray-900" > { title } </ Text >
66- < Text className = "mt-0.5 text-xs leading-5 text-gray-500" > { text } </ Text >
68+ < Text className = "text-xl font-bold text-gray-900" > { title } </ Text >
69+ < Text className = "mt-0.5 text-lg leading-5 text-gray-500" > { text } </ Text >
6770 </ View >
6871 </ View >
6972) ;
0 commit comments