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-12-04 15:47:32 +01:00
|
|
|
<Message v-if="motd !== ''" class="my-2">
|
2021-11-28 15:18:27 +01:00
|
|
|
{{ motd }}
|
2021-12-04 15:47:32 +01:00
|
|
|
</Message>
|
2021-11-13 20:49:02 +01:00
|
|
|
<slot/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2021-12-04 15:47:32 +01:00
|
|
|
<script lang="ts" setup>
|
2021-11-13 20:49:02 +01:00
|
|
|
import Logo from '@/components/home/Logo.vue'
|
2021-12-04 15:47:32 +01:00
|
|
|
import Message from '@/components/misc/message.vue'
|
2021-11-13 20:49:02 +01:00
|
|
|
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-30 22:03:26 +01:00
|
|
|
background: url('@/assets/llama.svg?url') 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
|
|
|
max-width: 100%;
|
2021-11-22 20:01:26 +01:00
|
|
|
}
|
2021-11-13 20:49:02 +01:00
|
|
|
</style>
|