category images with alt text on main page
This commit is contained in:
parent
e84f7d9083
commit
33d0761b2b
4 changed files with 35 additions and 8 deletions
13
config.yaml
13
config.yaml
|
@ -14,8 +14,19 @@ params:
|
||||||
professionalism and inclusivity.
|
professionalism and inclusivity.
|
||||||
catalogButtons:
|
catalogButtons:
|
||||||
home:
|
home:
|
||||||
- categoryName: 'aslkjjdlk'
|
- categoryName: 'Backdrops'
|
||||||
img: https://placehold.co/300x200/
|
img: https://placehold.co/300x200/
|
||||||
|
- categoryName: 'Arches'
|
||||||
|
img: https://placehold.co/300x200/
|
||||||
|
- categoryName: 'Canopies'
|
||||||
|
img: https://placehold.co/300x200/
|
||||||
|
- categoryName: 'Chandeliers'
|
||||||
|
img: https://placehold.co/300x200/
|
||||||
|
- categoryName: 'Signature Pieces'
|
||||||
|
img: https://placehold.co/300x200/
|
||||||
|
- categoryName: 'Centerpieces'
|
||||||
|
img: https://placehold.co/300x200/
|
||||||
|
|
||||||
social:
|
social:
|
||||||
main:
|
main:
|
||||||
- url: 'mailto:iangalloart@gmail.com'
|
- url: 'mailto:iangalloart@gmail.com'
|
||||||
|
|
|
@ -1,5 +1,21 @@
|
||||||
|
<div class="grid grid-cols-3 gap-3 m-5 my-8">
|
||||||
{{ range .Site.Params.catalogButtons.home }}
|
{{ range .Site.Params.catalogButtons.home }}
|
||||||
<a target="_blank" href="/catalog/#{{ .categoryName }}">
|
<a
|
||||||
<img src="{{ .img }}">
|
class="rounded-xl aspect-[3/2] overflow-hidden"
|
||||||
|
href="/catalog/#{{ .categoryName }}"
|
||||||
|
>
|
||||||
|
<div class="relative h-full max-w-full">
|
||||||
|
<p
|
||||||
|
class="w-full z-10 text-center absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 text-white font-bold text-4xl"
|
||||||
|
>
|
||||||
|
{{ .categoryName }}
|
||||||
|
</p>
|
||||||
|
<img
|
||||||
|
class="h-full max-w-full opacity-50"
|
||||||
|
src="{{ .img }}"
|
||||||
|
alt="Category {{ .categoryName }}"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<span>{{ .quant }}</span>
|
<span>{{ .quant }}</span>
|
||||||
</div>
|
</div>
|
||||||
{{ end }} {{ if ne .dimensions "" }}
|
{{ end }} {{ if ne .dimensions "" }}
|
||||||
<div class="text-right flex flex-row justify-between">
|
<div class="gap-1 text-right flex flex-row justify-between">
|
||||||
<strong>Dimensions:</strong>
|
<strong>Dimensions:</strong>
|
||||||
<span>{{ .dimensions }}</span>
|
<span>{{ .dimensions }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
2
themes/gallo/static/css/tailwind.min.css
vendored
2
themes/gallo/static/css/tailwind.min.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue