Skip to content

Commit

Permalink
fix hero image
Browse files Browse the repository at this point in the history
  • Loading branch information
gantoine committed May 17, 2024
1 parent 84fd295 commit 838938a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,16 @@ const menuItems: MenuItem[] = [
</div>
<div>
<nuxt-img
:src="`images/blocks/hero/hero-${$config.theme}.png`"
v-if="$config.theme === 'dark'"
:src="`images/blocks/hero/hero-dark.png`"
preset="responsive"
alt="list of games in library"
class="hero md:ml-auto block md:h-full object-cover w-full md:w-auto"
:placeholder="[2190, 1550, 40, 20]"
/>
<nuxt-img
v-else
:src="`images/blocks/hero/hero-light.png`"
preset="responsive"
alt="list of games in library"
class="hero md:ml-auto block md:h-full object-cover w-full md:w-auto"
Expand Down

0 comments on commit 838938a

Please sign in to comment.