From 528e14fe90af1614af025cb101acfbaa0ddb5a15 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Tue, 14 Mar 2023 14:59:37 -0500 Subject: [PATCH] Handle logged out mobile web better --- src/view/com/auth/SplashScreen.web.tsx | 118 ++++++++++++++++++++----- src/view/com/auth/util/HelpTip.tsx | 11 ++- src/view/com/modals/Modal.web.tsx | 15 +++- src/view/shell/index.web.tsx | 26 ------ 4 files changed, 118 insertions(+), 52 deletions(-) diff --git a/src/view/com/auth/SplashScreen.web.tsx b/src/view/com/auth/SplashScreen.web.tsx index cef376c05f..a20f2d49ec 100644 --- a/src/view/com/auth/SplashScreen.web.tsx +++ b/src/view/com/auth/SplashScreen.web.tsx @@ -1,11 +1,14 @@ import React from 'react' import {StyleSheet, TouchableOpacity, View} from 'react-native' import {Text} from 'view/com/util/text/Text' +import {TextLink} from '../util/Link' import {ErrorBoundary} from 'view/com/util/ErrorBoundary' import {s, colors} from 'lib/styles' import {usePalette} from 'lib/hooks/usePalette' import {useStores} from 'state/index' import {CenteredView} from '../util/Views' +import {isDesktopWeb, isMobileWeb} from 'platform/detection' +import {HelpTip} from './util/HelpTip' export const SplashScreen = ({ onPressSignin, @@ -23,26 +26,38 @@ export const SplashScreen = ({ return ( - + - Bluesky - See what's next - - - - Create a new account - - - - Sign in - - + + Bluesky + + + See what's next + + {isDesktopWeb && ( + + + + Create a new account + + + + Sign in + + + )} {' '} to try the beta before it's publicly available. + {isMobileWeb && ( + <> + + + + + )} +