diff --git a/app/(tabs)/forum.tsx b/app/(tabs)/forum.tsx index 36295b3..caa0986 100644 --- a/app/(tabs)/forum.tsx +++ b/app/(tabs)/forum.tsx @@ -2,7 +2,6 @@ import { IconSymbol } from "@/components/ui/IconSymbol"; import { Image } from "expo-image"; import { ScrollView, - StyleSheet, Text, TextInput, TouchableOpacity, @@ -12,63 +11,63 @@ import { SafeAreaView } from "react-native-safe-area-context"; export default function ForumScreen() { return ( - - + + {/* Search Bar */} - + {/* Category Filters */} - - - Main dish + + + Main dish - - Dessert + + Dessert - - Appetite + + Appetite {/* Filter Options */} - - - Rating + + + Rating - - Newest + + Newest - - Best + + Best {/* Post */} - + {/* User Info */} - - - + + + - Mr. Chef + Mr. Chef - - 4.2 + + 4.2 @@ -76,14 +75,16 @@ export default function ForumScreen() { {/* Post Image */} {/* Post Content */} - - Kajjecaw - + + + Kajjecaw + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut at hendrerit enim. Etiam lacinia mi nec nunc ornare, vitae tempus leo aliquet... @@ -91,24 +92,24 @@ export default function ForumScreen() { {/* Post Actions */} - - + + - 3 + 3 - + - 2 + 2 - + - 2 + 2 - + @@ -117,144 +118,3 @@ export default function ForumScreen() { ); } - -const styles = StyleSheet.create({ - container: { - flex: 1, - backgroundColor: "#FFFFFF", - }, - scrollView: { - flex: 1, - }, - searchContainer: { - flexDirection: "row", - alignItems: "center", - marginHorizontal: 16, - marginTop: 10, - marginBottom: 16, - paddingHorizontal: 12, - height: 40, - backgroundColor: "#FFFFFF", - borderRadius: 20, - borderWidth: 1, - borderColor: "#DDDDDD", - }, - searchInput: { - flex: 1, - marginLeft: 8, - color: "#333333", - }, - categoryContainer: { - flexDirection: "row", - justifyContent: "space-between", - marginHorizontal: 16, - marginBottom: 16, - }, - categoryButton: { - backgroundColor: "#FFCC00", - paddingVertical: 12, - paddingHorizontal: 16, - borderRadius: 12, - flex: 1, - marginHorizontal: 4, - alignItems: "center", - }, - categoryText: { - fontWeight: "bold", - color: "#333333", - }, - filterContainer: { - flexDirection: "row", - marginHorizontal: 16, - marginBottom: 16, - }, - filterButton: { - backgroundColor: "#FF0000", - paddingVertical: 8, - paddingHorizontal: 12, - borderRadius: 20, - marginRight: 8, - flexDirection: "row", - alignItems: "center", - }, - filterText: { - color: "#FFFFFF", - fontWeight: "bold", - marginRight: 4, - }, - postContainer: { - marginHorizontal: 16, - marginBottom: 16, - backgroundColor: "#FFFFFF", - borderRadius: 12, - overflow: "hidden", - borderWidth: 1, - borderColor: "#EEEEEE", - }, - userInfoContainer: { - flexDirection: "row", - justifyContent: "space-between", - alignItems: "center", - paddingHorizontal: 12, - paddingVertical: 8, - }, - userInfo: { - flexDirection: "row", - alignItems: "center", - }, - userAvatar: { - width: 32, - height: 32, - borderRadius: 16, - justifyContent: "center", - alignItems: "center", - backgroundColor: "#F5F5F5", - }, - userName: { - marginLeft: 8, - fontWeight: "bold", - color: "#333333", - }, - ratingContainer: { - flexDirection: "row", - alignItems: "center", - }, - ratingText: { - marginRight: 4, - fontWeight: "bold", - color: "#333333", - }, - postImage: { - width: "100%", - height: 200, - }, - postContent: { - padding: 12, - }, - postTitle: { - fontSize: 16, - fontWeight: "bold", - marginBottom: 4, - color: "#333333", - }, - postDescription: { - color: "#666666", - fontSize: 14, - }, - postActions: { - flexDirection: "row", - borderTopWidth: 1, - borderTopColor: "#EEEEEE", - paddingVertical: 8, - paddingHorizontal: 12, - }, - actionButton: { - flexDirection: "row", - alignItems: "center", - marginRight: 16, - }, - actionText: { - marginLeft: 4, - color: "#666666", - }, -});