Skip to content

Commit

Permalink
fixed scroll bug on buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
jooaasss committed Sep 14, 2024
1 parent e43245a commit a9798d3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
22 changes: 6 additions & 16 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,9 @@ <h1 class="header__title">Strategic Agency</h1>
We believe in the power of bold ideas that can solve business
challenges.
</p>
<button class="header__button button button--animated">
<a
href="#contacts"
class="button__link"
>
Learn more
</a>
</button>
<a href="#contacts" class="header__button button button--animated">
Learn more
</a>

<div class="header__slider slider">
<div class="slider__slides">
Expand Down Expand Up @@ -591,14 +586,9 @@ <h2 class="vision__title">Vision, Passion, Results</h2>
We are sure that first-rate job is possible only if all three
components are united.
</p>
<button class="vision__button button button--animated">
<a
href="#contacts"
class="button__link"
>
Apply
</a>
</button>
<a href="#contacts" class="vision__button button button--animated">
Apply
</a>
</section>
</main>

Expand Down
11 changes: 6 additions & 5 deletions src/styles/blocks/button.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
.button {
display: flex;
justify-content: center;
align-items: center;
text-decoration: none;
color: $c-white;

&--animated {
transition: 0.3s;

Expand All @@ -22,9 +28,4 @@
filter: brightness(0.9);
}
}

&__link {
text-decoration: none;
color: $c-white;
}
}

0 comments on commit a9798d3

Please sign in to comment.