mirror of
https://github.com/dylanbenzi/yellowbird.git
synced 2026-11-27 09:17:00 +00:00
added mocked data
This commit is contained in:
@@ -981,14 +981,363 @@ export const earningsCalendar = [
|
||||
{ "value": 4, "day": "2024-03-29" },
|
||||
{ "value": 3, "day": "2024-03-30" },
|
||||
{ "value": 0, "day": "2024-03-31" },
|
||||
// { "value": 1, "day": "2024-04-01" },
|
||||
// { "value": 6, "day": "2024-04-02" },
|
||||
// { "value": 5, "day": "2024-04-03" },
|
||||
// { "value": 6, "day": "2024-04-04" },
|
||||
// { "value": 6, "day": "2024-04-05" },
|
||||
// { "value": 7, "day": "2024-04-06" },
|
||||
// { "value": 7, "day": "2024-04-07" },
|
||||
{ "value": 1, "day": "2024-04-01" },
|
||||
{ "value": 6, "day": "2024-04-02" },
|
||||
{ "value": 5, "day": "2024-04-03" },
|
||||
{ "value": 6, "day": "2024-04-04" },
|
||||
{ "value": 6, "day": "2024-04-05" },
|
||||
{ "value": 7, "day": "2024-04-06" },
|
||||
{ "value": 7, "day": "2024-04-07" },
|
||||
// { "value": 2, "day": "2024-04-08" },
|
||||
// { "value": 7, "day": "2024-04-09" },
|
||||
// { "value": 1, "day": "2024-04-10" },
|
||||
// { "value": 1, "day": "2024-04-11" },
|
||||
// { "value": 1, "day": "2024-04-12" },
|
||||
// { "value": 1, "day": "2024-04-13" },
|
||||
// { "value": 1, "day": "2024-04-14" },
|
||||
];
|
||||
|
||||
export const documentsList = [
|
||||
{
|
||||
"symbol": "AAPL",
|
||||
"title": "2024 Q1 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-04-10",
|
||||
},
|
||||
{
|
||||
"symbol": "NVDA",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-02-23",
|
||||
},
|
||||
{
|
||||
"symbol": "GOOGL",
|
||||
"title": "2024 Q2 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-07-30",
|
||||
},
|
||||
{
|
||||
"symbol": "MSFT",
|
||||
"title": "2024 Q3 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-10-31",
|
||||
},
|
||||
{
|
||||
"symbol": "AMZN",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-01-31",
|
||||
},
|
||||
{
|
||||
"symbol": "FB",
|
||||
"title": "2024 Q4 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-01-29",
|
||||
},
|
||||
{
|
||||
"symbol": "TSLA",
|
||||
"title": "2024 Q2 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-08-02",
|
||||
},
|
||||
{
|
||||
"symbol": "JNJ",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-02-12",
|
||||
},
|
||||
{
|
||||
"symbol": "V",
|
||||
"title": "2024 Q3 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-07-31",
|
||||
},
|
||||
{
|
||||
"symbol": "PG",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-08-01",
|
||||
},
|
||||
{
|
||||
"symbol": "JPM",
|
||||
"title": "2024 Q2 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-07-12",
|
||||
},
|
||||
{
|
||||
"symbol": "UNH",
|
||||
"title": "2024 Q3 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-10-18",
|
||||
},
|
||||
{
|
||||
"symbol": "DIS",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-09-30",
|
||||
},
|
||||
{
|
||||
"symbol": "HD",
|
||||
"title": "2024 Q4 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-12-10",
|
||||
},
|
||||
{
|
||||
"symbol": "BAC",
|
||||
"title": "2024 Q2 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-07-15",
|
||||
},
|
||||
{
|
||||
"symbol": "INTC",
|
||||
"title": "2024 Q3 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-10-29",
|
||||
},
|
||||
{
|
||||
"symbol": "VZ",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-02-20",
|
||||
},
|
||||
{
|
||||
"symbol": "CVX",
|
||||
"title": "2024 Q1 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-04-12",
|
||||
},
|
||||
{
|
||||
"symbol": "KO",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-03-15",
|
||||
},
|
||||
{
|
||||
"symbol": "AAPL",
|
||||
"title": "2024 Q2 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-07-25",
|
||||
},
|
||||
{
|
||||
"symbol": "NVDA",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-02-25",
|
||||
},
|
||||
{
|
||||
"symbol": "GOOGL",
|
||||
"title": "2024 Q3 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-10-31",
|
||||
},
|
||||
{
|
||||
"symbol": "MSFT",
|
||||
"title": "2024 Q4 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-01-25",
|
||||
},
|
||||
{
|
||||
"symbol": "AMZN",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-01-31",
|
||||
},
|
||||
{
|
||||
"symbol": "FB",
|
||||
"title": "2024 Q1 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-04-29",
|
||||
},
|
||||
{
|
||||
"symbol": "TSLA",
|
||||
"title": "2024 Q2 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-07-31",
|
||||
},
|
||||
{
|
||||
"symbol": "JNJ",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-02-10",
|
||||
},
|
||||
{
|
||||
"symbol": "V",
|
||||
"title": "2024 Q3 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-10-29",
|
||||
},
|
||||
{
|
||||
"symbol": "PG",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-09-01",
|
||||
},
|
||||
{
|
||||
"symbol": "JPM",
|
||||
"title": "2024 Q4 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-12-12",
|
||||
},
|
||||
{
|
||||
"symbol": "UNH",
|
||||
"title": "2024 Q1 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-04-20",
|
||||
},
|
||||
{
|
||||
"symbol": "DIS",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-03-31",
|
||||
},
|
||||
{
|
||||
"symbol": "HD",
|
||||
"title": "2024 Q2 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-07-10",
|
||||
},
|
||||
{
|
||||
"symbol": "BAC",
|
||||
"title": "2024 Q3 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-10-15",
|
||||
},
|
||||
{
|
||||
"symbol": "INTC",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-02-29",
|
||||
},
|
||||
{
|
||||
"symbol": "VZ",
|
||||
"title": "2024 Q1 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-04-22",
|
||||
},
|
||||
{
|
||||
"symbol": "CVX",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-03-30",
|
||||
},
|
||||
{
|
||||
"symbol": "KO",
|
||||
"title": "2024 Q2 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-07-20",
|
||||
},
|
||||
{
|
||||
"symbol": "AAPL",
|
||||
"title": "2024 Q3 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-10-24",
|
||||
},
|
||||
{
|
||||
"symbol": "NVDA",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-02-28",
|
||||
},
|
||||
{
|
||||
"symbol": "GOOGL",
|
||||
"title": "2024 Q4 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-01-30",
|
||||
},
|
||||
{
|
||||
"symbol": "MSFT",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-01-28",
|
||||
},
|
||||
{
|
||||
"symbol": "AMZN",
|
||||
"title": "2024 Q1 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-04-25",
|
||||
},
|
||||
{
|
||||
"symbol": "FB",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-03-29",
|
||||
},
|
||||
{
|
||||
"symbol": "TSLA",
|
||||
"title": "2024 Q2 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-07-30",
|
||||
},
|
||||
{
|
||||
"symbol": "JNJ",
|
||||
"title": "2024 Q3 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-10-15",
|
||||
},
|
||||
{
|
||||
"symbol": "V",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-02-15",
|
||||
},
|
||||
{
|
||||
"symbol": "PG",
|
||||
"title": "2024 Q4 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-12-15",
|
||||
},
|
||||
{
|
||||
"symbol": "JPM",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-02-29",
|
||||
},
|
||||
{
|
||||
"symbol": "UNH",
|
||||
"title": "2024 Q1 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-04-10",
|
||||
},
|
||||
{
|
||||
"symbol": "DIS",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-03-31",
|
||||
},
|
||||
{
|
||||
"symbol": "HD",
|
||||
"title": "2024 Q2 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-07-10",
|
||||
},
|
||||
{
|
||||
"symbol": "BAC",
|
||||
"title": "2024 Q3 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-10-15",
|
||||
},
|
||||
{
|
||||
"symbol": "INTC",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-02-29",
|
||||
},
|
||||
{
|
||||
"symbol": "VZ",
|
||||
"title": "2024 Q1 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-04-22",
|
||||
},
|
||||
{
|
||||
"symbol": "CVX",
|
||||
"title": "2024 Annual Report",
|
||||
"type": "10-K",
|
||||
"date": "2024-03-30",
|
||||
},
|
||||
{
|
||||
"symbol": "KO",
|
||||
"title": "2024 Q2 Earnings",
|
||||
"type": "10-Q",
|
||||
"date": "2024-07-20",
|
||||
},
|
||||
];
|
||||
|
||||
@@ -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