Added image grid

This commit is contained in:
bronkuu 2026-06-02 10:03:58 +02:00
parent a4bcc2f800
commit 232da2be65
6 changed files with 272 additions and 56 deletions

View file

@ -1,18 +1,14 @@
package html
templ Portfolio() {
templ Portfolio(images []string) {
@layout("portfolio") {
<main>
<section class="portfolio">
<header>
<h1>Nasze Słodkie Realizacje</h1>
<p>Galeria pasji uwieczniona w kremie i dekoracjach. Zobacz wybrane projekty, które uświetniły wyjątkowe chwile naszych klientów od bajkowych tortów dla dzieci po eleganckie torty weselne.</p>
</header>
<div>
<a class="btn-green">Ciasta</a>
<a class="btn-green" href="wyroby_torty.gohtml">Torty</a>
<a class="btn-green" href="wyroby_slodkie_stoly.html">Slodkie stoły</a>
<a class="btn-green" href="wyroby_lody.html">Lody</a>
@portfolioHeader("portfolio")
<section>
<div id="portfolio-grid">
for _, img := range images {
@AvifImage("portfolio/"+img, "portfolio")
}
</div>
</section>
</main>