images
This commit is contained in:
parent
c489aa7f3d
commit
f8f6e7d913
141 changed files with 342 additions and 99 deletions
|
|
@ -1,14 +1,11 @@
|
|||
package templates
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"piekarnikgosi/types"
|
||||
)
|
||||
import "piekarnikgosi/types"
|
||||
|
||||
templ card(product types.Product) {
|
||||
<div class="card">
|
||||
<div>
|
||||
<img alt={ product.Name } src={ fmt.Sprint("images/wyroby/", product.Image, ".avif") }/>
|
||||
@AvifImage("wyroby/"+product.Image+".avif", product.Name)
|
||||
</div>
|
||||
<div>
|
||||
<h3>{ product.Name }</h3>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue