Skip to content

Commit

Permalink
Merge pull request #33 from BOBpossible/feat/#25_My
Browse files Browse the repository at this point in the history
Feat/#25 my
  • Loading branch information
yejinleee authored Jul 3, 2022
2 parents 8bb707e + 4363317 commit 67b3a64
Show file tree
Hide file tree
Showing 38 changed files with 551 additions and 179 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,9 @@ buck-out/


# 인증 키 등
.env
.env



# 디자인시스템
zDesign.txt
112 changes: 112 additions & 0 deletions src/assets/DesignSystem.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
import {StyleSheet} from 'react-native';
// import {DesignSystem} from '../../assets/DesignSystem';

export const DesignSystem = StyleSheet.create({
centerArrange: {
alignItems: 'center',
justifyContent: 'center',
},
h1SB: {
fontSize: 24,
fontFamily: 'Pretendard-SemiBold',
},
h2SB: {
fontSize: 17,
fontFamily: 'Pretendard-SemiBold',
},
h3SB: {
fontSize: 14,
fontFamily: 'Pretendard-SemiBold',
},
subtitle1: {
fontSize: 23,
fontFamily: 'Pretendard-SemiBold',
},
subtitle2: {
fontSize: 19,
fontFamily: 'Pretendard-Medium',
},
title1SB: {
fontSize: 18,
fontFamily: 'Pretendard-SemiBold',
},
title2Regular: {
fontSize: 16,
fontFamily: 'Pretendard-Regular',
},
title3SB: {
fontSize: 16,
fontFamily: 'Pretendard-SemiBold',
},
title4Md: {
fontSize: 16,
fontFamily: 'Pretendard-Medium',
},
body1Lt: {
fontSize: 16,
fontFamily: 'Pretendard-Light',
},
body2Lt: {
fontSize: 14,
fontFamily: 'Pretendard-Light',
},
caption1Lt: {
fontSize: 12,
fontFamily: 'Pretendard-Light',
},
caption2Lt: {
fontSize: 10,
fontFamily: 'Pretendard-Light',
},
grey1: {
color: '#FCFCFC',
},
grey2: {
color: '#F5F5F5',
},
grey3: {
color: '#EFEFEF',
},
grey4: {
color: '#E8E8E8',
},
grey5: {
color: '#DFDFDF',
},
grey6: {
color: '#C8C8C8',
},
grey7: {
color: '#B7B7B7',
},
grey8: {
color: '#949494',
},
grey9: {
color: '#777777',
},
grey10: {
color: '#616161',
},
grey11: {
color: '#555555',
},
grey12: {
color: '#3F3F3F',
},
grey13: {
color: '#383838',
},
grey14: {
color: '#2A2A2A',
},
grey15: {
color: '#1F1F1F',
},
grey16: {
color: '#1A1A1A',
},
grey17: {
color: '#111111',
},
});
Binary file modified src/assets/images/banks/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/banks/9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 2 additions & 8 deletions src/components/My/MyHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import type {FC} from 'react';
import {StyleSheet, Text, TouchableOpacity, View} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {DesignSystem} from '../../assets/DesignSystem';

export type MyHeaderProps = {
goBack: () => void;
Expand All @@ -18,7 +19,7 @@ export const MyHeader: FC<MyHeaderProps> = ({goBack, title, save}) => {
</View>
</TouchableOpacity>
<View>
<Text style={[styles.headerText]}>{title}</Text>
<Text style={[DesignSystem.title4Md, {color: 'black'}]}>{title}</Text>
</View>
{save !== undefined ? (
<TouchableOpacity onPress={save}>
Expand Down Expand Up @@ -49,13 +50,6 @@ const styles = StyleSheet.create({
alignItems: 'center',
marginLeft: 16,
},
headerText: {
fontSize: 17,
color: 'black',
marginLeft: 16,
marginRight: 16,
// fontWeight: '600',
},
saveButton: {
marginRight: 16,
color: '#6C69FF',
Expand Down
17 changes: 4 additions & 13 deletions src/components/My/MyInquiryListDetails.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import type {FC} from 'react';
import {View, StyleSheet, Text, TouchableOpacity} from 'react-native';
import {DesignSystem} from '../../assets/DesignSystem';

export type MyInquiryDetailsProps = {
title: string;
Expand All @@ -19,11 +20,11 @@ export const MyInquiryDetails: FC<MyInquiryDetailsProps> = ({title, body, date,
<View style={{flex: 1}}>
<TouchableOpacity onPress={handleReviewPress} style={[styles.listDetailsWrap]}>
<View style={[styles.listLeftWrap]}>
<Text style={[styles.titleText, styles.title4Md]}>{title}</Text>
<Text style={[styles.dateText]}>{date.slice(0,4)}-{date.slice(5,7)}-{date.slice(8,10)}</Text>
<Text style={[styles.titleText, DesignSystem.title4Md]}>{title}</Text>
<Text style={[DesignSystem.body2Lt, {color: '#949494'}]}>{date.slice(0,4)}-{date.slice(5,7)}-{date.slice(8,10)}</Text>
</View>
<View>
<Text style={[styles.statusText]}>{status}</Text>
<Text style={[DesignSystem.body1Lt, {color: '#777777'}]}>{status}</Text>
</View>
</TouchableOpacity>
</View>
Expand All @@ -35,11 +36,6 @@ const styles = StyleSheet.create({
fontSize: 16,
fontFamily: 'Pretendard-Medium',
},
dateText: {
color: '#949494',
fontSize: 14,
fontFamily: 'Pretendard-Light',
},
listDetailsWrap: {
flex: 1,
flexDirection: 'row',
Expand All @@ -54,9 +50,4 @@ const styles = StyleSheet.create({
color: '#000000',
marginBottom: 8,
},
statusText: {
color: '#777777',
fontSize: 16,
fontFamily: 'Pretendard-Light',
},
});
8 changes: 2 additions & 6 deletions src/components/My/MyInquiryMakeButton.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, {FC} from 'react';
import {View, StyleSheet, Text, TouchableOpacity} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {DesignSystem} from '../../assets/DesignSystem';

export type goWriteProps = {
goWrite: () => void;
Expand All @@ -10,7 +11,7 @@ export const MyInquiryMakeButton: FC<goWriteProps> = ({goWrite}) => {
return (
<View style={[styles.progressRow]}>
<TouchableOpacity style={[styles.progressToggle]} onPress={goWrite}>
<Text style={[styles.buttonText]}>문의 남기기 </Text>
<Text style={[DesignSystem.body1Lt, {color: 'white'}]}>문의 남기기 </Text>
<Icon name="pencil" size={18} color="white" />
</TouchableOpacity>
</View>
Expand All @@ -37,9 +38,4 @@ const styles = StyleSheet.create({
backgroundColor: '#2A2A2A',
flexDirection: 'row',
},
buttonText: {
color: 'white',
fontSize: 16,
fontFamily: 'Pretendard-Light',
},
});
3 changes: 2 additions & 1 deletion src/components/My/MyNotificationsSwitch.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, {useState} from 'react';
import type {FC} from 'react';
import {StyleSheet, Text, TouchableOpacity, Switch, View, Image} from 'react-native';
import {DesignSystem} from '../../assets/DesignSystem';

export type MyNotificationsSwitchProps = {
text: string;
Expand All @@ -11,7 +12,7 @@ export type MyNotificationsSwitchProps = {
export const MyNotificationsSwitch: FC<MyNotificationsSwitchProps> = ({text, value, onValueChange}) => {
return (
<View>
<Text style={{marginLeft: 21.87, color: '#000000', fontSize: 16}}>{text}</Text>
<Text style={[DesignSystem.body1Lt, {marginLeft: 21.88, color: '#000000'}]}>{text}</Text>
<Switch
value={value}
trackColor={{false: '#DFDFDF', true: '#6C69FF'}}
Expand Down
13 changes: 5 additions & 8 deletions src/components/My/MyPointList.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, {useState, useEffect} from 'react';
import {View, StyleSheet, Text, TouchableOpacity, Image} from 'react-native';
import moment from 'moment';
import {DesignSystem} from '../../assets/DesignSystem';

//prettier-ignore
export const MyPointList = () => {
Expand All @@ -17,19 +18,19 @@ export const MyPointList = () => {
return (
<View style={[styles.listWrap]}>
<View style={[styles.listDayWrap]}>
<Text style={[styles.dateText, styles.title33B16]}>{month}.{day}</Text>
<Text style={[styles.dateText, DesignSystem.title3SB]}>{month}.{day}</Text>
</View>
<View style={[styles.listDetailsWrap]}>
<View style={[styles.listMissionWrap]}>
<Text style={[styles.storeNameText, styles.title33B16]}>{title}</Text>
<Text style={[styles.storeNameText, DesignSystem.title3SB]}>{title}</Text>
<Text style={[styles.missionText], {fontFamily: 'Pretendard-Light'}}>{subTitle}</Text>
{/* <Text style={[styles.missionText], {point > 0 ? fontFamily: 'Pretendard-Light' : fontFamily: 'Pretendard-Light' }}>{subTitle}</Text> */}
</View>
<View style={[styles.listPointWrap]}>
{point > 0 ?
<Text style={[styles.title33B16, {color: '#6C69FF'}]}>{point.toString().replace(/\B(?=(\d{3})(?!\d))/g, ',')}P</Text>
<Text style={[DesignSystem.title3SB, {color: '#6C69FF'}]}>{point.toString().replace(/\B(?=(\d{3})(?!\d))/g, ',')}P</Text>
:
<Text style={[styles.title33B16, {color: '#B7B7B7'}]}>{point.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',')}P</Text>
<Text style={[DesignSystem.title3SB, {color: '#B7B7B7'}]}>{point.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',')}P</Text>
}
</View>

Expand All @@ -39,10 +40,6 @@ export const MyPointList = () => {
};

const styles = StyleSheet.create({
title33B16: {
fontSize: 16,
fontFamily: 'Pretendard-SemiBold',
},
listWrap: {
flexDirection: 'row',
},
Expand Down
Loading

0 comments on commit 67b3a64

Please sign in to comment.