From 7373c5e19e1bb6f0aa85192af2877f856f083f78 Mon Sep 17 00:00:00 2001 From: dylanbenzi Date: Tue, 18 Jun 2024 20:03:40 -0400 Subject: [PATCH] updated small calendar item --- src/components/calendar/CalendarItem.tsx | 30 ++++++++++++++--------- src/components/calendar/MonthCalendar.tsx | 1 + 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/components/calendar/CalendarItem.tsx b/src/components/calendar/CalendarItem.tsx index 0924323..a1e1fcd 100644 --- a/src/components/calendar/CalendarItem.tsx +++ b/src/components/calendar/CalendarItem.tsx @@ -3,20 +3,20 @@ import { VariantProps, cva } from "class-variance-authority"; import React from "react"; const CalenderItemVariants = cva( - "rounded-sm cursor-pointer bg-opacity-30 hover:bg-opacity-70", + "rounded-sm cursor-pointer bg-opacity-15 hover:bg-opacity-70", { variants: { variant: { default: "bg-neutral-700", - conference: "bg-yellow-300 border-yellow-300 ", - dividend: "bg-blue-500 border-blue-500", - earnings: "bg-green-500 border-green-500", - event: "bg-violet-500 border-violet-500", - split: "bg-pink-500 border-pink-500", + conference: "bg-yellow-300 text-yellow-300", + dividend: "bg-blue-500 text-blue-500", + earnings: "bg-green-500 text-green-500", + event: "bg-violet-500 text-violet-500", + split: "bg-pink-500 text-pink-500", }, size: { sm: "whitespace-nowrap", - lg: "rounded-lg min-h-16", + lg: "min-h-16", }, }, defaultVariants: { @@ -44,14 +44,22 @@ const CalendarItem = ({
-
-
+
+

{title}

+

+ {time} +

-

{time}

{description &&

{description}

}
diff --git a/src/components/calendar/MonthCalendar.tsx b/src/components/calendar/MonthCalendar.tsx index 1d9b0d4..f591b10 100644 --- a/src/components/calendar/MonthCalendar.tsx +++ b/src/components/calendar/MonthCalendar.tsx @@ -146,6 +146,7 @@ const MonthCalendar = () => { title={`+ ${item.events.length - 3} more`} key="end" size="sm" + variant="default" />, ]}