-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Feat/#3/login
- Loading branch information
Showing
20 changed files
with
678 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import {Pressable, StyleSheet, Text, View} from 'react-native'; | ||
import React from 'react'; | ||
import type {FC} from 'react'; | ||
import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; | ||
|
||
type CheckBoxProps = { | ||
onPress: () => void; | ||
title: string; | ||
isChecked: boolean; | ||
isCheckAll?: boolean; | ||
}; | ||
let scale = 1; | ||
|
||
export const CheckBox: FC<CheckBoxProps> = ({onPress, title, isChecked, isCheckAll}) => { | ||
isCheckAll ? (scale = 1.2) : (scale = 1); | ||
return ( | ||
<View style={styles.container}> | ||
<Pressable onPress={onPress}> | ||
<View style={isChecked ? styles.markedCircle : styles.unmarkedCircle}> | ||
<Icon | ||
name="check" | ||
size={18 * scale} | ||
color="#FFFFFF" | ||
style={isChecked ? styles.markedCheck : styles.unmarkedCheck} | ||
/> | ||
</View> | ||
</Pressable> | ||
<Text style={[styles.title, {fontWeight: isCheckAll ? '600' : '400'}]}>{title}</Text> | ||
</View> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
justifyContent: 'flex-start', | ||
alignItems: 'center', | ||
flexDirection: 'row', | ||
width: '100%', | ||
marginTop: 24, | ||
}, | ||
title: { | ||
fontSize: 16 * scale, | ||
color: '#000', | ||
marginLeft: 16, | ||
}, | ||
markedCircle: { | ||
backgroundColor: '#6C69FF', | ||
borderRadius: 18, | ||
borderColor: '#DFDFDF', | ||
borderWidth: 2, | ||
}, | ||
unmarkedCircle: { | ||
backgroundColor: 'transparent', | ||
borderRadius: 18, | ||
borderColor: '#DFDFDF', | ||
borderWidth: 2, | ||
}, | ||
markedCheck: {opacity: 1}, | ||
unmarkedCheck: {opacity: 0}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
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'; | ||
|
||
export type RegisterHeaderProps = { | ||
goBack: () => void; | ||
pageNum: number; | ||
}; | ||
|
||
export const RegisterHeader: FC<RegisterHeaderProps> = ({goBack, pageNum}) => { | ||
return ( | ||
<View style={[styles.headerWrap]}> | ||
<TouchableOpacity onPress={goBack}> | ||
<View style={[styles.backButton]}> | ||
<Icon name="arrow-left" size={24} color="black" /> | ||
</View> | ||
</TouchableOpacity> | ||
{pageNum === 0 && <View />} | ||
{pageNum === 1 && ( | ||
<View> | ||
<Text style={[styles.progressText]}>1/2</Text> | ||
</View> | ||
)} | ||
{pageNum === 2 && ( | ||
<View> | ||
<Text style={[styles.progressText]}>2/2</Text> | ||
</View> | ||
)} | ||
<View style={[styles.backButton, styles.disable]}> | ||
<Icon name="arrow-left" size={24} color="black" /> | ||
</View> | ||
</View> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
headerWrap: {flexDirection: 'row', justifyContent: 'space-between', margin: 12}, | ||
backButton: { | ||
zIndex: 1, | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
}, | ||
disable: {opacity: 0}, | ||
progressText: { | ||
color: '#949494', | ||
fontSize: 16, | ||
}, | ||
}); |
Oops, something went wrong.