Skip to content

Commit

Permalink
changes made to formatting of css and image files
Browse files Browse the repository at this point in the history
  • Loading branch information
eethansmith committed Dec 4, 2023
1 parent f0fb412 commit 9251bee
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,22 +118,26 @@ 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;
}

.stock-value-gain{
display: flex;
flex-direction: column;
align-items: flex-end;

gap: 5px;
font-size: 1.1em;
}

.gain-loss {
font-weight: bold;
font-size: 0.9em;
}
4 changes: 2 additions & 2 deletions frontend/src/StockHoldings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}, []);
Expand Down Expand Up @@ -85,7 +85,7 @@ function StockHoldings() {

return (
<div className="stock-holdings">
<h2>My Current Stock Holdings</h2>
<h2>Current Stock Holdings</h2>
{holdings.map((stock, index) => (
<button key={index} className="stock-button">
<img src={getImageUrl(stock.ticker)} alt={stock.name} className="stock-image" />
Expand Down
Binary file removed frontend/src/resources/NVDA.png~
Binary file not shown.
Binary file removed frontend/src/resources/ORCL.png~
Binary file not shown.

0 comments on commit 9251bee

Please sign in to comment.