<template>
  <div class="logo">
    <img :src="websiteConfig.logo" alt="" :class="{ 'mr-2': !collapsed }" />
    <h2 v-show="!collapsed" class="title">{{ 'MECMP' }}</h2>
  </div>
</template>

<script lang="ts">
import { websiteConfig } from '@/config/website.config'
export default {
  name: 'Index',
  props: {
    collapsed: {
      type: Boolean
    }
  },
  data() {
    return {
      websiteConfig
    }
  }
}
</script>

<style lang="less" scoped>
.mr-2 {
  margin-right: 10px;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  line-height: 64px;
  overflow: hidden;
  white-space: nowrap;

  img {
    width: auto;
    height: 32px;
  }

  .title {
    margin-bottom: 0;
  }
}
</style>
