<template>
  <div>
    <div class="logo-container">
      <el-avatar size="44" shape="square" :src="logo"></el-avatar>
      <h1 class="logo-title" v-if="$store.getters.sidebarOpened">
        ithoth管理后台
      </h1>
    </div>
    <el-scrollbar>
      <sidebar-menu></sidebar-menu>
    </el-scrollbar>
  </div>
</template>

<script setup>
import logo from '@/assets/images/logo.png'
import SidebarMenu from './SidebarMenu.vue'
</script>

<style lang="scss" scoped>
.logo-container {
  height: 44px;
  padding: 10px 0 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  .logo-title {
    margin-left: 10px;
    color: #fff;
    font-weight: 600;
    line-height: 50px;
    font-size: 16px;
    white-space: nowrap;
  }
  .el-avatar {
    --el-avatar-background-color: none;
    margin-right: 12px;
  }
}
</style>
