diff --git a/css/portfolio.css b/css/album.css similarity index 99% rename from css/portfolio.css rename to css/album.css index 43a250a..44fcc41 100644 --- a/css/portfolio.css +++ b/css/album.css @@ -1,4 +1,4 @@ -#portfolio-grid { +#album-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; diff --git a/html/album.templ b/html/album.templ new file mode 100644 index 0000000..6001df3 --- /dev/null +++ b/html/album.templ @@ -0,0 +1,17 @@ +package html +templ Album(images []string, activePage string, pages []string) { + @layout("album") { +
+ @albumHeader(activePage, pages) +
+
+ for _, img := range images { +
+ @AvifImage("album/"+img, "album", true) +
+ } +
+
+
+ } +} diff --git a/html/image.templ b/html/image.templ index b82c828..5d1a767 100644 --- a/html/image.templ +++ b/html/image.templ @@ -21,15 +21,14 @@ func processImage(fileName string) string { log.Fatal(err) } - return dst[4:] + return "/" + dst[4:] } -templ AvifImage(srcPath, alt string, lazy bool, priority bool) { +templ AvifImage(srcPath, alt string, lazy bool) { { diff --git a/html/index.templ b/html/index.templ index 8cf969f..34a1113 100644 --- a/html/index.templ +++ b/html/index.templ @@ -10,20 +10,20 @@ templ Index() { Naturalne składniki, domowe receptury i pasja. Tworzymy torty i wypieki na Twoje najważniejsze chwile - od codziennych radości po wielkie uroczystości

- Zobacz naszą ofertę + Zobacz naszą ofertę
- @AvifImage("001.avif", "tort", false, true) + @AvifImage("001.avif", "tort", false)
- @AvifImage("002.avif", "kawiarnia", true, false) + @AvifImage("002.avif", "kawiarnia", true)
- @AvifImage("003.avif", "kawiarnia", true, false) + @AvifImage("003.avif", "kawiarnia", true)
@@ -42,12 +42,12 @@ templ Index() {

Nasze Wyroby

- @AvifImage("004.avif", "tort", true, false) + @AvifImage("004.avif", "tort", true)

Torty Okazjonalne

Weselne, urodzinowe i te bez okazji – od klasyki po nowoczesne musy.

- + Przeglądaj Torty
- @AvifImage("005.avif", "ciasto", true, false) + @AvifImage("005.avif", "ciasto", true)

Domowe Ciasta

Zapach tradycji: od serników po puszyste bezy

-
+ Wyberz ciasto
- @AvifImage("009.avif", "kawiarnia", false, true) + @AvifImage("009.avif", "kawiarnia", false)
diff --git a/html/layout.templ b/html/layout.templ index f9a1c90..87ea181 100644 --- a/html/layout.templ +++ b/html/layout.templ @@ -11,21 +11,22 @@ templ layout(activePage string) { Piekarnik Gosi - - - - + + + + + - +