embed feedback widget

Signed-off-by: David Karlsson <david.karlsson@docker.com>
This commit is contained in:
David Karlsson 2023-05-04 12:41:01 +02:00
parent bbf2aef83e
commit f50497d008
3 changed files with 35 additions and 8 deletions

View File

@ -22,13 +22,14 @@
<div class="col-body"> <div class="col-body">
<main class="col-content content"> <main class="col-content content">
<section class="section"> <section class="section">
{%- if page.title -%} <div class="content-title">
<h1>{{ page.title }}</h1> {%- if page.title -%}
{%- endif -%} <h1>{{ page.title }}</h1>
{%- if page.advisory -%} {%- endif -%}
<blockquote>{{ site.data.advisories.texts[page.advisory] | markdownify }}</blockquote> {%- if site.hotjar_id and site.hotjar_id != '' and page.skip_feedback != true -%}
{%- endif -%} <button id="hotjar-feedback">Give feedback</button>
<p></p> {%- endif -%}
</div>
{{ content }} {{ content }}
</section> </section>
</main> </main>

View File

@ -69,3 +69,24 @@ a.button.outline-btn.min-hgt {
.outline-btn:hover { .outline-btn:hover {
opacity: 0.8; opacity: 0.8;
} }
// Hotjar feedback button
#hotjar-feedback {
align-self: center;
display: flex;
align-items: center;
gap: 8px;
color: $light-blue-500;
font-weight: bold;
background: none;
padding: 8px 16px;
border: 2px solid $light-blue-500;
border-radius: 2px;
.night & {
color: $white;
border: 2px solid $dark-blue-500;
}
&:hover {
opacity: 0.7;
}
}

View File

@ -202,4 +202,9 @@ main img:hover {opacity: 0.7;}
} }
} }
// Make the title wrapper flex
.content-title {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}