-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
/
feedback.html
36 lines (35 loc) · 1.32 KB
/
feedback.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{{/* TODO: port JS & response text from Bootstrap module. Re-integrate with GA plus Fathom/Plausible */}}
{{/* $ga := site.Params.marketing.analytics.google_analytics | default "" */}}
{{ $show_feedback := .Params.feedback | default true }}
{{ if hugo.IsProduction | and $show_feedback }}{{/* | and $ga */}}
<div class="
mt-3
bg-[#EAEEF6]
dark:bg-[#1F2938] dark:text-[#e2e8f0]
shadow-sm
pt-5
pb-5
flex
justify-center
items-center
flex-col
rounded-md
">
<div class="contents">
<div class="opacity-60">
{{ i18n "feedback_widget_question" | default "Was this page helpful?" }}
</div>
<div class="flex items-center justify-around mt-3">
<div class="px-3 py-2 mr-1 text-2xl transition transform rounded-md cursor-pointer hover:opacity-100 hover:bg-gray-200 dark:hover:bg-gray-700">
😞
</div>
<div class="px-3 py-2 mr-1 text-2xl transition transform rounded-md cursor-pointer hover:opacity-100 hover:bg-gray-200 dark:hover:bg-gray-700">
😐
</div>
<div class="px-3 py-2 mr-1 text-2xl transition transform rounded-md cursor-pointer hover:opacity-100 hover:bg-gray-200 dark:hover:bg-gray-700">
🤩
</div>
</div>
</div>
</div>
{{ end }}