2021-11-13 20:49:02 +01:00
|
|
|
<template>
|
|
|
|
<div class="no-auth-wrapper">
|
|
|
|
<div class="noauth-container">
|
2021-11-22 20:01:26 +01:00
|
|
|
<Logo class="logo" width="400" height="117" />
|
2021-11-13 20:49:02 +01:00
|
|
|
<div class="message is-info" v-if="motd !== ''">
|
|
|
|
<div class="message-header">
|
|
|
|
<p>{{ $t('misc.info') }}</p>
|
|
|
|
</div>
|
|
|
|
<div class="message-body">
|
|
|
|
{{ motd }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<slot/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import Logo from '@/components/home/Logo.vue'
|
|
|
|
import {useStore} from 'vuex'
|
|
|
|
import {computed} from 'vue'
|
|
|
|
|
|
|
|
const store = useStore()
|
|
|
|
const motd = computed(() => store.state.config.motd)
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.no-auth-wrapper {
|
2021-11-22 22:12:54 +01:00
|
|
|
background: url('@/assets/llama.svg') no-repeat bottom left fixed var(--site-background);
|
2021-11-13 20:49:02 +01:00
|
|
|
min-height: 100vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
.noauth-container {
|
|
|
|
max-width: 450px;
|
|
|
|
width: 100%;
|
|
|
|
margin: 0 auto;
|
|
|
|
padding: 1rem;
|
|
|
|
}
|
2021-11-22 20:01:26 +01:00
|
|
|
|
|
|
|
.logo {
|
2021-11-22 22:12:54 +01:00
|
|
|
color: var(--logo-text-color);
|
2021-11-22 20:01:26 +01:00
|
|
|
}
|
2021-11-13 20:49:02 +01:00
|
|
|
</style>
|