diff --git a/src/assets/sass/variables.sass b/src/assets/sass/variables.sass
index e013c00..cee65c9 100644
--- a/src/assets/sass/variables.sass
+++ b/src/assets/sass/variables.sass
@@ -17,6 +17,7 @@
--btn-blue-color-2: rgba(65, 105, 225, 0.5)
--btn-blue-color-3: rgba(65, 105, 225, 0.2)
--btn-blue-color-4: rgba(65, 105, 225, 0.8)
+ --btn-blue-color-5: rgba(65, 105, 225, 0.4)
--bg-btn-icons-color: rgba(215, 217, 255, 0.6)
--font-grey-color: #9294a7
--font-grey-color-0: #85858b
diff --git a/src/components/base/BaseCalendar.vue b/src/components/base/BaseCalendar.vue
index fcdbe2d..f8bbfff 100644
--- a/src/components/base/BaseCalendar.vue
+++ b/src/components/base/BaseCalendar.vue
@@ -1,7 +1,7 @@
.calendar-wrapper.bg-white
.header.px-6.pt-5.pb-18px.flex.items-center.justify-between
- .text-smm.font-semibold {{ month }}
+ .text-smm.font-semibold {{ internalMonth }}
.arrows.flex.items-center.justify-center.gap-x-6
q-btn(
flat,
@@ -21,14 +21,18 @@
round,
@click="nextMonth"
)
- .week.py-4.px-18px.grid.grid-rows-1.grid-cols-7.gap-x-1
- .flex.items-center.justify-center.week-item.text-xsx.py-1.px-2(v-for="day of week", :key="day") {{ day }}
- .body.pb-6.px-6.grid.grid-rows-6.grid-cols-7.gap-x-1.gap-y-2
- .flex.items-center.justify-center.h-8.w-8.rounded-full(
- v-for="date of dates",
- :style="calculateCurrentMonth(date)",
+ .week.py-4.px-5.grid.grid-rows-1.grid-cols-7
+ .flex.items-center.justify-center.week-item.text-xsx.py-1(v-for="day of week", :key="day") {{ day }}
+ .body.pb-5.px-5
+ .flex.items-center.justify-center.cursor-pointer.w-full.h-full(
+ v-for="date of internalDatesList",
+ @click="selectDate(date)",
:key="date",
- ) {{ date.format("DD") }}
+ :style="calculateRangeStyle(date)"
+ )
+ .flex.items-center.justify-center.rounded-full.w-full.h-full(
+ :class="calculateCellClasses(date)",
+ ) {{ date.format("D") }}
@@ -115,4 +201,25 @@ export default {
color: var(--font-grey-color)
.week-item:nth-last-child(-n+2)
color: var(--border-red-color)
+.date-active
+ color: var(--default-white),
+ background-color: var(--btn-blue-color)
+.date-active:hover
+ opacity: 0.5
+.date-other
+ color: var(--font-grey-color)
+.date-month
+ color: var(--font-black-color)
+.date-other:hover, .date-month:hover, .date-today:hover
+ background-color: var(--border-light-grey-color)
+.date-today
+ border: 1px dashed var(--btn-blue-color)
+ color: var(--btn-blue-color)
+.body
+ display: grid
+ grid-template-columns: repeat(7, 35px)
+ grid-template-rows: repeat(6, 35px)
+ row-gap: 4px
+ justify-content: center
+ align-items: center
diff --git a/src/pages/newCalendar/components/CalendarHeader.vue b/src/pages/newCalendar/components/CalendarHeader.vue
index 0f0b16a..ded3669 100644
--- a/src/pages/newCalendar/components/CalendarHeader.vue
+++ b/src/pages/newCalendar/components/CalendarHeader.vue
@@ -51,7 +51,7 @@
anchor="bottom middle",
self="top middle"
)
- base-calendar(v-model="date")
+ base-calendar(v-model="date", range)
q-btn(
color="secondary",
icon="arrow_forward_ios",
@@ -90,7 +90,10 @@ export default {
value: "expanded",
},
],
- date: moment().clone().add(1, "month").add(15, "day"),
+ date: {
+ from: moment().clone().add(1, "month"),
+ to: moment().clone().add(2, "month"),
+ },
calendarVisibility: false,
};
},