summaryrefslogtreecommitdiff
path: root/layouts/_partials/header/hoverable-logo.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-09-11 11:46:46 +0800
committerEltrac <hi@guhub.cn>2025-09-11 11:46:46 +0800
commit7f66ff9a5c84e54b119fb880da5aaa95b9c44552 (patch)
treef6162814d606221dbc72ef3bc18de3bc0b1a7b05 /layouts/_partials/header/hoverable-logo.html
parentcc3ce6bb87616b49b94e5c8a15e24930254e4354 (diff)
refactor: header into modular partials
Diffstat (limited to 'layouts/_partials/header/hoverable-logo.html')
-rw-r--r--layouts/_partials/header/hoverable-logo.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/_partials/header/hoverable-logo.html b/layouts/_partials/header/hoverable-logo.html
new file mode 100644
index 00000000..d04ae6ac
--- /dev/null
+++ b/layouts/_partials/header/hoverable-logo.html
@@ -0,0 +1,15 @@
+<div class="group relative w-full flex flex-col items-center">
+ <div class="group-hover:opacity-30 transition-opacity duration-500">
+ {{ partial "components/logo" (dict "imageClass" "w-[10rem]") }}
+ </div>
+ <div class="opacity-0 group-hover:opacity-100 transition-opacity duration-500
+ w-[20rem] absolute top-0 bottom-0
+ flex flex-col items-center justify-center markdown-body">
+ <p class="text-center text-xl font-extrabold font-italic">
+ {{ T "homePageQuote.content" . | markdownify }}
+ </p>
+ <p class="w-full m-0 text-right text-sm text-secondary">
+ {{ T "homePageQuote.source" . | markdownify }}
+ </p>
+ </div>
+</div>