update styling when no image is available
All checks were successful
Hugo / build (push) Successful in 11s

This commit is contained in:
brooke 2024-07-13 16:45:56 -04:00
parent 4d7e2cd2c0
commit a3323479a2
3 changed files with 11 additions and 11 deletions

View file

@ -110,9 +110,6 @@ catalog:
installBreakdown: $50 installBreakdown: $50
purchaseCost: $330 purchaseCost: $330
cat: Backdrops cat: Backdrops
thumbnail:
gallery:
- image:
- item: Curvy Stands - item: Curvy Stands
quant: 5 quant: 5
@ -494,9 +491,6 @@ catalog:
installBreakdown: $280 installBreakdown: $280
purchaseCost: $1,320 purchaseCost: $1,320
cat: Arches cat: Arches
thumbnail:
gallery:
- image:
- item: Large 8ft Chuppah - item: Large 8ft Chuppah
quant: 1 quant: 1

View file

@ -37,12 +37,18 @@
<div <div
class="flex flex-col justify-between bg-white rounded-lg border p-4 relative" class="flex flex-col justify-between bg-white rounded-lg border p-4 relative"
> >
{{ if .thumbnail }}
<img <img
loading="lazy" loading="lazy"
src="{{ .thumbnail }}" src="{{ .thumbnail }}"
alt="Thumbnail" alt="Thumbnail"
class="w-full h-52 rounded-md object-cover" class="w-full h-52 rounded-md object-cover"
/> />
{{ else }}
<div class="w-full h-52 rounded-md object-cover border-2 border-gray-200 bg-gray-100"></div>
{{ end }}
<div class="px-1 pt-4"> <div class="px-1 pt-4">
<div class="flex flex-row gap-2 justify-between font-bold text-xl mb-2"> <div class="flex flex-row gap-2 justify-between font-bold text-xl mb-2">
{{ .item }} {{ if ne .cat "" }} {{ .item }} {{ if ne .cat "" }}
@ -86,14 +92,14 @@
<div class="flex flex-col gap-4"> <div class="flex flex-col gap-4">
{{ if ne .purchaseCost "" }} {{ if ne .purchaseCost "" }}
<div <div
class="flex flex-row justify-between border-[3px] rounded-lg px-4 h-10 py-[0.275rem] w-full" class="flex flex-row justify-between border-2 rounded-lg px-4 h-10 py-[0.275rem] w-full"
> >
<strong>Purchase Cost:</strong> <strong>Purchase Cost:</strong>
<span>{{ .purchaseCost }}</span> <span>{{ .purchaseCost }}</span>
</div> </div>
{{ else }} {{ else }}
<div <div
class="flex justify-center border-[3px] rounded-lg px-4 h-10 py-[0.275rem] text-gray-600 mt-4 w-full" class="flex justify-center border-2 rounded-lg px-4 h-10 py-[0.275rem] text-gray-600 mt-4 w-full"
> >
<strong>Purchase Unavailable</strong> <strong>Purchase Unavailable</strong>
</div> </div>
@ -208,14 +214,14 @@
</div> </div>
{{ end }} {{ if ne .purchaseCost "" }} {{ end }} {{ if ne .purchaseCost "" }}
<div <div
class="flex flex-row justify-between border-[3px] rounded-lg px-4 h-10 py-[0.275rem] w-full mt-4" class="flex flex-row justify-between border-2 rounded-lg px-4 h-10 py-[0.275rem] w-full mt-4"
> >
<strong>Purchase Cost:</strong> <strong>Purchase Cost:</strong>
<span>{{ .purchaseCost }}</span> <span>{{ .purchaseCost }}</span>
</div> </div>
{{ else }} {{ else }}
<div <div
class="flex justify-center border-[3px] rounded-lg px-4 h-10 py-[0.275rem] text-gray-600 mt-4 w-full" class="flex justify-center border-2 rounded-lg px-4 h-10 py-[0.275rem] text-gray-600 mt-4 w-full"
> >
<strong>Purchase Unavailable</strong> <strong>Purchase Unavailable</strong>
</div> </div>

File diff suppressed because one or more lines are too long