From 32be661d87ab1cd25bfbb95cc41d3435f6fb0dee Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 25 Jan 2023 19:01:16 -0600 Subject: Brand tuning: switch from "blueprint B" to "cloud imagery" (#96) * Switch app icon to bluesky image * Update splash screen to clouds * Update login screen to use branding * Lighten the shadows in the brand imagery --- src/view/com/login/Logo.tsx | 38 +---------------- src/view/lib/assets.native.ts | 1 + src/view/lib/assets.ts | 1 + src/view/screens/Login.tsx | 97 ++++++++++++++++--------------------------- 4 files changed, 40 insertions(+), 97 deletions(-) (limited to 'src') diff --git a/src/view/com/login/Logo.tsx b/src/view/com/login/Logo.tsx index 7045e4152..ec53549b1 100644 --- a/src/view/com/login/Logo.tsx +++ b/src/view/com/login/Logo.tsx @@ -1,42 +1,9 @@ import React from 'react' -import {StyleSheet, View} from 'react-native' +import {StyleSheet} from 'react-native' import LinearGradient from 'react-native-linear-gradient' -import Svg, {Circle, Line, Text as SvgText} from 'react-native-svg' import {s, gradients} from '../../lib/styles' import {Text} from '../util/text/Text' -export const Logo = ({color, size = 100}: {color: string; size?: number}) => { - return ( - - - - - - - - - B - - - - ) -} - export const LogoTextHero = () => { return ( { start={{x: 0, y: 0}} end={{x: 1, y: 1}} style={[styles.textHero]}> - - + Bluesky diff --git a/src/view/lib/assets.native.ts b/src/view/lib/assets.native.ts index 609f8e019..a2db553e7 100644 --- a/src/view/lib/assets.native.ts +++ b/src/view/lib/assets.native.ts @@ -2,3 +2,4 @@ import {ImageSourcePropType} from 'react-native' export const DEF_AVATAR: ImageSourcePropType = require('../../../public/img/default-avatar.jpg') export const TABS_EXPLAINER: ImageSourcePropType = require('../../../public/img/tabs-explainer.jpg') +export const CLOUD_SPLASH: ImageSourcePropType = require('../../../public/img/cloud-splash.png') diff --git a/src/view/lib/assets.ts b/src/view/lib/assets.ts index 9e937d4db..948f3a22f 100644 --- a/src/view/lib/assets.ts +++ b/src/view/lib/assets.ts @@ -4,3 +4,4 @@ export const DEF_AVATAR: ImageSourcePropType = {uri: '/img/default-avatar.jpg'} export const TABS_EXPLAINER: ImageSourcePropType = { uri: '/img/tabs-explainer.jpg', } +export const CLOUD_SPLASH: ImageSourcePropType = {uri: '/img/cloud-splash.png'} diff --git a/src/view/screens/Login.tsx b/src/view/screens/Login.tsx index accd0f428..81a2c9e6b 100644 --- a/src/view/screens/Login.tsx +++ b/src/view/screens/Login.tsx @@ -1,21 +1,19 @@ import React, {useState} from 'react' import { + Image, SafeAreaView, StyleSheet, TouchableOpacity, View, - useWindowDimensions, } from 'react-native' -import Svg, {Line} from 'react-native-svg' -import LinearGradient from 'react-native-linear-gradient' import {observer} from 'mobx-react-lite' import {Signin} from '../com/login/Signin' -import {Logo} from '../com/login/Logo' import {CreateAccount} from '../com/login/CreateAccount' import {Text} from '../com/util/text/Text' import {ErrorBoundary} from '../com/util/ErrorBoundary' -import {s, colors} from '../lib/styles' +import {colors} from '../lib/styles' import {usePalette} from '../lib/hooks/usePalette' +import {CLOUD_SPLASH} from '../lib/assets' enum ScreenState { S_SigninOrCreateAccount, @@ -30,48 +28,27 @@ const SigninOrCreateAccount = ({ onPressSignin: () => void onPressCreateAccount: () => void }) => { - const winDim = useWindowDimensions() - const halfWidth = winDim.width / 2 + const pal = usePalette('default') return ( <> - - Bluesky - [ private beta ] + + Bluesky + [ private beta ] + - + - Create a new account + Create a new account - - - - - - or - - Sign in + Sign in @@ -86,11 +63,8 @@ export const Login = observer(() => { if (screenState === ScreenState.S_SigninOrCreateAccount) { return ( - + + { /> - + ) } @@ -140,21 +114,34 @@ 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.white, + color: colors.blue3, fontSize: 68, fontWeight: 'bold', }, subtitle: { textAlign: 'center', - color: colors.white, + color: colors.blue3, fontSize: 18, }, btn: { - borderWidth: 1, - borderColor: colors.white, - borderRadius: 10, + borderRadius: 4, paddingVertical: 16, marginBottom: 20, marginHorizontal: 20, @@ -162,20 +149,8 @@ const styles = StyleSheet.create({ }, btnLabel: { textAlign: 'center', + fontSize: 21, + // fontWeight: '500', color: colors.white, - fontSize: 18, - fontWeight: 'bold', - }, - or: { - marginBottom: 20, - }, - orLine: { - position: 'absolute', - top: 10, - }, - orLabel: { - textAlign: 'center', - color: colors.white, - fontSize: 16, }, }) -- cgit 1.4.1