update to month calendar

This commit is contained in:
2024-06-14 18:47:36 -04:00
parent ac89bb6885
commit 5ac547f25c
12 changed files with 3786 additions and 3915 deletions
+3
View File
@@ -21,6 +21,7 @@
"@radix-ui/react-dialog": "^1.0.5", "@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-separator": "^1.0.3", "@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2", "@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-tooltip": "^1.0.7", "@radix-ui/react-tooltip": "^1.0.7",
"@tanstack/react-table": "^8.13.2", "@tanstack/react-table": "^8.13.2",
"class-variance-authority": "^0.7.0", "class-variance-authority": "^0.7.0",
@@ -34,6 +35,8 @@
"next-themes": "^0.2.1", "next-themes": "^0.2.1",
"react": "^18", "react": "^18",
"react-dom": "^18", "react-dom": "^18",
"react-resizable-panels": "^2.0.19",
"react-resize-detector": "^11.0.1",
"tailwind-merge": "^2.2.1", "tailwind-merge": "^2.2.1",
"tailwindcss-animate": "^1.0.7" "tailwindcss-animate": "^1.0.7"
}, },
+2599 -3093
View File
File diff suppressed because it is too large Load Diff
+714
View File
@@ -0,0 +1,714 @@
export const week = [
{
"date": "2024-06-24T08:00:00.000Z",
"events": [
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "JPM Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "AMZN Conference", "variant": "conference", "time": "BMO" },
{ "title": "MSFT Conference", "variant": "conference", "time": "AMC" },
{ "title": "AAPL Event", "variant": "event", "time": "AMC" },
{ "title": "META Split", "variant": "split", "time": "AMC" },
{ "title": "JPM Earnings", "variant": "earnings", "time": "BMO" },
],
},
{
"date": "2024-06-25T08:00:00.000Z",
"events": [{ "title": "BABA Event", "variant": "event", "time": "BMO" }],
},
{
"date": "2024-06-26T08:00:00.000Z",
"events": [
{ "title": "AAPL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "AAPL Split", "variant": "split", "time": "BMO" },
{ "title": "META Conference", "variant": "conference", "time": "AMC" },
{ "title": "TSLA Event", "variant": "event", "time": "BMO" },
{ "title": "META Event", "variant": "event", "time": "AMC" },
],
},
{
"date": "2024-06-27T08:00:00.000Z",
"events": [
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "MSFT Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "TSLA Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
],
},
{
"date": "2024-06-28T08:00:00.000Z",
"events": [
{ "title": "BABA Split", "variant": "split", "time": "AMC" },
{ "title": "AAPL Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "AAPL Event", "variant": "event", "time": "AMC" },
{ "title": "JPM Event", "variant": "event", "time": "BMO" },
{ "title": "TSLA Event", "variant": "event", "time": "BMO" },
{ "title": "AAPL Earnings", "variant": "earnings", "time": "BMO" },
],
},
];
export const dates = [
{
"date": "2024-05-26T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-05-27T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
{ "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-05-28T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Split", "variant": "split", "time": "AMC" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-05-29T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-05-30T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Split", "variant": "split", "time": "AMC" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
{ "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-05-31T08:00:00.000Z",
"events": [
{ "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-01T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-02T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-03T08:00:00.000Z",
"events": [
{ "title": "BABA Conference", "variant": "conference", "time": "AMC" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Split", "variant": "split", "time": "AMC" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
{ "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-04T08:00:00.000Z",
"events": [
{ "title": "BABA Conference", "variant": "conference", "time": "AMC" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-05T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
{ "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-06T08:00:00.000Z",
"events": [
{ "title": "BABA Conference", "variant": "conference", "time": "AMC" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
{ "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-07T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-08T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-09T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-10T08:00:00.000Z",
"events": [
{ "title": "BABA Conference", "variant": "conference", "time": "AMC" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Split", "variant": "split", "time": "AMC" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
{ "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
{ "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-11T08:00:00.000Z",
"events": [
{ "title": "BABA Conference", "variant": "conference", "time": "AMC" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Split", "variant": "split", "time": "AMC" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
{ "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
{ "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-12T08:00:00.000Z",
"events": [
{ "title": "BABA Conference", "variant": "conference", "time": "AMC" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Split", "variant": "split", "time": "AMC" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
{ "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
{ "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-13T08:00:00.000Z",
"events": [
{
"title": "TSLA Event",
"variant": "event",
"time": "9:00am",
"description":
"Tesla shareholders have reaffirmed a pay award of more than $45 billion for Elon Musk, the chief executive, after it was thrown out in a legal challenge.\nThe vote result, announced at Tesla's annual meeting at its headquarters in Austin, Texas, on Thursday, is a strong sign that shareholders still believe in Mr. Musk, and it could persuade the judge who voided the award to reinstate it.\nSupport for the pay award, made up of stock options, will come as a relief to Mr. Musk's admirers, who feared that rejection would prompt him to spend less time managing Tesla or even quit. The vote was a setback for investors who had hoped it would send a message about the accountability of chief executives and the limits of executive pay.\nThe outcome may also help Mr. Musk qualify as the world's richest person, worth well over $200 billion.\nAddressing shareholders after the vote, he promised that he was committed to Tesla. The pay package, he said, is not actually cash, and I can't cut and run, nor would I want to.\nTesla shares rose on Thursday ahead of the official announcement of the results after Mr. Musk said on X that the pay plan was passing by a wide margin.",
},
{ "title": "JPM Conference", "variant": "conference", "time": "BMO" },
{ "title": "WMT Event", "variant": "event", "time": "BMO" },
{ "title": "GOOGL Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "META Event", "variant": "event", "time": "AMC" },
{ "title": "GOOGL Event", "variant": "event", "time": "AMC" },
],
},
{
"date": "2024-06-14T08:00:00.000Z",
"events": [
{ "title": "JPM Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "AAPL Conference", "variant": "conference", "time": "AMC" },
{ "title": "META Split", "variant": "split", "time": "AMC" },
{ "title": "AMZN Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-15T08:00:00.000Z",
"events": [
// { "title": "JPM Conference", "variant": "conference", "time": "BMO" },
// { "title": "BABA Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "BABA Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "AMZN Split", "variant": "split", "time": "AMC" },
],
},
{
"date": "2024-06-16T08:00:00.000Z",
"events": [
// { "title": "AMZN Event", "variant": "event", "time": "AMC" },
// { "title": "JPM Conference", "variant": "conference", "time": "AMC" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "MSFT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "META Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Conference", "variant": "conference", "time": "AMC" },
// { "title": "AMZN Split", "variant": "split", "time": "AMC" },
// { "title": "WMT Split", "variant": "split", "time": "AMC" },
],
},
{
"date": "2024-06-17T08:00:00.000Z",
"events": [
{ "title": "TSLA Conference", "variant": "conference", "time": "AMC" },
{ "title": "AMZN Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "MSFT Event", "variant": "event", "time": "AMC" },
{ "title": "MSFT Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-18T08:00:00.000Z",
"events": [
{ "title": "AAPL Conference", "variant": "conference", "time": "BMO" },
{ "title": "WMT Event", "variant": "event", "time": "BMO" },
{ "title": "MSFT Conference", "variant": "conference", "time": "BMO" },
{ "title": "TSLA Event", "variant": "event", "time": "BMO" },
{ "title": "GOOGL Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "TSLA Earnings", "variant": "earnings", "time": "AMC" },
],
},
{
"date": "2024-06-19T08:00:00.000Z",
"events": [
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "GOOGL Dividend", "variant": "dividend", "time": "AMC" },
{ "title": "WMT Event", "variant": "event", "time": "BMO" },
{ "title": "NVDA Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
{ "title": "AMZN Conference", "variant": "conference", "time": "AMC" },
{ "title": "NVDA Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "JPM Split", "variant": "split", "time": "BMO" },
],
},
{
"date": "2024-06-20T08:00:00.000Z",
"events": [
{ "title": "AMZN Conference", "variant": "conference", "time": "BMO" },
{ "title": "TSLA Conference", "variant": "conference", "time": "AMC" },
{ "title": "WMT Conference", "variant": "conference", "time": "BMO" },
{ "title": "WMT Conference", "variant": "conference", "time": "AMC" },
{ "title": "BABA Conference", "variant": "conference", "time": "AMC" },
{ "title": "JPM Conference", "variant": "conference", "time": "BMO" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
{ "title": "JPM Event", "variant": "event", "time": "BMO" },
],
},
{
"date": "2024-06-21T08:00:00.000Z",
"events": [
{ "title": "AAPL Event", "variant": "event", "time": "BMO" },
{ "title": "GOOGL Event", "variant": "event", "time": "AMC" },
{ "title": "TSLA Conference", "variant": "conference", "time": "BMO" },
{ "title": "NVDA Split", "variant": "split", "time": "BMO" },
{ "title": "TSLA Split", "variant": "split", "time": "AMC" },
{ "title": "AMZN Event", "variant": "event", "time": "AMC" },
{ "title": "AAPL Event", "variant": "event", "time": "BMO" },
{ "title": "MSFT Conference", "variant": "conference", "time": "AMC" },
{ "title": "NVDA Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "AMZN Event", "variant": "event", "time": "AMC" },
],
},
{
"date": "2024-06-22T08:00:00.000Z",
"events": [
// { "title": "JPM Conference", "variant": "conference", "time": "BMO" },
// { "title": "TSLA Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Split", "variant": "split", "time": "BMO" },
// { "title": "NVDA Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "NVDA Split", "variant": "split", "time": "AMC" },
// { "title": "TSLA Conference", "variant": "conference", "time": "AMC" },
// { "title": "NVDA Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Dividend", "variant": "dividend", "time": "BMO" },
],
},
{
"date": "2024-06-23T08:00:00.000Z",
"events": [
// { "title": "BABA Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "META Conference", "variant": "conference", "time": "AMC" },
// { "title": "META Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "AMC" },
// { "title": "GOOGL Conference", "variant": "conference", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "BABA Earnings", "variant": "earnings", "time": "AMC" },
],
},
{
"date": "2024-06-24T08:00:00.000Z",
"events": [
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "JPM Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "AMZN Conference", "variant": "conference", "time": "BMO" },
{ "title": "MSFT Conference", "variant": "conference", "time": "AMC" },
{ "title": "AAPL Event", "variant": "event", "time": "AMC" },
{ "title": "META Split", "variant": "split", "time": "AMC" },
{ "title": "JPM Earnings", "variant": "earnings", "time": "BMO" },
],
},
{
"date": "2024-06-25T08:00:00.000Z",
"events": [{ "title": "BABA Event", "variant": "event", "time": "BMO" }],
},
{
"date": "2024-06-26T08:00:00.000Z",
"events": [
{ "title": "AAPL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "AAPL Split", "variant": "split", "time": "BMO" },
{ "title": "META Conference", "variant": "conference", "time": "AMC" },
{ "title": "TSLA Event", "variant": "event", "time": "BMO" },
{ "title": "META Event", "variant": "event", "time": "AMC" },
],
},
{
"date": "2024-06-27T08:00:00.000Z",
"events": [
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "MSFT Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "TSLA Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
],
},
{
"date": "2024-06-28T08:00:00.000Z",
"events": [
{ "title": "BABA Split", "variant": "split", "time": "AMC" },
{ "title": "AAPL Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "AAPL Event", "variant": "event", "time": "AMC" },
{ "title": "JPM Event", "variant": "event", "time": "BMO" },
{ "title": "TSLA Event", "variant": "event", "time": "BMO" },
{ "title": "AAPL Earnings", "variant": "earnings", "time": "BMO" },
],
},
{
"date": "2024-06-29T08:00:00.000Z",
"events": [
// { "title": "NVDA Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "NVDA Dividend", "variant": "dividend", "time": "AMC" },
],
},
{
"date": "2024-06-30T08:00:00.000Z",
"events": [
// { "title": "NVDA Conference", "variant": "conference", "time": "AMC" },
// { "title": "BABA Split", "variant": "split", "time": "BMO" },
// { "title": "MSFT Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "WMT Event", "variant": "event", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
],
},
{
"date": "2024-07-01T08:00:00.000Z",
"events": [
{ "title": "JPM Event", "variant": "event", "time": "AMC" },
{ "title": "TSLA Dividend", "variant": "dividend", "time": "AMC" },
{ "title": "TSLA Dividend", "variant": "dividend", "time": "AMC" },
{ "title": "NVDA Split", "variant": "split", "time": "AMC" },
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "TSLA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-07-02T08:00:00.000Z",
"events": [
// { "title": "AMZN Split", "variant": "split", "time": "BMO" },
// { "title": "NVDA Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
],
},
{
"date": "2024-07-03T08:00:00.000Z",
"events": [
// { "title": "TSLA Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AMZN Event", "variant": "event", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "WMT Conference", "variant": "conference", "time": "AMC" },
// { "title": "JPM Event", "variant": "event", "time": "BMO" },
// { "title": "NVDA Split", "variant": "split", "time": "BMO" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Split", "variant": "split", "time": "AMC" },
// { "title": "TSLA Earnings", "variant": "earnings", "time": "BMO" },
],
},
{
"date": "2024-07-04T08:00:00.000Z",
"events": [
// { "title": "JPM Event", "variant": "event", "time": "AMC" },
// { "title": "TSLA Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "NVDA Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "TSLA Conference", "variant": "conference", "time": "BMO" },
// { "title": "MSFT Conference", "variant": "conference", "time": "AMC" },
],
},
{
"date": "2024-07-05T08:00:00.000Z",
"events": [
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "JPM Split", "variant": "split", "time": "AMC" },
// { "title": "MSFT Split", "variant": "split", "time": "BMO" },
// { "title": "AMZN Conference", "variant": "conference", "time": "AMC" },
// { "title": "NVDA Conference", "variant": "conference", "time": "AMC" },
// { "title": "JPM Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
],
},
{
"date": "2024-07-06T08:00:00.000Z",
"events": [
// { "title": "TSLA Split", "variant": "split", "time": "AMC" },
// { "title": "BABA Split", "variant": "split", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "BMO" },
],
},
// {
// "date": "2024-07-07T08:00:00.000Z",
// "events": [
// // { "title": "BABA Dividend", "variant": "dividend", "time": "AMC" },
// // { "title": "MSFT Conference", "variant": "conference", "time": "AMC" },
// // { "title": "MSFT Earnings", "variant": "earnings", "time": "BMO" },
// // { "title": "NVDA Event", "variant": "event", "time": "BMO" },
// // { "title": "BABA Split", "variant": "split", "time": "AMC" },
// // { "title": "AAPL Dividend", "variant": "dividend", "time": "BMO" },
// ],
// },
// {
// "date": "2024-07-08T08:00:00.000Z",
// "events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "AAPL Event", "variant": "event", "time": "BMO" },
// ],
// },
// {
// "date": "2024-07-09T08:00:00.000Z",
// "events": [
// // { "title": "META Dividend", "variant": "dividend", "time": "AMC" },
// // { "title": "GOOGL Conference", "variant": "conference", "time": "BMO" },
// // { "title": "WMT Split", "variant": "split", "time": "BMO" },
// // { "title": "MSFT Event", "variant": "event", "time": "BMO" },
// // { "title": "AMZN Dividend", "variant": "dividend", "time": "BMO" },
// ],
// },
// {
// "date": "2024-07-10T08:00:00.000Z",
// "events": [
// // { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// // { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// // { "title": "META Earnings", "variant": "earnings", "time": "AMC" },
// // { "title": "TSLA Event", "variant": "event", "time": "BMO" },
// // { "title": "WMT Split", "variant": "split", "time": "BMO" },
// // { "title": "AAPL Earnings", "variant": "earnings", "time": "BMO" },
// ],
// },
// {
// "date": "2024-07-11T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-12T08:00:00.000Z",
// "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
// },
// {
// "date": "2024-07-13T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-24T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-25T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-26T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-27T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-28T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-29T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-30T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-31T08:00:00.000Z",
// "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
// },
// {
// "date": "2024-08-01T08:00:00.000Z",
// "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
// },
// {
// "date": "2024-08-02T08:00:00.000Z",
// "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
// },
];
+1 -1
View File
@@ -16,7 +16,7 @@ export const metadata: Metadata = {
const page = () => { const page = () => {
return ( return (
<div className="flex flex-col w-full h-full gap-4"> <div className="flex flex-col w-full h-full gap-4">
<div className="grid grid-cols-5 gap-4 h-52"> <div className="grid grid-cols-5 gap-4 h-48">
<Card> <Card>
<CardHeader className="items-center"> <CardHeader className="items-center">
<CardDescription>Reporting Today</CardDescription> <CardDescription>Reporting Today</CardDescription>
+3 -2
View File
@@ -37,9 +37,10 @@
--primary: 47.9 95.8% 53.1%; --primary: 47.9 95.8% 53.1%;
--primary-foreground: 26 83.3% 14.1%; --primary-foreground: 26 83.3% 14.1%;
/* --secondary: 12 6.5% 15.1%; */ /* --secondary: 12 6.5% 15.1%; */
--secondary: 0 0% 15%; --secondary: 0 0% 17.5%;
--secondary-foreground: 60 9.1% 97.8%; --secondary-foreground: 60 9.1% 97.8%;
--muted: 12 6.5% 15.1%; /* --muted: 12 6.5% 15.1%; */
--muted: 0 0% 15%;
--muted-foreground: 24 5.4% 63.9%; --muted-foreground: 24 5.4% 63.9%;
--accent: 12 6.5% 15.1%; --accent: 12 6.5% 15.1%;
--accent-foreground: 60 9.1% 97.8%; --accent-foreground: 60 9.1% 97.8%;
+50
View File
@@ -0,0 +1,50 @@
"use client";
import React, { useCallback, useState } from "react";
import CalendarItem from "@/components/calendar/CalendarItem";
import {
ResizableHandle,
ResizablePanel,
ResizablePanelGroup,
} from "@/components/ui/resizable";
import { useResizeDetector } from "react-resize-detector";
const Test = () => {
const [lines, setLines] = useState<number>();
const onResize = ({ width, height, entry }: any) => {
console.log(Math.floor(height / 26));
};
const { width, height, ref } = useResizeDetector({ onResize });
return (
// <div className="h-96 bg-card w-96">
// <CalendarItem title="hi" variant="conference" size="sm" />
// </div>
<ResizablePanelGroup
direction="vertical"
className="min-h-[200px] max-w-md rounded-lg border bg-card"
>
<ResizablePanel defaultSize={25}>
<div ref={ref} className="h-full">
<CalendarItem title="hi" variant="conference" size="sm" />
<CalendarItem title="hi" variant="conference" size="sm" />
<CalendarItem title="hi" variant="conference" size="sm" />
<CalendarItem title="hi" variant="conference" size="sm" />
<CalendarItem title="hi" variant="conference" size="sm" />
<CalendarItem title="hi" variant="conference" size="sm" />
{/* {`${width}x${height}`} */}
</div>
</ResizablePanel>
<ResizableHandle />
<ResizablePanel defaultSize={75}>
<div className="flex h-full items-center justify-center">
<span className="font-semibold">Content</span>
</div>
</ResizablePanel>
</ResizablePanelGroup>
);
};
export default Test;
+2 -11
View File
@@ -1,16 +1,7 @@
import CommandKey from "@/components/nav/CommandKey"; import Test from "./Test";
import CommandMenu from "@/components/nav/CommandMenu";
import React from "react";
const page = () => { const page = () => {
return ( return <Test />;
<div className="flex flex-col">
<div className="w-1/2 h-96">
<CommandMenu />
</div>
<CommandKey />
</div>
);
}; };
export default page; export default page;
+1 -1
View File
@@ -43,7 +43,7 @@ const CalendarItem = ({
<div className={cn(CalenderItemVariants({ variant, size }))}> <div className={cn(CalenderItemVariants({ variant, size }))}>
<div <div
className={cn( className={cn(
size == "sm" ? "text-xs" : "", size == "sm" ? "text-xs h-6" : "",
"flex justify-between p-1 font-semibold" "flex justify-between p-1 font-semibold"
)} )}
> >
+165 -659
View File
@@ -1,689 +1,107 @@
"use client";
import { format } from "date-fns-tz"; import { format } from "date-fns-tz";
import React from "react"; import React, { useState } from "react";
import CalendarItem from "./CalendarItem"; import CalendarItem from "./CalendarItem";
import { CardContent, CardHeader, Card, CardTitle } from "../ui/card"; import { CardContent, CardHeader, Card, CardTitle } from "../ui/card";
import { cn } from "@/lib/utils"; import { cn } from "@/lib/utils";
import { import {
addDays, addDays,
isPast,
isSameMonth,
isSunday,
isToday, isToday,
isWeekend,
lightFormat, lightFormat,
startOfMonth, startOfMonth,
startOfWeek, startOfWeek,
} from "date-fns"; } from "date-fns";
import { Tabs, TabsList, TabsTrigger } from "../ui/tabs";
import { Button } from "../ui/button";
import { ArrowLeftIcon, ArrowRightIcon } from "lucide-react";
import { dates, week } from "../../../public/MockData/Calendar";
const MonthCalendar = () => { const MonthCalendar = () => {
const dates = [
{
"date": "2024-05-26T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-05-27T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
{ "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-05-28T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Split", "variant": "split", "time": "AMC" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-05-29T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-05-30T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Split", "variant": "split", "time": "AMC" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
{ "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-05-31T08:00:00.000Z",
"events": [
{ "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-01T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-02T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-03T08:00:00.000Z",
"events": [
{ "title": "BABA Conference", "variant": "conference", "time": "AMC" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Split", "variant": "split", "time": "AMC" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
{ "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-04T08:00:00.000Z",
"events": [
{ "title": "BABA Conference", "variant": "conference", "time": "AMC" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-05T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
{ "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-06T08:00:00.000Z",
"events": [
{ "title": "BABA Conference", "variant": "conference", "time": "AMC" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
{ "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-07T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-08T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-09T08:00:00.000Z",
"events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "BABA Event", "variant": "event", "time": "BMO" },
// { "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-10T08:00:00.000Z",
"events": [
{ "title": "BABA Conference", "variant": "conference", "time": "AMC" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Split", "variant": "split", "time": "AMC" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
{ "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
{ "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-11T08:00:00.000Z",
"events": [
{ "title": "BABA Conference", "variant": "conference", "time": "AMC" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Split", "variant": "split", "time": "AMC" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
{ "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
{ "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-12T08:00:00.000Z",
"events": [
{ "title": "BABA Conference", "variant": "conference", "time": "AMC" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Split", "variant": "split", "time": "AMC" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
{ "title": "WMT Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "AMZN Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
{ "title": "BABA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-13T08:00:00.000Z",
"events": [
{
"title": "TSLA Event",
"variant": "event",
"time": "9:00am",
"description":
"Tesla shareholders have reaffirmed a pay award of more than $45 billion for Elon Musk, the chief executive, after it was thrown out in a legal challenge.\nThe vote result, announced at Tesla's annual meeting at its headquarters in Austin, Texas, on Thursday, is a strong sign that shareholders still believe in Mr. Musk, and it could persuade the judge who voided the award to reinstate it.\nSupport for the pay award, made up of stock options, will come as a relief to Mr. Musk's admirers, who feared that rejection would prompt him to spend less time managing Tesla or even quit. The vote was a setback for investors who had hoped it would send a message about the accountability of chief executives and the limits of executive pay.\nThe outcome may also help Mr. Musk qualify as the world's richest person, worth well over $200 billion.\nAddressing shareholders after the vote, he promised that he was committed to Tesla. The pay package, he said, is not actually cash, and I can't cut and run, nor would I want to.\nTesla shares rose on Thursday ahead of the official announcement of the results after Mr. Musk said on X that the pay plan was passing by a wide margin.",
},
{ "title": "JPM Conference", "variant": "conference", "time": "BMO" },
{ "title": "WMT Event", "variant": "event", "time": "BMO" },
{ "title": "GOOGL Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "META Event", "variant": "event", "time": "AMC" },
{ "title": "GOOGL Event", "variant": "event", "time": "AMC" },
],
},
{
"date": "2024-06-14T08:00:00.000Z",
"events": [
{ "title": "JPM Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "AAPL Conference", "variant": "conference", "time": "AMC" },
{ "title": "META Split", "variant": "split", "time": "AMC" },
{ "title": "AMZN Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-15T08:00:00.000Z",
"events": [
// { "title": "JPM Conference", "variant": "conference", "time": "BMO" },
// { "title": "BABA Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "BABA Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "AMZN Split", "variant": "split", "time": "AMC" },
],
},
{
"date": "2024-06-16T08:00:00.000Z",
"events": [
// { "title": "AMZN Event", "variant": "event", "time": "AMC" },
// { "title": "JPM Conference", "variant": "conference", "time": "AMC" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "MSFT Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "META Conference", "variant": "conference", "time": "AMC" },
// { "title": "MSFT Conference", "variant": "conference", "time": "AMC" },
// { "title": "AMZN Split", "variant": "split", "time": "AMC" },
// { "title": "WMT Split", "variant": "split", "time": "AMC" },
],
},
{
"date": "2024-06-17T08:00:00.000Z",
"events": [
{ "title": "TSLA Conference", "variant": "conference", "time": "AMC" },
{ "title": "AMZN Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "MSFT Event", "variant": "event", "time": "AMC" },
{ "title": "MSFT Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-06-18T08:00:00.000Z",
"events": [
{ "title": "AAPL Conference", "variant": "conference", "time": "BMO" },
{ "title": "WMT Event", "variant": "event", "time": "BMO" },
{ "title": "MSFT Conference", "variant": "conference", "time": "BMO" },
{ "title": "TSLA Event", "variant": "event", "time": "BMO" },
{ "title": "GOOGL Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "TSLA Earnings", "variant": "earnings", "time": "AMC" },
],
},
{
"date": "2024-06-19T08:00:00.000Z",
"events": [
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "GOOGL Dividend", "variant": "dividend", "time": "AMC" },
{ "title": "WMT Event", "variant": "event", "time": "BMO" },
{ "title": "NVDA Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
{ "title": "AMZN Conference", "variant": "conference", "time": "AMC" },
{ "title": "NVDA Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "JPM Split", "variant": "split", "time": "BMO" },
],
},
{
"date": "2024-06-20T08:00:00.000Z",
"events": [
{ "title": "AMZN Conference", "variant": "conference", "time": "BMO" },
{ "title": "TSLA Conference", "variant": "conference", "time": "AMC" },
{ "title": "WMT Conference", "variant": "conference", "time": "BMO" },
{ "title": "WMT Conference", "variant": "conference", "time": "AMC" },
{ "title": "BABA Conference", "variant": "conference", "time": "AMC" },
{ "title": "JPM Conference", "variant": "conference", "time": "BMO" },
{ "title": "GOOGL Event", "variant": "event", "time": "BMO" },
{ "title": "BABA Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "BABA Event", "variant": "event", "time": "BMO" },
{ "title": "JPM Event", "variant": "event", "time": "BMO" },
],
},
{
"date": "2024-06-21T08:00:00.000Z",
"events": [
{ "title": "AAPL Event", "variant": "event", "time": "BMO" },
{ "title": "GOOGL Event", "variant": "event", "time": "AMC" },
{ "title": "TSLA Conference", "variant": "conference", "time": "BMO" },
{ "title": "NVDA Split", "variant": "split", "time": "BMO" },
{ "title": "TSLA Split", "variant": "split", "time": "AMC" },
{ "title": "AMZN Event", "variant": "event", "time": "AMC" },
{ "title": "AAPL Event", "variant": "event", "time": "BMO" },
{ "title": "MSFT Conference", "variant": "conference", "time": "AMC" },
{ "title": "NVDA Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "AMZN Event", "variant": "event", "time": "AMC" },
],
},
{
"date": "2024-06-22T08:00:00.000Z",
"events": [
// { "title": "JPM Conference", "variant": "conference", "time": "BMO" },
// { "title": "TSLA Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "GOOGL Split", "variant": "split", "time": "BMO" },
// { "title": "NVDA Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "NVDA Split", "variant": "split", "time": "AMC" },
// { "title": "TSLA Conference", "variant": "conference", "time": "AMC" },
// { "title": "NVDA Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Dividend", "variant": "dividend", "time": "BMO" },
],
},
{
"date": "2024-06-23T08:00:00.000Z",
"events": [
// { "title": "BABA Split", "variant": "split", "time": "AMC" },
// { "title": "GOOGL Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "META Conference", "variant": "conference", "time": "AMC" },
// { "title": "META Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "AMC" },
// { "title": "GOOGL Conference", "variant": "conference", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "BABA Earnings", "variant": "earnings", "time": "AMC" },
],
},
{
"date": "2024-06-24T08:00:00.000Z",
"events": [
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "JPM Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "AMZN Conference", "variant": "conference", "time": "BMO" },
{ "title": "MSFT Conference", "variant": "conference", "time": "AMC" },
{ "title": "AAPL Event", "variant": "event", "time": "AMC" },
{ "title": "META Split", "variant": "split", "time": "AMC" },
{ "title": "JPM Earnings", "variant": "earnings", "time": "BMO" },
],
},
{
"date": "2024-06-25T08:00:00.000Z",
"events": [{ "title": "BABA Event", "variant": "event", "time": "BMO" }],
},
{
"date": "2024-06-26T08:00:00.000Z",
"events": [
{ "title": "AAPL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "AAPL Split", "variant": "split", "time": "BMO" },
{ "title": "META Conference", "variant": "conference", "time": "AMC" },
{ "title": "TSLA Event", "variant": "event", "time": "BMO" },
{ "title": "META Event", "variant": "event", "time": "AMC" },
],
},
{
"date": "2024-06-27T08:00:00.000Z",
"events": [
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "MSFT Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "TSLA Dividend", "variant": "dividend", "time": "BMO" },
{ "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
],
},
{
"date": "2024-06-28T08:00:00.000Z",
"events": [
{ "title": "BABA Split", "variant": "split", "time": "AMC" },
{ "title": "AAPL Earnings", "variant": "earnings", "time": "AMC" },
{ "title": "AAPL Event", "variant": "event", "time": "AMC" },
{ "title": "JPM Event", "variant": "event", "time": "BMO" },
{ "title": "TSLA Event", "variant": "event", "time": "BMO" },
{ "title": "AAPL Earnings", "variant": "earnings", "time": "BMO" },
],
},
{
"date": "2024-06-29T08:00:00.000Z",
"events": [
// { "title": "NVDA Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "NVDA Dividend", "variant": "dividend", "time": "AMC" },
],
},
{
"date": "2024-06-30T08:00:00.000Z",
"events": [
// { "title": "NVDA Conference", "variant": "conference", "time": "AMC" },
// { "title": "BABA Split", "variant": "split", "time": "BMO" },
// { "title": "MSFT Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "WMT Event", "variant": "event", "time": "BMO" },
// { "title": "MSFT Split", "variant": "split", "time": "AMC" },
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
],
},
{
"date": "2024-07-01T08:00:00.000Z",
"events": [
{ "title": "JPM Event", "variant": "event", "time": "AMC" },
{ "title": "TSLA Dividend", "variant": "dividend", "time": "AMC" },
{ "title": "TSLA Dividend", "variant": "dividend", "time": "AMC" },
{ "title": "NVDA Split", "variant": "split", "time": "AMC" },
{ "title": "GOOGL Earnings", "variant": "earnings", "time": "BMO" },
{ "title": "TSLA Conference", "variant": "conference", "time": "BMO" },
],
},
{
"date": "2024-07-02T08:00:00.000Z",
"events": [
// { "title": "AMZN Split", "variant": "split", "time": "BMO" },
// { "title": "NVDA Dividend", "variant": "dividend", "time": "AMC" },
// { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "AMC" },
],
},
{
"date": "2024-07-03T08:00:00.000Z",
"events": [
// { "title": "TSLA Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AMZN Event", "variant": "event", "time": "BMO" },
// { "title": "AAPL Dividend", "variant": "dividend", "time": "BMO" },
// { "title": "WMT Conference", "variant": "conference", "time": "AMC" },
// { "title": "JPM Event", "variant": "event", "time": "BMO" },
// { "title": "NVDA Split", "variant": "split", "time": "BMO" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "AAPL Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "AMZN Split", "variant": "split", "time": "AMC" },
// { "title": "TSLA Earnings", "variant": "earnings", "time": "BMO" },
],
},
{
"date": "2024-07-04T08:00:00.000Z",
"events": [
// { "title": "JPM Event", "variant": "event", "time": "AMC" },
// { "title": "TSLA Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "NVDA Earnings", "variant": "earnings", "time": "BMO" },
// { "title": "TSLA Conference", "variant": "conference", "time": "BMO" },
// { "title": "MSFT Conference", "variant": "conference", "time": "AMC" },
],
},
{
"date": "2024-07-05T08:00:00.000Z",
"events": [
// { "title": "GOOGL Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "JPM Split", "variant": "split", "time": "AMC" },
// { "title": "MSFT Split", "variant": "split", "time": "BMO" },
// { "title": "AMZN Conference", "variant": "conference", "time": "AMC" },
// { "title": "NVDA Conference", "variant": "conference", "time": "AMC" },
// { "title": "JPM Earnings", "variant": "earnings", "time": "AMC" },
// { "title": "MSFT Dividend", "variant": "dividend", "time": "BMO" },
],
},
{
"date": "2024-07-06T08:00:00.000Z",
"events": [
// { "title": "TSLA Split", "variant": "split", "time": "AMC" },
// { "title": "BABA Split", "variant": "split", "time": "AMC" },
// { "title": "AMZN Earnings", "variant": "earnings", "time": "BMO" },
],
},
// {
// "date": "2024-07-07T08:00:00.000Z",
// "events": [
// // { "title": "BABA Dividend", "variant": "dividend", "time": "AMC" },
// // { "title": "MSFT Conference", "variant": "conference", "time": "AMC" },
// // { "title": "MSFT Earnings", "variant": "earnings", "time": "BMO" },
// // { "title": "NVDA Event", "variant": "event", "time": "BMO" },
// // { "title": "BABA Split", "variant": "split", "time": "AMC" },
// // { "title": "AAPL Dividend", "variant": "dividend", "time": "BMO" },
// ],
// },
// {
// "date": "2024-07-08T08:00:00.000Z",
// "events": [
// { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// { "title": "AAPL Event", "variant": "event", "time": "BMO" },
// ],
// },
// {
// "date": "2024-07-09T08:00:00.000Z",
// "events": [
// // { "title": "META Dividend", "variant": "dividend", "time": "AMC" },
// // { "title": "GOOGL Conference", "variant": "conference", "time": "BMO" },
// // { "title": "WMT Split", "variant": "split", "time": "BMO" },
// // { "title": "MSFT Event", "variant": "event", "time": "BMO" },
// // { "title": "AMZN Dividend", "variant": "dividend", "time": "BMO" },
// ],
// },
// {
// "date": "2024-07-10T08:00:00.000Z",
// "events": [
// // { "title": "GOOGL Event", "variant": "event", "time": "BMO" },
// // { "title": "BABA Conference", "variant": "conference", "time": "AMC" },
// // { "title": "META Earnings", "variant": "earnings", "time": "AMC" },
// // { "title": "TSLA Event", "variant": "event", "time": "BMO" },
// // { "title": "WMT Split", "variant": "split", "time": "BMO" },
// // { "title": "AAPL Earnings", "variant": "earnings", "time": "BMO" },
// ],
// },
// {
// "date": "2024-07-11T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-12T08:00:00.000Z",
// "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
// },
// {
// "date": "2024-07-13T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-24T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-25T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-26T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-27T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-28T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-29T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-30T08:00:00.000Z",
// "events": [
// // { "title": "BABA Split", "variant": "split", "time": "AMC" }
// ],
// },
// {
// "date": "2024-07-31T08:00:00.000Z",
// "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
// },
// {
// "date": "2024-08-01T08:00:00.000Z",
// "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
// },
// {
// "date": "2024-08-02T08:00:00.000Z",
// "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
// },
];
const startDate = startOfWeek(startOfMonth(new Date("2024-09-22"))); const startDate = startOfWeek(startOfMonth(new Date("2024-09-22")));
const endDate = addDays(startDate, 41); const endDate = addDays(startDate, 41);
const today = new Date();
// console.log(startDate); // console.log(startDate);
// console.log(endDate); // console.log(endDate);
const sevenDays = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
const fiveDays = ["MON", "TUE", "WED", "THU", "FRI"];
const [calendarView, setCalendarView] = useState<string>("month");
return ( return (
<Card className="w-full overflow-hidden"> <Tabs className="w-full h-full overflow-hidden" defaultValue="month">
<CardHeader className="p-4"> <Card>
<CardTitle>June 2024</CardTitle> <CardHeader className="p-2">
<div className="grid grid-cols-3 justify-stretch items-center">
<div className="place-self-start">
<TabsList className="h-10">
<TabsTrigger
value="month"
onClick={() => setCalendarView("month")}
>
Month
</TabsTrigger>
<TabsTrigger
value="week"
onClick={() => setCalendarView("week")}
>
Week
</TabsTrigger>
<TabsTrigger
value="quarter"
onClick={() => setCalendarView("quarter")}
>
Quarter
</TabsTrigger>
</TabsList>
</div>
<div className="place-self-center">
<CardTitle className="text-xl">
{format(today, "E, MMMM dd yyyy")}
</CardTitle>
</div>
<div className="flex gap-1 place-self-end">
<Button variant="secondary" className="px-2">
<ArrowLeftIcon className="text-muted-foreground" />
</Button>
<Button variant="secondary" className="px-2">
<ArrowRightIcon className="text-muted-foreground" />
</Button>
</div>
</div>
</CardHeader> </CardHeader>
{/* MONTH VIEW */}
{calendarView == "month" && (
<CardContent className="p-0"> <CardContent className="p-0">
<div className="grid grid-cols-7 h-10">
{sevenDays.map((day) => (
<div
className="border-t border-neutral-700 flex items-center justify-center text-muted-foreground"
key={day}
>
{day}
</div>
))}
</div>
<div className="grid grid-cols-7 grid-rows-6 h-full"> <div className="grid grid-cols-7 grid-rows-6 h-full">
{dates.map((item, index) => ( {dates.map((item, index) => (
<div <div
key={index} key={index}
className={cn( className={cn(
"border border-neutral-700 flex flex-col border-r-0 border-b-0" // isWeekend(item.date) ? "bg-muted" : "",
isSunday(item.date) ? "border border-l-0" : "border",
isSameMonth(item.date, new Date()) ? "" : "bg-muted",
"border-neutral-700 flex flex-col border-b-0 border-r-0"
)} )}
> >
<div className="p-2"> <div className="p-2 pb-0">
<p <p
className={cn( className={cn(
isToday(item.date) ? "bg-red-600" : "", isToday(item.date) ? "bg-red-600" : "",
@@ -698,9 +116,13 @@ const MonthCalendar = () => {
? item.events.map((event: any, eventkey: number) => ( ? item.events.map((event: any, eventkey: number) => (
<CalendarItem <CalendarItem
time={event.time} time={event.time}
variant={event.variant}
title={event.title} title={event.title}
key={eventkey} key={eventkey}
variant={
isSameMonth(item.date, new Date())
? event.variant
: "default"
}
size="sm" size="sm"
/> />
)) ))
@@ -710,7 +132,11 @@ const MonthCalendar = () => {
.map((event: any, eventkey: number) => ( .map((event: any, eventkey: number) => (
<CalendarItem <CalendarItem
time={event.time} time={event.time}
variant={event.variant} variant={
isSameMonth(item.date, new Date())
? event.variant
: "default"
}
title={event.title} title={event.title}
key={eventkey} key={eventkey}
size="sm" size="sm"
@@ -727,7 +153,87 @@ const MonthCalendar = () => {
))} ))}
</div> </div>
</CardContent> </CardContent>
)}
{/* WEEK VIEW */}
{calendarView == "week" && (
<CardContent className="p-0 h-full">
<div className="grid grid-cols-5 h-10">
{fiveDays.map((day) => (
<div
className="border-t border-neutral-700 flex items-center justify-center text-muted-foreground"
key={day}
>
{day}
</div>
))}
</div>
<div className="grid grid-cols-5 grid-rows-1 h-full">
{week.map((item, index) => (
<div
key={index}
className={cn(
isWeekend(item.date) ? "bg-muted" : "",
isSunday(item.date) ? "border border-l-0" : "border",
"border-neutral-700 flex flex-col border-b-0 border-r-0"
)}
>
<div className="p-2 pb-0">
<p
className={cn(
isToday(item.date) ? "bg-red-600" : "",
"font-bold rounded-full w-6 flex justify-center"
)}
>
{format(item.date, "d", { timeZone: "America/New_York" })}
</p>
</div>
<div className="grid overflow-y-auto gap-1 p-1 px-2">
{item.events.map((event: any, eventkey) => (
<CalendarItem
time={event.time}
variant={event.variant}
title={event.title}
key={eventkey}
size="lg"
/>
))}
{/* {item.events.length < 6
? item.events.map((event: any, eventkey: number) => (
<CalendarItem
time={event.time}
variant={event.variant}
title={event.title}
key={eventkey}
size="lg"
/>
))
: [
...item.events
.slice(0, 5)
.map((event: any, eventkey: number) => (
<CalendarItem
time={event.time}
variant={event.variant}
title={event.title}
key={eventkey}
size="lg"
/>
)),
<CalendarItem
title={`+ ${item.events.length - 5} more`}
key="end"
size="lg"
/>,
]} */}
</div>
</div>
))}
</div>
</CardContent>
)}
</Card> </Card>
</Tabs>
); );
}; };
+1 -1
View File
@@ -9,7 +9,7 @@ const Card = React.forwardRef<
<div <div
ref={ref} ref={ref}
className={cn( className={cn(
"rounded-lg border border-neutral-700 bg-card text-card-foreground shadow-sm", "rounded-lg border border-neutral-700 bg-card text-card-foreground shadow-sm h-full overflow-hidden",
className className
)} )}
{...props} {...props}
+45
View File
@@ -0,0 +1,45 @@
"use client"
import { GripVertical } from "lucide-react"
import * as ResizablePrimitive from "react-resizable-panels"
import { cn } from "@/lib/utils"
const ResizablePanelGroup = ({
className,
...props
}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => (
<ResizablePrimitive.PanelGroup
className={cn(
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
className
)}
{...props}
/>
)
const ResizablePanel = ResizablePrimitive.Panel
const ResizableHandle = ({
withHandle,
className,
...props
}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
withHandle?: boolean
}) => (
<ResizablePrimitive.PanelResizeHandle
className={cn(
"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
className
)}
{...props}
>
{withHandle && (
<div className="z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border">
<GripVertical className="h-2.5 w-2.5" />
</div>
)}
</ResizablePrimitive.PanelResizeHandle>
)
export { ResizablePanelGroup, ResizablePanel, ResizableHandle }
+55
View File
@@ -0,0 +1,55 @@
"use client"
import * as React from "react"
import * as TabsPrimitive from "@radix-ui/react-tabs"
import { cn } from "@/lib/utils"
const Tabs = TabsPrimitive.Root
const TabsList = React.forwardRef<
React.ElementRef<typeof TabsPrimitive.List>,
React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>
>(({ className, ...props }, ref) => (
<TabsPrimitive.List
ref={ref}
className={cn(
"inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",
className
)}
{...props}
/>
))
TabsList.displayName = TabsPrimitive.List.displayName
const TabsTrigger = React.forwardRef<
React.ElementRef<typeof TabsPrimitive.Trigger>,
React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>
>(({ className, ...props }, ref) => (
<TabsPrimitive.Trigger
ref={ref}
className={cn(
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",
className
)}
{...props}
/>
))
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName
const TabsContent = React.forwardRef<
React.ElementRef<typeof TabsPrimitive.Content>,
React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>
>(({ className, ...props }, ref) => (
<TabsPrimitive.Content
ref={ref}
className={cn(
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
className
)}
{...props}
/>
))
TabsContent.displayName = TabsPrimitive.Content.displayName
export { Tabs, TabsList, TabsTrigger, TabsContent }