diff --git a/assets/style.css b/assets/style.css index ddfd06a5..ffa9f91f 100644 --- a/assets/style.css +++ b/assets/style.css @@ -9,10 +9,6 @@ li { margin-left: 10px; } -.v-main { - padding-top: 176px !important; -} - .v-dialog .theme--dark.v-card { background-color: #434343; } diff --git a/components/Appbar.vue b/components/Appbar.vue index 0d3e9db0..e7f5bc14 100644 --- a/components/Appbar.vue +++ b/components/Appbar.vue @@ -1,251 +1,43 @@ - - - - + - - - + - + + + + + - - - - - - + + + + + - - - - - - - - - - - - - - - - - - - {{$i18n.locale}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Home - - - - {{$t('common.add_event')}} - - - - {{$t('common.share')}} - - - - About - - - - - - - - + \ No newline at end of file diff --git a/components/Calendar.vue b/components/Calendar.vue index ffd7ce43..45b1b902 100644 --- a/components/Calendar.vue +++ b/components/Calendar.vue @@ -1,40 +1,50 @@ -#calendar - vc-date-picker( - v-model='selectedDate' - title-position='left' - :is-dark="settings['theme.is_dark']" - :columns="!$vuetify.breakpoint.smAndDown ? 2 : 1" - @input='click' - @update:from-page='updatePage' - :locale='$i18n.locale' - :attributes='attributes' - transition='fade' - aria-label='Calendar' - is-expanded - is-inline) + client-only + vc-date-picker( + ref='cal' + v-model='selectedDate' + title-position='left' + :is-dark="settings['theme.is_dark']" + :columns="!$vuetify.breakpoint.smAndDown ? 2 : 1" + @input='click' + @update:from-page='updatePage' + :locale='$i18n.locale' + :attributes='attributes' + transition='fade' + aria-label='Calendar' + is-expanded + is-inline) + template(v-slot="{ inputValue, inputEvents }") + v-btn#calendarButton(v-on='inputEvents' text tile :color='selectedDate ? "primary" : "" ') {{inputValue || $t('common.calendar')}} + v-icon(v-if='selectedDate' v-text='mdiClose' right small icon @click='selectedDate = null') + v-icon(v-else v-text='mdiChevronDown' right small icon) + template(v-slot:placeholder) + v-btn#calendarButton(text tile :color='selectedDate ? "primary" : "" ') {{selectedDate || $t('common.calendar')}} + v-icon(v-if='selectedDate' v-text='mdiClose' right small icon @click='selectedDate = null') + v-icon(v-else v-text='mdiChevronDown' right small icon) + + diff --git a/components/NavHeader.vue b/components/NavHeader.vue new file mode 100644 index 00000000..cb964d92 --- /dev/null +++ b/components/NavHeader.vue @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{$i18n.locale}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/components/NavSearch.vue b/components/NavSearch.vue new file mode 100644 index 00000000..52e3fd5a --- /dev/null +++ b/components/NavSearch.vue @@ -0,0 +1,30 @@ + + #navsearch.mt-2.mt-sm-4 + v-text-field.mx-2(outlined dense hide-details :placeholder='$t("common.search")' :append-icon='mdiMagnify') + template(v-slot:prepend-inner) + Calendar(v-if='!settings.hide_calendar') + v-btn.ml-2.mt-2.gap-2(small outlined v-for='collection in collections' color='primary' :key='collection.id' :to='`/collection/${encodeURIComponent(collection.name)}`') {{collection.name}} + + + \ No newline at end of file diff --git a/pages/about.vue b/pages/about.vue index 12abcb56..32dc8e60 100644 --- a/pages/about.vue +++ b/pages/about.vue @@ -6,7 +6,7 @@ v-container v-card-text(v-else v-html='about') v-card-actions(v-if='$auth.user && $auth.user.is_admin') v-spacer - v-btn(color='primary' text + v-btn(color='primary' outlined @click='save') {{$t('common.save')}}