Calendar redesign
This commit is contained in:
committed by
Sofiya Tepikin
parent
885da5c293
commit
5a555f5965
+5
-489
@@ -1,490 +1,6 @@
|
||||
import { StyleSheet } from 'react-native'
|
||||
import Colors from './colors'
|
||||
import Containers from './containers'
|
||||
import Spacing from './spacing'
|
||||
import Typography, { fonts as Fonts, sizes as Sizes } from './typography'
|
||||
|
||||
export const primaryColor = '#000D19'
|
||||
export const secondaryColor = '#4FAFA7'
|
||||
export const secondaryColorLight = '#91749d'
|
||||
export const fontOnPrimaryColor = 'white'
|
||||
export const shadesOfRed = [
|
||||
'#e7999e',
|
||||
'#db666d',
|
||||
'#cf323d',
|
||||
'#c3000d'
|
||||
] // light to dark
|
||||
export const cycleDayColor = '#29287f'
|
||||
export const periodColor = '#802249'
|
||||
|
||||
const headerFont = 'Prompt-ExtraLight'
|
||||
|
||||
const textFont = 'Jost-400-Book'
|
||||
const textFontBold = 'Jost-700-Bold'
|
||||
const textFontItalic = 'OpenSans-LightItalic'
|
||||
|
||||
const regularSize = 16
|
||||
const hintSize = 14
|
||||
|
||||
const defaultBottomMargin = 5
|
||||
const defaultIndentation = 10
|
||||
const defaultTopMargin = 10
|
||||
const colorInActive = '#666666'
|
||||
|
||||
export const calendarTheme = {
|
||||
textDayFontFamily: textFont,
|
||||
textMonthFontFamily: textFontBold,
|
||||
textDayHeaderFontFamily: textFont,
|
||||
textDayFontSize: regularSize,
|
||||
textMonthFontSize: regularSize,
|
||||
textDayHeaderFontSize: hintSize,
|
||||
textSectionTitleColor: 'grey'
|
||||
}
|
||||
|
||||
export default StyleSheet.create({
|
||||
appText: {
|
||||
color: 'black',
|
||||
fontFamily: textFont,
|
||||
fontSize: regularSize,
|
||||
letterSpacing: 0.5
|
||||
},
|
||||
hint: {
|
||||
fontFamily: textFontItalic,
|
||||
fontSize: hintSize,
|
||||
},
|
||||
paragraph: {
|
||||
marginBottom: defaultBottomMargin
|
||||
},
|
||||
emphasis: {
|
||||
fontWeight: 'bold',
|
||||
fontFamily: textFontBold,
|
||||
color: secondaryColor,
|
||||
},
|
||||
link: {
|
||||
color: cycleDayColor,
|
||||
textDecorationLine: 'underline'
|
||||
},
|
||||
title: {
|
||||
fontSize: 18,
|
||||
color: 'black',
|
||||
marginBottom: defaultBottomMargin,
|
||||
},
|
||||
textWrappingView: {
|
||||
marginHorizontal: defaultIndentation,
|
||||
marginTop: defaultTopMargin
|
||||
},
|
||||
welcome: {
|
||||
fontSize: 20,
|
||||
fontFamily: 'serif',
|
||||
margin: 30,
|
||||
textAlign: 'center',
|
||||
textAlignVertical: 'center'
|
||||
},
|
||||
dateHeader: {
|
||||
fontSize: 20,
|
||||
fontFamily: headerFont,
|
||||
color: fontOnPrimaryColor,
|
||||
textAlign: 'center',
|
||||
},
|
||||
headerText: {
|
||||
fontSize: 30,
|
||||
fontFamily: headerFont,
|
||||
color: fontOnPrimaryColor,
|
||||
textAlign: 'center',
|
||||
paddingBottom: 4
|
||||
},
|
||||
accentCircle: {
|
||||
borderColor: secondaryColor,
|
||||
borderWidth: 1,
|
||||
width: 40,
|
||||
height: 40,
|
||||
borderRadius: 100,
|
||||
position: 'absolute',
|
||||
alignSelf: 'center',
|
||||
},
|
||||
errorMessage: {
|
||||
color: shadesOfRed[2],
|
||||
marginLeft: 10,
|
||||
marginTop: 6
|
||||
},
|
||||
button: {
|
||||
paddingVertical: 10,
|
||||
paddingHorizontal: 20,
|
||||
borderRadius: 5,
|
||||
alignItems: 'center',
|
||||
},
|
||||
homeButton: {
|
||||
width: 200,
|
||||
marginTop: 5
|
||||
},
|
||||
homeButtonText: {
|
||||
color: fontOnPrimaryColor
|
||||
},
|
||||
homeView: {
|
||||
alignItems: 'center',
|
||||
marginVertical: 40
|
||||
},
|
||||
homeDescriptionText: {
|
||||
width: 200,
|
||||
marginBottom: defaultBottomMargin,
|
||||
},
|
||||
homeElement: {
|
||||
marginBottom: 30,
|
||||
flexDirection: 'row',
|
||||
},
|
||||
homeIconTextWrapper: {
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
width: 80,
|
||||
position: 'absolute',
|
||||
},
|
||||
homeIconAndText: {
|
||||
justifyContent: 'center'
|
||||
},
|
||||
homeCircle: {
|
||||
borderRadius: 100,
|
||||
borderWidth: 2.3,
|
||||
width: 80,
|
||||
height: 80,
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
borderColor: secondaryColor,
|
||||
},
|
||||
iconText: {
|
||||
fontSize: 25
|
||||
},
|
||||
cycleDayNumber: {
|
||||
fontSize: 15,
|
||||
color: fontOnPrimaryColor,
|
||||
textAlign: 'center',
|
||||
fontFamily: headerFont
|
||||
},
|
||||
symptomViewHeading: {
|
||||
fontWeight: 'bold',
|
||||
fontFamily: textFontBold,
|
||||
flex: 1
|
||||
},
|
||||
symptomSection: {
|
||||
marginBottom: 10
|
||||
},
|
||||
symptomBoxImage: {
|
||||
width: 50,
|
||||
height: 50
|
||||
},
|
||||
symptomBoxesView: {
|
||||
flexDirection: 'row',
|
||||
flexWrap: 'wrap',
|
||||
justifyContent: 'space-evenly'
|
||||
},
|
||||
symptomBox: {
|
||||
borderColor: secondaryColor,
|
||||
borderStyle: 'solid',
|
||||
borderWidth: 1,
|
||||
borderTopLeftRadius: 10,
|
||||
borderTopRightRadius: 10,
|
||||
alignItems: 'center',
|
||||
marginTop: '10%',
|
||||
paddingVertical: '6%',
|
||||
marginHorizontal: 1,
|
||||
width: 110,
|
||||
height: 80,
|
||||
},
|
||||
symptomBoxActive: {
|
||||
backgroundColor: secondaryColor,
|
||||
},
|
||||
symptomTextActive: {
|
||||
color: fontOnPrimaryColor
|
||||
},
|
||||
symptomInFuture: {
|
||||
borderColor: 'lightgrey',
|
||||
color: 'lightgrey'
|
||||
},
|
||||
symptomDataBox: {
|
||||
borderColor: secondaryColor,
|
||||
borderStyle: 'solid',
|
||||
borderLeftWidth: 1,
|
||||
borderRightWidth: 1,
|
||||
borderBottomWidth: 1,
|
||||
borderBottomLeftRadius: 10,
|
||||
borderBottomRightRadius: 10,
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
padding: '3%',
|
||||
marginHorizontal: 1,
|
||||
width: 110,
|
||||
height: 50,
|
||||
},
|
||||
symptomDataText: {
|
||||
fontSize: 12
|
||||
},
|
||||
header: {
|
||||
backgroundColor: primaryColor,
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
height: 80
|
||||
},
|
||||
navigationArrow: {
|
||||
padding: 20,
|
||||
position: 'absolute'
|
||||
},
|
||||
navigationArrowLeft: { left: 0 },
|
||||
navigationArrowRight: { right: 0 },
|
||||
menu: {
|
||||
backgroundColor: primaryColor,
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
flexDirection: 'row',
|
||||
height: 60
|
||||
},
|
||||
menuItem: {
|
||||
alignItems: 'center',
|
||||
flex: 1,
|
||||
paddingVertical: 15
|
||||
},
|
||||
menuText: {
|
||||
color: fontOnPrimaryColor,
|
||||
fontFamily: headerFont
|
||||
},
|
||||
menuTextInActive: {
|
||||
color: colorInActive,
|
||||
fontFamily: headerFont
|
||||
},
|
||||
temperatureTextInput: {
|
||||
fontSize: 20,
|
||||
color: 'black',
|
||||
textAlign: 'center',
|
||||
width: '30%'
|
||||
},
|
||||
temperatureTextInputSuggestion: {
|
||||
color: '#939393'
|
||||
},
|
||||
symptomEditButton: {
|
||||
width: 130
|
||||
},
|
||||
framedSegment: {
|
||||
borderColor: secondaryColor,
|
||||
borderStyle: 'solid',
|
||||
borderWidth: 1,
|
||||
borderRadius: 10,
|
||||
marginTop: defaultTopMargin,
|
||||
marginHorizontal: defaultIndentation,
|
||||
padding: 7,
|
||||
fontFamily: textFont
|
||||
},
|
||||
framedSegmentLast: {
|
||||
marginBottom: defaultTopMargin,
|
||||
},
|
||||
framedSegmentTitle: {
|
||||
fontWeight: 'bold',
|
||||
fontFamily: textFontBold
|
||||
},
|
||||
framedSegmentInlineChildren: {
|
||||
flexDirection: 'row',
|
||||
alignItems: 'center'
|
||||
},
|
||||
infoPopUpWrapper: {
|
||||
position: 'absolute',
|
||||
width: '100%',
|
||||
height: '100%'
|
||||
},
|
||||
infoPopUp: {
|
||||
backgroundColor: 'white',
|
||||
padding: 15,
|
||||
marginHorizontal: 20,
|
||||
marginTop: 20,
|
||||
maxHeight: '92%'
|
||||
},
|
||||
dimmed: {
|
||||
position: 'absolute',
|
||||
backgroundColor: 'black',
|
||||
opacity: 0.5,
|
||||
width: '100%',
|
||||
height: '100%'
|
||||
},
|
||||
infoSymptomClose: {
|
||||
alignItems: 'flex-end'
|
||||
},
|
||||
infoSymptomText: {
|
||||
marginTop: 10
|
||||
},
|
||||
settingsButton: {
|
||||
padding: 10,
|
||||
alignItems: 'center',
|
||||
margin: 10,
|
||||
borderRadius: 5,
|
||||
},
|
||||
settingsButtonAccent: {
|
||||
backgroundColor: secondaryColor
|
||||
},
|
||||
settingsButtonDisabled: {
|
||||
backgroundColor: colorInActive
|
||||
},
|
||||
settingsButtonText: {
|
||||
color: fontOnPrimaryColor
|
||||
},
|
||||
settingsButtonSecondaryText: {
|
||||
color: secondaryColor
|
||||
|
||||
},
|
||||
statsRow: {
|
||||
flexDirection: 'row',
|
||||
flexWrap: 'wrap'
|
||||
},
|
||||
menuLabel: {
|
||||
fontSize: 15,
|
||||
color: fontOnPrimaryColor
|
||||
},
|
||||
selectBox: {
|
||||
backgroundColor: 'lightgrey',
|
||||
marginRight: 7,
|
||||
marginVertical: 5,
|
||||
paddingHorizontal: 15,
|
||||
paddingVertical: 10,
|
||||
borderRadius: 10
|
||||
},
|
||||
selectBoxActive: {
|
||||
backgroundColor: secondaryColor,
|
||||
color: fontOnPrimaryColor
|
||||
},
|
||||
selectBoxTextActive: {
|
||||
color: fontOnPrimaryColor
|
||||
},
|
||||
selectBoxSection: {
|
||||
flexDirection: 'row',
|
||||
flexWrap: 'wrap',
|
||||
marginTop: 7,
|
||||
},
|
||||
selectTabGroup: {
|
||||
marginTop: 7,
|
||||
flexDirection: 'row'
|
||||
},
|
||||
selectTab: {
|
||||
backgroundColor: 'lightgrey',
|
||||
borderStyle: 'solid',
|
||||
borderLeftWidth: 1,
|
||||
paddingVertical: 10,
|
||||
paddingHorizontal: 15,
|
||||
borderColor: 'white',
|
||||
marginBottom: 3,
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center'
|
||||
},
|
||||
selectTabActive: {
|
||||
backgroundColor: secondaryColor,
|
||||
color: fontOnPrimaryColor
|
||||
},
|
||||
selectTabLast: {
|
||||
borderTopRightRadius: 10,
|
||||
borderBottomRightRadius: 10,
|
||||
},
|
||||
selectTabFirst: {
|
||||
borderTopLeftRadius: 10,
|
||||
borderBottomLeftRadius: 10,
|
||||
borderLeftWidth: null
|
||||
},
|
||||
page: {
|
||||
marginHorizontal: 10,
|
||||
marginTop: 20,
|
||||
},
|
||||
calendarToday: {
|
||||
fontWeight: 'bold',
|
||||
fontSize: 20,
|
||||
color: secondaryColor,
|
||||
marginTop: 1
|
||||
},
|
||||
passwordField: {
|
||||
marginHorizontal: 10,
|
||||
marginTop: 10
|
||||
},
|
||||
textInputField: {
|
||||
padding: 10,
|
||||
marginVertical: 10,
|
||||
backgroundColor: 'white',
|
||||
borderColor: secondaryColor,
|
||||
borderStyle: 'solid',
|
||||
borderWidth: 1,
|
||||
},
|
||||
passwordPromptPage: {
|
||||
padding: 30,
|
||||
flex: 1,
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center'
|
||||
},
|
||||
passwordPromptField: {
|
||||
padding: 10,
|
||||
marginTop: 10,
|
||||
marginHorizontal: 10,
|
||||
borderBottomWidth: 3,
|
||||
borderBottomColor: primaryColor,
|
||||
width: '100%',
|
||||
fontSize: 20,
|
||||
marginVertical: 20
|
||||
},
|
||||
passwordPromptButton: {
|
||||
backgroundColor: secondaryColor,
|
||||
padding: 10,
|
||||
alignItems: 'center',
|
||||
margin: 10,
|
||||
width: '100%',
|
||||
borderRadius: 10
|
||||
},
|
||||
passwordPromptButtonText: {
|
||||
color: fontOnPrimaryColor,
|
||||
fontSize: 20
|
||||
},
|
||||
passwordPromptForgotPasswordText: {
|
||||
marginTop: 20,
|
||||
color: 'grey'
|
||||
},
|
||||
headerDeleteButton: {
|
||||
paddingHorizontal: 20,
|
||||
paddingVertical: 20,
|
||||
position: 'absolute',
|
||||
right: 0
|
||||
},
|
||||
infoButtonSymptomView: {
|
||||
position: 'absolute',
|
||||
padding: 15,
|
||||
right: 0
|
||||
},
|
||||
licensePage: {
|
||||
paddingVertical: 20,
|
||||
paddingHorizontal: 10
|
||||
},
|
||||
licenseButtons: {
|
||||
flexDirection: 'row',
|
||||
justifyContent: 'flex-end',
|
||||
marginTop: 40
|
||||
},
|
||||
licenseButton: {
|
||||
marginLeft: 30,
|
||||
width: 100
|
||||
}
|
||||
})
|
||||
|
||||
export const iconStyles = {
|
||||
navigationArrow: {
|
||||
size: 20,
|
||||
color: fontOnPrimaryColor
|
||||
},
|
||||
symptomHeaderIcons: {
|
||||
size: 20,
|
||||
color: fontOnPrimaryColor
|
||||
},
|
||||
symptomBox: {
|
||||
size: 40
|
||||
},
|
||||
symptomBoxActive: {
|
||||
color: fontOnPrimaryColor
|
||||
},
|
||||
info: {
|
||||
color: secondaryColor,
|
||||
fontSize: 25
|
||||
},
|
||||
menuIcon: {
|
||||
size: 20,
|
||||
color: fontOnPrimaryColor
|
||||
},
|
||||
menuIconInactive: {
|
||||
color: colorInActive,
|
||||
},
|
||||
infoPopUpClose: {
|
||||
size: 25
|
||||
}
|
||||
}
|
||||
export { Colors, Containers, Fonts, Spacing, Sizes, Typography }
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
import Colors from './colors'
|
||||
import Containers from './containers'
|
||||
import Spacing from './spacing'
|
||||
import Typography, { fonts as Fonts, sizes as Sizes } from './typography'
|
||||
|
||||
export { Colors, Containers, Fonts, Spacing, Sizes, Typography }
|
||||
Reference in New Issue
Block a user