diff --git a/src/components/calendar/CalendarItem.tsx b/src/components/calendar/CalendarItem.tsx index a1e1fcd..26d8126 100644 --- a/src/components/calendar/CalendarItem.tsx +++ b/src/components/calendar/CalendarItem.tsx @@ -3,7 +3,7 @@ import { VariantProps, cva } from "class-variance-authority"; import React from "react"; const CalenderItemVariants = cva( - "rounded-sm cursor-pointer bg-opacity-15 hover:bg-opacity-70", + "rounded-sm cursor-pointer bg-opacity-15 hover:bg-opacity-40", { variants: { variant: { @@ -11,12 +11,12 @@ const CalenderItemVariants = cva( 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", + event: "bg-purple-500 text-purple-500", split: "bg-pink-500 text-pink-500", }, size: { sm: "whitespace-nowrap", - lg: "min-h-16", + lg: "bg-opacity-5", }, }, defaultVariants: { @@ -54,14 +54,23 @@ const CalendarItem = ({ "w-1 rounded-full bg-opacity-100" )} /> -
-

{title}

-

- {time} -

+
+
+

{title}

+

+ {time} +

+
+ {description && ( +

+ {description} +

+ )}
- {description &&

{description}

} +
); }; diff --git a/src/components/calendar/Day.tsx b/src/components/calendar/Day.tsx index 8995f27..46ac520 100644 --- a/src/components/calendar/Day.tsx +++ b/src/components/calendar/Day.tsx @@ -30,7 +30,7 @@ const Day = () => { variant="earnings" size="lg" time="BMO" - description="Nvidia is reporting earnings after a boom in AI. " + description="Nvidia is reporting earnings after a boom in AI. Nvidia has emerged as a major player driving advancements in artificial intelligence. The company's high-performance graphics processing units (GPUs) have become the workhorses powering many of the latest AI models and applications. In 2023, Nvidia doubled down on AI with the launch of its Hopper architecture - a new chip design optimized for transformer-based language models like GPT-3. They also introduced new AI software tools and services through their Nvidia AI platform. This includes pre-trained models, development frameworks, and cloud services for enterprises looking to deploy large language models and computer vision AI. Additionally, Nvidia has been at the forefront of accelerating AI computing through innovations like their Grace CPU designed for AI/ML workloads. As generative AI goes mainstream, Nvidia's chips and software are becoming critical infrastructure enabling everything from content creation to drug discovery using advanced machine learning techniques." /> { variant="conference" size="lg" time="9 am" - description="Apple is holding a conference call to update shareholders about it's recent AI WWDC event." + description="Apple has been ramping up its artificial intelligence efforts in recent years. At its Worldwide Developers Conference (WWDC) in June 2023, the company unveiled several new AI-powered features across its software platforms. This includes an enhanced Siri assistant with improved language understanding and multitasking capabilities. Apple also introduced Visioneer, a new AI model for advanced computer vision tasks like image analysis and video processing. Additionally, the company has been working on implementing generative AI models into its productivity apps like Pages and Keynote to assist with content creation. While Apple has historically been more cautious about adopting cutting-edge AI compared to rivals, these latest moves signal their intent to double down on machine learning and AI across their product ecosystem. + +" /> diff --git a/src/components/calendar/MonthCalendar.tsx b/src/components/calendar/MonthCalendar.tsx index f591b10..5ea1a4c 100644 --- a/src/components/calendar/MonthCalendar.tsx +++ b/src/components/calendar/MonthCalendar.tsx @@ -36,7 +36,7 @@ const MonthCalendar = () => { return ( - +
@@ -79,79 +79,83 @@ const MonthCalendar = () => { {/* MONTH VIEW */} {calendarView == "month" && ( - -
- {sevenDays.map((day) => ( -
- {day} -
- ))} -
-
- {dates.map((item, index) => ( -
-
-

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

+ +
+
+ {sevenDays.map((day) => ( +
+ {day}
-
- {item.events.length < 4 - ? item.events.map((event: any, eventkey: number) => ( - - )) - : [ - ...item.events - .slice(0, 3) - .map((event: any, eventkey: number) => ( - - )), - , - ]} + ))} +
+
+ {dates.map((item, index) => ( +
+
+

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

+
+
+ {item.events.length < 4 + ? item.events.map((event: any, eventkey: number) => ( + + )) + : [ + ...item.events + .slice(0, 3) + .map((event: any, eventkey: number) => ( + + )), + , + ]} +
-
- ))} + ))} +
)}