This repository has been archived by the owner on Nov 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
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 #61 from ito-org/alpha-warning
Added AlphaWarning Screen
- Loading branch information
Showing
4 changed files
with
117 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
import React from 'react'; | ||
import {View, StyleSheet, Text, Linking} from 'react-native'; | ||
import {Button} from 'react-native-elements'; | ||
import {RootStackParamList} from 'App/App'; | ||
import {StackNavigationProp} from '@react-navigation/stack'; | ||
import AlphaNotice from '../components/AlphaNotice'; | ||
|
||
type AlphaWarningScreenNavigationProp = StackNavigationProp< | ||
RootStackParamList, | ||
'AlphaWarning' | ||
>; | ||
|
||
interface AlphaWarningProps { | ||
navigation: AlphaWarningScreenNavigationProp; | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
padding: 12, | ||
backgroundColor: 'white', | ||
textAlign: 'center', | ||
justifyContent: 'space-between', | ||
}, | ||
logoWrapper: { | ||
marginLeft: 'auto', | ||
marginRight: 'auto', | ||
}, | ||
logo: { | ||
color: '#7dc6b6', | ||
fontSize: 56, | ||
textAlign: 'center', | ||
fontFamily: 'Righteous-Regular', | ||
}, | ||
subtitle: { | ||
color: '#595959', | ||
fontSize: 18, | ||
fontWeight: '300', | ||
paddingTop: 12, | ||
paddingBottom: 8, | ||
textAlign: 'center', | ||
fontFamily: 'Ubuntu-L', | ||
}, | ||
generalText: { | ||
color: '#595959', | ||
fontSize: 18, | ||
paddingTop: 16, | ||
textAlign: 'center', | ||
fontFamily: 'UbuntuMono-R', | ||
}, | ||
githubLink: { | ||
textDecorationLine: 'underline', | ||
}, | ||
alphaNoticeRoot: {marginLeft: 'auto', marginRight: 'auto', margin: 16}, | ||
alphaNoticeText: {fontSize: 60}, | ||
bottomButtonContainer: { | ||
marginBottom: 16, | ||
}, | ||
buttonHow: { | ||
backgroundColor: '#91e6d3', | ||
borderRadius: 6, | ||
}, | ||
buttonHowTitle: { | ||
color: '#2c2c2c', | ||
letterSpacing: 1, | ||
textTransform: 'uppercase', | ||
fontSize: 14, | ||
fontFamily: 'Ubuntu-M', | ||
}, | ||
}); | ||
|
||
export const AlphaWarning: React.FC<AlphaWarningProps> = ({navigation}) => { | ||
return ( | ||
<View style={styles.container}> | ||
<View style={styles.logoWrapper}> | ||
<Text style={styles.logo}>ito</Text> | ||
<Text style={styles.subtitle}>track infections, not people!</Text> | ||
<AlphaNotice | ||
rootStyle={styles.alphaNoticeRoot} | ||
textStyle={styles.alphaNoticeText} | ||
/> | ||
</View> | ||
<View> | ||
<Text style={styles.generalText}> | ||
This version is for demonstration purpose only. | ||
</Text> | ||
<Text style={styles.generalText}> | ||
Not all features are implemented yet nor is everything audited. | ||
</Text> | ||
<Text style={styles.generalText}> | ||
Please review the app, have a look at the code and report issues, bugs | ||
or general feedback at | ||
</Text> | ||
</View> | ||
<Text | ||
style={[styles.generalText, styles.githubLink]} | ||
onPress={() => | ||
Linking.openURL('https://github.com/ito-org/react-native-app/issues') | ||
}> | ||
https://github.com/ito-org/react-native-app/issues | ||
</Text> | ||
<View style={styles.bottomButtonContainer}> | ||
<Button | ||
title="ok, let´s start" | ||
onPress={() => navigation.navigate('Onboarding')} | ||
titleStyle={styles.buttonHowTitle} | ||
buttonStyle={styles.buttonHow} | ||
/> | ||
</View> | ||
</View> | ||
); | ||
}; |
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