add basic cart

This commit is contained in:
2025-03-03 21:09:47 +01:00
parent 1dc10d61bc
commit 5e22be5074
9 changed files with 373 additions and 4 deletions

18
views/cart.html Normal file
View File

@@ -0,0 +1,18 @@
{{ template "header.html" . }}
{{ range .data.cartItems }}
<div class="group relative">
<div class="mt-4 flex justify-between">
<div>
<h3 class="text-sm text-gray-700">
{{ .ShopItemId }}
</h3>
</div>
<p class="text-sm font-medium text-gray-900">{{ .Quantity }} pieces</p>
</div>
</div>
{{ end }}
{{ template "footer.html" . }}