<template>
  <section id="Title">
    <div class="textContainer">

      <h1>Hét platform voor VR belevingen</h1>
      <h3>Create, Share & Experience</h3>

      <button @click="goToOtherPage(1)" class="my-button">Start with VR</button>
      <!-- <iframe src="http://localhost:80"></iframe> -->


    </div>
    <div class="imgContainer" >
      <img src="/img/VR-man.png" alt="VR Man" id="VR-man" />
      <div class="DesingElemnts">
        <img src="/img/VR-element-1.svg" alt="" class="vrDesingelement" />
        <img src="/img/VR-element-2.svg" alt="" class="vrDesingelement" />
        <img src="/img/VR-element-3.svg" alt="" class="vrDesingelement" />
      </div>
    </div>
  </section>
</template>

<script>
import { ref } from 'vue';

export default {
  name: 'Title',

  methods: {
    goToOtherPage() {
      this.$router.push({
        path: '/context',
        query: { someData: '1' }
      });
    },


  }
};
</script>



<style scoped>


.cls-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgb(255, 0, 0);
  z-index: 1;
  cursor: pointer;
  height: 5%;
  margin: 1%;
  font-size: 4vw;
}




#Title {
  display: flex;
  flex-direction: row;
  height: 100vh;
}

.imgContainer {
  z-index: 0;
  background-color: transparent;
  position: absolute;
  right: 0;
  height: 50vw;
  width: 60%;
}

#VR-man {
  height: 100%;
  width: 100%;
}

.DesingElemnts {
  height: 100%;
  width: 100%;
  display: flex;
  position: absolute;
  justify-content: center;
  z-index: -1;
  top: 0;
  gap: 10%;
}

.DesingElemnts img:nth-of-type(1) {
  position: relative;
  bottom: -100px;
}

.DesingElemnts img:nth-of-type(3) {
  position: relative;
  bottom: -60px;
}

.textContainer {
  padding: 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  width: 30%;
}

/* .textContainer h3 {
  font-size: 20px;
} */
</style>