This commit is contained in:
bronkuu 2026-05-27 16:23:55 +02:00
parent c489aa7f3d
commit f8f6e7d913
141 changed files with 342 additions and 99 deletions

View file

@ -1,5 +1,7 @@
FROM golang:1.26.2-alpine FROM golang:1.26.2-alpine
RUN apk add --no-cache build-base vips-dev
WORKDIR /app WORKDIR /app
COPY . . COPY . .
@ -8,4 +10,4 @@ RUN go mod download
EXPOSE 8000 EXPOSE 8000
CMD ["go", "run", "."] CMD ["go", "run", "."]

2
go.mod
View file

@ -3,3 +3,5 @@ module piekarnikgosi
go 1.26.2 go 1.26.2
require github.com/a-h/templ v0.3.1020 require github.com/a-h/templ v0.3.1020
require github.com/h2non/bimg v1.1.9 // indirect

2
go.sum
View file

@ -2,3 +2,5 @@ github.com/a-h/templ v0.3.1020 h1:ypAT/L5ySWEnZ6Zft/5yfoWXYYkhFNvEFOeeqecg4tw=
github.com/a-h/templ v0.3.1020/go.mod h1:A2DlK61v+K+NRoGnhmYbNYVmtYHcFO5/AisMvBdDxTM= github.com/a-h/templ v0.3.1020/go.mod h1:A2DlK61v+K+NRoGnhmYbNYVmtYHcFO5/AisMvBdDxTM=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/h2non/bimg v1.1.9 h1:WH20Nxko9l/HFm4kZCA3Phbgu2cbHvYzxwxn9YROEGg=
github.com/h2non/bimg v1.1.9/go.mod h1:R3+UiYwkK4rQl6KVFTOFJHitgLbZXBZNFh2cv3AEbp8=

View file

@ -67,7 +67,7 @@ func mergeStyles() {
bundledCSS = append(bundledCSS, '\n') bundledCSS = append(bundledCSS, '\n')
} }
err := os.WriteFile("www/style.css", bundledCSS, 0644) err := os.WriteFile("www/style.css", bundledCSS, 0666)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }
@ -75,7 +75,7 @@ func mergeStyles() {
func ensureDir() { func ensureDir() {
log.Println("creating directories") log.Println("creating directories")
err := os.MkdirAll("www", 0644) err := os.MkdirAll("www/images", 0777)
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)
} }

BIN
resources/.DS_Store vendored

Binary file not shown.

View file

@ -6,17 +6,17 @@ var Cakes = []types.Product{
{Name: "Malinowa chmurka", Image: "001", Price: "150", Description: "kruchy spód, warstwa malin w galaretce, krem śmietankowy, beza"}, {Name: "Malinowa chmurka", Image: "001", Price: "150", Description: "kruchy spód, warstwa malin w galaretce, krem śmietankowy, beza"},
{Name: "Sernik ulubiony", Image: "002", Price: "150", Description: "kruchy spód, aksamitna masa serowa, beza z kruszonką"}, {Name: "Sernik ulubiony", Image: "002", Price: "150", Description: "kruchy spód, aksamitna masa serowa, beza z kruszonką"},
{Name: "Jabłecznik z kruszonką", Image: "003", Price: "130", Description: "ciasto ucierane, jabłka, kruszonka"}, {Name: "Jabłecznik z kruszonką", Image: "003", Price: "130", Description: "ciasto ucierane, jabłka, kruszonka"},
{Name: "Sernik klasyczny", Image: "004", Price: "150", Description: "wykończony czekoladowym ganache lub oprószony cukrem pudrem"}, {Name: "Sernik klasyczny", Image: "001", Price: "150", Description: "wykończony czekoladowym ganache lub oprószony cukrem pudrem"},
{Name: "Sernik królewski", Image: "005", Price: "150", Description: "kakaowy spód i kruszonka, wilgotna masa serowa"}, {Name: "Sernik królewski", Image: "001", Price: "150", Description: "kakaowy spód i kruszonka, wilgotna masa serowa"},
{Name: "Pleśniak", Image: "006", Price: "120", Description: "kruche ciasto waniliowe, powidła owocowe, kruche ciasto kakaowe, beza i kruszonka"}, {Name: "Pleśniak", Image: "001", Price: "120", Description: "kruche ciasto waniliowe, powidła owocowe, kruche ciasto kakaowe, beza i kruszonka"},
{Name: "Leśny mech z musem truskawkowym", Image: "007", Price: "110", Description: "biszkoptowe ciasto z dodatkiem szpinaku, mus truskawkowy"}, {Name: "Leśny mech z musem truskawkowym", Image: "001", Price: "110", Description: "biszkoptowe ciasto z dodatkiem szpinaku, mus truskawkowy"},
{Name: "Snickers", Image: "008", Price: "150", Description: "dwie warstwy kakaowego biszkoptu a pomiędzy bezowy blat orzechowy , krem budyniowy , toffi i,orzeszki ziemne"}, {Name: "Snickers", Image: "001", Price: "150", Description: "dwie warstwy kakaowego biszkoptu a pomiędzy bezowy blat orzechowy , krem budyniowy , toffi i,orzeszki ziemne"},
{Name: "Mleczna kanapka", Image: "009", Price: "120", Description: "dwa blaty czekoladowego ciasta, a pomiędzy krem waniliowy z dodatkiem cienkiej warstwy,czekoladowej"}, {Name: "Mleczna kanapka", Image: "001", Price: "120", Description: "dwa blaty czekoladowego ciasta, a pomiędzy krem waniliowy z dodatkiem cienkiej warstwy,czekoladowej"},
{Name: "3Bit", Image: "010", Price: "120", Description: "herbatniki, krem budyniowy, toffi i śmietana"}, {Name: "3Bit", Image: "001", Price: "120", Description: "herbatniki, krem budyniowy, toffi i śmietana"},
{Name: "Biszkoptowe z kremem i owocami w galaretce", Image: "011", Price: "120", Description: "biszkopt, krem budyniowy, owoce"}, {Name: "Biszkoptowe z kremem i owocami w galaretce", Image: "001", Price: "120", Description: "biszkopt, krem budyniowy, owoce"},
{Name: "Kora orzechowa", Image: "012", Price: "150", Description: "dwa blaty bezy orzechowej a pomiędzy krem budyniowy na bazie soku z brzoskwiń, delicje,pomarańczowe, owoce brzoskwiń i galaretka"}, {Name: "Kora orzechowa", Image: "001", Price: "150", Description: "dwa blaty bezy orzechowej a pomiędzy krem budyniowy na bazie soku z brzoskwiń, delicje,pomarańczowe, owoce brzoskwiń i galaretka"},
{Name: "Nutelowiec z wiśniami", Image: "013", Price: "120", Description: "nutelowy spód , krem śmietankowy z dodatkiem twarożku, wiśnie i galaretka"}, {Name: "Nutelowiec z wiśniami", Image: "001", Price: "120", Description: "nutelowy spód , krem śmietankowy z dodatkiem twarożku, wiśnie i galaretka"},
{Name: "Karpatka", Image: "014", Price: "120", Description: ""}, {Name: "Karpatka", Image: "001", Price: "120", Description: ""},
} }
var Desserts = []types.Product{ var Desserts = []types.Product{

View file

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 273 KiB

After

Width:  |  Height:  |  Size: 273 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 206 KiB

After

Width:  |  Height:  |  Size: 206 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 180 KiB

After

Width:  |  Height:  |  Size: 180 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 151 KiB

After

Width:  |  Height:  |  Size: 151 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 182 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 115 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 295 KiB

After

Width:  |  Height:  |  Size: 295 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 484 KiB

After

Width:  |  Height:  |  Size: 484 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 514 KiB

After

Width:  |  Height:  |  Size: 514 KiB

Before After
Before After

Some files were not shown because too many files have changed in this diff Show more