Skip to content

Commit 087b542

Browse files
committed
updated dashboard look
1 parent 4fe4545 commit 087b542

13 files changed

Lines changed: 640 additions & 3495 deletions

File tree

app/+not-found.tsx

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,42 @@
1-
import { View, Text, StyleSheet, Pressable } from "react-native";
1+
import { useDarkMode } from "@/context/DarkModeContext";
22
import { useNavigation } from "@react-navigation/native";
3+
import { Pressable, StyleSheet, Text, View } from "react-native";
34

45
export default function NotFoundScreen() {
56
const navigation = useNavigation();
7+
const { isDarkMode } = useDarkMode();
68

79
return (
8-
<View style={styles.container}>
9-
<Text style={styles.title}>404</Text>
10-
<Text style={styles.subtitle}>Page not found</Text>
10+
<View style={[
11+
styles.container,
12+
{ backgroundColor: isDarkMode ? 'rgba(42, 42, 42, 1)' : '#ffffff' }
13+
]}>
14+
<Text style={[
15+
styles.title,
16+
{ color: isDarkMode ? '#F9FAFB' : '#111827' }
17+
]}>
18+
404
19+
</Text>
20+
<Text style={[
21+
styles.subtitle,
22+
{ color: isDarkMode ? '#9CA3AF' : '#6b7280' }
23+
]}>
24+
Page not found
25+
</Text>
1126

12-
<Pressable onPress={() => navigation.goBack()} style={styles.button}>
13-
<Text style={styles.buttonText}>Go back</Text>
27+
<Pressable
28+
onPress={() => navigation.goBack()}
29+
style={[
30+
styles.button,
31+
{ backgroundColor: isDarkMode ? '#4B5563' : '#000' }
32+
]}
33+
>
34+
<Text style={[
35+
styles.buttonText,
36+
{ color: isDarkMode ? '#F3F4F6' : '#fff' }
37+
]}>
38+
Go back
39+
</Text>
1440
</Pressable>
1541
</View>
1642
);
@@ -22,7 +48,6 @@ const styles = StyleSheet.create({
2248
alignItems: "center",
2349
justifyContent: "center",
2450
padding: 24,
25-
backgroundColor: "#fff",
2651
},
2752
title: {
2853
fontSize: 72,
@@ -31,17 +56,14 @@ const styles = StyleSheet.create({
3156
},
3257
subtitle: {
3358
fontSize: 18,
34-
color: "#666",
3559
marginBottom: 24,
3660
},
3761
button: {
3862
paddingHorizontal: 20,
3963
paddingVertical: 12,
4064
borderRadius: 8,
41-
backgroundColor: "#000",
4265
},
4366
buttonText: {
44-
color: "#fff",
4567
fontSize: 16,
4668
fontWeight: "600",
4769
},

app/analytics/teams/tauto.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const TAuto = () => {
2727
const { isDarkMode } = useDarkMode();
2828
const { setPageTitleInfo } = usePageTitleContext();
2929

30-
const availableYears: SupportedYear[] = [2019, 2020, 2021, 2022, 2023, 2024, 2025];
30+
const availableYears: SupportedYear[] = [2025, 2024, 2023, 2022, 2021, 2020, 2019];
3131

3232
const getSeasonName = (year: SupportedYear): string => {
3333
const seasonNames: Record<SupportedYear, string> = {

app/analytics/teams/tendgame.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const TEndgame = () => {
2727
const { isDarkMode } = useDarkMode();
2828
const { setPageTitleInfo } = usePageTitleContext();
2929

30-
const availableYears: SupportedYear[] = [2019, 2020, 2021, 2022, 2023, 2024, 2025];
30+
const availableYears: SupportedYear[] = [2025, 2024, 2023, 2022, 2021, 2020, 2019];
3131

3232
const getSeasonName = (year: SupportedYear): string => {
3333
const seasonNames: Record<SupportedYear, string> = {

app/analytics/teams/tranks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const TRanks = () => {
2727
const { isDarkMode } = useDarkMode();
2828
const { setPageTitleInfo } = usePageTitleContext();
2929

30-
const availableYears: SupportedYear[] = [2019, 2020, 2021, 2022, 2023, 2024, 2025];
30+
const availableYears: SupportedYear[] = [2025, 2024, 2023, 2022, 2021, 2020, 2019];
3131

3232
const getSeasonName = (year: SupportedYear): string => {
3333
const seasonNames: Record<SupportedYear, string> = {

app/analytics/teams/ttele.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const TTele = () => {
2727
const { isDarkMode } = useDarkMode();
2828
const { setPageTitleInfo } = usePageTitleContext();
2929

30-
const availableYears: SupportedYear[] = [2019, 2020, 2021, 2022, 2023, 2024, 2025];
30+
const availableYears: SupportedYear[] = [2025, 2024, 2023, 2022, 2021, 2020, 2019];
3131

3232
const getSeasonName = (year: SupportedYear): string => {
3333
const seasonNames: Record<SupportedYear, string> = {

0 commit comments

Comments
 (0)