summaryrefslogtreecommitdiff
path: root/app/+not-found.tsx
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-07-16 09:58:34 +0700
committerpolwex <polwex@sortug.com>2025-07-16 09:58:34 +0700
commitdc0ad21f0e857adb87d710dd0f2f9affd0a9cbc9 (patch)
tree3d556ead415654e03b511b007365bcdff6d612ee /app/+not-found.tsx
parent697ed671f394cbd07ea9751fe17f262744d99a49 (diff)
kinda works
Diffstat (limited to 'app/+not-found.tsx')
-rw-r--r--app/+not-found.tsx36
1 files changed, 25 insertions, 11 deletions
diff --git a/app/+not-found.tsx b/app/+not-found.tsx
index 215b0ed..68601c6 100644
--- a/app/+not-found.tsx
+++ b/app/+not-found.tsx
@@ -1,19 +1,19 @@
-import { Link, Stack } from 'expo-router';
-import { StyleSheet } from 'react-native';
+import { Link, Stack } from "expo-router";
+import { View, Text, StyleSheet } from "react-native";
-import { ThemedText } from '@/components/ThemedText';
-import { ThemedView } from '@/components/ThemedView';
+// import { ThemedText } from '@/components/ThemedText';
+// import { ThemedView } from '@/components/ThemedView';
export default function NotFoundScreen() {
return (
<>
- <Stack.Screen options={{ title: 'Oops!' }} />
- <ThemedView style={styles.container}>
- <ThemedText type="title">This screen does not exist.</ThemedText>
+ <Stack.Screen options={{ title: "Oops!" }} />
+ <View style={styles.container}>
+ <Text style={styles.title}>This screen does not exist.</Text>
<Link href="/" style={styles.link}>
- <ThemedText type="link">Go to home screen!</ThemedText>
+ <Text style={styles.linkText}>Go to home screen!</Text>
</Link>
- </ThemedView>
+ </View>
</>
);
}
@@ -21,12 +21,26 @@ export default function NotFoundScreen() {
const styles = StyleSheet.create({
container: {
flex: 1,
- alignItems: 'center',
- justifyContent: 'center',
+ alignItems: "center",
+ justifyContent: "center",
padding: 20,
},
link: {
marginTop: 15,
paddingVertical: 15,
},
+ title: {
+ fontSize: 32,
+ fontWeight: "bold",
+ lineHeight: 32,
+ },
+ subtitle: {
+ fontSize: 20,
+ fontWeight: "bold",
+ },
+ linkText: {
+ lineHeight: 30,
+ fontSize: 16,
+ color: "#0a7ea4",
+ },
});