forked from Path-Check/safeplaces-dct-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from letstrace/newUI
New UI polish
- Loading branch information
Showing
23 changed files
with
9,925 additions
and
232 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
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
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,44 @@ | ||
import * as React from 'react'; | ||
import { StyleSheet, Dimensions, View } from 'react-native'; | ||
const width = Dimensions.get('window').width; | ||
import FontWeights from '../constants/fontWeights'; | ||
import Button from './Button'; | ||
import PropTypes from 'prop-types'; | ||
|
||
class ButtonWrapper extends React.Component { | ||
render() { | ||
return ( | ||
<View style={styles.buttonContainer}> | ||
<Button titleStyle={styles.primaryButtonText} {...this.props} /> | ||
</View> | ||
); | ||
} | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
primaryButtonText: { | ||
fontWeight: FontWeights.BOLD, | ||
fontSize: 16, | ||
lineHeight: 19, | ||
letterSpacing: 0, | ||
textAlign: 'center', | ||
color: '#ffffff', | ||
}, | ||
buttonContainer: { | ||
flexDirection: 'row', | ||
justifyContent: 'center', | ||
width: width * 0.7, | ||
alignSelf: 'center', | ||
}, | ||
}); | ||
|
||
ButtonWrapper.propTypes = { | ||
title: PropTypes.string.isRequired, | ||
onPress: PropTypes.func.isRequired, | ||
bgColor: PropTypes.string.isRequired, | ||
toBgColor: PropTypes.string, | ||
titleStyle: PropTypes.object, | ||
buttonStyle: PropTypes.object, | ||
}; | ||
|
||
export default ButtonWrapper; |
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,13 @@ | ||
const fontWeight = { | ||
THIN: '100', | ||
ULTRA_LIGHT: '200', | ||
LIGHT: '300', | ||
REGULAR: '400', | ||
MEDIUM: '500', | ||
SEMIBOLD: '600', | ||
BOLD: '700', | ||
HEAVY: '800', | ||
BLACK: '900', | ||
}; | ||
|
||
export default fontWeight; |
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 |
---|---|---|
@@ -1,13 +1,21 @@ | ||
{ | ||
"start_logging":"START LOGGING", | ||
"stop_logging":"STOP LOGGING", | ||
"logging_message":"It is currently logging your location privately every five minutes. Your location information will NOT leave your phone.", | ||
"not_logging_message":"NOTE: After clicking this button you may be prompted to grant Private Kit access to your location.", | ||
"import":"Import", | ||
"export":"Export", | ||
"news":"News", | ||
"latest_news":"Latest News", | ||
"url_info":"For more information visit the Private Kit homepage:", | ||
"private_kit_url":"privatekit.mit.edu", | ||
"overlap": "CHECK OVERLAP" | ||
"overlap": "CHECK OVERLAP", | ||
|
||
"home_title": "CoronaTime", | ||
"home_start_tracking": "Start tracking", | ||
"home_start_tracking_description": "You'll need to allow location permissions", | ||
"home_stop_tracking": "Stop tracking", | ||
"home_stop_tracking_description": "Your location is being saved privately to your phone", | ||
"home_check_risk": "Check if you are at risk", | ||
"home_check_risk_description": "See if you have crossed paths with someone who has later tested positive for COVID-19", | ||
"home_footer": "CoronaTime is powered by", | ||
"home_footer_link": "PrivateKit from MIT", | ||
"home_privacy_header": "Privacy Policy", | ||
"home_privacy_subheader": "Your location history stays on your phone and is never shared without your consent" | ||
} |
Oops, something went wrong.