Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#127 - fix the bug where scroll-btn disappears in mobile #135

Merged
merged 1 commit into from
Jul 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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