File tree 3 files changed +69
-0
lines changed
3 files changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+ import { ScrollView } from "react-native-gesture-handler" ;
3
+
4
+ import LastChat from "../../components/LastChat" ;
5
+ import { Logo } from "../Home/style" ;
6
+ import {
7
+ ChatSection ,
8
+ MyPageLayout ,
9
+ Stat ,
10
+ StatisticsSection ,
11
+ SubTitle ,
12
+ } from "./style" ;
13
+
14
+ const MyPage = ( ) => {
15
+ return (
16
+ < MyPageLayout >
17
+ < Logo />
18
+ < StatisticsSection >
19
+ < SubTitle > 전체 통계</ SubTitle >
20
+ < Stat />
21
+ </ StatisticsSection >
22
+ < ChatSection >
23
+ < SubTitle > 지난 대화 목록</ SubTitle >
24
+ < LastChat />
25
+ < LastChat />
26
+ < LastChat />
27
+ </ ChatSection >
28
+ </ MyPageLayout >
29
+ ) ;
30
+ } ;
31
+
32
+ export default MyPage ;
Original file line number Diff line number Diff line change
1
+ export { default } from "./MyPage" ;
Original file line number Diff line number Diff line change
1
+ import { View } from "react-native" ;
2
+ import styled from "styled-components/native" ;
3
+
4
+ import LogoSVG from "../../assets/image/logo.svg" ;
5
+ import StatSVG from "../../assets/image/stat.svg" ;
6
+
7
+ export const MyPageLayout = styled . ScrollView `
8
+ width: 100%;
9
+ height: 100%;
10
+ background-color: #fff;
11
+ padding: 12% 4% 0 4%;
12
+ ` ;
13
+
14
+ export const Logo = styled ( LogoSVG ) `
15
+ margin-bottom: 12%;
16
+ ` ;
17
+
18
+ export const StatisticsSection = styled . View `
19
+ position: relative;
20
+ height: 25%;
21
+ margin-top: 5%;
22
+ /* background-color: indianred; */
23
+ ` ;
24
+
25
+ export const SubTitle = styled . Text `
26
+ margin-bottom: 16px;
27
+ font-weight: bold;
28
+ font-size: 18px;
29
+ line-height: 22px;
30
+ ` ;
31
+
32
+ export const Stat = styled ( StatSVG ) `` ;
33
+
34
+ export const ChatSection = styled . View `
35
+ margin-top: 5%;
36
+ ` ;
You can’t perform that action at this time.
0 commit comments