diff --git a/package-lock.json b/package-lock.json index f1e26a7..a08af4d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "@fullcalendar/core": "^6.1.15", "@fullcalendar/daygrid": "^6.1.15", "@fullcalendar/interaction": "^6.1.15", + "@fullcalendar/list": "^6.1.17", "@fullcalendar/timegrid": "^6.1.15", "@fullcalendar/vue3": "^6.1.15", "@headlessui/vue": "^1.7.23", @@ -2379,6 +2380,15 @@ "@fullcalendar/core": "~6.1.17" } }, + "node_modules/@fullcalendar/list": { + "version": "6.1.17", + "resolved": "https://registry.npmjs.org/@fullcalendar/list/-/list-6.1.17.tgz", + "integrity": "sha512-fkyK49F9IxwlGUBVhJGsFpd/LTi/vRVERLIAe1HmBaGkjwpxnynm8TMLb9mZip97wvDk3CmZWduMe6PxscAlow==", + "license": "MIT", + "peerDependencies": { + "@fullcalendar/core": "~6.1.17" + } + }, "node_modules/@fullcalendar/timegrid": { "version": "6.1.17", "resolved": "https://registry.npmjs.org/@fullcalendar/timegrid/-/timegrid-6.1.17.tgz", diff --git a/package.json b/package.json index 4ffd7d2..aa87b2c 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "@fullcalendar/core": "^6.1.15", "@fullcalendar/daygrid": "^6.1.15", "@fullcalendar/interaction": "^6.1.15", + "@fullcalendar/list": "^6.1.17", "@fullcalendar/timegrid": "^6.1.15", "@fullcalendar/vue3": "^6.1.15", "@headlessui/vue": "^1.7.23", diff --git a/src/components/CustomCalendar.vue b/src/components/CustomCalendar.vue new file mode 100644 index 0000000..e31d2d6 --- /dev/null +++ b/src/components/CustomCalendar.vue @@ -0,0 +1,170 @@ + + + + + diff --git a/src/main.css b/src/main.css index 9816a0e..e618f2f 100644 --- a/src/main.css +++ b/src/main.css @@ -72,7 +72,7 @@ a[button] { button[primary]:not([primary="false"]), a[button][primary]:not([primary="false"]) { - @apply border border-transparent text-white bg-primary hover:bg-primary; + @apply border-2 border-transparent text-white bg-primary hover:bg-primary; } button[primary-outline]:not([primary-outline="false"]), @@ -131,29 +131,3 @@ summary > svg { summary::-webkit-details-marker { display: none; } - -.fc-button-primary { - @apply bg-primary! border-primary! outline-hidden! ring-0! hover:bg-red-700! hover:border-red-700! h-10 text-center; -} -.fc-button-active { - @apply bg-red-500! border-red-500!; -} -.fc-toolbar { - @apply flex-wrap; -} - -/* For screens between 850px and 768px */ -@media (max-width: 850px) and (min-width: 768px) { - .fc-header-toolbar.fc-toolbar.fc-toolbar-ltr > .fc-toolbar-chunk:nth-child(2) { - @apply order-1!; - } - /* Your styles for this range */ -} - -/* For screens between 525px and 0px */ -@media (max-width: 525px) and (min-width: 0px) { - /* Your styles for this range */ - .fc-header-toolbar.fc-toolbar.fc-toolbar-ltr > .fc-toolbar-chunk:nth-child(2) { - @apply order-1!; - } -} diff --git a/src/views/admin/club/calendar/Calendar.vue b/src/views/admin/club/calendar/Calendar.vue index d45bd41..4535be8 100644 --- a/src/views/admin/club/calendar/Calendar.vue +++ b/src/views/admin/club/calendar/Calendar.vue @@ -4,14 +4,17 @@

Kalender

- +
@@ -22,14 +25,10 @@ import { defineComponent, markRaw, defineAsyncComponent } from "vue"; import { mapActions, mapState } from "pinia"; import { useModalStore } from "@/stores/modal"; import MainTemplate from "@/templates/Main.vue"; -import FullCalendar from "@fullcalendar/vue3"; -import deLocale from "@fullcalendar/core/locales/de"; -import dayGridPlugin from "@fullcalendar/daygrid"; -import timeGridPlugin from "@fullcalendar/timegrid"; -import interactionPlugin from "@fullcalendar/interaction"; import { useCalendarStore } from "@/stores/admin/club/calendar"; import { useAbilityStore } from "@/stores/ability"; import { LinkIcon, PlusIcon } from "@heroicons/vue/24/outline"; +import CustomCalendar from "@/components/CustomCalendar.vue"; diff --git a/src/views/public/calendar/Calendar.vue b/src/views/public/calendar/Calendar.vue index 956a34d..f4de6da 100644 --- a/src/views/public/calendar/Calendar.vue +++ b/src/views/public/calendar/Calendar.vue @@ -12,7 +12,7 @@ @@ -23,14 +23,10 @@ import { defineComponent, markRaw, defineAsyncComponent } from "vue"; import { mapActions, mapState } from "pinia"; import { useModalStore } from "@/stores/modal"; import MainTemplate from "@/templates/Main.vue"; -import FullCalendar from "@fullcalendar/vue3"; -import deLocale from "@fullcalendar/core/locales/de"; -import dayGridPlugin from "@fullcalendar/daygrid"; -import timeGridPlugin from "@fullcalendar/timegrid"; -import interactionPlugin from "@fullcalendar/interaction"; import { InformationCircleIcon, LinkIcon } from "@heroicons/vue/24/outline"; import type { CalendarViewModel } from "@/viewmodels/admin/club/calendar.models"; import { RouterLink } from "vue-router"; +import CustomCalendar from "@/components/CustomCalendar.vue";