vn-verdnaturachat/app/views/OnboardingView/styles.js

108 lines
2.3 KiB
JavaScript
Raw Normal View History

import { StyleSheet } from 'react-native';
import { verticalScale, moderateScale } from '../../utils/scaling';
2019-11-25 20:01:17 +00:00
import { isTablet } from '../../utils/deviceInfo';
import sharedStyles from '../Styles';
2019-03-29 19:36:07 +00:00
import { COLOR_PRIMARY, COLOR_BORDER, COLOR_WHITE } from '../../constants/colors';
const colors = {
2019-03-29 19:36:07 +00:00
backgroundPrimary: COLOR_PRIMARY,
backgroundSecondary: 'white',
textColorPrimary: 'white',
2019-03-29 19:36:07 +00:00
textColorSecondary: COLOR_PRIMARY,
2019-03-29 19:36:07 +00:00
borderColorPrimary: COLOR_PRIMARY,
borderColorSecondary: COLOR_BORDER
};
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
},
onboarding: {
alignSelf: 'center',
marginTop: verticalScale(30),
marginBottom: verticalScale(35),
maxHeight: verticalScale(150),
resizeMode: 'contain',
width: 309,
height: 250
},
title: {
...sharedStyles.textBold,
2019-03-29 19:36:07 +00:00
...sharedStyles.textColorNormal,
letterSpacing: 0,
fontSize: moderateScale(24),
alignSelf: 'center',
marginBottom: verticalScale(8)
},
subtitle: {
...sharedStyles.textRegular,
fontSize: moderateScale(16),
color: '#54585E',
alignSelf: 'center'
},
buttonsContainer: {
marginBottom: verticalScale(10),
marginTop: verticalScale(30)
},
buttonContainer: {
marginHorizontal: 15,
marginVertical: 5,
flexDirection: 'row',
height: 60,
alignItems: 'center',
borderWidth: 1,
borderRadius: 2
},
buttonCenter: {
flex: 1,
flexDirection: 'column',
justifyContent: 'center'
},
buttonTitle: {
...sharedStyles.textSemibold,
fontSize: 17
},
buttonSubtitle: {
...sharedStyles.textRegular,
2019-03-29 19:36:07 +00:00
...sharedStyles.textColorDescription,
fontSize: 15
},
buttonIconContainer: {
width: 65,
alignItems: 'center',
justifyContent: 'center'
},
buttonIcon: {
marginHorizontal: 10,
width: 20,
height: 20
},
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
},
closeModal: {
position: 'absolute',
left: 15
}
});