Skip to content

Commit

Permalink
🍱 Update entry slogan
Browse files Browse the repository at this point in the history
  • Loading branch information
nwingt committed Oct 13, 2023
1 parent ce27ff2 commit 948d97e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 16 deletions.
1 change: 1 addition & 0 deletions app/screens/sign-in-screen/sign-in-screen.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const SignInScreenStyle = StyleSheet.create({
} as ViewStyle,
Slogan: {
width: "100%",
height: undefined,
alignSelf: "stretch",
aspectRatio: 244 / 94,
} as ImageStyle,
Expand Down
16 changes: 6 additions & 10 deletions app/screens/sign-in-screen/sign-in-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ import {
SignInScreenStyle as Style,
} from "./sign-in-screen.style"

import SloganEn from "./slogan-en.svg"
import SloganZh from "./slogan-zh.svg"

import { logError } from "../../utils/error"
import { logAnalyticsEvent } from "../../utils/analytics"

Expand Down Expand Up @@ -222,12 +219,12 @@ export class SignInScreen extends React.Component<SignInScreenProps, SignInScree
}


private getSlogan() {
private getSloganSrc() {
switch (i18n.locale) {
case "en":
return SloganEn
return require("./slogan-en.png")
default:
return SloganZh
return require("./slogan-zh.png")
}
}

Expand All @@ -249,8 +246,6 @@ export class SignInScreen extends React.Component<SignInScreenProps, SignInScree

const isLoading = !!isSigningIn || hasSignedInToAuthcore

const Slogan = this.getSlogan()

const bgImageStyle = {
opacity: this.state.viewFadeAnim,
transform: [{ scale: this.state.bgImageScaleAnim }],
Expand All @@ -265,8 +260,9 @@ export class SignInScreen extends React.Component<SignInScreenProps, SignInScree
<View style={Style.Root}>
<SafeAreaView style={Style.Footer}>
<Animated.View style={[Style.FooterContent, footerStyle]}>
<Slogan
fill={color.palette.likeGreen}
<Image
source={this.getSloganSrc()}
resizeMode="contain"
style={Style.Slogan}
/>
<AppVersionLabel style={Style.Version} />
Expand Down
Binary file added app/screens/sign-in-screen/slogan-en.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions app/screens/sign-in-screen/slogan-en.svg

This file was deleted.

Binary file added app/screens/sign-in-screen/slogan-zh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions app/screens/sign-in-screen/slogan-zh.svg

This file was deleted.

0 comments on commit 948d97e

Please sign in to comment.