Cream together eggs, sugar, and vanilla
This commit is contained in:
@@ -7,6 +7,8 @@ import {usePalette} from 'lib/hooks/usePalette'
|
|||||||
import {CenteredView} from '../util/Views'
|
import {CenteredView} from '../util/Views'
|
||||||
import {Trans, msg} from '@lingui/macro'
|
import {Trans, msg} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
import {Logo} from '#/view/icons/Logo'
|
||||||
|
import {Logotype} from '#/view/icons/Logotype'
|
||||||
|
|
||||||
export const SplashScreen = ({
|
export const SplashScreen = ({
|
||||||
onPressSignin,
|
onPressSignin,
|
||||||
@@ -22,11 +24,14 @@ export const SplashScreen = ({
|
|||||||
<CenteredView style={[styles.container, pal.view]}>
|
<CenteredView style={[styles.container, pal.view]}>
|
||||||
<ErrorBoundary>
|
<ErrorBoundary>
|
||||||
<View style={styles.hero}>
|
<View style={styles.hero}>
|
||||||
<Text style={[styles.title, pal.link]}>
|
<Logo width={92} fill="sky" />
|
||||||
<Trans>Bluesky</Trans>
|
|
||||||
</Text>
|
<View style={{paddingTop: 40, paddingBottom: 6}}>
|
||||||
<Text style={[styles.subtitle, pal.textLight]}>
|
<Logotype width={161} />
|
||||||
<Trans>See what's next</Trans>
|
</View>
|
||||||
|
|
||||||
|
<Text type="lg-medium" style={[pal.textLight]}>
|
||||||
|
<Trans>What's next?</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<View testID="signinOrCreateAccount" style={styles.btns}>
|
<View testID="signinOrCreateAccount" style={styles.btns}>
|
||||||
@@ -65,6 +70,7 @@ const styles = StyleSheet.create({
|
|||||||
hero: {
|
hero: {
|
||||||
flex: 2,
|
flex: 2,
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
|
alignItems: 'center',
|
||||||
},
|
},
|
||||||
btns: {
|
btns: {
|
||||||
paddingBottom: 40,
|
paddingBottom: 40,
|
||||||
|
|||||||
+22
-8
@@ -1,18 +1,32 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Svg, {Path, SvgProps, PathProps} from 'react-native-svg'
|
import Svg, {
|
||||||
|
Path,
|
||||||
|
Defs,
|
||||||
|
LinearGradient,
|
||||||
|
Stop,
|
||||||
|
SvgProps,
|
||||||
|
PathProps,
|
||||||
|
} from 'react-native-svg'
|
||||||
|
|
||||||
import {colors} from '#/lib/styles'
|
import {colors} from '#/lib/styles'
|
||||||
|
|
||||||
export function Logo({fill, ...rest}: {fill?: PathProps['fill']} & SvgProps) {
|
export function Logo({fill, ...rest}: {fill?: PathProps['fill']} & SvgProps) {
|
||||||
|
const gradient = fill === 'sky'
|
||||||
|
const _fill = gradient ? 'url(#sky)' : fill || colors.blue3
|
||||||
|
const size = rest.width || 32
|
||||||
return (
|
return (
|
||||||
<Svg
|
<Svg fill="none" viewBox="0 0 64 64" {...rest} width={size} height={size}>
|
||||||
fill="none"
|
{gradient && (
|
||||||
viewBox="0 0 64 64"
|
<Defs>
|
||||||
{...rest}
|
<LinearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
|
||||||
width={rest.width || 32}
|
<Stop offset="0" stopColor="#0A7AFF" stopOpacity="1" />
|
||||||
height={rest.height || rest.width || 32}>
|
<Stop offset="1" stopColor="#59B9FF" stopOpacity="1" />
|
||||||
|
</LinearGradient>
|
||||||
|
</Defs>
|
||||||
|
)}
|
||||||
|
|
||||||
<Path
|
<Path
|
||||||
fill={fill || colors.blue3}
|
fill={_fill}
|
||||||
d="M13.873 4.308C21.21 10.564 29.103 23.25 32 30.057c2.898-6.807 10.79-19.493 18.127-25.75C55.421-.205 64-3.698 64 7.416c0 2.22-1.12 18.647-1.778 21.314-2.284 9.272-10.609 11.637-18.014 10.206 12.944 2.502 16.236 10.789 9.125 19.076-13.505 15.74-19.41-3.949-20.924-8.994-.277-.924-.407-1.357-.409-.99-.002-.367-.132.066-.41.99-1.512 5.045-7.418 24.734-20.923 8.994-7.111-8.287-3.819-16.574 9.125-19.076C12.387 40.366 4.062 38 1.778 28.729 1.12 26.062 0 9.635 0 7.415 0-3.699 8.579-.206 13.873 4.308Z"
|
d="M13.873 4.308C21.21 10.564 29.103 23.25 32 30.057c2.898-6.807 10.79-19.493 18.127-25.75C55.421-.205 64-3.698 64 7.416c0 2.22-1.12 18.647-1.778 21.314-2.284 9.272-10.609 11.637-18.014 10.206 12.944 2.502 16.236 10.789 9.125 19.076-13.505 15.74-19.41-3.949-20.924-8.994-.277-.924-.407-1.357-.409-.99-.002-.367-.132.066-.41.99-1.512 5.045-7.418 24.734-20.923 8.994-7.111-8.287-3.819-16.574 9.125-19.076C12.387 40.366 4.062 38 1.778 28.729 1.12 26.062 0 9.635 0 7.415 0-3.699 8.579-.206 13.873 4.308Z"
|
||||||
/>
|
/>
|
||||||
</Svg>
|
</Svg>
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import Svg, {Path, SvgProps, PathProps} from 'react-native-svg'
|
||||||
|
|
||||||
|
import {colors} from '#/lib/styles'
|
||||||
|
|
||||||
|
const ratio = 17 / 64
|
||||||
|
|
||||||
|
export function Logotype({
|
||||||
|
fill,
|
||||||
|
...rest
|
||||||
|
}: {fill?: PathProps['fill']} & SvgProps) {
|
||||||
|
// @ts-ignore it's fiiiiine
|
||||||
|
const size = parseInt(rest.width || 32)
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Svg
|
||||||
|
fill="none"
|
||||||
|
viewBox="0 0 64 17"
|
||||||
|
{...rest}
|
||||||
|
width={size}
|
||||||
|
height={Number(size) * ratio}>
|
||||||
|
<Path
|
||||||
|
fill={fill || colors.black}
|
||||||
|
d="M8.478 6.252c1.503.538 2.3 1.78 2.3 3.172 0 2.356-1.576 3.785-4.6 3.785H0V0h5.974c2.875 0 4.267 1.466 4.267 3.413 0 1.3-.594 2.245-1.763 2.839Zm-2.69-4.193H2.504v3.45h3.284c1.28 0 1.967-.667 1.967-1.78 0-1.02-.705-1.67-1.967-1.67Zm-3.284 9.072h3.544c1.41 0 2.17-.65 2.17-1.818 0-1.224-.723-1.837-2.17-1.837H2.504v3.655ZM14.251 13.209h-2.337V0h2.337v13.209ZM22.001 8.998V3.636h2.338v9.573h-2.263v-1.392c-.724 1.076-1.726 1.614-3.006 1.614-2.022 0-3.34-1.224-3.34-3.45V3.636h2.338v5.955c0 1.206.594 1.818 1.8 1.818 1.132 0 2.133-.835 2.133-2.411ZM34.979 8.59v.556h-7.161c.167 1.651 1.076 2.467 2.486 2.467 1.076 0 1.8-.463 2.189-1.372h2.244c-.5 1.947-2.17 3.19-4.452 3.19-1.428 0-2.579-.463-3.45-1.372-.872-.91-1.318-2.115-1.318-3.637 0-1.502.427-2.708 1.299-3.636.872-.909 2.004-1.372 3.432-1.372 1.447 0 2.597.482 3.45 1.428.854.946 1.28 2.208 1.28 3.747Zm-4.75-3.358c-1.28 0-2.17.742-2.393 2.281h4.805c-.204-1.391-1.057-2.281-2.411-2.281ZM40.16 13.469c-2.783 0-4.249-1.095-4.379-3.303h2.282c.13 1.188.724 1.633 2.134 1.633 1.261 0 1.892-.39 1.892-1.15 0-.687-.445-1.02-1.874-1.262l-1.094-.185c-2.097-.353-3.136-1.318-3.136-2.894 0-1.8 1.429-2.894 3.97-2.894 2.728 0 4.138 1.075 4.23 3.246h-2.207c-.056-1.169-.742-1.577-2.023-1.577-1.113 0-1.67.371-1.67 1.113 0 .668.483.965 1.596 1.169l1.206.186c2.32.426 3.32 1.28 3.32 2.912 0 1.93-1.557 3.006-4.247 3.006ZM54.667 13.209h-2.671l-2.783-4.453-1.447 1.447v3.006h-2.3V0h2.3v7.606l3.896-3.97h2.783l-3.618 3.618 3.84 5.955ZM60.772 6.048l.78-2.412H64l-3.692 10.352c-.39 1.057-.872 1.818-1.484 2.245-.612.426-1.484.63-2.634.63-.39 0-.724-.018-1.02-.055V14.97h.89c1.057 0 1.577-.65 1.577-1.54 0-.445-.149-1.094-.446-1.929l-2.746-7.866h2.487l.779 2.393c.575 1.8 1.076 3.58 1.521 5.343.408-1.521.928-3.302 1.54-5.324Z"
|
||||||
|
/>
|
||||||
|
</Svg>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user