Skip to content

Commit

Permalink
TalkToUs button's behavior from blog pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreades committed Dec 14, 2024
1 parent a0e766f commit e8fa4b7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
5 changes: 5 additions & 0 deletions assets/sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
@import './typography';
@import './vars';

html {
scroll-behavior: smooth;
}

body {
@include stylized-scrollbar;
background-color: $white;
Expand All @@ -26,6 +30,7 @@ body {
line-height: $line-height-default;
margin: 0;
text-align: left;
scroll-behavior: smooth;
}

html,
Expand Down
17 changes: 11 additions & 6 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,18 @@
{{- end }}
</div>
<div class="header--button-wrapper">
<a class="header--button" href="#talk" x-on:click.prevent="talkToUs"
>{{
(resources.Get "img/ico-talk.svg").Content
| strings.TrimSpace
| safeHTML
}}Talk to us</a
<a
class="header--button"
{{ if .Params.simpleFooter }}
href="/contact/#talk"
{{ else }}
href="#talk"
x-on:click.prevent="talkToUs"
{{ end }}
>
{{ (resources.Get "img/ico-talk.svg").Content | strings.TrimSpace | safeHTML }}
Talk to us
</a>
</div>
</div>
</div>
Expand Down

0 comments on commit e8fa4b7

Please sign in to comment.