78 lines
2.8 KiB
Diff
78 lines
2.8 KiB
Diff
diff --git a/src/routes.ts b/src/routes.ts
|
|
--- a/src/routes.ts
|
|
+++ b/src/routes.ts
|
|
@@ -74,6 +74,7 @@ export const router = new Router<AllNavigatableRoutes>({
|
|
PrivacyPolicy: 'https://syu.is/about/support/privacy-policy',
|
|
TermsOfService: 'https://syu.is/about/support/tos',
|
|
CommunityGuidelines: '/support/community-guidelines',
|
|
+ License: 'https://syu.is/about/support/license',
|
|
CopyrightPolicy: '/support/copyright',
|
|
// hashtags
|
|
Hashtag: '/hashtag/:tag',
|
|
diff --git a/src/view/com/auth/SplashScreen.tsx b/src/view/com/auth/SplashScreen.tsx
|
|
--- a/src/view/com/auth/SplashScreen.tsx
|
|
+++ b/src/view/com/auth/SplashScreen.tsx
|
|
@@ -1,4 +1,5 @@
|
|
import {View} from 'react-native'
|
|
+import {Pressable, Linking} from 'react-native'
|
|
import Animated, {FadeIn, FadeOut} from 'react-native-reanimated'
|
|
import {useSafeAreaInsets} from 'react-native-safe-area-context'
|
|
import {msg, Trans} from '@lingui/macro'
|
|
@@ -40,16 +41,6 @@ export const SplashScreen = ({
|
|
<View style={[a.pb_sm, a.pt_5xl]}>
|
|
<Logotype width={161} fill={t.atoms.text.color} />
|
|
</View>
|
|
-
|
|
- <Text
|
|
- style={[
|
|
- a.text_md,
|
|
- a.font_semi_bold,
|
|
- t.atoms.text_contrast_medium,
|
|
- a.text_center,
|
|
- ]}>
|
|
- <Trans>What's up?</Trans>
|
|
- </Text>
|
|
</View>
|
|
|
|
<View
|
|
@@ -102,6 +93,21 @@ export const SplashScreen = ({
|
|
<AppLanguageDropdown />
|
|
</View>
|
|
</View>
|
|
+ <View style={[a.pb_sm, a.justify_center, a.align_center]}>
|
|
+ <Pressable onPress={() => Linking.openURL('https://syu.is/about/support/license')}>
|
|
+ <Text
|
|
+ style={[
|
|
+ a.text_xs,
|
|
+ t.atoms.text_contrast_low,
|
|
+ {textDecorationLine: 'underline'},
|
|
+ ]}>
|
|
+ License
|
|
+ </Text>
|
|
+ </Pressable>
|
|
+ </View>
|
|
+ <View style={[a.pb_xl, a.justify_center, a.align_center]}>
|
|
+ <Text style={[a.text_xs, t.atoms.text_contrast_low]}>© syui</Text>
|
|
+ </View>
|
|
<View style={{height: insets.bottom}} />
|
|
</ErrorBoundary>
|
|
</Animated.View>
|
|
diff --git a/src/view/com/auth/SplashScreen.web.tsx b/src/view/com/auth/SplashScreen.web.tsx
|
|
--- a/src/view/com/auth/SplashScreen.web.tsx
|
|
+++ b/src/view/com/auth/SplashScreen.web.tsx
|
|
@@ -94,14 +94,6 @@ export const SplashScreen = ({
|
|
</View>
|
|
)}
|
|
|
|
- <Text
|
|
- style={[
|
|
- a.text_md,
|
|
- a.font_semi_bold,
|
|
- t.atoms.text_contrast_medium,
|
|
- ]}>
|
|
- <Trans>What's up?</Trans>
|
|
- </Text>
|
|
</View>
|
|
|
|
<View
|