diff --git a/src/app/calendar/page.tsx b/src/app/calendar/page.tsx index d18df32..26cc147 100644 --- a/src/app/calendar/page.tsx +++ b/src/app/calendar/page.tsx @@ -1,5 +1,11 @@ import Day from "@/components/calendar/Day"; import MonthCalendar from "@/components/calendar/MonthCalendar"; +import { + Card, + CardDescription, + CardHeader, + CardTitle, +} from "@/components/ui/card"; import { Metadata } from "next"; import React from "react"; @@ -10,12 +16,37 @@ export const metadata: Metadata = { const page = () => { return (
-
-
.
-
.
-
.
-
.
-
.
+
+ + + Reporting Today + 12 + + + + + Reporting Today + 12 + + + + + Reporting Today + 12 + + + + + Reporting Today + 12 + + + + + Reporting Today + 12 + +
diff --git a/src/components/calendar/MonthCalendar.tsx b/src/components/calendar/MonthCalendar.tsx index f5cd508..7bdc157 100644 --- a/src/components/calendar/MonthCalendar.tsx +++ b/src/components/calendar/MonthCalendar.tsx @@ -8,16 +8,16 @@ const MonthCalendar = () => { { "date": "2023-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" }, + // { "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" }, ], }, { @@ -76,25 +76,25 @@ const MonthCalendar = () => { { "date": "2023-06-20T08: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" }, + // { "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": "2023-06-21T08: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" }, + // { "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" }, ], }, { @@ -167,16 +167,18 @@ const MonthCalendar = () => { }, { "date": "2023-06-29T08:00:00.000Z", - "events": [{ "title": "BABA Event", "variant": "event", "time": "BMO" }], + "events": [ + // { "title": "BABA Event", "variant": "event", "time": "BMO" } + ], }, { "date": "2023-06-30T08: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" }, + // { "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" }, ], }, { @@ -232,25 +234,25 @@ const MonthCalendar = () => { { "date": "2023-07-10T08: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" }, + // { "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": "2023-07-11T08: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" }, + // { "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" }, ], }, { @@ -304,22 +306,22 @@ const MonthCalendar = () => { { "date": "2023-07-19T08: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" }, + // { "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": "2023-07-20T08: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" }, + // { "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" }, ], }, { @@ -344,7 +346,9 @@ const MonthCalendar = () => { }, { "date": "2023-07-26T08:00:00.000Z", - "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }], + "events": [ + // { "title": "BABA Split", "variant": "split", "time": "AMC" } + ], }, // { // "date": "2023-07-27T08:00:00.000Z", @@ -387,12 +391,12 @@ const MonthCalendar = () => { {dates.map((item, index) => (

{format(item.date, "d", { timeZone: "America/New_York" })}

-
+
{item.events.length < 5 ? item.events.map((event: any, eventkey: number) => (