<template>
  <div class="winseaview-logo">
    <transition name="fade">
      <span v-if="keyCollapse"
            class="winseaview-logo_subtitle"
            key="0">
        <i class="iconfont iconsiyecao"></i>
      </span>
    </transition>
    <transition-group name="fade">
      <template v-if="!keyCollapse">
        <span class="winseaview-logo_title"
              key="1">
          <div>
            <i class="iconfont icon-yiliangyiyun"></i>
          </div>
        </span>
      </template>
    </transition-group>
  </div>
</template>

<script>
import '../../../public/static/logo/iconfont.js';
import { mapGetters } from 'vuex';
export default {
  name: 'logo',
  created () { },
  computed: {
    ...mapGetters(['website', 'keyCollapse'])
  },
  methods: {}
};
</script>

<style lang="scss" scoped>
.icon-yiliangyiyun{
  font-size:40px;
}
.icon {
  width: 9em;
  height: 3em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
  margin-top: -4px;
}
.fade-leave-active {
  transition: opacity 0.2s;
}
.fade-enter-active {
  transition: opacity 2.5s;
}
.fade-enter,
.fade-leave-to {
  opacity: 0;
}
.winseaview-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 40px;
  line-height: 40px;
  background-color: #20222a;
  font-size: 20px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.8);
  z-index: 1024;
  &_title {
    display: inline-block;
    margin: 0;
    color: #999;
    font-weight: normal;
    line-height: 42px;
    font-size: 12px;
    font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
    display: block;
    text-align: center;
    font-weight: 300;
    div {
      display: flex;
      align-items: baseline;
      justify-content: center;
      width: 100%;
      img {
        width: 85px;
        margin-right: 10px;
      }
      i {
        margin-right: 10px;
      }
    }
  }
  &_subtitle {
    // padding-top: 10px;
    display: block;
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
  }
}
</style>
