Smarter under construction layout

This commit is contained in:
Abner Coimbre
2024-11-07 10:22:19 -08:00
parent 424081828f
commit 3f12391a8b
2 changed files with 27 additions and 1 deletions

View File

@@ -2,7 +2,11 @@
<div class="bg-[url('/images/devon_starfield.png')] bg-cover min-h-screen flex items-center justify-center">
<div class="text-4xl font-bold text-white">
<figure class="flex justify-center items-center">
{{ partial "image" (dict "Src" .Params.Image "Alt" "Banner" "Class" "w-1/3 h-1/3" ) }}
{{ $constructionBanner := "/images/under-construction.svg" }}
{{ if .Params.Image }}
{{ $constructionBanner = .Params.Image }}
{{ end }}
{{ partial "image" (dict "Src" $constructionBanner "Alt" "Banner" "Class" "w-1/3 h-1/3" ) }}
</figure>
<h1 class="text-white">Under Construction</h1>
<p class="text-lg text-white text-center">We're actively working on this bit!</p>