+
+
+ {description &&
{description}
}
);
};
diff --git a/src/components/calendar/Day.tsx b/src/components/calendar/Day.tsx
new file mode 100644
index 0000000..8995f27
--- /dev/null
+++ b/src/components/calendar/Day.tsx
@@ -0,0 +1,55 @@
+import React from "react";
+import {
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+} from "../ui/card";
+import CalendarItem from "./CalendarItem";
+
+const Day = () => {
+ return (
+
+
+ Today
+ June 12, 2024
+
+
+
+
+
+
+ );
+};
+
+export default Day;
diff --git a/src/components/calendar/Calendar.tsx b/src/components/calendar/MonthCalendar.tsx
similarity index 85%
rename from src/components/calendar/Calendar.tsx
rename to src/components/calendar/MonthCalendar.tsx
index 701590c..f5cd508 100644
--- a/src/components/calendar/Calendar.tsx
+++ b/src/components/calendar/MonthCalendar.tsx
@@ -1,8 +1,9 @@
import { format } from "date-fns-tz";
import React from "react";
import CalendarItem from "./CalendarItem";
+import { CardContent, CardHeader, Card, CardTitle } from "../ui/card";
-const Calendar = () => {
+const MonthCalendar = () => {
const dates = [
{
"date": "2023-06-12T08:00:00.000Z",
@@ -345,76 +346,89 @@ const Calendar = () => {
"date": "2023-07-26T08:00:00.000Z",
"events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
},
- {
- "date": "2023-07-27T08:00:00.000Z",
- "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
- },
- {
- "date": "2023-07-28T08:00:00.000Z",
- "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
- },
- {
- "date": "2023-07-29T08:00:00.000Z",
- "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
- },
- {
- "date": "2023-07-30T08:00:00.000Z",
- "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
- },
- {
- "date": "2023-07-31T08:00:00.000Z",
- "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
- },
- {
- "date": "2023-08-01T08:00:00.000Z",
- "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
- },
- {
- "date": "2023-08-02T08:00:00.000Z",
- "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
- },
+ // {
+ // "date": "2023-07-27T08:00:00.000Z",
+ // "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
+ // },
+ // {
+ // "date": "2023-07-28T08:00:00.000Z",
+ // "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
+ // },
+ // {
+ // "date": "2023-07-29T08:00:00.000Z",
+ // "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
+ // },
+ // {
+ // "date": "2023-07-30T08:00:00.000Z",
+ // "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
+ // },
+ // {
+ // "date": "2023-07-31T08:00:00.000Z",
+ // "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
+ // },
+ // {
+ // "date": "2023-08-01T08:00:00.000Z",
+ // "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
+ // },
+ // {
+ // "date": "2023-08-02T08:00:00.000Z",
+ // "events": [{ "title": "BABA Split", "variant": "split", "time": "AMC" }],
+ // },
];
return (
-
-
- {dates.map((item, index) => (
-
-
- {format(item.date, "d", { timeZone: "America/New_York" })}
-
-
- {item.events.length < 5
- ? item.events.map((event: any, eventkey: number) => (
-
- ))
- : [
- ...item.events
- .slice(0, 4)
- .map((event: any, eventkey: number) => (
-
- )),
-
,
- ]}
+ //
+
+
+ June 2024
+
+
+
+ {dates.map((item, index) => (
+
+
+ {format(item.date, "d", { timeZone: "America/New_York" })}
+
+
+ {item.events.length < 5
+ ? item.events.map((event: any, eventkey: number) => (
+
+ ))
+ : [
+ ...item.events
+ .slice(0, 4)
+ .map((event: any, eventkey: number) => (
+
+ )),
+ ,
+ ]}
+
-
- ))}
-
-
+ ))}
+
+
+
+ //
);
};
-export default Calendar;
+export default MonthCalendar;
diff --git a/src/components/ui/card.tsx b/src/components/ui/card.tsx
index afa13ec..df5f519 100644
--- a/src/components/ui/card.tsx
+++ b/src/components/ui/card.tsx
@@ -1,79 +1,86 @@
-import * as React from "react"
+import * as React from "react";
-import { cn } from "@/lib/utils"
+import { cn } from "@/lib/utils";
const Card = React.forwardRef<
- HTMLDivElement,
- React.HTMLAttributes
+ HTMLDivElement,
+ React.HTMLAttributes
>(({ className, ...props }, ref) => (
-
-))
-Card.displayName = "Card"
+
+));
+Card.displayName = "Card";
const CardHeader = React.forwardRef<
- HTMLDivElement,
- React.HTMLAttributes
+ HTMLDivElement,
+ React.HTMLAttributes
>(({ className, ...props }, ref) => (
-
-))
-CardHeader.displayName = "CardHeader"
+
+));
+CardHeader.displayName = "CardHeader";
const CardTitle = React.forwardRef<
- HTMLParagraphElement,
- React.HTMLAttributes
+ HTMLParagraphElement,
+ React.HTMLAttributes
>(({ className, ...props }, ref) => (
-
-))
-CardTitle.displayName = "CardTitle"
+
+));
+CardTitle.displayName = "CardTitle";
const CardDescription = React.forwardRef<
- HTMLParagraphElement,
- React.HTMLAttributes
+ HTMLParagraphElement,
+ React.HTMLAttributes
>(({ className, ...props }, ref) => (
-
-))
-CardDescription.displayName = "CardDescription"
+
+));
+CardDescription.displayName = "CardDescription";
const CardContent = React.forwardRef<
- HTMLDivElement,
- React.HTMLAttributes
+ HTMLDivElement,
+ React.HTMLAttributes
>(({ className, ...props }, ref) => (
-
-))
-CardContent.displayName = "CardContent"
+
+));
+CardContent.displayName = "CardContent";
const CardFooter = React.forwardRef<
- HTMLDivElement,
- React.HTMLAttributes
+ HTMLDivElement,
+ React.HTMLAttributes
>(({ className, ...props }, ref) => (
-
-))
-CardFooter.displayName = "CardFooter"
+
+));
+CardFooter.displayName = "CardFooter";
-export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }
+export {
+ Card,
+ CardHeader,
+ CardFooter,
+ CardTitle,
+ CardDescription,
+ CardContent,
+};