mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
WIP - refactor of blank layout to have header and footer
This commit is contained in:
parent
a751a10783
commit
6589fe10af
@ -1,18 +1,56 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="layout-blank">
|
<div class="layout-blank">
|
||||||
|
<div class="main-navigation">
|
||||||
|
<ds-container class="main-navigation-container" style="padding: 10px 10px;">
|
||||||
|
<ds-flex style="flex: auto; flex-direction: row;">
|
||||||
|
<ds-flex-item>
|
||||||
|
<a @click="redirectToRoot">
|
||||||
|
<ds-logo />
|
||||||
|
</a>
|
||||||
|
</ds-flex-item>
|
||||||
|
<ds-flex-item style="width:50px;">
|
||||||
|
<client-only>
|
||||||
|
<locale-switch class="topbar-locale-switch" placement="top" offset="16" />
|
||||||
|
</client-only>
|
||||||
|
</ds-flex-item>
|
||||||
|
</ds-flex>
|
||||||
|
</ds-container>
|
||||||
|
</div>
|
||||||
<ds-container>
|
<ds-container>
|
||||||
<div style="padding: 5rem 2rem;">
|
<div style="padding: 5rem 2rem;">
|
||||||
<nuxt />
|
<nuxt />
|
||||||
</div>
|
</div>
|
||||||
</ds-container>
|
</ds-container>
|
||||||
|
<div id="footer" class="ds-footer">
|
||||||
|
<a href="https://human-connection.org" target="_blank" v-html="$t('site.made')"></a>
|
||||||
|
-
|
||||||
|
<nuxt-link to="/imprint">{{ $t('site.imprint') }}</nuxt-link>
|
||||||
|
‑
|
||||||
|
<nuxt-link to="/terms-and-conditions">{{ $t('site.termsAndConditions') }}</nuxt-link>
|
||||||
|
‑
|
||||||
|
<nuxt-link to="/code-of-conduct">{{ $t('site.code-of-conduct') }}</nuxt-link>
|
||||||
|
‑
|
||||||
|
<nuxt-link to="/data-privacy">{{ $t('site.data-privacy') }}</nuxt-link>
|
||||||
|
‑
|
||||||
|
<nuxt-link to="/changelog">{{ $t('site.changelog') }}</nuxt-link>
|
||||||
|
</div>
|
||||||
<div id="overlay" />
|
<div id="overlay" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import LocaleSwitch from '~/components/LocaleSwitch/LocaleSwitch'
|
||||||
import seo from '~/mixins/seo'
|
import seo from '~/mixins/seo'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
LocaleSwitch,
|
||||||
|
},
|
||||||
mixins: [seo],
|
mixins: [seo],
|
||||||
|
methods: {
|
||||||
|
redirectToRoot() {
|
||||||
|
this.$router.replace('/')
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
layout: 'default',
|
layout: 'blank',
|
||||||
async beforeCreate() {
|
async beforeCreate() {
|
||||||
await this.$store.dispatch('auth/logout')
|
await this.$store.dispatch('auth/logout')
|
||||||
this.$router.replace('/')
|
this.$router.replace('/')
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
layout: 'default',
|
layout: 'blank',
|
||||||
asyncData({ store, redirect }) {
|
asyncData({ store, redirect }) {
|
||||||
if (store.getters['auth/isLoggedIn']) {
|
if (store.getters['auth/isLoggedIn']) {
|
||||||
redirect('/')
|
redirect('/')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user