<template>
  <div>
    <div class="key">
      <span>漫游</span>
      <div class="center">
        <div class="top"><span>W</span></div>
        <div class="cen">
          <span>A</span>
          <span>S</span>
          <span>D</span>
        </div>
        <span class="text">W向前移动、S向后移动、A向左移动、D向右移动</span>
      </div>
    </div>
    <div class="line"></div>
    <div class="mouse">
      <span>环视</span>
      <div class="center">
        <i class="iconfont icon-shubiao"></i>
        <span class="text">鼠标控制方向</span>
      </div>
    </div>
    <div class="line"></div>
    <div class="quit">
      <span>退出</span>
      <div class="center">
        <div class="cen"><span>Esc</span></div>
        <span class="text">使用Esc键退出漫游</span>
      </div>
    </div>
    <div class="button">
      <el-button @click="start(false)">好的，知道了</el-button>
      <el-button @click="start(true)" type="primary">不再提示</el-button>
    </div>
  </div>
</template>
<script>
export default {
  name: 'FLPerControl',
  data() {
    return {};
  },
  created() {},
  methods: {
    start(val) {
      this.$emit('start', val);
    },
  },
};
</script>
<style lang="scss" scoped>
span {
  font-weight: bolder;
}
.text {
  margin-top: 20px;
}
.line {
  border-bottom: 1px solid #dcdfe6;
  margin: 20px 0;
}
.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  .top,
  .cen {
    span {
      color: '#53a8ff';
      display: inline-block;
      width: 30px;
      height: 30px;
      text-align: center;
      line-height: 30px;
      border: 1px solid '#53a8ff';
      padding: 5px;
      margin-bottom: 10px;
      background-color: #e9f3ff;
    }
  }
  .cen {
    span {
      margin: 10px;
    }
  }
}
.button {
  display: flex;
  justify-content: end;
  margin-top: 20px;
}
@font-face {
  font-family: 'iconfont';
  src: url('//at.alicdn.com/t/font_3226805_qqvo3ag3r8.woff2?t=1646635700216') format('woff2'),
    url('//at.alicdn.com/t/font_3226805_qqvo3ag3r8.woff?t=1646635700216') format('woff'),
    url('//at.alicdn.com/t/font_3226805_qqvo3ag3r8.ttf?t=1646635700216') format('truetype');
}
.iconfont {
  font-family: 'iconfont' !important;
  font-size: 50px;
  font-style: normal;
  color: '#53a8ff';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icon-shubiao:before {
  content: '\e8a7';
}
</style>
