
<template>
  <div>
    <nav class="layer">
      <ul>
        <li><router-link to="/new/test">页面1</router-link></li>
        <li><router-link to="/new/test2">页面2</router-link></li>
        <li><label for="pageThree">页面3</label></li>
        <li><label for="pageFour">页面4</label></li>
        <li><label for="pageFive">页面5</label></li>
      </ul>
    </nav>

    <input type="checkbox" name="hamburger" id="hamburger" />
    <label for="hamburger">
      <ul>
        <li></li>
        <li></li>
        <li></li>
      </ul>
    </label>

    <section class="front layer2">
      <!-- <h1>你好</h1> -->
      <router-view ></router-view>
      <!-- <input type="radio" name="nav" id="pageOne" class="home" />
      <div id="One">
      </div>
      <input type="radio" name="nav" id="pageTwo" />
      <div id="Two"></div>
      <input type="radio" name="nav" id="pageThree" />
      <div id="Three"></div>
      <input type="radio" name="nav" id="pageFour" />
      <div id="Four"></div>
      <input type="radio" name="nav" id="pageFive" />
      <div id="Five"></div> -->
    </section>
  </div>
</template>

<script>
export default {
    // 笔记本
    data() {
        return {
            
        }
    },
    components: { },
    methods:{
        page1:function() {
          this.$router.push({path: '/new/notebook2'});
        },
        initPscChart() {
            
        }
    }    
}
</script>

<style>
@import url("https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700");
body {
  font-family: "Roboto Condensed";
  text-transform: uppercase;
  /* background: #52d7db; */
  background: url('../../assets/login/logbackground.png') no-repeat;
  height: 100%;
  overflow: hidden;
}

h1 {
  font-size: 35px;
  text-align: center;
  transition: all 0.1s ease;
}

input[type="checkbox"]#hamburger {
  position: fixed;
  top: -999%;
  left: -999%;
}

label[for="hamburger"] {
  display: block;
  position: fixed;
  top: 50px;
  right: 5px;
  height: 50px;
  width: 50px;
  background: #2f9aa9;
  z-index: 1030;
  cursor: pointer;
  border-top-left-radius: 50%;
  border-bottom-right-radius: 50%;
  border-bottom-left-radius: 50%;
  box-shadow: 1px 2px 5px #464647;
}

label[for="hamburger"] > ul {
  width: 100%;
  height: 60%;
  position: Absolute;
  top: 20%;
  left: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-flow: row wrap;
  flex-direction: column;
  justify-content: space-around;
}

label[for="hamburger"] > ul > li {
  width: 25px;
  height: 3px;
  background: #464647;
  margin: auto;
  transition: all 0.4s ease;
  position: relative;
  top: 0;
  bottom: 0;
}

input[type="checkbox"]:checked#hamburger + label + .front {
  transform: perspective(700px) scale(0.5) translateX(-16.66%) rotateY(25deg);
}

input[type="checkbox"]:checked#hamburger + label + .front > h1 {
  opacity: 0;
}

input[type="checkbox"]:checked#hamburger + label > ul > li:first-child {
  transform: rotate(45deg);
  top: 30%;
}

input[type="checkbox"]:checked#hamburger + label > ul > li:nth-child(2) {
  display: none;
}

input[type="checkbox"]:checked#hamburger + label > ul > li:last-child {
  transform: rotate(-45deg);
  bottom: 30%;
  left: 0;
}

.layer {
  display: flex;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: transform 0.4s;
  transform: perspective(800px) scale(1) translateX(0) rotateY(0);
  transform-style: preserve-3d;
}
.layer2 {
  display: flex;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: transform 0.4s;
  transform: perspective(800px) scale(1) translateX(0) rotateY(0);
  transform-style: preserve-3d;
}

nav {
  vertical-align: center;
}

nav ul {
  padding-left: 66.66%;
  font-size: larger;
  line-height: 2;
}

ul li {
  list-style-type: none;
}

nav ul li label {
  display: Block;
  color: White;
  cursor: pointer;
  padding: 5px;
  margin-bottom: 10%;
}

nav ul li label:hover {
  color: black;
}

.front {
  /* background: #ffffff; */
   background: url('../../assets/login/logbackground.png') no-repeat;
}

.front > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* opacity: 0; */
  pointer-events: none;
  transition: all 0.4s ease;
}

.front > div#One {
}

.front > div#Two {
  box-shadow: inset 0 0 150px cornflowerblue;
}

.front > div#Three {
  box-shadow: inset 0 0 150px green;
}

.front > div#Four {
  box-shadow: inset 0 0 150px darkslategrey;
}

.front > div#Five {
  box-shadow: inset 0 0 150px darkred;
}

input[type="radio"] {
  position: fixed;
  top: -999%;
  left: -999%;
}

input[type="radio"]:checked + div {
  opacity: 1;
  pointer-events: initial;
}
</style>
