搜索页面样式

This commit is contained in:
xianyi
2026-01-13 11:10:07 +08:00
parent b06c7027a0
commit fbdc06b3be
5 changed files with 1146 additions and 3 deletions

View File

@@ -68,6 +68,13 @@ function RootLayoutNav() {
headerShown: false, headerShown: false,
}} }}
/> />
<Stack.Screen
name="search"
options={{
animation: "slide_from_right",
headerShown: false,
}}
/>
</Stack> </Stack>
<StatusBar style={colorScheme === "dark" ? "light" : "dark"} /> <StatusBar style={colorScheme === "dark" ? "light" : "dark"} />
</NavigationThemeProvider> </NavigationThemeProvider>

1086
app/search.tsx Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -25,9 +25,7 @@ export function HomeHeader() {
<ThemedView style={styles.actions}> <ThemedView style={styles.actions}>
<TouchableOpacity <TouchableOpacity
style={styles.iconButton} style={styles.iconButton}
onPress={() => { onPress={() => router.push("/search")}
/* TODO: Search Action */
}}
> >
<IconSymbol name="search" size={24} color={iconColor} /> <IconSymbol name="search" size={24} color={iconColor} />
</TouchableOpacity> </TouchableOpacity>

View File

@@ -69,5 +69,31 @@
"badminton": "Badminton", "badminton": "Badminton",
"snooker": "Snooker", "snooker": "Snooker",
"volleyball": "Volleyball" "volleyball": "Volleyball"
},
"search": {
"title": "Search",
"subtitle": "Teams · Players · Leagues",
"placeholder": "Search teams, players, leagues",
"recent": "Recent searches",
"clear": "Clear",
"results": "Results",
"found": "found",
"tap_to_open": "Tap to open",
"no_results": "No results",
"no_results_hint": "Try another keyword or switch category",
"type": {
"team": "Team",
"player": "Player",
"league": "League"
},
"detail": {
"country": "Country",
"league": "League",
"season": "Season",
"team": "Team",
"position": "Position",
"open": "Open detail",
"save": "Save to recent"
}
} }
} }

View File

@@ -69,5 +69,31 @@
"badminton": "羽毛球", "badminton": "羽毛球",
"snooker": "斯诺克", "snooker": "斯诺克",
"volleyball": "排球" "volleyball": "排球"
},
"search": {
"title": "搜索",
"subtitle": "球队 · 球员 · 联赛",
"placeholder": "搜索球队、球员、联赛",
"recent": "最近搜索",
"clear": "清除",
"results": "结果",
"found": "个结果",
"tap_to_open": "点击打开",
"no_results": "无结果",
"no_results_hint": "尝试其他关键词或切换分类",
"type": {
"team": "球队",
"player": "球员",
"league": "联赛"
},
"detail": {
"country": "国家",
"league": "联赛",
"season": "赛季",
"team": "球队",
"position": "位置",
"open": "打开详情",
"save": "保存到最近"
}
} }
} }