From 6b577f98cb261c73594d752e170a018d79d48225 Mon Sep 17 00:00:00 2001 From: johnjovero98 Date: Fri, 18 Oct 2024 16:50:33 -0600 Subject: [PATCH 1/5] update month view ui --- components/app/Calendar.vue | 76 ++++++++++++++++++++++++++++++++++++- nuxt.config.ts | 6 ++- 2 files changed, 79 insertions(+), 3 deletions(-) diff --git a/components/app/Calendar.vue b/components/app/Calendar.vue index 158873f..66e7e48 100644 --- a/components/app/Calendar.vue +++ b/components/app/Calendar.vue @@ -18,6 +18,8 @@ const onEventClick = (event: any, e: any) => { } + + + - { \ No newline at end of file +.vuecal__event-title { + @apply text-xs sm:text-sm font-semibold; +} + +.vuecal__event-time { + @apply text-[0.5rem] sm:text-xs; +} + +.vuecal__event:hover { + @apply cursor-pointer; +} + +.vuecal__event { + @apply flex flex-col justify-center p-2 bg-primary text-white border border-gray-400/25; +} + +.vuecal__event-content { + @apply italic text-xs; +} + +.vuecal__title-bar { + @apply relative; +} + +.vuecal__today-btn { + @apply bg-gray-400/20 hover:bg-gray-400/25 py-1 px-3 me-4 rounded-lg dark:text-white text-black font-semibold absolute right-[-10px] top-[-39px]; +} + +.vuecal__heading .weekday-label { + font-weight: bold; +} + +.vuecal--month-view .vuecal__cell { + height: 125px; +} + +.vuecal--month-view .vuecal__cell-content { + justify-content: start; + padding: .5rem; +} + +.vuecal--month-view .vuecal__event { + padding: unset; + text-align: left; + border: unset; + color: #265dad; + background-color: unset; + padding: 0.3rem; + border-radius: 0.2rem; + gap: 5px; + flex-direction: row; + align-items: center; +} + +.dark .vuecal--month-view .vuecal__event { + color: white; +} + +.vuecal--month-view .vuecal__cell--out-of-scope .vuecal__event { + color: #bebaba; +} + +.dark .vuecal--month-view .vuecal__cell--out-of-scope .vuecal__event { + color: rgb(55, 55, 55); +} + +.vuecal--month-view .vuecal__event:hover { + background-color: #265dad; + color: white; +} + +.vuecal--month-view .vuecal__event .vuecal__event-title { + font-weight: normal; + text-wrap: nowrap; + overflow: hidden; + font-weight: bold; +} + +.vuecal--month-view .vuecal__event .vuecal__event-time { + order: -1; +} + +.vuecal--month-view .vuecal__event .vuecal__event-time span { + display: none; +} + +#event-modal .content-full a { + @apply hover:underline text-gray-600 dark:text-gray-400; +} + diff --git a/nuxt.config.ts b/nuxt.config.ts index c1d5fd1..08a5c9b 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -81,6 +81,8 @@ export default defineNuxtConfig({ componentIslands: true, }, + compatibilityDate: '2024-10-18', + // server nitro: { compressPublicAssets: true, @@ -131,6 +133,4 @@ export default defineNuxtConfig({ ], }, }, - - compatibilityDate: '2024-10-18', -}) \ No newline at end of file +}) From 269da88c3abd7e593f43b00cdc420c5b00d48b71 Mon Sep 17 00:00:00 2001 From: johnjovero98 Date: Mon, 21 Oct 2024 14:55:13 -0600 Subject: [PATCH 5/5] remove "compatibilityDate" from nuxt.config.ts --- nuxt.config.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 08a5c9b..2e339e9 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -81,8 +81,6 @@ export default defineNuxtConfig({ componentIslands: true, }, - compatibilityDate: '2024-10-18', - // server nitro: { compressPublicAssets: true,