-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ada51a
commit 45842ab
Showing
9 changed files
with
85 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
package handlers | ||
|
||
import ( | ||
"log/slog" | ||
"net/http" | ||
|
||
"jirku.sk/mcmamina/template/components" | ||
"jirku.sk/mcmamina/template/pages" | ||
) | ||
|
||
func Marketplace(Log *slog.Logger, cssPathGetter CSSPathGetter) func(w http.ResponseWriter, r *http.Request) { | ||
return func(w http.ResponseWriter, r *http.Request) { | ||
Log.Info("request", slog.String("method", r.Method), slog.String("path", r.URL.Path)) | ||
w.Header().Set("Content-Type", "text/html; charset=utf-8") | ||
cssPath, _ := cssPathGetter.GetCssPath() | ||
// TODO: handle GET | ||
components.Page(components.NewPage( | ||
"Marketplace", | ||
"Burzy", | ||
cssPath, | ||
pages.MarketplacePage(), | ||
)).Render(r.Context(), w) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,9 @@ import ( | |
templ BabyDeliveryCoursePage() { | ||
@layout.Layout(templ.CSSClasses{"baby-delivery-course w-full bg-cover bg-center text-indigo-800 font-light"}, func(link string) bool { return link == "/aktivity"}) { | ||
@ActivitySubmenu(func(link string) bool { return link == "/aktivity/predporodny-kurz" }) | ||
@components.FullWidthCard(components.NewFullWidthCard().Class("text-base").Margin("mb-0")) { | ||
@components.FullWidthCard(components.NewFullWidthCard().Class("text-base").Margin("mb-0").Padding("py-10 px-5 md:py-10 xl:py-16")) { | ||
@components.CardContent("") { | ||
<h1 class="text-2xl font-bold pb-4">Predpôrodný kurz</h1> | ||
<h1 class="text-3xl font-bold pb-6 text-center">Predpôrodný kurz</h1> | ||
<p class="text-base text-justify pb-4"> | ||
Tento kurz pozostáva z teoretických prednášok a praktických rád. Trvá 6 týždňov. Prihlásiť sa môžete vyplnením online prihlášky alebo zaslaním emailu na adresu <a class="underline" href="mailto:[email protected]">[email protected]</a>. | ||
</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
.marketplace { | ||
background-image: url("@assets/images/crayons-1445053_640.jpg"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
package pages | ||
|
||
import ( | ||
"jirku.sk/mcmamina/template/layout" | ||
"jirku.sk/mcmamina/template/components" | ||
) | ||
|
||
templ MarketplacePage() { | ||
@layout.Layout(templ.CSSClasses{"marketplace w-full bg-cover bg-center text-indigo-800 font-light"}, func(link string) bool { return link == "/aktivity"}) { | ||
@ActivitySubmenu(func(link string) bool { return link == "/aktivity/burzy" }) | ||
@components.FullWidthCard(components.NewFullWidthCard().Margin("mb-0").Padding("py-10 px-5 md:py-10 xl:py-16")) { | ||
@components.CardContent("") { | ||
<h1 class="text-3xl font-bold pb-6 text-center">Burzy</h1> | ||
<p class="text-base text-justify pb-8"> | ||
Sme centrum, ktoré sa snaží podporovať rodiny a komunitu, a preto s hrdosťou pravidelne organizujeme aj burzy. Tieto udalosti nie sú len skvelou príležitosťou na nákup kvalitného a cenovo dostupného detského oblečenia, hračiek a potrieb pre domácnosť, ale tiež poskytujú ideálnu platformu pre spájanie ľudí a vytváranie nových priateľstiev. | ||
</p> | ||
<h2 class="text-xl font-bold">Jarná a jesenná burza</h2> | ||
<hr class="h-px border-t-0 bg-gradient-to-r from-indigo-500 to-pink-500 my-2"/> | ||
<p class="text-base text-justify pb-4"> | ||
Naša burza je skvelá príležitosť predať veci, ktoré už nevyužijete a zároveň si môžete výhodne nakúpiť, čo práve potrebujete. Vždy je z čoho vyberať. | ||
</p> | ||
<p class="text-base text-justify pb-8"> | ||
Na predaj oblečenia je potrebná registrácia prostredníctvom mailovej adresy uvedenej na plagáte, ktorý zverejňujeme na našej FB stránke vždy vo februári a auguste. Preto nás sledujte, počet predávajúcich je limitovaný. | ||
</p> | ||
<h2 class="text-xl font-bold">Handmade zimná burza</h2> | ||
<hr class="h-px border-t-0 bg-gradient-to-r from-indigo-500 to-pink-500 my-2"/> | ||
<p class="text-base text-justify pb-8"> | ||
Počas Handmade zimnej burzy si môžete nakúpiť originálne výrobky, darčeky, potešiť seba, svojich blízkych a taktiež podporiť šikovných výrobcov. | ||
</p> | ||
<h2 class="text-xl font-bold">Cvičenia</h2> | ||
<hr class="h-px border-t-0 bg-gradient-to-r from-indigo-500 to-pink-500 my-2"/> | ||
<p class="text-base text-justify pb-4"> | ||
Cvičenie pre ženy: je skupinové cvičenie, s rôznymi pomôckami pod vedením fyzioterapeutky Mgr. Lenky Dlhošovej. Posilnenie, ohybnosť, individuálny prístup | ||
</p> | ||
<p class="text-base text-justify pb-8"> | ||
Tehotenské cvičenie: Je skupinové cvičenie pre tehotné ženy pod vedením fyzioterapeutky Bc. Petry Strhárskej, zamerané na pozitívne ovplyvnenie zmien prebiehajúcich v tehotenstve. | ||
</p> | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
import "./Marketplace.css" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters