My website design requires 70% of the page to be covered with an image, but the image is currently blank. I am using Vue.js as my frontend framework. Below is the code snippet that is resulting in a blank space:
<script setup lang="ts">
import { ref, onMounted, computed } from 'vue';
</script>
<template>
<div style="background-image: `url(${require('../assets/bg.png')})`;
height: 70vh" class="full-width-image">
</div>
<div class="container">
<div class="row">
<div class="col">
</div>
</div>
<div class="row">
<div class="col">
<h1>Test</h1>
<p>test test test!</p>
</div>
</div>
</div>
</template> -
<style>
.full-width-image {
margin: auto;
padding: 0;
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
}
</style>
View the current site design here: https://i.sstatic.net/6EnAi.png