diff --git a/components/Widgets.tsx b/components/Widgets.tsx index 154bae8..920e17e 100644 --- a/components/Widgets.tsx +++ b/components/Widgets.tsx @@ -46,14 +46,13 @@ const styles = StyleSheet.create({ borderLeftColor: "#EFF3F4", }, widget: { - padding: 16, borderRadius: 16, backgroundColor: "#f7f9f9", }, widgetTitle: { fontSize: 18, fontWeight: "bold", - marginBottom: 8, + padding: 10, }, userItem: { flexDirection: "row", diff --git a/features/trends/Trends.tsx b/features/trends/Trends.tsx index 7e64e0e..e9bb166 100644 --- a/features/trends/Trends.tsx +++ b/features/trends/Trends.tsx @@ -1,22 +1,23 @@ import React from "react"; -import { View, StyleSheet, FlatList } from "react-native"; +import { View, StyleSheet, FlatList, TouchableOpacity } from "react-native"; import { Link } from "expo-router"; import { ThemedText } from "@/components/ThemedText"; import { useTranslation } from "react-i18next"; import { useFetchTrends } from "@/hooks/useFetchTrends"; import { Trend } from "@/interfaces/Trend"; +import { Ionicons } from "@expo/vector-icons"; const TrendItem = ({ trend, href, index }: { trend: Trend; href: string; index: number }) => ( - - {index + 1} - - {trend.topic} - + #{trend.topic} + {trend.countTotal.toLocaleString()} Posts + + + ); @@ -35,52 +36,38 @@ export function Trends() { /> )} keyExtractor={(item) => item.id} - ListHeaderComponent={ - {t("Trends for you")} - } style={styles.trendsList} /> ); } const styles = StyleSheet.create({ - trendsHeader: { - fontSize: 24, - fontWeight: "bold", - backgroundColor: "#f5f8fa", - borderBottomWidth: 1, - borderBottomColor: "#e1e8ed", - }, trendsList: { - backgroundColor: "#ffffff", }, trendContainer: { flexDirection: "row", - padding: 10, + padding: 8, borderBottomWidth: 1, borderBottomColor: "#e1e8ed", - }, - trendRankContainer: { - justifyContent: "center", alignItems: "center", - width: 40, - }, - trendRank: { - fontWeight: "bold", - color: "#1DA1F2", - fontSize: 18, }, trendContent: { flex: 1, - paddingLeft: 10, + paddingLeft: 5, }, trendTopic: { fontWeight: "bold", - fontSize: 18, + fontSize: 16, color: "#14171a", }, - trendcountTotal: { + trendCountTotal: { color: "#657786", - fontSize: 14, + fontSize: 12, + }, + menuIcon: { + position: "absolute", + right: 10, + justifyContent: "center", + alignItems: "center", }, }); \ No newline at end of file