<template>
    <div class="module-stub">
        <div class="module-stub__inner">
            <el-icon class="module-stub__icon" :size="56"><Tools /></el-icon>
            <h3 class="module-stub__title">{{ title }}</h3>
            <p class="module-stub__desc">{{ desc }}</p>
        </div>
    </div>
</template>

<script setup lang="ts">
import { Tools } from '@element-plus/icons-vue'

defineProps<{
    title: string
    desc?: string
}>()
</script>

<style lang="scss" scoped>
.module-stub {
    height: 100%;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
}

.module-stub__inner {
    text-align: center;
    padding: 40px 60px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);

    .module-stub__icon {
        color: #909399;
        margin-bottom: 16px;
    }

    .module-stub__title {
        font-size: 20px;
        margin: 0 0 8px;
        color: #303133;
    }

    .module-stub__desc {
        font-size: 13px;
        color: #909399;
        margin: 0;
        max-width: 480px;
    }
}
</style>
