From 9251bee47ea346c101eda2a656d0571e973bbf6f Mon Sep 17 00:00:00 2001 From: psyes9 Date: Mon, 4 Dec 2023 16:48:31 +0000 Subject: [PATCH] changes made to formatting of css and image files --- frontend/src/App.css | 16 ++++++++++------ frontend/src/StockHoldings.js | 4 ++-- frontend/src/resources/NVDA.png~ | Bin 113001 -> 0 bytes frontend/src/resources/ORCL.png~ | Bin 143841 -> 0 bytes 4 files changed, 12 insertions(+), 8 deletions(-) delete mode 100644 frontend/src/resources/NVDA.png~ delete mode 100644 frontend/src/resources/ORCL.png~ diff --git a/frontend/src/App.css b/frontend/src/App.css index 4bff47b..c8ffc42 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -118,17 +118,13 @@ h1 { display: flex; flex-direction: column; align-items: flex-start; + color: #909090; gap: 5px; /* Added space between info lines */ } .stock-name { font-weight: bold; - font-size: 1.1em; - color: #F5F5F5; -} - -.stock-hold { - font-size: 1.1em; + font-size: 1.25em; color: #F5F5F5; } @@ -136,4 +132,12 @@ h1 { display: flex; flex-direction: column; align-items: flex-end; + + gap: 5px; + font-size: 1.1em; +} + +.gain-loss { + font-weight: bold; + font-size: 0.9em; } \ No newline at end of file diff --git a/frontend/src/StockHoldings.js b/frontend/src/StockHoldings.js index c66c946..596f90e 100644 --- a/frontend/src/StockHoldings.js +++ b/frontend/src/StockHoldings.js @@ -39,7 +39,7 @@ function StockHoldings() { fetchStockHoldings(); // Set up an interval to fetch data every few seconds - const interval = setInterval(fetchStockHoldings, 20000); + const interval = setInterval(fetchStockHoldings, 2000); return () => clearInterval(interval); }, []); @@ -85,7 +85,7 @@ function StockHoldings() { return (
-

My Current Stock Holdings

+

Current Stock Holdings

{holdings.map((stock, index) => (