diff --git a/src/assets/sass/variables.sass b/src/assets/sass/variables.sass
index 7b18a9e..c5eeea0 100644
--- a/src/assets/sass/variables.sass
+++ b/src/assets/sass/variables.sass
@@ -20,6 +20,11 @@
--btn-red-color: #ff6f6f
--time-indicator-color: #e93131
--font-obligatory-color: #ff0000
+ --bg-event-box-color: rgba(37, 40, 80, 0.1)
+ --bg-event-meeting-color: #24D07D
+ --bg-event-planning-color: #E93131
+ --bg-event-interview-color: #E5E931
+ --bg-event-work-color: #3BA3EE
--light-grey-bg-color: #f8f9fa
--btn-green-color: rgba(60, 217, 75, 1)
--btn-light-green-color: rgba(60, 217, 75, 0.2)
diff --git a/src/components/base/buttons/BaseOpenButton.vue b/src/components/base/buttons/BaseOpenButton.vue
new file mode 100644
index 0000000..7d23935
--- /dev/null
+++ b/src/components/base/buttons/BaseOpenButton.vue
@@ -0,0 +1,21 @@
+
+ button.cursor-pointer.icon-long-arrow.open-button.text-xs.pt-1
+
+
+
+
+
diff --git a/src/pages/calendar/TheCalendar.vue b/src/pages/calendar/TheCalendar.vue
index 88e5e96..4a1fc50 100644
--- a/src/pages/calendar/TheCalendar.vue
+++ b/src/pages/calendar/TheCalendar.vue
@@ -1,6 +1,6 @@
- .calendar-container.flex
- calendar-sidebar
+ .calendar-container.flex(:style="{ width: `calc(100% - ${currentWidth})` }")
+ calendar-sidebar(@width='changeWidth' :team="team")
calendar-schedule(
:current-date="currentDate"
:time-information="timeInformation"
@@ -15,11 +15,13 @@
import * as moment from "moment/moment";
import CalendarSchedule from "./components/CalendarSchedule.vue";
import CalendarSidebar from "./components/CalendarSidebar.vue";
+import img from "../../assets/images/team-member.svg";
export default {
name: "TheCalendar",
components: { CalendarSchedule, CalendarSidebar },
data() {
return {
+ currentWidth: "152px",
calendarLayout: "",
currentDate: moment(),
timeInformation: {
@@ -27,6 +29,20 @@ export default {
dayEndTime: "18:00",
},
eventsData: [],
+ columnInformation: {
+ owners: [
+ "Захарова А.О.",
+ "Константинопольская Ю.В.",
+ "Коломойцев И.К.",
+ "Зайцев В.С.",
+ ],
+ },
+ team: [
+ { id: 1, name: "Захарова А.О.", avatar: img },
+ { id: 2, name: "Константинопольская Ю.В.", avatar: img },
+ { id: 3, name: "Коломойцев И.К.", avatar: img },
+ { id: 4, name: "Зайцев В.С.", avatar: img },
+ ],
};
},
methods: {
@@ -47,14 +63,12 @@ export default {
.then((res) => res.json())
.then((res) => this.saveEventsData(res));
},
+ changeWidth(value) {
+ this.currentWidth = value.width;
+ },
},
mounted() {
this.fetchEventsData();
},
};
-
-
diff --git a/src/pages/calendar/components/CalendarSidebar.vue b/src/pages/calendar/components/CalendarSidebar.vue
index 7fc446f..84d5169 100644
--- a/src/pages/calendar/components/CalendarSidebar.vue
+++ b/src/pages/calendar/components/CalendarSidebar.vue
@@ -1,31 +1,97 @@
.sidebar.flex.flex-col.bg-white
- .sidebar-wrapper.h-full
- .sidebar-content.items-center
+ .sidebar-wrapper.h-full.my-13px(:style="{ width: windowSidebar }")
+ .sidebar-content.items-center.flex.flex-col.gap-y-8.px-4.py-19px
base-button-plus
+ .flex.flex-col.items-center
+ base-button-plus(:class="buttonStyled")
+ .flex.flex-col.gap-y-2.items-center.mt-4
+ .event.flex.items-center.justify-center(v-for="event in events" :key="event.id")
+ .event-type(:style="{ background: event.color }")
+ .flex.flex-col.items-center.gap-y-2.justify-center
+ base-button-plus.mb-2(:class="buttonStyled")
+ .team-card(v-for="teammate in team" :key="teammate.id")
+ img.avatar-wrapper(:src="teammate.avatar" alt="Team member")
+ base-open-button.mt-148px(@click="changeSize" :style="{ transform: `rotate(${turnButton})` }")
diff --git a/tailwind.config.js b/tailwind.config.js
index 7646c1f..10a01eb 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -24,11 +24,14 @@ module.exports = {
43: "43px",
},
spacing: {
+ "3px": "3px",
"6px": "6px",
"10px": "10px",
- "3px": "3px",
- "74px": "74px",
+ "13px": "13px",
+ "19px": "19px",
"45px": "45px",
+ "74px": "74px",
+ "148px": "148px",
},
},
},