earnings update

This commit is contained in:
2024-03-08 01:44:40 -05:00
parent ac6e89720f
commit 31348ba105
5 changed files with 154 additions and 114 deletions
+9 -9
View File
@@ -115,7 +115,7 @@ export const MoversModule = () => {
<div className="text-xs text-right text-neutral-400 2xl:w-20 2xl:text-base">
{item.stockPrice}
</div>
<div className="text-xs ml-2 rounded-lg bg-green-700 bg-opacity-90 w-20 text-center 2xl:ml-4 2xl:text-base">
<div className="text-xs ml-2 rounded-lg bg-green-500 bg-opacity-90 w-20 text-center 2xl:ml-4 2xl:text-base">
+{item.percentChange}%
</div>
</div>
@@ -134,7 +134,7 @@ export const MoversModule = () => {
<div className="text-xs text-right text-neutral-400 2xl:w-20 2xl:text-base">
{item.stockPrice}
</div>
<div className="text-xs ml-2 rounded-lg bg-red-700 bg-opacity-90 w-20 text-center 2xl:ml-4 2xl:text-base">
<div className="text-xs ml-2 rounded-lg bg-red-500 bg-opacity-90 w-20 text-center 2xl:ml-4 2xl:text-base">
{item.percentChange}%
</div>
</div>
@@ -172,17 +172,17 @@ export const MarketsModule = () => {
return (
<HomepageModule title="Markets">
<div className="flex h-full items-center py-4">
<div className="flex flex-col justify-between w-2/5 h-full px-2">
<div className="flex h-full items-center py-2 2xl:py-4">
<div className="flex flex-col justify-between h-full px-2">
{markets.map((marketItem) => (
<div
key={marketItem.symbol}
className="rounded-lg hover:bg-neutral-700 hover:cursor-pointer"
className="rounded-md hover:bg-neutral-700 hover:cursor-pointer"
>
<div className="flex items-center pl-2 py-1 justify-between border-b border-neutral-700">
<div className="font-semibold">{marketItem.symbol}</div>
<div className="text-sm font-semibold">{marketItem.symbol}</div>
<div className="flex justify-between space-x-4 text-sm pr-2">
<div className="w-12 text-right">
<div className="text-sm w-12 text-right 2xl:text-base">
{getLastPrice(marketItem.chart)}
</div>
<div
@@ -190,7 +190,7 @@ export const MarketsModule = () => {
getPriceDifference(marketItem.chart, 1) > 0
? "text-green-500"
: "text-red-500",
"w-12 text-right"
"text-sm w-10 text-right 2xl:w-12 2xl:text-base"
)}
>
{getPriceDifference(marketItem.chart, 1)}
@@ -209,7 +209,7 @@ export const MarketsModule = () => {
</div>
))}
</div>
<div className="h-full w-3/5 relative">
<div className="h-full grow relative">
<div className="absolute ml-4 mt-1">S&P 500</div>
<Chart
series={[sp500IndexLine, sma5Line]}