2018-08-10 17:26:36 +00:00
|
|
|
import { StyleSheet } from 'react-native';
|
|
|
|
|
2018-11-14 21:42:03 +00:00
|
|
|
import { verticalScale, moderateScale } from '../../utils/scaling';
|
2019-11-25 20:01:17 +00:00
|
|
|
import { isTablet } from '../../utils/deviceInfo';
|
2018-11-14 21:42:03 +00:00
|
|
|
import sharedStyles from '../Styles';
|
2019-03-29 19:36:07 +00:00
|
|
|
import { COLOR_PRIMARY, COLOR_BORDER, COLOR_WHITE } from '../../constants/colors';
|
2018-08-10 17:26:36 +00:00
|
|
|
|
|
|
|
const colors = {
|
2019-03-29 19:36:07 +00:00
|
|
|
backgroundPrimary: COLOR_PRIMARY,
|
2018-08-10 17:26:36 +00:00
|
|
|
backgroundSecondary: 'white',
|
|
|
|
|
|
|
|
textColorPrimary: 'white',
|
2019-03-29 19:36:07 +00:00
|
|
|
textColorSecondary: COLOR_PRIMARY,
|
2018-08-10 17:26:36 +00:00
|
|
|
|
2019-03-29 19:36:07 +00:00
|
|
|
borderColorPrimary: COLOR_PRIMARY,
|
|
|
|
borderColorSecondary: COLOR_BORDER
|
2018-08-10 17:26:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default StyleSheet.create({
|
|
|
|
container: {
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'column',
|
2019-11-25 20:01:17 +00:00
|
|
|
justifyContent: isTablet ? 'center' : 'flex-start',
|
2019-03-29 19:36:07 +00:00
|
|
|
backgroundColor: COLOR_WHITE
|
2018-08-10 17:26:36 +00:00
|
|
|
},
|
|
|
|
onboarding: {
|
|
|
|
alignSelf: 'center',
|
|
|
|
marginTop: verticalScale(30),
|
2018-09-11 16:32:52 +00:00
|
|
|
marginBottom: verticalScale(35),
|
2018-11-14 21:42:03 +00:00
|
|
|
maxHeight: verticalScale(150),
|
2018-09-19 14:18:32 +00:00
|
|
|
resizeMode: 'contain',
|
|
|
|
width: 309,
|
|
|
|
height: 250
|
2018-08-10 17:26:36 +00:00
|
|
|
},
|
|
|
|
title: {
|
2018-11-14 21:42:03 +00:00
|
|
|
...sharedStyles.textBold,
|
2019-03-29 19:36:07 +00:00
|
|
|
...sharedStyles.textColorNormal,
|
2018-11-14 21:42:03 +00:00
|
|
|
letterSpacing: 0,
|
2018-08-10 17:26:36 +00:00
|
|
|
fontSize: moderateScale(24),
|
2018-11-14 21:42:03 +00:00
|
|
|
alignSelf: 'center',
|
|
|
|
marginBottom: verticalScale(8)
|
2018-08-10 17:26:36 +00:00
|
|
|
},
|
|
|
|
subtitle: {
|
2018-11-14 21:42:03 +00:00
|
|
|
...sharedStyles.textRegular,
|
2018-08-10 17:26:36 +00:00
|
|
|
fontSize: moderateScale(16),
|
2018-11-14 21:42:03 +00:00
|
|
|
color: '#54585E',
|
|
|
|
alignSelf: 'center'
|
2018-08-10 17:26:36 +00:00
|
|
|
},
|
|
|
|
buttonsContainer: {
|
|
|
|
marginBottom: verticalScale(10),
|
|
|
|
marginTop: verticalScale(30)
|
|
|
|
},
|
|
|
|
buttonContainer: {
|
2018-09-11 16:32:52 +00:00
|
|
|
marginHorizontal: 15,
|
|
|
|
marginVertical: 5,
|
2018-08-10 17:26:36 +00:00
|
|
|
flexDirection: 'row',
|
2018-09-11 16:32:52 +00:00
|
|
|
height: 60,
|
2018-08-10 17:26:36 +00:00
|
|
|
alignItems: 'center',
|
2018-09-11 16:32:52 +00:00
|
|
|
borderWidth: 1,
|
|
|
|
borderRadius: 2
|
2018-08-10 17:26:36 +00:00
|
|
|
},
|
|
|
|
buttonCenter: {
|
|
|
|
flex: 1,
|
|
|
|
flexDirection: 'column',
|
|
|
|
justifyContent: 'center'
|
|
|
|
},
|
|
|
|
buttonTitle: {
|
2018-11-14 21:42:03 +00:00
|
|
|
...sharedStyles.textSemibold,
|
|
|
|
fontSize: 17
|
2018-08-10 17:26:36 +00:00
|
|
|
},
|
|
|
|
buttonSubtitle: {
|
2018-11-14 21:42:03 +00:00
|
|
|
...sharedStyles.textRegular,
|
2019-03-29 19:36:07 +00:00
|
|
|
...sharedStyles.textColorDescription,
|
2018-11-14 21:42:03 +00:00
|
|
|
fontSize: 15
|
2018-08-10 17:26:36 +00:00
|
|
|
},
|
|
|
|
buttonIconContainer: {
|
|
|
|
width: 65,
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center'
|
|
|
|
},
|
|
|
|
buttonIcon: {
|
2018-09-11 16:32:52 +00:00
|
|
|
marginHorizontal: 10,
|
2018-08-31 16:46:33 +00:00
|
|
|
width: 20,
|
|
|
|
height: 20
|
2018-08-10 17:26:36 +00:00
|
|
|
},
|
|
|
|
buttonActive: {
|
|
|
|
opacity: 0.5
|
|
|
|
},
|
|
|
|
button_container_primary: {
|
|
|
|
backgroundColor: colors.backgroundPrimary,
|
|
|
|
borderColor: colors.borderColorPrimary
|
|
|
|
},
|
|
|
|
button_container_secondary: {
|
|
|
|
backgroundColor: colors.backgroundSecondary,
|
|
|
|
borderColor: colors.borderColorSecondary
|
|
|
|
},
|
|
|
|
button_text_primary: {
|
|
|
|
color: colors.textColorPrimary
|
|
|
|
},
|
|
|
|
button_text_secondary: {
|
|
|
|
color: colors.textColorSecondary
|
2018-09-19 14:18:32 +00:00
|
|
|
},
|
|
|
|
closeModal: {
|
|
|
|
position: 'absolute',
|
|
|
|
left: 15
|
2018-08-10 17:26:36 +00:00
|
|
|
}
|
|
|
|
});
|