Skip to content

Commit

Permalink
smh prannay dont you know you gotta import static assets in vite
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy committed Nov 28, 2023
1 parent afe0d4a commit 90eeb7f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/src/views/Home.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<v-container fluid
style="background: url('/src/assets/books.jpg') no-repeat center center fixed !important; background-size: cover"
:style="{background: `url(${booksUrl}), no-repeat center center fixed !important`, backgroundSize: `cover`}"
>
<section align="center"
justify="center" :height="height" style="fill-height:100%; margin-top:30vh;">
Expand Down Expand Up @@ -210,6 +210,8 @@
</template>

<script lang="ts" setup>
import booksUrl from '@/assets/books.jpg'
import {
ref,
type Ref,
Expand Down Expand Up @@ -288,8 +290,9 @@ onMounted(() => {
</script>

<style scoped>
.onboarding {
background: url('/src/assets/books.jpg') no-repeat center center fixed !important;
background: url(booksUrl) no-repeat center center fixed !important;
background-size: cover;
/* background-image: url('/src/assets/books.jpg'); */
color: white;
Expand Down

0 comments on commit 90eeb7f

Please sign in to comment.