-
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
45842ab
commit 6319fe0
Showing
6 changed files
with
69 additions
and
1 deletion.
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 Volunteers(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( | ||
"Volunteers", | ||
"Dobrovoľníci", | ||
cssPath, | ||
pages.VolunteersPage(), | ||
)).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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
.volunteers { | ||
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,35 @@ | ||
|
||
package pages | ||
|
||
import ( | ||
"jirku.sk/mcmamina/template/layout" | ||
"jirku.sk/mcmamina/template/components" | ||
) | ||
|
||
templ VolunteersPage() { | ||
@layout.Layout(templ.CSSClasses{"volunteers w-full bg-cover bg-center text-indigo-800 font-light"}, func(link string) bool { return link == "/podpora"}) { | ||
@SupportedUsSubmenu(func(link string) bool { return link == "/podpora/dobrovolnici" }) | ||
@components.FullWidthCard(components.NewFullWidthCard().Margin("mt-4")) { | ||
@components.CardContent("") { | ||
<h1 class="text-2xl font-semibold pb-3">Hľadáme dobrovoľníkov, lektorov, animátorov!</h1> | ||
<p class="pb-3"> | ||
Toto sú oblasti, v ktorých by sme privítali Vašu pomoc: | ||
</p> | ||
<ul class="list-inside list-disc pl-5 pt-5"> | ||
<li>Cvičenie pre ženy v období materstva</li> | ||
<li>organizovanie prednášok, besied na rôzne témy spojené s rodičovstvom, výchovou, zdravím... (samotné vedenie alebo vyhľadávanie prednášajúcich)</li> | ||
<li>cvičenia pre mamičky (aerobic, zumba, pilates, joga...)</li> | ||
<li>hudobno=pohybové aktivity pre deti</li> | ||
<li>aktivity pre rodičov s deťmi zamerané na varenie, zdravý životný štýl</li> | ||
<li>aktivity pre rodičov s deťmi zamerané na objavovanie zákonov chémie, fyziky a rôznych pokusov</li> | ||
</ul> | ||
<p class="pb-3"> | ||
Máš skúsenosti z iných oblastí oblastí a chces ich využiť? | ||
</p> | ||
<p class="pb-3"> | ||
Taktiež, veľmi rady, privítame pomoc šikovných oteckov pri menších opravách a údržbe zariadenia v interiéri a vonkajších priestoroch. | ||
</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 "./Volunteers.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