From 394e476c6a11e20d1b38649f4c779b140f7b4c16 Mon Sep 17 00:00:00 2001 From: Kamal Kishor Joshi Date: Thu, 4 May 2023 21:20:26 +0530 Subject: [PATCH] improve onboading login screen (#189) --- App.js | 13 +++-- .../android/en-US/full_description.txt | 7 ++- .../android/en-US/short_description.txt | 2 +- .../fastlane/metadata/android/en-US/title.txt | 2 +- components/LoginOverlayScreen.js | 48 +++++++++++-------- 5 files changed, 44 insertions(+), 28 deletions(-) diff --git a/App.js b/App.js index 0442d2395..b703c017b 100644 --- a/App.js +++ b/App.js @@ -1,15 +1,18 @@ import React from 'react'; +import { ActivityIndicator } from 'react-native'; import LoginOverlayScreen from './components/LoginOverlayScreen'; import ApplicationRoot from './ApplicationRoot'; import Storage from './libs/Storage'; export default function App() { + const [isLoading, setIsLoading] = React.useState(false); const [isLoginOverlayStepDone, setIsLoginOverlayStepDone] = React.useState(true); React.useEffect(() => { Storage.isLoginOverlayStepDone().then((value) => { if (value === 'yes') { setIsLoginOverlayStepDone(false); } + setIsLoading(true); }); }, []); @@ -17,9 +20,13 @@ export default function App() { setIsLoginOverlayStepDone(false); }; - return isLoginOverlayStepDone ? ( - + return isLoading ? ( + isLoginOverlayStepDone ? ( + + ) : ( + + ) ) : ( - + ); } diff --git a/android/fastlane/metadata/android/en-US/full_description.txt b/android/fastlane/metadata/android/en-US/full_description.txt index 2d507ad2a..6adae1903 100644 --- a/android/fastlane/metadata/android/en-US/full_description.txt +++ b/android/fastlane/metadata/android/en-US/full_description.txt @@ -15,12 +15,13 @@ KEY FEATURES • A color palette library including Material design palettes, CSS named colors etc. • Download PNG of the palette • Rearange colors in a palette +• Generate color palettes using ChatGPT(AI) PRO BENEFITS • Add more than 4 colors in a palette. -• Export/sync palettes to the private GitHub repository + DESCRIPTION @@ -45,6 +46,8 @@ We made Croma to help designers manage colors easily, because colors matter. Whi Croma can be helpful in various tasks, such as web and graphic design, anywhere colors are needed. It's a must-have productivity tool for designers. +Generate color palettes in our website huehive using ChatGPT and view and edit palettes in the app. + OPEN SOURCE @@ -53,4 +56,4 @@ https://github.com/croma-app/croma-react Support: Have any question or suggestion? Please join our discord channel: -https://discord.com/invite/ZSBVsBqDtg +https://discord.com/invite/ZSBVsBqDtg \ No newline at end of file diff --git a/android/fastlane/metadata/android/en-US/short_description.txt b/android/fastlane/metadata/android/en-US/short_description.txt index 4c395a42a..8014398f4 100644 --- a/android/fastlane/metadata/android/en-US/short_description.txt +++ b/android/fastlane/metadata/android/en-US/short_description.txt @@ -1 +1 @@ -Save your colors \ No newline at end of file +Buzzing with inspiration for your color palettes \ No newline at end of file diff --git a/android/fastlane/metadata/android/en-US/title.txt b/android/fastlane/metadata/android/en-US/title.txt index 146dbc3c5..3ce93e956 100644 --- a/android/fastlane/metadata/android/en-US/title.txt +++ b/android/fastlane/metadata/android/en-US/title.txt @@ -1 +1 @@ -Croma - Palette Manager \ No newline at end of file +HueHive(Formerly Croma) \ No newline at end of file diff --git a/components/LoginOverlayScreen.js b/components/LoginOverlayScreen.js index a52ab45b5..dc237feb1 100644 --- a/components/LoginOverlayScreen.js +++ b/components/LoginOverlayScreen.js @@ -11,6 +11,7 @@ import Storage from '../libs/Storage'; import { PropTypes } from 'prop-types'; import { GoogleSignin, GoogleSigninButton } from '@react-native-google-signin/google-signin'; +import { ScrollView } from 'react-native-gesture-handler'; const LOGIN = 'LOGIN'; const SIGN_UP = 'SIGN_UP'; @@ -169,11 +170,23 @@ function LoginOverlayScreen({ markLoginStepDone }) { }, []); return ( - - + + {t('Welcome to HueHive (Croma),')} - {t('Please Singin/Signup to continue...')} + {t('Please sign-in/sign-up to continue.')} {error && setError(undefined)}>} + + + or sign-up/sign-in using email and password + {screenType === SIGN_UP && ( <> {validationErrors && validationErrors.fullName && ( @@ -229,16 +242,6 @@ function LoginOverlayScreen({ markLoginStepDone }) { onPress={onSubmit}> {t(LOGIN_AND_SIGNUP_TEXT[screenType].buttonText)} - - { @@ -250,10 +253,10 @@ function LoginOverlayScreen({ markLoginStepDone }) { {t(LOGIN_AND_SIGNUP_TEXT[screenType].linkText)} - - {t('Skip')} - - + + {t('Skip')} + + ); } @@ -302,7 +305,8 @@ const styles = StyleSheet.create({ borderRadius: 5, paddingTop: 10, paddingBottom: 10, - paddingLeft: 10 + paddingLeft: 10, + marginTop: 10 }, orSignUpContainer: { display: 'flex', @@ -345,10 +349,12 @@ const styles = StyleSheet.create({ marginTop: 30, padding: 3 }, + separator: { + marginTop: 10, + marginBottom: 10 + }, skip: { - position: 'absolute', - bottom: 0, - padding: 10 + marginBottom: 20 } });