Skip to content

Commit

Permalink
fix: drop in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Dec 29, 2024
1 parent 522b8c3 commit 4c7da38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/index/SvgBackground.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
import background from '../../assets/bg-2.svg';
---

<div class="background absolute top-0 z-0 ">
<div class="background absolute top-0 z-0 h-[70vh] md:[h-100vh]">
<img src={background.src} alt="background" class="w-full h-full object-cover"/>
</div>

<style>
.background {
width: 100vw;
height: 100vh;
z-index: -1;
overflow: hidden;
}
Expand Down

0 comments on commit 4c7da38

Please sign in to comment.