<script setup lang="ts">
import { getTime } from '@/utils/time';
//引入用户相关的仓库,获取当前用户的头像、昵称
// import useUserStore from '@/store/modules/user';
//获取存储用户信息的仓库对象
// let userStore = useUserStore();
</script>

<template>
  <div class="container">
    <el-card>
      <div class="box">
        <div class="bottom">
          <h3 class="title">尊敬的用户，{{ getTime() }}  </h3>
          <p class="subtitle">欢迎使用 小程序聊天管理 系统！</p>
        </div>
      </div>
    </el-card>
    
  </div>
</template>

<style scoped lang="scss">
.container {
  padding: var(--el-main-padding);
  height: 100%;
  background: url(../../assets/images/welcome.png) no-repeat center 60%;
  background-size: 70%;
}

.box {
  display: flex;

  .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
  }

  .bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 30px;

    .title {
      font-size: 26px;
      font-weight: 900;
      margin-bottom: 30px;
    }

    .subtitle {
      font-style: italic;
    }
  }
}

</style>