<template>
  <div class="home-container">
    <div class="wrap" ref="editor">
      <div class="top"></div>
      <div class="box">一些内容</div>
    </div>
  </div>
</template>

<script>
import { screenSize } from "@/assets/js/utils"

export default {
  name: `Home`,
  components: {},
  data() {
    return {}
  },
  computed: {},
  created() {},
  mounted() {
    screenSize(this.$refs.editor)
  },
  methods: {},
}
</script>

<style lang="less" scoped>
.home-container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  .wrap {
    transform-origin: 0px 0px 0px;
    background: url(../../assets/img/bj.jpg) no-repeat;
    background-size: contain;
    background-position: 50% 0;
    background-color: rgb(0, 0, 0);
    min-width: auto;
    width: 1920px;
    min-height: auto;
    height: 1080px;
    overflow: auto;
    .top {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 80px;
      background-color: transparent;
      background: url(../../assets/img/top_nav.png) no-repeat;
      background-position: 65% 0;
      border: none;
      overflow: hidden;
    }
    .box {
      color: #fff;
      line-height: 100vh;
      text-align: center;
      font-size: 40px;
    }
  }
}
</style>
