40 lines
785 B
Vue
40 lines
785 B
Vue
<template>
|
|
<div class="no-auth-wrapper">
|
|
<div class="noauth-container">
|
|
<Logo class="logo" width="400" height="117" />
|
|
<message v-if="motd !== ''">
|
|
{{ motd }}
|
|
</message>
|
|
<slot/>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import Logo from '@/components/home/Logo.vue'
|
|
import message from '@/components/misc/message'
|
|
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 {
|
|
background: url('@/assets/llama.svg') no-repeat bottom left fixed var(--site-background);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.noauth-container {
|
|
max-width: 450px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.logo {
|
|
color: var(--logo-text-color);
|
|
}
|
|
</style>
|