diff --git a/frontend/src/components/BentoCard.jsx b/frontend/src/components/BentoCard.jsx index bc51945..b01915b 100644 --- a/frontend/src/components/BentoCard.jsx +++ b/frontend/src/components/BentoCard.jsx @@ -47,9 +47,9 @@ const BentoCard = ({ // Get change color const getChangeColor = () => { if (typeof change === "number") { - return change > 0 ? "text-green-600" : change < 0 ? "text-red-600" : "text-gray-600"; + return change > 0 ? "text-green-600" : change < 0 ? "text-red-600" : "text-gray-600 dark:text-gray-400"; } - return "text-gray-600"; + return "text-gray-600 dark:text-gray-400"; }; // Get change icon @@ -128,7 +128,7 @@ const BentoCard = ({
{symbol}
+{symbol}
+
{period === "1h" ? "Last hour" : period === "24h" ? "Last 24 hours" : "Last 7 days"}
+
{data?.type === "crypto" ? "Cryptocurrency" : "Stock"} Price Chart
No chart data available
+No chart data available
Current Price
+Current Price
{data.price ? formatPrice(data.price) : "N/A"}
24h Change
-0 ? 'text-green-600' : data.change < 0 ? 'text-red-600' : 'text-gray-600'}`}> +
24h Change
+0 ? 'text-green-600' : data.change < 0 ? 'text-red-600' : 'text-gray-600 dark:text-gray-400'}`}> {data.change ? `${data.change > 0 ? '+' : ''}${data.change.toFixed(2)}%` : "N/A"}
Market Cap
+Market Cap
$1.2T
Volume
+Volume
24.5M
diff --git a/frontend/src/components/NewsCard.jsx b/frontend/src/components/NewsCard.jsx index 216b7c6..ec84b02 100644 --- a/frontend/src/components/NewsCard.jsx +++ b/frontend/src/components/NewsCard.jsx @@ -80,7 +80,7 @@ const NewsCard = ({Top headlines from around the world
+Top headlines from around the world
Loading latest news...
-API URL: {API_BASE_URL}
+API URL: {API_BASE_URL}
Top stories from the last 24 hours across all categories
-API URL: {API_BASE_URL}
+API URL: {API_BASE_URL}
{/* API Rate Limit Notice */} {Object.values(newsData).every(articles => articles.length === 0) && ( diff --git a/frontend/src/pages/Settings.jsx b/frontend/src/pages/Settings.jsx index fce9a7a..876f410 100644 --- a/frontend/src/pages/Settings.jsx +++ b/frontend/src/pages/Settings.jsx @@ -213,7 +213,7 @@ const Settings = () => { className="w-full" aria-label="Stock symbols separated by commas" /> -+
Enter stock symbols separated by commas (max 8 symbols)
+
Current: {localSettings.stocks.refreshInterval} seconds
Choose between Celsius and Fahrenheit
+Choose between Celsius and Fahrenheit
Automatically detect your location
+Automatically detect your location
+
Enter ISO country codes (e.g., us, gb, ca, au, de, fr)
+
Show {localSettings.news.maxArticles} article{localSettings.news.maxArticles !== 1 ? 's' : ''}
+
Enter cryptocurrency symbols separated by commas (max 6 symbols)
@@ -515,7 +515,7 @@ const Settings = () => { className="w-full" aria-label="Cryptocurrency refresh interval in seconds" /> -+
Current: {localSettings.crypto.refreshInterval} seconds