Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions src/screen/FindpwScreen/Button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import React from 'react';
import {Pressable, StyleSheet, Text} from 'react-native';

import Colors from '../../constants/Color';

const Button = ({text, style, navigation}) => {
const screen = {
비밀번호 찾기: 'Verifycode',
}[text];

const handlePress = () => {
navigation.navigate(screen);
};

return (
<Pressable style={[styles.container, style]} onPress={handlePress}>
<Text>{text}</Text>
</Pressable>
);
};

const styles = StyleSheet.create({
container: {
alignItems: 'center',
alignSelf: 'stretch',
backgroundColor: Colors.GREY_SECONDARY,
height: 32,
justifyContent: 'center',
},
text: {
color: Colors.BLACK,
fontSize: 15,
},
});

export default Button;
81 changes: 81 additions & 0 deletions src/screen/FindpwScreen/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
import React from 'react';
import {StyleSheet, Text, View, TextInput} from 'react-native';
import {SafeAreaView} from 'react-native-safe-area-context';

import Colors from '../../constants/Color';
import Button from './Button';

const FindpwScreen = ({navigation}) => {
return (
<SafeAreaView style={styles.screen}>
<Text style={styles.logo}>배달N</Text>
<Text style={styles.title}>비밀번호 찾기</Text>
<View style={styles.container}>
<View style={styles.inputContainer}>
<Text style={styles.inputTitle}>이름</Text>
<TextInput style={styles.input}/>
</View>
<View style={styles.inputContainer}>
<Text style={styles.inputTitle}>전화번호</Text>
<TextInput style={styles.input}/>
</View>
<View style={styles.inputContainer}>
<Text style={styles.inputTitle}>이메일</Text>
<TextInput style={styles.input}/>
</View>
</View>
<Button text="비밀번호 찾기" style={{bottom: '45%'}} navigation={navigation} />
</SafeAreaView>
);
};

const styles = StyleSheet.create({
container: {
height: 150,
justifyContent: 'space-between',
position: 'absolute',
top: '30%',
},
screen: {
alignItems: 'center',
flex: 1,
justifyContent: 'flex-end',
paddingHorizontal: 17,
paddingVertical: 50,
position: 'relative',
},
logo: {
alignSelf: 'center',
fontSize: 50,
fontWeight: '600',
position: 'absolute',
top: '5%',
},
title: {
alignSelf: 'stretch',
fontSize: 20,
fontWeight: '600',
position: 'absolute',
top: '20%',
left: '5%',
},
inputContainer: {
alignItems: 'center',
display: 'flex',
flexDirection: 'row',
justifyContent: 'space-between',
},
input: {
borderColor: Colors.BLACK,
borderWidth: 1,
width: '80%',
height: 32,
justifyContent: 'center',
},
inputTitle: {
color: Colors.BLACK,
fontSize: 15,
},
});

export default FindpwScreen;
41 changes: 41 additions & 0 deletions src/screen/VerifycodeScreen/Button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import React from 'react';
import {Pressable, StyleSheet, Text} from 'react-native';

import Colors from './Color';

const Button = ({text, style, navigation}) => {
const screen = {
재발송: 'Findpw',
}[text];

const handlePress = () => {
navigation.navigate(screen);
};

return (
<Pressable style={[styles.container, style]} onPress={handlePress}>
<Text>{text}</Text>
</Pressable>
);
};

const styles = StyleSheet.create({
container: {
alignItems: 'center',
alignSelf: 'stretch',
backgroundColor: Colors.GREY_SECONDARY,
height: 32,
justifyContent: 'center',
position : 'absolute',
top: '70%',
bottom: 0,
left: 0,
right: 0,
},
text: {
color: Colors.BLACK,
fontSize: 15,
},
});

export default Button;
87 changes: 87 additions & 0 deletions src/screen/VerifycodeScreen/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import React, {useRef} from 'react';
import {StyleSheet, Text, View, TextInput} from 'react-native';
import {SafeAreaView} from 'react-native-safe-area-context';

import Colors from '../../constants/Color';
import Button from './Button';

const email = "12345@gmail.com";

const VerifycodeScreen = ({navigation}) => {
return (
<SafeAreaView style={styles.screen}>
<Text style={styles.logo}>배달N</Text>
<Text style={styles.title}>비밀번호 찾기</Text>
<View style={styles.container}>
<View style={styles.subtitle}>
<Text style={styles.email}>{email} 로</Text>
<Text style={styles.send}>인증번호가 발송되었습니다</Text>
</View>
<View style={styles.inputContainer}>
<TextInput style={styles.input}/>
</View>
</View>
<Text style={styles.timer}>타이머</Text>
<Button text="재발송" navigation={navigation}/>
</SafeAreaView>
);
};

const styles = StyleSheet.create({
container: {
height: 150,
justifyContent: 'space-between',
position: 'absolute',
top: '30%',
},
screen: {
alignItems: 'center',
flex: 1,
justifyContent: 'flex-end',
paddingHorizontal: 17,
paddingVertical: 50,
position: 'relative',
},
logo: {
alignSelf: 'center',
fontSize: 50,
fontWeight: '600',
position: 'absolute',
top: '5%',
},
title: {
alignSelf: 'stretch',
fontSize: 20,
fontWeight: '600',
position: 'absolute',
top: '20%',
left: '5%',
},
email: {
alignSelf: 'center',
fontSize: 16,
fontWeight: '800',
},
send: {
alignSelf: 'center',
fontSize: 16,
fontWeight: '300',
},
inputContainer: {
alignItems: 'center',
display: 'flex',
flexDirection: 'row',
justifyContent: 'space-between',
},
input: {
borderColor: Colors.BLACK,
fontSize: 24,
width: '100%',
borderBottomWidth: 1,
height: 32,
justifyContent: 'center',
},

});

export default VerifycodeScreen;