diff --git a/main.go b/main.go index 0649da2..76cd558 100644 --- a/main.go +++ b/main.go @@ -8,16 +8,10 @@ import ( "net/http" "os" "piekarnikgosi/templates" + "piekarnikgosi/types" ) -type Product struct { - Name string - Image string - Price string - Description string -} - -var Cakes = []Product{ +var Cakes = []types.Product{ {"Malinowa chmurka", "001", "150", "kruchy spód, warstwa malin w galaretce, krem śmietankowy, beza"}, {"Sernik ulubiony", "002", "150", "kruchy spód, aksamitna masa serowa, beza z kruszonką"}, {"Jabłecznik z kruszonką", "003", "130", "ciasto ucierane, jabłka, kruszonka"}, @@ -52,13 +46,13 @@ func saveFile(name string, comp ComponentRenderer) { } func generateHTML() { - saveFile(`index`, templates.IndexPage()) - // saveFile(t, `kawiarnia`, nil) - // saveFile(t, `portfolio`, nil) - // saveFile(t, `wyroby`, Cakes) - // saveFile(t, `wyroby_torty`, nil) - // saveFile(t, `wyroby_slodkie_stoly`, nil) - // saveFile(t, `wyroby_lody`, nil) + saveFile(`index`, templates.Index()) + saveFile(`kawiarnia`, templates.Kawiarnia()) + saveFile(`portfolio`, templates.Portfolio()) + saveFile(`wyroby`, templates.WyrobyCiasta(Cakes)) + saveFile(`wyroby_torty`, templates.WyrobyTorty()) + saveFile(`wyroby_slodkie_stoly`, templates.WyrobySlodkieStoly()) + saveFile(`wyroby_lody`, templates.WyrobyLody()) } func main() { diff --git a/templates/card.gohtml b/templates/card.gohtml deleted file mode 100644 index e3e0562..0000000 --- a/templates/card.gohtml +++ /dev/null @@ -1,12 +0,0 @@ -{{define "card"}} -
-
- {{.Name}} -
-
-

{{.Name}}

- {{.Price}}zł -

{{.Description}}

-
-
-{{end}} \ No newline at end of file diff --git a/templates/footer.gohtml b/templates/footer.gohtml deleted file mode 100644 index 993a213..0000000 --- a/templates/footer.gohtml +++ /dev/null @@ -1,92 +0,0 @@ -{{define "footer"}} - - -{{end}} \ No newline at end of file diff --git a/templates/header.gohtml b/templates/header.gohtml deleted file mode 100644 index a572e2b..0000000 --- a/templates/header.gohtml +++ /dev/null @@ -1,27 +0,0 @@ -{{define "header"}} - - - - - Piekarnik Gosi - - - - - - - -{{end}} diff --git a/templates/index.templ b/templates/index.templ new file mode 100644 index 0000000..0995721 --- /dev/null +++ b/templates/index.templ @@ -0,0 +1,194 @@ +package templates + +templ Index() { + @layout("index") { +
+
+
+

Słodkości tworzone z pasją

+

+ 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ę +
+
+ tort +
+
+
+
+
+
+ kawiarnia +
+
+ kawiarnia +
+
+
+ Tradycja i serce +

O nas

+

+ „Piekarnik Gosi” to marzenie, które udało mi się zrealizować dzięki wsparciu i pomocy moich + najbliższych. To pracownia cukiernicza stworzona z zamiłowania do pieczenia. Tworzę z pasją, z + najwyższej jakości składników, słodkości, które uświetnią każdą uroczystość oraz spotkanie. + Wszystkie wypieki wykonuje od podstaw własnoręcznie : od biszkoptu , frużelin owocowych, chrupek , + kremów aż po elementy dekoracyjne. W mojej ofercie znajdują się torty weselne, słodkie stoły, torty + okazjonalne, tarty i ciasta wykonywane na indywidualne zamówienia. Co wyróżnia moją pracownię? + Domowy i naturalny smak 🙂 Realizuje życzenia klientów ze starannością i pełnym zaangażowaniem. +

+
+
+
+ +
+
+
+

Twój drugi dom

+

+ Poczuj się jak w domu. Codziennie czekają na Ciebie świeże wypieki prosto z naszej pracowni, + selekcja + najlepszych herbat i przepyszna kawa. To tutaj nasze ciasta smakują najlepiej – podane z + uśmiechem, w + miejscu stworzonym z pasji do słodkości. +

+
    +
  • + + + + + + + Miła atmosfera +
  • +
  • + + + + + + + Darmowe wifi +
  • +
+
+
+
+ kawiarnia +
+
+ ciasto i kawa +
+
+
+
+
+ } +} diff --git a/templates/index_templ.go b/templates/index_templ.go new file mode 100644 index 0000000..bb5b154 --- /dev/null +++ b/templates/index_templ.go @@ -0,0 +1,58 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.3.1020 +package templates + +//lint:file-ignore SA4006 This context is only used if a nested component is present. + +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + +func Index() templ.Component { + return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var1 := templ.GetChildren(ctx) + if templ_7745c5c3_Var1 == nil { + templ_7745c5c3_Var1 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + templ_7745c5c3_Var2 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "

Słodkości tworzone z pasją

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ę
\"tort\"
\"kawiarnia\"
\"kawiarnia\"
Tradycja i serce

O nas

„Piekarnik Gosi” to marzenie, które udało mi się zrealizować dzięki wsparciu i pomocy moich najbliższych. To pracownia cukiernicza stworzona z zamiłowania do pieczenia. Tworzę z pasją, z najwyższej jakości składników, słodkości, które uświetnią każdą uroczystość oraz spotkanie. Wszystkie wypieki wykonuje od podstaw własnoręcznie : od biszkoptu , frużelin owocowych, chrupek , kremów aż po elementy dekoracyjne. W mojej ofercie znajdują się torty weselne, słodkie stoły, torty okazjonalne, tarty i ciasta wykonywane na indywidualne zamówienia. Co wyróżnia moją pracownię? Domowy i naturalny smak 🙂 Realizuje życzenia klientów ze starannością i pełnym zaangażowaniem.

Nasze Wyroby

\"tort\"

Torty Okazjonalne

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

Przeglądaj Torty
\"ciasto\"

Domowe Ciasta

Zapach tradycji: od serników po puszyste bezy

Wyberz ciasto
\"slodkosci\"

Słodkie Stoły

Kompleksowa oprawa słodkości na większe przyjęcia.

Sprawdź słodkie stoły

Twój drugi dom

Poczuj się jak w domu. Codziennie czekają na Ciebie świeże wypieki prosto z naszej pracowni, selekcja najlepszych herbat i przepyszna kawa. To tutaj nasze ciasta smakują najlepiej – podane z uśmiechem, w miejscu stworzonym z pasji do słodkości.

  • Miła atmosfera
  • Darmowe wifi
\"kawiarnia\"
\"ciasto
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return nil + }) + templ_7745c5c3_Err = layout("index").Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return nil + }) +} + +var _ = templruntime.GeneratedTemplate diff --git a/templates/kawiarnia.gohtml b/templates/kawiarnia.gohtml deleted file mode 100644 index 4a9a8fb..0000000 --- a/templates/kawiarnia.gohtml +++ /dev/null @@ -1,196 +0,0 @@ -{{template "header" "kawiarnia" }} -
-
-
- Miejsce spotkań -

Chwila wytchnienia w sercu tradycji

-

Zapraszamy do naszej kawiarni, gdzie zapach świeżo mielonej kawy miesza się z aromatem wypieków prosto z - pieca.

-
-
- kawiarnia -
-
-
-
-
-
-

Odwiedź nas

- Czekamy na ciebie z świeżymi wypiekami i ciepłą kawą. Znajdź nas w samym centrum miasta. -
-
- - - - - -

Adres

-

ul. Dworcowa 3a
- 83-300 Kartuzy

-
-
- - - - -

Godziny Otwarcia

-
    -
  • - pn-pt9:00-19:00 -
  • -
  • - sb-nd10:00-20:00 -
  • -
- -
-
- - - -

Zadzwoń do nas

-

Masz pytania? Chcesz zarezerwować stolik?

- 690 214 515 -
- -
-
-
-
-

Nasza karta

-
-
- - - - - - -

Kawy

-
    -
  • Espresso

    8 PLN
  • -
  • Espresso podwójne

    12 PLN
  • -
  • Espresso Affogato

    17 PLN
  • -
  • Americano

    10 PLN
  • -
  • Flat White

    12 PLN
  • -
  • Cappucino

    12 PLN
  • -
  • Caffee Latte

    14 PLN
  • -
  • Latte Macchiato

    15 PLN
  • -
  • Kawa Mrożona

    22 PLN
  • -
  • Ice Latte

    20 PLN
  • -

    Dodatki

    -
  • Bita śmietana

    4 PLN
  • -
  • Syrop

    2 PLN
  • -
  • Dodatkowa porcja espresso

    2 PLN
  • -
-
-
- - - - - - -

Słodkości

-

    Codziennie pieczemy coś innego! Zapytaj obsługę o dzisiejsze smaki.

    - -
  • Domowe ciasta

    10 - 20 LN
  • -
  • Deserki

    5 - 15 PLN
  • -
  • Mini Pavlova

    12 PLN
  • -
-
-
- - - - -

Herbaty

-
    -
  • Czarna

    10 PLN
  • -
  • Zielona

    10 PLN
  • -
  • Cytryna

    10 PLN
  • -
  • Imbir

    10 PLN
  • -
  • Owocowa

    10 PLN
  • -
  • Cappucino

    10 PLN
  • -
  • Ice Tea

    18 PLN
  • -
-
-
- - - - - - -

Napoje

-
    -
  • Woda gazowana

    6 PLN
  • -
  • Woda niegazowana

    6 PLN
  • -
  • Coca Cola

    8 PLN
  • -
  • Fanta

    8 PLN
  • -
  • Smoothie owocowe

    20 PLN
  • -
  • Milkshake

    24 PLN
  • -
  • Lemoniada

    18 PLN
  • -
-
-
- - - - - -

Lody

-
    -
  • Mała gałka

    6 PLN
  • -
  • Duża gałka

    8 PLN
  • -
  • Deser Lodowy

    26 PLN
  • -
  • Małe włoskie

    10 PLN
  • -
  • Duże włoskie

    14 PLN
  • -
-
-
- - - - - - - -

Gofry

-
    -
  • Gofr

    12 PLN
  • -
  • Gofr bąbelkowy

    24 PLN
  • -

    Dodatki

    -
  • Owoce

    5 PLN
  • -
  • Bita śmietana

    4 PLN
  • -
  • Posypka i/lub polewa

    2 PLN
  • -
  • Frużelina

    14 PLN
  • -
-
-
-
-
-
-{{template "footer"}} \ No newline at end of file diff --git a/templates/kawiarnia.templ b/templates/kawiarnia.templ new file mode 100644 index 0000000..bb8c944 --- /dev/null +++ b/templates/kawiarnia.templ @@ -0,0 +1,285 @@ +package templates + +templ Kawiarnia() { + @layout("kawiarnia") { +
+
+
+ Miejsce spotkań +

Chwila wytchnienia w sercu tradycji

+

+ Zapraszamy do naszej kawiarni, gdzie zapach świeżo mielonej kawy miesza się z aromatem wypieków prosto z + pieca. +

+
+
+ kawiarnia +
+
+
+
+
+
+

Odwiedź nas

+ Czekamy na ciebie z świeżymi wypiekami i ciepłą kawą. Znajdź nas w samym centrum miasta. +
+
+ + + + +

Adres

+

+ ul. Dworcowa 3a +
+ 83-300 Kartuzy +

+
+
+ + + + +

Godziny Otwarcia

+
    +
  • + pn-pt9:00-19:00 +
  • +
  • + sb-nd10:00-20:00 +
  • +
+
+
+ + + +

Zadzwoń do nas

+

Masz pytania? Chcesz zarezerwować stolik?

+ 690 214 515 +
+
+
+
+
+

Nasza karta

+
+
+ + + + + + +

Kawy

+
    +
  • Espresso

    8 PLN
  • +
  • Espresso podwójne

    12 PLN
  • +
  • Espresso Affogato

    17 PLN
  • +
  • Americano

    10 PLN
  • +
  • Flat White

    12 PLN
  • +
  • Cappucino

    12 PLN
  • +
  • Caffee Latte

    14 PLN
  • +
  • Latte Macchiato

    15 PLN
  • +
  • Kawa Mrożona

    22 PLN
  • +
  • Ice Latte

    20 PLN
  • +

    Dodatki

    +
  • Bita śmietana

    4 PLN
  • +
  • Syrop

    2 PLN
  • +
  • Dodatkowa porcja espresso

    2 PLN
  • +
+
+
+ + + + + + +

Słodkości

+
    +

    Codziennie pieczemy coś innego! Zapytaj obsługę o dzisiejsze smaki.

    +
  • Domowe ciasta

    10 - 20 LN
  • +
  • Deserki

    5 - 15 PLN
  • +
  • Mini Pavlova

    12 PLN
  • +
+
+
+ + + + +

Herbaty

+
    +
  • Czarna

    10 PLN
  • +
  • Zielona

    10 PLN
  • +
  • Cytryna

    10 PLN
  • +
  • Imbir

    10 PLN
  • +
  • Owocowa

    10 PLN
  • +
  • Cappucino

    10 PLN
  • +
  • Ice Tea

    18 PLN
  • +
+
+
+ + + + + + +

Napoje

+
    +
  • Woda gazowana

    6 PLN
  • +
  • Woda niegazowana

    6 PLN
  • +
  • Coca Cola

    8 PLN
  • +
  • Fanta

    8 PLN
  • +
  • Smoothie owocowe

    20 PLN
  • +
  • Milkshake

    24 PLN
  • +
  • Lemoniada

    18 PLN
  • +
+
+
+ + + + + +

Lody

+
    +
  • Mała gałka

    6 PLN
  • +
  • Duża gałka

    8 PLN
  • +
  • Deser Lodowy

    26 PLN
  • +
  • Małe włoskie

    10 PLN
  • +
  • Duże włoskie

    14 PLN
  • +
+
+
+ + + + + + + +

Gofry

+
    +
  • Gofr

    12 PLN
  • +
  • Gofr bąbelkowy

    24 PLN
  • +

    Dodatki

    +
  • Owoce

    5 PLN
  • +
  • Bita śmietana

    4 PLN
  • +
  • Posypka i/lub polewa

    2 PLN
  • +
  • Frużelina

    14 PLN
  • +
+
+
+
+
+
+ } +} diff --git a/templates/kawiarnia_templ.go b/templates/kawiarnia_templ.go new file mode 100644 index 0000000..6c23405 --- /dev/null +++ b/templates/kawiarnia_templ.go @@ -0,0 +1,58 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.3.1020 +package templates + +//lint:file-ignore SA4006 This context is only used if a nested component is present. + +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + +func Kawiarnia() templ.Component { + return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var1 := templ.GetChildren(ctx) + if templ_7745c5c3_Var1 == nil { + templ_7745c5c3_Var1 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + templ_7745c5c3_Var2 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "
Miejsce spotkań

Chwila wytchnienia w sercu tradycji

Zapraszamy do naszej kawiarni, gdzie zapach świeżo mielonej kawy miesza się z aromatem wypieków prosto z pieca.

\"kawiarnia\"

Odwiedź nas

Czekamy na ciebie z świeżymi wypiekami i ciepłą kawą. Znajdź nas w samym centrum miasta.

Adres

ul. Dworcowa 3a
83-300 Kartuzy

Godziny Otwarcia

  • pn-pt9:00-19:00
  • sb-nd10:00-20:00

Zadzwoń do nas

Masz pytania? Chcesz zarezerwować stolik?

690 214 515

Nasza karta

Kawy

  • Espresso

    8 PLN
  • Espresso podwójne

    12 PLN
  • Espresso Affogato

    17 PLN
  • Americano

    10 PLN
  • Flat White

    12 PLN
  • Cappucino

    12 PLN
  • Caffee Latte

    14 PLN
  • Latte Macchiato

    15 PLN
  • Kawa Mrożona

    22 PLN
  • Ice Latte

    20 PLN
  • Dodatki

  • Bita śmietana

    4 PLN
  • Syrop

    2 PLN
  • Dodatkowa porcja espresso

    2 PLN

Słodkości

    Codziennie pieczemy coś innego! Zapytaj obsługę o dzisiejsze smaki.

  • Domowe ciasta

    10 - 20 LN
  • Deserki

    5 - 15 PLN
  • Mini Pavlova

    12 PLN

Herbaty

  • Czarna

    10 PLN
  • Zielona

    10 PLN
  • Cytryna

    10 PLN
  • Imbir

    10 PLN
  • Owocowa

    10 PLN
  • Cappucino

    10 PLN
  • Ice Tea

    18 PLN

Napoje

  • Woda gazowana

    6 PLN
  • Woda niegazowana

    6 PLN
  • Coca Cola

    8 PLN
  • Fanta

    8 PLN
  • Smoothie owocowe

    20 PLN
  • Milkshake

    24 PLN
  • Lemoniada

    18 PLN

Lody

  • Mała gałka

    6 PLN
  • Duża gałka

    8 PLN
  • Deser Lodowy

    26 PLN
  • Małe włoskie

    10 PLN
  • Duże włoskie

    14 PLN

Gofry

  • Gofr

    12 PLN
  • Gofr bąbelkowy

    24 PLN
  • Dodatki

  • Owoce

    5 PLN
  • Bita śmietana

    4 PLN
  • Posypka i/lub polewa

    2 PLN
  • Frużelina

    14 PLN
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return nil + }) + templ_7745c5c3_Err = layout("kawiarnia").Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return nil + }) +} + +var _ = templruntime.GeneratedTemplate diff --git a/templates/layout.templ b/templates/layout.templ index 59f74e1..2072986 100644 --- a/templates/layout.templ +++ b/templates/layout.templ @@ -2,7 +2,7 @@ package templates import "fmt" -templ Layout(activePage string) { +templ layout(activePage string) { @@ -174,202 +174,34 @@ templ Layout(activePage string) { } templ Link(activePage, targetPage, title string) { - if activePage == targetPage { - { title } - } else { - { title } - } + { title } } -templ IndexPage() { - @Layout("index") { -
-
-
-

Słodkości tworzone z pasją

-

- 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ę -
-
- tort -
-
-
-
-
-
- kawiarnia -
-
- kawiarnia -
-
-
- Tradycja i serce -

O nas

-

- „Piekarnik Gosi” to marzenie, które udało mi się zrealizować dzięki wsparciu i pomocy moich - najbliższych. To pracownia cukiernicza stworzona z zamiłowania do pieczenia. Tworzę z pasją, z - najwyższej jakości składników, słodkości, które uświetnią każdą uroczystość oraz spotkanie. - Wszystkie wypieki wykonuje od podstaw własnoręcznie : od biszkoptu , frużelin owocowych, chrupek , - kremów aż po elementy dekoracyjne. W mojej ofercie znajdują się torty weselne, słodkie stoły, torty - okazjonalne, tarty i ciasta wykonywane na indywidualne zamówienia. Co wyróżnia moją pracownię? - Domowy i naturalny smak 🙂 Realizuje życzenia klientów ze starannością i pełnym zaangażowaniem. -

-
-
-
- -
-
-
-

Twój drugi dom

-

- Poczuj się jak w domu. Codziennie czekają na Ciebie świeże wypieki prosto z naszej pracowni, - selekcja - najlepszych herbat i przepyszna kawa. To tutaj nasze ciasta smakują najlepiej – podane z - uśmiechem, w - miejscu stworzonym z pasji do słodkości. -

-
    -
  • - - - - - - - Miła atmosfera -
  • -
  • - - - - - - - Darmowe wifi -
  • -
-
-
-
- kawiarnia -
-
- ciasto i kawa -
-
-
-
-
- } +templ GreenLink(activePage, targetPage, title string) { + { title } +} + +templ wyrobyHeader(activePage string) { + } diff --git a/templates/layout_templ.go b/templates/layout_templ.go index 842b918..dd4a183 100644 --- a/templates/layout_templ.go +++ b/templates/layout_templ.go @@ -10,7 +10,7 @@ import templruntime "github.com/a-h/templ/runtime" import "fmt" -func Layout(activePage string) templ.Component { +func layout(activePage string) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { @@ -88,61 +88,51 @@ func Link(activePage, targetPage, title string) templ.Component { templ_7745c5c3_Var2 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - if activePage == targetPage { - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 4, "") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 4, "") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - } else { - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 6, "") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - var templ_7745c5c3_Var5 string - templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(title) - if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/layout.templ`, Line: 180, Col: 53} - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 8, "") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 6, "\"") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, ">") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var4 string + templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(title) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/layout.templ`, Line: 181, Col: 9} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 8, "") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } return nil }) } -func IndexPage() templ.Component { +func GreenLink(activePage, targetPage, title string) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { @@ -158,30 +148,97 @@ func IndexPage() templ.Component { }() } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var6 := templ.GetChildren(ctx) - if templ_7745c5c3_Var6 == nil { - templ_7745c5c3_Var6 = templ.NopComponent + templ_7745c5c3_Var5 := templ.GetChildren(ctx) + if templ_7745c5c3_Var5 == nil { + templ_7745c5c3_Var5 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Var7 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { - templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context - templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) - if !templ_7745c5c3_IsBuffer { - defer func() { - templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) - if templ_7745c5c3_Err == nil { - templ_7745c5c3_Err = templ_7745c5c3_BufErr - } - }() - } - ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "

Słodkości tworzone z pasją

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ę
\"tort\"
\"kawiarnia\"
\"kawiarnia\"
Tradycja i serce

O nas

„Piekarnik Gosi” to marzenie, które udało mi się zrealizować dzięki wsparciu i pomocy moich najbliższych. To pracownia cukiernicza stworzona z zamiłowania do pieczenia. Tworzę z pasją, z najwyższej jakości składników, słodkości, które uświetnią każdą uroczystość oraz spotkanie. Wszystkie wypieki wykonuje od podstaw własnoręcznie : od biszkoptu , frużelin owocowych, chrupek , kremów aż po elementy dekoracyjne. W mojej ofercie znajdują się torty weselne, słodkie stoły, torty okazjonalne, tarty i ciasta wykonywane na indywidualne zamówienia. Co wyróżnia moją pracownię? Domowy i naturalny smak 🙂 Realizuje życzenia klientów ze starannością i pełnym zaangażowaniem.

Nasze Wyroby

\"tort\"

Torty Okazjonalne

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

Przeglądaj Torty
\"ciasto\"

Domowe Ciasta

Zapach tradycji: od serników po puszyste bezy

Wyberz ciasto
\"slodkosci\"

Słodkie Stoły

Kompleksowa oprawa słodkości na większe przyjęcia.

Sprawdź słodkie stoły

Twój drugi dom

Poczuj się jak w domu. Codziennie czekają na Ciebie świeże wypieki prosto z naszej pracowni, selekcja najlepszych herbat i przepyszna kawa. To tutaj nasze ciasta smakują najlepiej – podane z uśmiechem, w miejscu stworzonym z pasji do słodkości.

  • Miła atmosfera
  • Darmowe wifi
\"kawiarnia\"
\"ciasto
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var7 string + templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(title) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/layout.templ`, Line: 190, Col: 9} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 13, "") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return nil + }) +} + +func wyrobyHeader(activePage string) templ.Component { + return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var8 := templ.GetChildren(ctx) + if templ_7745c5c3_Var8 == nil { + templ_7745c5c3_Var8 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 14, "

Nasze słodkości

Poznaj nasze tradycyjne receptury przekute w nowoczesne formy. Każdy wypiek to historia pasji, a każde lody to powiew naturalnej świeżości

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/templates/portfolio.gohtml b/templates/portfolio.gohtml deleted file mode 100644 index 1d74e3a..0000000 --- a/templates/portfolio.gohtml +++ /dev/null @@ -1,16 +0,0 @@ -{{template "header" "portfolio"}} -
-
-
-

Nasze Słodkie Realizacje

-

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.

-
-
- Ciasta - Torty - Slodkie stoły - Lody -
-
-
-{{template "footer"}} \ No newline at end of file diff --git a/templates/portfolio.templ b/templates/portfolio.templ new file mode 100644 index 0000000..cd82f25 --- /dev/null +++ b/templates/portfolio.templ @@ -0,0 +1,20 @@ +package templates + +templ Portfolio() { + @layout("portfolio") { +
+
+
+

Nasze Słodkie Realizacje

+

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.

+
+
+ Ciasta + Torty + Slodkie stoły + Lody +
+
+
+ } +} diff --git a/templates/portfolio_templ.go b/templates/portfolio_templ.go new file mode 100644 index 0000000..604a4f3 --- /dev/null +++ b/templates/portfolio_templ.go @@ -0,0 +1,58 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.3.1020 +package templates + +//lint:file-ignore SA4006 This context is only used if a nested component is present. + +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + +func Portfolio() templ.Component { + return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var1 := templ.GetChildren(ctx) + if templ_7745c5c3_Var1 == nil { + templ_7745c5c3_Var1 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + templ_7745c5c3_Var2 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "

Nasze Słodkie Realizacje

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.

Ciasta Torty Slodkie stoły Lody
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return nil + }) + templ_7745c5c3_Err = layout("portfolio").Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return nil + }) +} + +var _ = templruntime.GeneratedTemplate diff --git a/templates/wyroby.gohtml b/templates/wyroby.gohtml deleted file mode 100644 index 2b6c28c..0000000 --- a/templates/wyroby.gohtml +++ /dev/null @@ -1,12 +0,0 @@ -{{template "header" "wyroby"}} -
- {{template "wyroby_header" "ciasta"}} -
-
- {{range .}} - {{template "card" . }} - {{end}} -
-
-
-{{template "footer"}} \ No newline at end of file diff --git a/templates/wyroby_ciasta.templ b/templates/wyroby_ciasta.templ new file mode 100644 index 0000000..1c59322 --- /dev/null +++ b/templates/wyroby_ciasta.templ @@ -0,0 +1,32 @@ +package templates + +import ( + "fmt" + "piekarnikgosi/types" +) + +templ card(product types.Product) { +
+
+ { +
+
+

{ product.Name }

+ { product.Price }zł +

{ product.Description }

+
+
+} + +templ WyrobyCiasta(products []types.Product) { + @layout("wyroby") { +
+ @wyrobyHeader("wyroby") +
+ for _, product:= range products { + @card(product) + } +
+
+ } +} diff --git a/templates/wyroby_ciasta_templ.go b/templates/wyroby_ciasta_templ.go new file mode 100644 index 0000000..373dd53 --- /dev/null +++ b/templates/wyroby_ciasta_templ.go @@ -0,0 +1,175 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.3.1020 +package templates + +//lint:file-ignore SA4006 This context is only used if a nested component is present. + +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + +import ( + "fmt" + "piekarnikgosi/types" +) + +func card(product types.Product) templ.Component { + return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var1 := templ.GetChildren(ctx) + if templ_7745c5c3_Var1 == nil { + templ_7745c5c3_Var1 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "
\"")

") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var4 string + templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(product.Name) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/wyroby_ciasta.templ`, Line: 14, Col: 21} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 4, "

") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var5 string + templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(product.Price) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/wyroby_ciasta.templ`, Line: 15, Col: 24} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 5, "zł

") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var6 string + templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(product.Description) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `templates/wyroby_ciasta.templ`, Line: 16, Col: 27} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 6, "

") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return nil + }) +} + +func WyrobyCiasta(products []types.Product) templ.Component { + return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var7 := templ.GetChildren(ctx) + if templ_7745c5c3_Var7 == nil { + templ_7745c5c3_Var7 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + templ_7745c5c3_Var8 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 7, "
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = wyrobyHeader("wyroby").Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 8, "
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + for _, product := range products { + templ_7745c5c3_Err = card(product).Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 9, "
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return nil + }) + templ_7745c5c3_Err = layout("wyroby").Render(templ.WithChildren(ctx, templ_7745c5c3_Var8), templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return nil + }) +} + +var _ = templruntime.GeneratedTemplate diff --git a/templates/wyroby_header.gohtml b/templates/wyroby_header.gohtml deleted file mode 100644 index 645d236..0000000 --- a/templates/wyroby_header.gohtml +++ /dev/null @@ -1,13 +0,0 @@ -{{define "wyroby_header"}} - -{{end}} \ No newline at end of file diff --git a/templates/wyroby_lody.gohtml b/templates/wyroby_lody.gohtml deleted file mode 100644 index b01221b..0000000 --- a/templates/wyroby_lody.gohtml +++ /dev/null @@ -1,5 +0,0 @@ -{{template "header" "wyroby"}} -
- {{template "wyroby_header" "lody"}} -
-{{template "footer"}} \ No newline at end of file diff --git a/templates/wyroby_lody.templ b/templates/wyroby_lody.templ new file mode 100644 index 0000000..4a1ca31 --- /dev/null +++ b/templates/wyroby_lody.templ @@ -0,0 +1,9 @@ +package templates + +templ WyrobyLody() { + @layout("wyroby") { +
+ @wyrobyHeader("wyroby_lody") +
+ } +} diff --git a/templates/wyroby_lody_templ.go b/templates/wyroby_lody_templ.go new file mode 100644 index 0000000..fcf3be1 --- /dev/null +++ b/templates/wyroby_lody_templ.go @@ -0,0 +1,66 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.3.1020 +package templates + +//lint:file-ignore SA4006 This context is only used if a nested component is present. + +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + +func WyrobyLody() templ.Component { + return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var1 := templ.GetChildren(ctx) + if templ_7745c5c3_Var1 == nil { + templ_7745c5c3_Var1 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + templ_7745c5c3_Var2 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = wyrobyHeader("wyroby_lody").Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return nil + }) + templ_7745c5c3_Err = layout("wyroby").Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return nil + }) +} + +var _ = templruntime.GeneratedTemplate diff --git a/templates/wyroby_slodkie_stoly.gohtml b/templates/wyroby_slodkie_stoly.gohtml deleted file mode 100644 index 54fe32e..0000000 --- a/templates/wyroby_slodkie_stoly.gohtml +++ /dev/null @@ -1,55 +0,0 @@ -{{template "header" "wyroby"}} -
- {{template "wyroby_header" "slodkie_stoly"}} -
-

Aranżacja i transport słodkości ustalane są indywidualnie
- Minimalna ilość zamówień: 8szt z jednego rodzaju
- W przypadku zamówień dla ilości osób powyżej 30, do wyboru są następujące konfiguracje bufetów: -

-
-

Podstawowy

- 28 PLN/osoba -

3 szt. deseru na osobę
5 rodzajów do wyboru

-
-
-

Rozszerzony

- 34 PLN/osoba -

4-5 szt. deseru na osobę
7 rodzajów do wyboru

-
-
-

Premium

- 39 PLN/osoba -

6 szt. deseru na osobę
7 rodzajów do wyboru

-
-
-
-
-
-

W skład słodkiego stołu mogą wchodzić

-
    -
  • Muffinki czekoladowe z kremem śmietankowym
  • -
  • Babeczki z kremem i piankami
  • -
  • Cake popsyw czekoladzie
  • -
  • Ice popsyw czekoladzie
  • -
  • Panna CottaDeser w pucharku
  • -
  • TiramisuDeser w pucharku
  • -
  • Leśny mech z musem truskawkowymDeser w pucharku
  • -
  • ChiaDeser w pucharku
  • -
  • Serniczek cynamonowy lub oreona ciasteczkowym spodzie
  • -
  • OreoDeser w pucharku
  • -
  • Mini Pavlove z owocamiok.7 cm średnicy
  • -
  • Monoporcjapółkula w polewie lustrzanej mango marakuja
  • -
  • - Savarinmus z białej czekolady i żelką malinową na migdałowym ciasteczku -
  • -
  • Eklerkiz kremem śmietanowym/pattisiere
  • -
  • Tartaletkiz kremem i owocami
  • -
  • Mini tartaz ganache czekoladowym i żelką malinową
  • -
  • Profiterolz kruszonką i kremem porzeczkowym/śmietankowym
  • -
  • Ciasta
  • -
-
-
-
-
-{{template "footer"}} \ No newline at end of file diff --git a/templates/wyroby_slodkie_stoly.templ b/templates/wyroby_slodkie_stoly.templ new file mode 100644 index 0000000..26e4013 --- /dev/null +++ b/templates/wyroby_slodkie_stoly.templ @@ -0,0 +1,64 @@ +package templates + +templ WyrobySlodkieStoly() { + @layout("wyroby") { +
+ @wyrobyHeader("wyroby_slodkie_stoly") +
+

+ Aranżacja i transport słodkości ustalane są indywidualnie +
+ Minimalna ilość zamówień: 8szt z jednego rodzaju +
+ W przypadku zamówień dla ilości osób powyżej 30, do wyboru są następujące konfiguracje bufetów: +

+
+

Podstawowy

+ 28 PLN/osoba +

3 szt. deseru na osobę
5 rodzajów do wyboru

+
+
+

Rozszerzony

+ 34 PLN/osoba +

4-5 szt. deseru na osobę
7 rodzajów do wyboru

+
+
+

Premium

+ 39 PLN/osoba +

6 szt. deseru na osobę
7 rodzajów do wyboru

+
+
+
+
+
+

W skład słodkiego stołu mogą wchodzić

+
    +
  • Muffinki czekoladowe z kremem śmietankowym
  • +
  • Babeczki z kremem i piankami
  • +
  • Cake popsyw czekoladzie
  • +
  • Ice popsyw czekoladzie
  • +
  • Panna CottaDeser w pucharku
  • +
  • TiramisuDeser w pucharku
  • +
  • Leśny mech z musem truskawkowymDeser w pucharku
  • +
  • ChiaDeser w pucharku
  • +
  • Serniczek cynamonowy lub oreona ciasteczkowym spodzie
  • +
  • OreoDeser w pucharku
  • +
  • Mini Pavlove z owocamiok.7 cm średnicy
  • +
  • Monoporcjapółkula w polewie lustrzanej mango marakuja
  • +
  • +
    + Savarinmus z białej czekolady i żelką malinową na migdałowym ciasteczku +
    +
  • +
  • Eklerkiz kremem śmietanowym/pattisiere
  • +
  • Tartaletkiz kremem i owocami
  • +
  • Mini tartaz ganache czekoladowym i żelką malinową
  • +
  • Profiterolz kruszonką i kremem porzeczkowym/śmietankowym
  • +
  • Ciasta
  • +
+
+
+
+
+ } +} diff --git a/templates/wyroby_slodkie_stoly_templ.go b/templates/wyroby_slodkie_stoly_templ.go new file mode 100644 index 0000000..44003a7 --- /dev/null +++ b/templates/wyroby_slodkie_stoly_templ.go @@ -0,0 +1,66 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.3.1020 +package templates + +//lint:file-ignore SA4006 This context is only used if a nested component is present. + +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + +func WyrobySlodkieStoly() templ.Component { + return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var1 := templ.GetChildren(ctx) + if templ_7745c5c3_Var1 == nil { + templ_7745c5c3_Var1 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + templ_7745c5c3_Var2 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = wyrobyHeader("wyroby_slodkie_stoly").Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "

Aranżacja i transport słodkości ustalane są indywidualnie
Minimalna ilość zamówień: 8szt z jednego rodzaju
W przypadku zamówień dla ilości osób powyżej 30, do wyboru są następujące konfiguracje bufetów:

Podstawowy

28 PLN/osoba

3 szt. deseru na osobę
5 rodzajów do wyboru

Rozszerzony

34 PLN/osoba

4-5 szt. deseru na osobę
7 rodzajów do wyboru

Premium

39 PLN/osoba

6 szt. deseru na osobę
7 rodzajów do wyboru

W skład słodkiego stołu mogą wchodzić

  • Muffinki czekoladowe z kremem śmietankowym
  • Babeczki z kremem i piankami
  • Cake popsyw czekoladzie
  • Ice popsyw czekoladzie
  • Panna CottaDeser w pucharku
  • TiramisuDeser w pucharku
  • Leśny mech z musem truskawkowymDeser w pucharku
  • ChiaDeser w pucharku
  • Serniczek cynamonowy lub oreona ciasteczkowym spodzie
  • OreoDeser w pucharku
  • Mini Pavlove z owocamiok.7 cm średnicy
  • Monoporcjapółkula w polewie lustrzanej mango marakuja
  • Savarinmus z białej czekolady i żelką malinową na migdałowym ciasteczku
  • Eklerkiz kremem śmietanowym/pattisiere
  • Tartaletkiz kremem i owocami
  • Mini tartaz ganache czekoladowym i żelką malinową
  • Profiterolz kruszonką i kremem porzeczkowym/śmietankowym
  • Ciasta
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return nil + }) + templ_7745c5c3_Err = layout("wyroby").Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return nil + }) +} + +var _ = templruntime.GeneratedTemplate diff --git a/templates/wyroby_torty.gohtml b/templates/wyroby_torty.gohtml deleted file mode 100644 index 3d39951..0000000 --- a/templates/wyroby_torty.gohtml +++ /dev/null @@ -1,155 +0,0 @@ -{{template "header" "wyroby"}} -
- {{template "wyroby_header" "torty"}} -
-
-

Torty z masą cukrową

- od 200 PLN -

Artystyczne zdobienia i figurki. Cena zależy od dekoracji i rozmiaru

-
-
-

Torty musowe

- od 180 PLN -

Cena zależy od dekoracji i rozmiar

-
-
-

Torty Bezowe

- od 170 PLN -

Wycena indywidualna przy zamówieniu

-
-
-

Torty Weselne

- Wycena indywidualna -

Degustacje i projektowanie dopasowane do wesela

-
-
-
-
- - - - - -

Cennik Tortów Tradycyjnych

-
    -
  • Ilość porcjiCena orientacyjna
  • -
  • 6-8 porcjiod 120 PLN
  • -
  • 8-12 porcjiod 180 PLN
  • -
  • 12-15 porcjiod 220 PLN
  • -
  • 16-20 porcjiod 260 PLN
  • -
  • 20-25 porcjiod 300 PLN
  • -
-
-
-

Dodatki do tortów

-
    -
  • Figurka z masy cukrowejod 50 PLN
  • -
  • Żywe kwiatycena do negocjacji
  • -
  • Toperycena do negocjacji
  • -
  • Torty piętroweod 400 PLN
  • -
-
-
- -
-
-
-
-

Torty Musowe

-
- -
-
-
-

Karmel-jogurt-migdały

-

mus z karmelizowanej białej czekolady, chrupiąca warstwa migdałowa, ganache jogurtowy

-
-

Mango-marakuja-truskawka

-

spód migdałowy, galaretka mango-marakuja, żelka truskawkowa, krem diplomat - kokosowo-waniliowy

-

Czekolada-malina-jeżyna

-

biszkopt jogurtowy, chrupiąca warstwa czekoladowa, żelka jeżynowa, krem malinowy, mus - czekoladowy

-
-

Whisky-mango

-

brownie, krem mango, ganache czekoladowe , mus whisky

-

Kawa-orzech ziemny

-

biszkopt, karmelizowane orzeszki ziemne, namelaka z masłem orzechowym, kawowy mus

- -
-
-
-
-
-{{template "footer"}} \ No newline at end of file diff --git a/templates/wyroby_torty.templ b/templates/wyroby_torty.templ new file mode 100644 index 0000000..07f1aaa --- /dev/null +++ b/templates/wyroby_torty.templ @@ -0,0 +1,210 @@ +package templates + +templ WyrobyTorty() { + @layout("wyroby") { +
+ @wyrobyHeader("wyroby_torty") +
+
+

Torty z masą cukrową

+ od 200 PLN +

Artystyczne zdobienia i figurki. Cena zależy od dekoracji i rozmiaru

+
+
+

Torty musowe

+ od 180 PLN +

Cena zależy od dekoracji i rozmiar

+
+
+

Torty Bezowe

+ od 170 PLN +

Wycena indywidualna przy zamówieniu

+
+
+

Torty Weselne

+ Wycena indywidualna +

Degustacje i projektowanie dopasowane do wesela

+
+
+
+
+ + + + + +

Cennik Tortów Tradycyjnych

+
    +
  • Ilość porcjiCena orientacyjna
  • +
  • 6-8 porcjiod 120 PLN
  • +
  • 8-12 porcjiod 180 PLN
  • +
  • 12-15 porcjiod 220 PLN
  • +
  • 16-20 porcjiod 260 PLN
  • +
  • 20-25 porcjiod 300 PLN
  • +
+
+
+

Dodatki do tortów

+
    +
  • Figurka z masy cukrowejod 50 PLN
  • +
  • Żywe kwiatycena do negocjacji
  • +
  • Toperycena do negocjacji
  • +
  • Torty piętroweod 400 PLN
  • +
+
+
+ +
+
+
+
+

Torty Musowe

+
+ +
+
+
+
+

Karmel-jogurt-migdały

+

mus z karmelizowanej białej czekolady, chrupiąca warstwa migdałowa, ganache jogurtowy

+
+
+

Mango-marakuja-truskawka

+

+ spód migdałowy, galaretka mango-marakuja, żelka truskawkowa, krem diplomat + kokosowo-waniliowy +

+
+
+

Czekolada-malina-jeżyna

+

+ biszkopt jogurtowy, chrupiąca warstwa czekoladowa, żelka jeżynowa, krem malinowy, mus + czekoladowy +

+
+
+

Whisky-mango

+

brownie, krem mango, ganache czekoladowe , mus whisky

+
+
+

Kawa-orzech ziemny

+

biszkopt, karmelizowane orzeszki ziemne, namelaka z masłem orzechowym, kawowy mus

+
+
+
+
+
+
+ } +} diff --git a/templates/wyroby_torty_templ.go b/templates/wyroby_torty_templ.go new file mode 100644 index 0000000..dfe4b36 --- /dev/null +++ b/templates/wyroby_torty_templ.go @@ -0,0 +1,66 @@ +// Code generated by templ - DO NOT EDIT. + +// templ: version: v0.3.1020 +package templates + +//lint:file-ignore SA4006 This context is only used if a nested component is present. + +import "github.com/a-h/templ" +import templruntime "github.com/a-h/templ/runtime" + +func WyrobyTorty() templ.Component { + return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var1 := templ.GetChildren(ctx) + if templ_7745c5c3_Var1 == nil { + templ_7745c5c3_Var1 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + templ_7745c5c3_Var2 := templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = wyrobyHeader("wyroby_torty").Render(ctx, templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "

Torty z masą cukrową

od 200 PLN

Artystyczne zdobienia i figurki. Cena zależy od dekoracji i rozmiaru

Torty musowe

od 180 PLN

Cena zależy od dekoracji i rozmiar

Torty Bezowe

od 170 PLN

Wycena indywidualna przy zamówieniu

Torty Weselne

Wycena indywidualna

Degustacje i projektowanie dopasowane do wesela

Cennik Tortów Tradycyjnych

  • Ilość porcjiCena orientacyjna
  • 6-8 porcjiod 120 PLN
  • 8-12 porcjiod 180 PLN
  • 12-15 porcjiod 220 PLN
  • 16-20 porcjiod 260 PLN
  • 20-25 porcjiod 300 PLN

Dodatki do tortów

  • Figurka z masy cukrowejod 50 PLN
  • Żywe kwiatycena do negocjacji
  • Toperycena do negocjacji
  • Torty piętroweod 400 PLN

Menu smaków

Wybierz swoją ulubioną kompozycję bazową

Biszkopt Kakaowy

Czekoladowy
Możliwość połączenia z frużeliną malinową bądź wiśniową
Czekoladowo – śmietankowy
Czekoladowo – malinowy
Czekoladowy z żelką pomarańczową
Słony karmel z musem z owoców leśnych
Kinder bueno z prażynką czekoladową
Chałwowy z chrupką oraz żelką i kremem wiśniowym
Karmelowy z powidłami z czarnej porzeczki
Oreo
Nugat z orzechami laskowymi i kremem śmietankowym

Biszkopt biały

Śmietankowy
W sezonie możliwość dodatku świeżych owoców
Pistacja z malinami
Owocowe
Truskawkowy, malinowy, mango, czarna porzeczka, mango-owoce leśne
Rafaello na bazie białej czekolady
Kokosowo-malinowy z żelką malinową

Inne

Cytrynowy na bazie lemon curd
Kawowy na bazie biszkoptu kawowego

Torty Musowe

Karmel-jogurt-migdały

mus z karmelizowanej białej czekolady, chrupiąca warstwa migdałowa, ganache jogurtowy

Mango-marakuja-truskawka

spód migdałowy, galaretka mango-marakuja, żelka truskawkowa, krem diplomat kokosowo-waniliowy

Czekolada-malina-jeżyna

biszkopt jogurtowy, chrupiąca warstwa czekoladowa, żelka jeżynowa, krem malinowy, mus czekoladowy

Whisky-mango

brownie, krem mango, ganache czekoladowe , mus whisky

Kawa-orzech ziemny

biszkopt, karmelizowane orzeszki ziemne, namelaka z masłem orzechowym, kawowy mus

") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return nil + }) + templ_7745c5c3_Err = layout("wyroby").Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return nil + }) +} + +var _ = templruntime.GeneratedTemplate diff --git a/types/product.go b/types/product.go new file mode 100644 index 0000000..abb7d20 --- /dev/null +++ b/types/product.go @@ -0,0 +1,8 @@ +package types + +type Product struct { + Name string + Image string + Price string + Description string +}