<template>
    <div class="page h-full flex flex-col">
        <n-page-header title="个人中心" @back="handleBack">
            <template #extra>
                <div class="w-[22px]"></div>
            </template>
        </n-page-header>
        <mine-pannel></mine-pannel>
    </div>
</template>

<script setup lang="ts">
import { MinePannel } from '@/components/common'
import { NPageHeader } from 'naive-ui'
import { useRouter } from 'vue-router'

const router = useRouter()
function handleBack() {
    router.back()
}
</script>

<style lang="less" scoped>
.page {
    color: var(--n-text-color);
}

.n-card {
    --n-padding-left: 20px !important;
    --n-padding-bottom: 10px !important;
    background-color: transparent;
}

:deep(.n-page-header) {
    height: 50px;
    padding: 0 22px;
    .n-page-header__main {
        flex-grow: 1;
        .n-page-header__title {
            flex-grow: 1;
            text-align: center;
        }
    }
}
.page-top {
    .f();
    height: 50px;
    position: relative;
    justify-content: center;

    img {
        width: 24px;
        height: 24px;
        position: absolute;
        top: 13px;
        left: 22px;
    }

    .title {
        font-size: 16px;
        font-weight: bold;
        color: #ffffff;
        line-height: 24px;
        text-align: center;
    }
}

.share-btn {
    background: var(--bg2);
    border-radius: 8px;
    .f();
    img {
        width: 45%;
        max-width: 70px;
        display: block;
    }

    .share-text {
        flex-grow: 1;
        padding: 12px 0 12px 12px;

        .text1 {
            font-size: 16px;
            font-weight: 500;
            line-height: 24px;
        }

        .text2 {
            font-size: 12px;
            color: var(--n-text-color);
            opacity: 0.5;
            line-height: 24px;
        }
    }
}

.logout {
    padding: 0 20px 50px;
}
</style>
