Skip to content

Commit

Permalink
fix the bug where scroll-btn disappears in mobile (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebinSong authored Jul 30, 2024
1 parent 3d1822a commit 5a0e8e0
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions src/components/HomeAnimation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@
Basic Income for your
friends and family.
</h1>

<p class="is-subtitle c-main-para">Group income makes it easy for small communities to
voluntarily provide a financial safety net for their members.</p>
<i class="icon-button icon-chevron-bottom" @click="scrollTo('#container2')"></i>

<div class="scroll-btn-container">
<i class="icon-button icon-chevron-bottom" @click="scrollTo('#container2')"></i>
</div>
</div>
</section>

Expand Down Expand Up @@ -489,17 +493,27 @@ export default {
}
}
.icon-chevron-bottom {
.scroll-btn-container {
position: relative;
width: 100%;
display: flex;
height: 2.5rem;
width: 2.5rem;
border-radius: 4rem;
margin-left: calc(50% - 1.25rem);
margin-top: 3rem;
margin-bottom: -3rem;
justify-content: center;
margin-top: 2rem;
@include phone {
display: none;
@include tablet {
margin-top: 3rem;
}
}
.icon-chevron-bottom {
display: inline-flex;
height: 2.25rem;
width: 2.25rem;
border-radius: 50%;
@include tablet {
height: 2.5rem;
width: 2.5rem;
}
}
Expand Down

0 comments on commit 5a0e8e0

Please sign in to comment.