mirror of
https://github.com/dylanbenzi/yellowbird.git
synced 2026-11-27 01:07:01 +00:00
added mocked data
This commit is contained in:
@@ -173,16 +173,18 @@ export const MarketsModule = () => {
|
||||
return (
|
||||
<HomepageModule title="Markets">
|
||||
<div className="flex h-full items-center py-2 2xl:py-4">
|
||||
<div className="flex flex-col justify-between h-full px-2">
|
||||
<div className="flex flex-col grow max-w-[40%] justify-between h-full px-2">
|
||||
{markets.map((marketItem) => (
|
||||
<div
|
||||
key={marketItem.symbol}
|
||||
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="text-sm font-semibold">{marketItem.symbol}</div>
|
||||
<div className="text-sm font-semibold 2xl:text-base">
|
||||
{marketItem.symbol}
|
||||
</div>
|
||||
<div className="flex justify-between space-x-4 text-sm pr-2">
|
||||
<div className="text-sm w-12 text-right 2xl:text-base">
|
||||
<div className="text-sm w-12 text-right">
|
||||
{getLastPrice(marketItem.chart)}
|
||||
</div>
|
||||
<div
|
||||
@@ -190,7 +192,7 @@ export const MarketsModule = () => {
|
||||
getPriceDifference(marketItem.chart, 1) > 0
|
||||
? "text-green-500"
|
||||
: "text-red-500",
|
||||
"text-sm w-10 text-right 2xl:w-12 2xl:text-base"
|
||||
"text-sm w-10 text-right 2xl:w-12"
|
||||
)}
|
||||
>
|
||||
{getPriceDifference(marketItem.chart, 1)}
|
||||
@@ -209,7 +211,7 @@ export const MarketsModule = () => {
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<div className="h-full grow relative">
|
||||
<div className="h-full grow max-w-[60%] relative">
|
||||
<div className="absolute ml-4 mt-1">S&P 500</div>
|
||||
<Chart
|
||||
series={[sp500IndexLine, sma5Line]}
|
||||
|
||||
Reference in New Issue
Block a user