<template>
  <div style="padding: 0 15px; display: flex;background: #08518e" >
    <img
      src="../../assets/logo/svg.png"
      @click="toggleClick"
      :class="{ 'is-active': isActive }"
      class="hamburger"
    />
    <div class="nabar-title">华双视频水位数据接收平台</div>
  </div>
</template>

<script>
export default {
  name: 'Hamburger',
  props: {
    isActive: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    toggleClick() {
      this.$emit('toggleClick')
    }
  }
}
</script>

<style scoped>
.hamburger {
  display: inline-block;
  vertical-align: middle;
  margin-top: 18px;
  width: 16px;
  color:  #304156;
  height: 16px;
  margin-left: 6px;
}

.hamburger.is-active {
  transform: rotate(180deg);
}
.nabar-title {
  font-size: 18px;
  margin-left: 18px;
  height: 100%;
  line-height: 54px;
  color: rgb(255, 255, 255);
  font-weight: 600;
  vertical-align: middle;
}
</style>
