diff options
Diffstat (limited to 'src/view/com/auth/SplashScreen.tsx')
-rw-r--r-- | src/view/com/auth/SplashScreen.tsx | 44 |
1 files changed, 16 insertions, 28 deletions
diff --git a/src/view/com/auth/SplashScreen.tsx b/src/view/com/auth/SplashScreen.tsx index 27943f64d..f98bed120 100644 --- a/src/view/com/auth/SplashScreen.tsx +++ b/src/view/com/auth/SplashScreen.tsx @@ -1,11 +1,9 @@ import React from 'react' import {SafeAreaView, StyleSheet, TouchableOpacity, View} from 'react-native' -import Image, {Source as ImageSource} from 'view/com/util/images/Image' import {Text} from 'view/com/util/text/Text' import {ErrorBoundary} from 'view/com/util/ErrorBoundary' -import {colors} from 'lib/styles' +import {s, colors} from 'lib/styles' import {usePalette} from 'lib/hooks/usePalette' -import {CLOUD_SPLASH} from 'lib/assets' import {CenteredView} from '../util/Views' export const SplashScreen = ({ @@ -17,29 +15,29 @@ export const SplashScreen = ({ }) => { const pal = usePalette('default') return ( - <CenteredView style={styles.container}> - <Image source={CLOUD_SPLASH as ImageSource} style={styles.bgImg} /> + <CenteredView style={[styles.container, pal.view]}> <SafeAreaView testID="noSessionView" style={styles.container}> <ErrorBoundary> <View style={styles.hero}> - <View style={styles.heroText}> - <Text style={styles.title}>Bluesky</Text> - </View> + <Text style={[styles.title, pal.link]}>Bluesky</Text> + <Text style={[styles.subtitle, pal.textLight]}> + See what's next + </Text> </View> <View testID="signinOrCreateAccount" style={styles.btns}> <TouchableOpacity testID="createAccountButton" - style={[pal.view, styles.btn]} + style={[styles.btn, {backgroundColor: colors.blue3}]} onPress={onPressCreateAccount}> - <Text style={[pal.link, styles.btnLabel]}> + <Text style={[s.white, styles.btnLabel]}> Create a new account </Text> </TouchableOpacity> <TouchableOpacity testID="signInButton" - style={[pal.view, styles.btn]} + style={[styles.btn, pal.btn]} onPress={onPressSignin}> - <Text style={[pal.link, styles.btnLabel]}>Sign in</Text> + <Text style={[pal.text, styles.btnLabel]}>Sign in</Text> </TouchableOpacity> </View> </ErrorBoundary> @@ -56,37 +54,27 @@ const styles = StyleSheet.create({ flex: 2, justifyContent: 'center', }, - bgImg: { - position: 'absolute', - top: 0, - left: 0, - width: '100%', - height: '100%', - }, - heroText: { - backgroundColor: colors.white, - paddingTop: 10, - paddingBottom: 20, - }, btns: { paddingBottom: 40, }, title: { textAlign: 'center', - color: colors.blue3, fontSize: 68, fontWeight: 'bold', }, + subtitle: { + textAlign: 'center', + fontSize: 42, + fontWeight: 'bold', + }, btn: { - borderRadius: 4, + borderRadius: 32, paddingVertical: 16, marginBottom: 20, marginHorizontal: 20, - backgroundColor: colors.blue3, }, btnLabel: { textAlign: 'center', fontSize: 21, - color: colors.white, }, }) |