1
1
import React , { useState } from 'react' ;
2
2
import { View , Text , StyleSheet , TouchableOpacity , ScrollView , Image } from 'react-native' ;
3
- import { useNavigation } from '@react-navigation/native' ;
4
- import { BarButton } from "../../components/Bar-Button" ;
3
+ import { Link } from "expo-router" ;
4
+ import { BarButton } from "../../components/Bar-Button" ;
5
5
import { globalStyles } from '../../styles/global' ;
6
6
7
7
const ParentDashboard = ( ) => {
8
- const navigation = useNavigation ( ) ;
9
-
10
8
const [ selectedDate , setSelectedDate ] = useState ( '' ) ;
11
9
12
10
return (
13
11
< ScrollView contentContainerStyle = { globalStyles . container } >
14
12
< View style = { [ globalStyles . container , { backgroundColor : '#F3F4F6' } ] } >
13
+ < Link href = "/child/mypage" style = { styles . profileImageContainer } >
14
+ < Image
15
+ source = { require ( '../../assets/face.svg' ) }
16
+ style = { styles . profileImage }
17
+ />
18
+ </ Link >
19
+
15
20
< View style = { globalStyles . header } >
16
21
< Text style = { [ globalStyles . subtitle ] } > 어렵지 않은 학습</ Text >
17
22
< Text style = { [ globalStyles . description ] } > 상황 대처, 게임을 통한 학습으로 지능을 향상시켜요. </ Text >
18
23
</ View >
19
24
20
25
< View style = { [ styles . menu , { marginTop : - 40 } ] } >
21
- < TouchableOpacity style = { styles . menuItem } onPress = { ( ) => navigation . navigate ( 'guardian/result' ) } >
26
+ < TouchableOpacity style = { styles . menuItem } >
22
27
< View style = { styles . menuItemContent } >
23
28
</ View >
24
29
</ TouchableOpacity >
25
30
< BarButton
26
31
title = { "대화형 상황 대처 학습" }
27
32
explain = { "AI와 대화하며 학습력 UP UP" }
28
- toLink = { "/child/training/sitchoice" }
33
+ toLink = "/child/training/sitchoice"
29
34
imgLink = { require ( "../../assets/speak.png" ) }
30
35
/>
31
36
< BarButton
32
37
title = { "선택형 상황 대처 학습" }
33
38
explain = { "사지선다 문제로 질문에 맞는 답변 선택" }
34
- toLink = { "/child/training/choiceexample" }
39
+ toLink = "/child/training/choiceexample"
35
40
imgLink = { require ( "../../assets/check.png" ) }
36
41
/>
37
42
< BarButton
38
43
title = { "카드 뒤집기" }
39
44
explain = { "같은 카드를 찾으며 기억력 상승" }
40
- toLink = { "/child/training/card" }
45
+ toLink = "/child/training/card"
41
46
imgLink = { require ( "../../assets/cardgame.png" ) }
42
47
/>
43
48
< BarButton
44
49
title = { "숨은 과일 찾기" }
45
50
explain = { "숨은 과일을 찾으며 관찰력을 높여요." }
46
- toLink = { "/child/training/memory" }
51
+ toLink = "/child/training/memory"
47
52
imgLink = { require ( "../../assets/fruit.svg" ) }
48
53
/>
49
54
</ View >
@@ -65,9 +70,17 @@ const styles = StyleSheet.create({
65
70
alignItems : 'left' ,
66
71
fontFamily : 'Pretendard' ,
67
72
} ,
68
-
69
-
70
-
73
+ profileImageContainer : {
74
+ position : 'absolute' ,
75
+ top : 76 ,
76
+ right : 30 ,
77
+ zIndex : 10 ,
78
+ } ,
79
+ profileImage : {
80
+ width : 32 ,
81
+ height : 32 ,
82
+ borderRadius : 20 ,
83
+ } ,
71
84
progressBarContainer : {
72
85
width : 320 ,
73
86
height : 38 ,
0 commit comments