add item image

This commit is contained in:
2025-03-03 15:21:01 +01:00
parent cdfd77bc21
commit 803535daba
12 changed files with 401 additions and 112 deletions

View File

@@ -1,11 +1,16 @@
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
{{ range .data.shopItems }}
<a href="shopitems/{{ .ID }}">
<a href="/shopitems/{{ .ID }}">
<div class="bg-gray-200 rounded m-4 p-4">
<div class="relative w-full md:w-48 mb-4 flex rounded-lg justify-center items-center">
<img src="/{{ .Image }}" alt="shopping image"
class="object-cover w-full h-48 md:h-full rounded">
</div>
<h3 class="text-lg">{{ .Name }}</h3>
<i class="text-xs">{{ .Description }}</i>
<p class="">Price: {{ .Price }}</p>
<i class="text-xs">{{ .Abstract }}</i>
<p class="">Price: {{ .Price }}</pÖ>
</div>
</a>
{{ end }}