Merge pull request #50 from dderbentsov/UC-21

Создал компонент сайдбара для страницы календаря
This commit is contained in:
frontgavrilin
2022-10-21 01:09:17 +03:00
committed by GitHub
3 changed files with 36 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
<template lang="pug"> <template lang="pug">
.calendar-container .calendar-container.flex
calendar-sidebar
calendar-schedule( calendar-schedule(
:current-date="currentDate" :current-date="currentDate"
:time-information="timeInformation" :time-information="timeInformation"
@@ -13,9 +14,10 @@
<script> <script>
import * as moment from "moment/moment"; import * as moment from "moment/moment";
import CalendarSchedule from "./components/CalendarSchedule.vue"; import CalendarSchedule from "./components/CalendarSchedule.vue";
import CalendarSidebar from "./components/CalendarSidebar.vue";
export default { export default {
name: "TheCalendar", name: "TheCalendar",
components: { CalendarSchedule }, components: { CalendarSchedule, CalendarSidebar },
data() { data() {
return { return {
calendarLayout: "", calendarLayout: "",

View File

@@ -1,5 +1,5 @@
<template lang="pug"> <template lang="pug">
.schedule.ml-2 .schedule.ml-2.w-full
calendar-header( calendar-header(
:current-date="currentDate" :current-date="currentDate"
:is-current-date="isCurrentDate" :is-current-date="isCurrentDate"

View File

@@ -0,0 +1,31 @@
<template lang="pug">
.sidebar.flex.flex-col.bg-white
.sidebar-wrapper.h-full
.sidebar-content.items-center
base-button-plus
</template>
<script>
import BaseButtonPlus from "../../../components/base/buttons/BaseButtonPlus.vue";
export default {
components: {
BaseButtonPlus,
},
};
</script>
<style lang="sass" scoped>
.sidebar
width: 72px
.sidebar-wrapper
border-left: 2px solid var(--btn-blue-color-3)
margin: 13px 0
.sidebar-content
padding: 19px 16px
.button-plus
width: 40px
height: 40px
max-height: 40px
background: var(--btn-blue-color)
color: var(--default-white)
</style>