<template>
  <section id="title" class="grid-container">
    <div class="text-container grid-item">
      <h1>Hét platform voor VR belevingen</h1>
      <h3>Create, Share & Experience</h3>
      <button @click="goToOtherPage(1)" class="my-button">Start with VR</button>
      <h3></h3>
    </div>
    <div class="img-container grid-item">
      <img src="/img/VR-man.png" alt="VR Man" id="vr-man" />
      <div class="design-elements">
        <img src="/img/VR-element-1.svg" alt="" class="vr-design-element" />
        <img src="/img/VR-element-2.svg" alt="" class="vr-design-element" />
        <img src="/img/VR-element-3.svg" alt="" class="vr-design-element" />
      </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>
/* Grid System Styles */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  height: 100vh;
  align-items: center;
}

.grid-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Text Container Styling */
.text-container {
  padding: 10%;
  gap: 30px;
  max-width: 400px;
}

.text-container h1 {
  font-size: 40px;
}

.text-container h3 {
  font-size: 1.5rem;
}

.my-button {

  /* padding: 10px 20px; */
  font-size: 16px;
  cursor: pointer;
}

/* Image Container Styling */
.img-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#vr-man {
  z-index: 1;
  max-width: 100%;
  height: auto;
}

.design-elements {
  position: absolute;
  display: flex;
  justify-content: center;
  gap: 20%;
  top: 0;
  /* width: 100%; */
  max-width: 30%;
}

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

.design-elements img:nth-of-type(3) {
  position: relative;
  bottom: -60px;
}
@media (max-width: 768px) { 
  .text-container h1 {
    font-size: 25px;
  }
  .text-container h3 {
    font-size: 15px;
  }
  .text-container {

  max-width: 300px;
}

.my-button {

  width: 100px;
  height: 50px;
font-size: 10px;
cursor: pointer;
}

.grid-container {
  height: 80vh;
}
.design-elements img:nth-of-type(1) {
  position: relative;
  bottom: -10px;
}

.design-elements img:nth-of-type(3) {
  position: relative;
  bottom: -30px;
}
}

@media (max-width: 320px) { 
  .text-container h1 {
    font-size: 15px;
  }
  .text-container h3 {
    font-size: 10px;
  }
  .text-container {
    gap: 10px;
  max-width: 400px;

  }

.grid-container {
  height: 50vh;
}

.my-button {
font-size: 16px;

}


}
</style>
