diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-08-03 15:36:03 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-08-08 16:25:34 +0200 |
| commit | 9f01cc07d2d6da86d43a002e52a189f60b63eb5d (patch) | |
| tree | 8f5f13a221aefba51d485b7e6e77d5228269cca3 /app/components | |
| parent | 7cb837912df646992f63ad5ff61c26871f5c24b8 (diff) | |
| download | mullvadvpn-9f01cc07d2d6da86d43a002e52a189f60b63eb5d.tar.xz mullvadvpn-9f01cc07d2d6da86d43a002e52a189f60b63eb5d.zip | |
Add launch screen
Diffstat (limited to 'app/components')
| -rw-r--r-- | app/components/Launch.js | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/app/components/Launch.js b/app/components/Launch.js new file mode 100644 index 0000000000..bab877dd53 --- /dev/null +++ b/app/components/Launch.js @@ -0,0 +1,58 @@ +// @flow +import * as React from 'react'; +import { Component, Styles, View, Text } from 'reactxp'; +import { Layout, Container, Header } from './Layout'; +import { SettingsBarButton } from './HeaderBar'; +import Img from './Img'; +import { colors } from '../config'; + +const styles = { + container: Styles.createViewStyle({ + flex: 1, + flexDirection: 'column', + alignItems: 'center', + justifyContent: 'center', + marginTop: -150, + }), + logo: Styles.createViewStyle({ + marginBottom: 4, + }), + title: Styles.createTextStyle({ + fontFamily: 'DINPro', + fontSize: 24, + fontWeight: '900', + lineHeight: 30, + letterSpacing: -0.5, + color: colors.white60, + marginBottom: 4, + }), + subtitle: Styles.createTextStyle({ + fontFamily: 'Open Sans', + fontSize: 14, + lineHeight: 20, + color: colors.white40, + }), +}; + +type Props = { + openSettings: () => void, +}; + +export default class Launch extends Component<Props> { + render() { + return ( + <Layout> + <Header> + <SettingsBarButton onPress={this.props.openSettings} /> + </Header> + <Container> + <View style={styles.container} testName="headerbar__container"> + <Img height={120} width={120} source="logo-icon" style={styles.logo} /> + <Text style={styles.title}>{'MULLVAD VPN'}</Text> + <Text style={styles.subtitle}>{'Connecting to daemon...'}</Text> + </View> + </Container> + </Layout> + ); + } +} |
