mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
38 lines
810 B
Vue
38 lines
810 B
Vue
<template>
|
|
<div class="login-form-container">
|
|
<div class="login-title">
|
|
<div class="logo text-center"><img src="@/assets/MaxKB-logo.svg" height="45" /></div>
|
|
<div class="sub-title text-center" v-if="subTitle">
|
|
<el-text type="info">{{ subTitle }}</el-text>
|
|
</div>
|
|
</div>
|
|
<el-card class="login-card">
|
|
<slot></slot>
|
|
</el-card>
|
|
</div>
|
|
</template>
|
|
<script setup lang="ts">
|
|
const defaultTitle = import.meta.env.VITE_APP_TITLE
|
|
defineOptions({ name: 'LoginContainer' })
|
|
defineProps({
|
|
title: String,
|
|
subTitle: String
|
|
})
|
|
</script>
|
|
<style lang="scss" scope>
|
|
.login-form-container {
|
|
width: 480px;
|
|
|
|
.login-title {
|
|
margin-bottom: 32px;
|
|
.sub-title {
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
.login-card {
|
|
border-radius: 8px;
|
|
padding: 18px;
|
|
}
|
|
}
|
|
</style>
|