Files
assistant/components/DrawerHeader.uvue

58 lines
1.2 KiB
Plaintext

<template>
<view class="drawer-header">
<!-- Avatar -->
<view class="drawer-header__avatar">
<text class="drawer-header__avatar-emoji">🤖</text>
</view>
<!-- App info -->
<text class="drawer-header__name">{{ appName }}</text>
<text class="drawer-header__subtitle">{{ appSubtitle }}</text>
</view>
</template>
<script setup lang="uts">
import { APP_NAME, APP_SUBTITLE } from '@/constants/index'
const appName = APP_NAME
const appSubtitle = APP_SUBTITLE
</script>
<style scoped>
.drawer-header {
display: flex;
flex-direction: column;
align-items: center;
padding: 48rpx 32rpx 32rpx;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.drawer-header__avatar {
width: 96rpx;
height: 96rpx;
border-radius: 50%;
background: linear-gradient(135deg, #6c5ce7, #a29bfe);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20rpx;
box-shadow: 0 8rpx 24rpx rgba(108, 92, 231, 0.3);
}
.drawer-header__avatar-emoji {
font-size: 48rpx;
}
.drawer-header__name {
font-size: 36rpx;
font-weight: 700;
color: rgba(255, 255, 255, 0.92);
margin-bottom: 6rpx;
}
.drawer-header__subtitle {
font-size: 24rpx;
color: rgba(255, 255, 255, 0.4);
}
</style>