26 lines
703 B
Vue
26 lines
703 B
Vue
<template>
|
|
<div
|
|
:class="
|
|
'flex flex-col min-h-screen w-full md:w-1/2 lg:w-1/3 max-w-none md:max-w-2xl bg-gray-50 md:rounded-r-3xl shadow-2xl bg-[url(\'' +
|
|
context.url.resourcesPath +
|
|
'/img/background.jpg\')] bg-no-repeat bg-center bg-cover font-sans overflow-hidden'
|
|
">
|
|
<div class="flex flex-grow flex-col justify-center w-full px-8 md:px-20">
|
|
<slot></slot>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<script lang="ts">
|
|
import { defineComponent } from "vue";
|
|
import { KcContextBase } from "~/types/context";
|
|
|
|
export default defineComponent({
|
|
name: "Layout",
|
|
data() {
|
|
return {
|
|
context: (window as any).kcContext as KcContextBase.Common,
|
|
};
|
|
},
|
|
});
|
|
</script>
|