From 3dc33f2f1d077812c3e498966dcb9409552ff42c Mon Sep 17 00:00:00 2001 From: Spythere Date: Wed, 18 May 2022 02:28:09 +0200 Subject: [PATCH 1/3] =?UTF-8?q?WIP:=20zak=C5=82adka=20dziennika=20dla=20dy?= =?UTF-8?q?=C5=BCurnych?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JournalView/JournalTimetables.vue | 577 +++++++++++++++++ src/styles/global.scss | 5 + src/views/JournalView.vue | 582 +----------------- 3 files changed, 614 insertions(+), 550 deletions(-) create mode 100644 src/components/JournalView/JournalTimetables.vue diff --git a/src/components/JournalView/JournalTimetables.vue b/src/components/JournalView/JournalTimetables.vue new file mode 100644 index 0000000..6d6b486 --- /dev/null +++ b/src/components/JournalView/JournalTimetables.vue @@ -0,0 +1,577 @@ + + + + + diff --git a/src/styles/global.scss b/src/styles/global.scss index f2c290e..8fc9697 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -211,6 +211,11 @@ ul { &:hover, &:focus { color: $accentCol; } + + &.checked { + color: var(--clr-primary); + font-weight: bold; + } } &--image { diff --git a/src/views/JournalView.vue b/src/views/JournalView.vue index a2cf293..7326129 100644 --- a/src/views/JournalView.vue +++ b/src/views/JournalView.vue @@ -1,578 +1,60 @@ From fa7d9fffd202a8abc979ef5d4703e1f0cd44abb9 Mon Sep 17 00:00:00 2001 From: Spythere Date: Fri, 20 May 2022 00:40:42 +0200 Subject: [PATCH 2/3] =?UTF-8?q?Prze=C5=82=C4=85czanie=20pomi=C4=99dzy=20se?= =?UTF-8?q?kcjami=20dziennika?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JournalView/JournalDispatchers.vue | 297 ++++++++++++++++++ .../JournalView/JournalTimetables.vue | 163 +--------- src/styles/JournalSection.scss | 84 +++++ src/styles/global.scss | 33 ++ src/views/JournalView.vue | 17 +- 5 files changed, 442 insertions(+), 152 deletions(-) create mode 100644 src/components/JournalView/JournalDispatchers.vue create mode 100644 src/styles/JournalSection.scss diff --git a/src/components/JournalView/JournalDispatchers.vue b/src/components/JournalView/JournalDispatchers.vue new file mode 100644 index 0000000..b4c2d29 --- /dev/null +++ b/src/components/JournalView/JournalDispatchers.vue @@ -0,0 +1,297 @@ + + + + + diff --git a/src/components/JournalView/JournalTimetables.vue b/src/components/JournalView/JournalTimetables.vue index 6d6b486..39d5c42 100644 --- a/src/components/JournalView/JournalTimetables.vue +++ b/src/components/JournalView/JournalTimetables.vue @@ -1,33 +1,33 @@ @@ -306,10 +306,6 @@ export default defineComponent({ this.scrollDataLoaded = true; }, - keyPressed({ keyCode }) { - if (keyCode == 13) this.search(); - }, - async addHistoryData() { this.scrollDataLoaded = false; @@ -405,83 +401,9 @@ export default defineComponent({ diff --git a/src/styles/JournalSection.scss b/src/styles/JournalSection.scss new file mode 100644 index 0000000..f5ebe29 --- /dev/null +++ b/src/styles/JournalSection.scss @@ -0,0 +1,84 @@ +@import 'responsive.scss'; + +// Animations +.warning { + &-enter-from, + &-leave-to { + opacity: 0; + } + + &-enter-active { + transition: all 200ms ease-in-out; + } + + &-leave-active { + transition: all 200ms ease-in-out; + } +} + +.journal-list-anim { + &-enter-active, + &-leave-active { + transition: all 0.5s ease; + } + + &-enter-from, + &-leave-to { + opacity: 0; + } +} + +//Styles +.journal-wrapper { + width: 1350px; + padding: 1em 0; +} + +.journal_warning { + text-align: center; + font-size: 1.3em; + + &.error { + background-color: var(--clr-error); + } +} + +.schedule-dates > * { + margin-right: 0.25em; +} + +li, +.journal_warning { + background: #202020; + padding: 1em; + margin: 1em 0; +} + +.journal_loading { + margin-top: 2em; + + img { + margin: 0 auto; + display: block; + + width: 8em; + } + + text-align: center; + + .loading-label { + background: #333; + color: white; + + padding: 0.5em 0.5em; + font-size: 1.3em; + + border-radius: 1em; + } +} + +@include smallScreen() { + .journal-wrapper { + font-size: 1.25em; + } +} diff --git a/src/styles/global.scss b/src/styles/global.scss index 8fc9697..cb4890d 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -243,4 +243,37 @@ ul { background-color: #3c3c3c; } } +} + +.return-btn { + display: flex; + justify-content: center; + align-items: center; + + position: fixed; + right: 0; + bottom: 0; + + z-index: 100; + + margin: 0 1em 1em 0; + + width: 2em; + height: 2em; + + font-size: 1.7em; + + background-color: #333; + color: white; + + border-radius: 50%; + cursor: pointer; + + &:hover { + background-color: #3c3c3c; + } + + img { + width: 1.3em; + } } \ No newline at end of file diff --git a/src/views/JournalView.vue b/src/views/JournalView.vue index 7326129..42d02b2 100644 --- a/src/views/JournalView.vue +++ b/src/views/JournalView.vue @@ -18,16 +18,22 @@ - +
+ + + + +