You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

167 lines
2.6 KiB

1 month ago
<template>
<section id="title" class="grid-container">
<div class="text-container grid-item">
1 month ago
<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>
1 month ago
</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" />
1 month ago
</div>
</div>
</section>
</template>
<script>
import { ref } from 'vue';
export default {
name: 'title',
1 month ago
methods: {
goToOtherPage() {
this.$router.push({
path: '/context',
query: { someData: '1' },
1 month ago
});
},
},
1 month ago
};
</script>
<style scoped>
/* Grid System Styles */
.grid-container {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
height: 100vh;
align-items: center;
}
1 month ago
.grid-item {
1 month ago
display: flex;
flex-direction: column;
1 month ago
justify-content: center;
}
/* Text Container Styling */
.text-container {
padding: 10%;
gap: 30px;
max-width: 400px;
}
1 month ago
.text-container h1 {
font-size: 40px;
}
1 month ago
.text-container h3 {
font-size: 1.5rem;
}
1 month ago
.my-button {
/* padding: 10px 20px; */
font-size: 16px;
cursor: pointer;
1 month ago
}
/* Image Container Styling */
.img-container {
position: relative;
display: flex;
justify-content: center;
align-items: center;
1 month ago
}
#vr-man {
z-index: 1;
max-width: 100%;
height: auto;
1 month ago
}
.design-elements {
1 month ago
position: absolute;
display: flex;
1 month ago
justify-content: center;
gap: 20%;
1 month ago
top: 0;
/* width: 100%; */
max-width: 30%;
1 month ago
}
.design-elements img:nth-of-type(1) {
1 month ago
position: relative;
bottom: -100px;
}
.design-elements img:nth-of-type(3) {
1 month ago
position: relative;
bottom: -60px;
}
@media (max-width: 768px) {
.text-container h1 {
font-size: 25px;
}
.text-container h3 {
font-size: 15px;
}
.text-container {
1 month ago
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;
1 month ago
}
.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>