style tweaks
This commit is contained in:
parent
5aaf41d8c6
commit
2134b9a05f
2 changed files with 30 additions and 0 deletions
|
|
@ -2,6 +2,19 @@ package html
|
|||
|
||||
import "piekarnikgosipl/types"
|
||||
|
||||
// templ card-swieta(product types.Product) {
|
||||
// <div class="card">
|
||||
// <div>
|
||||
// @AvifImage("wyroby/"+product.Image+".avif", product.Name, true)
|
||||
// </div>
|
||||
// <div>
|
||||
// <h3>{ product.Name }</h3>
|
||||
// <span>{ product.Price }zł</span>
|
||||
// <p>{ product.Description }</p>
|
||||
// </div>
|
||||
// </div>
|
||||
// }
|
||||
|
||||
templ Swieta(products []types.Product) {
|
||||
@layout("swieta") {
|
||||
<main tabindex="-1" id="swieta">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue