<template>
  <div>
    <div class="top">
      <Menu class="menu"/>
      <img :src="logo" alt="" class="logo" @click="toIndex">
<!--      <div class="experience">体验云平台</div>-->
    </div>
    <div class="shadow">
    </div>
    <div class="content">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import Menu from '@/components/menu/index'
import logo from '@/assets/logo.png'

export default {
  name: 'Index',
  components: {
    Menu
  },
  methods:{
    toIndex(){
      this.$router.push('/index')
    }
  },
  data() {
    return {
      logo,
    }
  }
}
</script>

<style lang="less" scoped>
@import "~@/style.less";

.top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: @top-height;
  background-image: radial-gradient(transparent 1px, #fff 1px);
  backdrop-filter: saturate(50%) blur(4px);
  z-index: 2;
}
.shadow{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: @top-height;
  box-shadow: 0 -30px 40px rgba(0, 0, 0, 0.8);
  z-index: 3;
  pointer-events: none
}

.menu {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  transform: translateX(-50%);
  z-index: 4;
}

.logo {
  position: absolute;
  top: 50%;
  left: 2%;
  transform: translateY(-50%);
  height: 40%;
  cursor: pointer;
}

.experience {
  position: absolute;
  top: 0;
  right: 0;
  width: 9vw;
  height: 100%;
  font-size: 1vw;
  letter-spacing: 2px;
  line-height: @top-height;
  text-align: center;
  color: #fff;
  background-color: #3372ff;
  cursor: pointer;
}

.content {
  position: absolute;
  top: @top-height;
  left: 0;
  width: 100%;
  height: calc(100vh - @top-height);
  z-index: 1;
}
</style>
