mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 20:15:25 +00:00
BREAKING CHANGE Module paths moved to `github.com/HugoBlox/kit` with new names: - core `blox-tailwind` → `blox` - analytics → `analytics` - netlify → `integrations/netlify` - slides (reveal) → `slides` Update go.mod, module.yaml/params, scripts, tests, and v0.11 migration guide accordingly.
37 lines
1.3 KiB
HTML
37 lines
1.3 KiB
HTML
{{/* 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 }}
|