Skip to content
Snippets Groups Projects
Commit f033f3ef authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

style: just use class HTML attribute for static CSS classes

parent e4083e66
No related branches found
No related tags found
No related merge requests found
......@@ -131,8 +131,8 @@
<div
v-for="timeslot in timeslotsForDay"
:key="timeslot.id"
class="timeslot tw-w-full tw-py-2 tw-px-3 tw-rounded hover:tw-bg-gray-200 hover:tw-text-gray-900 tw-cursor-pointer tw-border tw-border-solid tw-border-gray-200 tw-mb-2"
:class="{
'timeslot tw-w-full tw-py-2 tw-px-3 tw-rounded hover:tw-bg-gray-200 hover:tw-text-gray-900 tw-cursor-pointer tw-border tw-border-solid tw-border-gray-200 tw-mb-2': true,
'tw-bg-gray-900 tw-text-white':
new Date() >= new Date(timeslot.start) && new Date() <= new Date(timeslot.end),
'tw-bg-gray-200 tw-text-gray-600 tw-opacity-75': new Date() >= new Date(timeslot.end),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment