mirror of
https://github.com/dylanbenzi/yellowbird.git
synced 2026-11-27 01:07:01 +00:00
removed adv chart
This commit is contained in:
@@ -6,12 +6,13 @@ import {
|
||||
loserMovers,
|
||||
} from "@/app/MockData/MockData";
|
||||
import HomepageModule from "./HomepageModuleCard";
|
||||
import PortfolioChart from "../charts/PortfolioChart";
|
||||
import PortfolioChart from "../charts/Chart";
|
||||
import MarketHeatmap from "../charts/MarketHeatmap";
|
||||
import { Button } from "../ui/button";
|
||||
import { ArrowRight, Divide } from "lucide-react";
|
||||
import { NewsTable } from "../charts/news/NewsTable";
|
||||
import { newsColumns } from "../charts/news/newsColumns";
|
||||
import Chart from "../charts/Chart";
|
||||
|
||||
export const PortfolioModule = () => {
|
||||
return (
|
||||
@@ -22,7 +23,7 @@ export const PortfolioModule = () => {
|
||||
<div className="text-green-500">^10.0% $3,412.09</div>
|
||||
</div>
|
||||
<div className="h-3/4">
|
||||
<PortfolioChart data={portfolioData} />
|
||||
<Chart data={portfolioData} />
|
||||
</div>
|
||||
<div className="flex justify-between">
|
||||
<Button className="text-white" variant="link">
|
||||
@@ -53,7 +54,7 @@ export const HeatmapModule = () => {
|
||||
export const MoversModule = () => {
|
||||
return (
|
||||
<HomepageModule title="Movers">
|
||||
<div className="flex justify-between 2xl:px-8">
|
||||
<div className="flex justify-between 2xl:px-2">
|
||||
<div className="px-4 mt-4 2xl:mt-6">
|
||||
<div className="text-lg">Gainers</div>
|
||||
<div className="mt-4 grid grid-cols-2 grid-rows-5 gap-y-4 gap-x-2 2xl:gap-y-6 2xl:gap-x-10">
|
||||
@@ -63,10 +64,10 @@ export const MoversModule = () => {
|
||||
key={item.symbol}
|
||||
>
|
||||
<div className="w-32 font-bold 2xl:w-24">{item.symbol}</div>
|
||||
<div className="text-xs text-right text-neutral-400 2xl:w-20">
|
||||
<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">
|
||||
<div className="text-xs ml-2 rounded-lg bg-green-700 bg-opacity-90 w-20 text-center 2xl:ml-4 2xl:text-base">
|
||||
+{item.percentChange}%
|
||||
</div>
|
||||
</div>
|
||||
@@ -82,10 +83,10 @@ export const MoversModule = () => {
|
||||
key={item.symbol}
|
||||
>
|
||||
<div className="w-32 font-bold 2xl:w-24">{item.symbol}</div>
|
||||
<div className="text-xs text-right text-neutral-400 2xl:w-20">
|
||||
<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">
|
||||
<div className="text-xs ml-2 rounded-lg bg-red-700 bg-opacity-90 w-20 text-center 2xl:ml-4 2xl:text-base">
|
||||
{item.percentChange}%
|
||||
</div>
|
||||
</div>
|
||||
@@ -98,7 +99,16 @@ export const MoversModule = () => {
|
||||
};
|
||||
|
||||
export const MarketsModule = () => {
|
||||
return <HomepageModule title="Markets"></HomepageModule>;
|
||||
return (
|
||||
<HomepageModule title="Markets">
|
||||
<div className="w-full">
|
||||
<div className="w-1/2"></div>
|
||||
<div className="w-1/2 border-blue-200 border">
|
||||
<Chart />
|
||||
</div>
|
||||
</div>
|
||||
</HomepageModule>
|
||||
);
|
||||
};
|
||||
|
||||
export const EarningsModule = () => {
|
||||
|
||||
Reference in New Issue
Block a user