buttons and templates
This commit is contained in:
parent
530627b695
commit
f5d2f379a9
7 changed files with 31 additions and 28 deletions
2
main.go
2
main.go
|
|
@ -29,6 +29,8 @@ func generateHTML() {
|
|||
saveFile(t, `portfolio`)
|
||||
saveFile(t, `wyroby`)
|
||||
saveFile(t, `wyroby_torty`)
|
||||
saveFile(t, `wyroby_slodkie_stoly`)
|
||||
saveFile(t, `wyroby_lody`)
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<h1>Słodkości tworzone z <span>pasją</span></h1>
|
||||
<p>Naturalne składniki, domowe receptury i pasja. Tworzymy torty i wypieki na Twoje najważniejsze chwile
|
||||
- od codziennych radości po wielkie uroczystości</p>
|
||||
<a href="wyroby.gohtml" class="btn">Zobacz naszą ofertę</a>
|
||||
<a href="wyroby.html" class="btn">Zobacz naszą ofertę</a>
|
||||
</div>
|
||||
<div>
|
||||
<img alt="tort" src="images/001.avif"/>
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
<div>
|
||||
<h3>Torty Okazjonalne</h3>
|
||||
<p>Weselne, urodzinowe i te bez okazji – od klasyki po nowoczesne musy.</p>
|
||||
<a>Przeglądaj Torty
|
||||
<a href="wyroby_torty.html">Przeglądaj Torty
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
||||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||||
stroke-linejoin="round" class="lucide lucide-arrow-right-icon lucide-arrow-right">
|
||||
|
|
@ -62,7 +62,7 @@
|
|||
<div class="greener">
|
||||
<h3>Domowe Ciasta</h3>
|
||||
<p>Zapach tradycji: od serników po puszyste bezy</p>
|
||||
<a>Wyberz ciasto
|
||||
<a href="wyroby.html">Wyberz ciasto
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
||||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||||
stroke-linejoin="round" class="lucide lucide-arrow-right-icon lucide-arrow-right">
|
||||
|
|
@ -79,7 +79,7 @@
|
|||
<div>
|
||||
<h3>Słodkie Stoły</h3>
|
||||
<p>Kompleksowa oprawa słodkości na większe przyjęcia.</p>
|
||||
<a>Sprawdź słodkie stoły
|
||||
<a href="wyroby_slodkie_stoly.html">Sprawdź słodkie stoły
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
||||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||||
stroke-linejoin="round" class="lucide lucide-arrow-right-icon lucide-arrow-right">
|
||||
|
|
|
|||
|
|
@ -1,17 +1,6 @@
|
|||
{{template "header" "wyroby"}}
|
||||
<main>
|
||||
<header class="subnav">
|
||||
<h1>Nasze słodkości</h1>
|
||||
<p>Poznaj nasze tradycyjne receptury przekute w nowoczesne formy. Każdy wypiek to historia pasji, a każde lody
|
||||
to
|
||||
powiew naturalnej świeżości</p>
|
||||
<nav>
|
||||
<a class="btn-green">Ciasta</a>
|
||||
<a class="btn-green" href="wyroby_torty.html">Torty</a>
|
||||
<a class="btn-green" href="wyroby_slodkie_stoly.html">Slodkie stoły</a>
|
||||
<a class="btn-green" href="wyroby_lody.html">Lody</a>
|
||||
</nav>
|
||||
</header>
|
||||
{{template "wyroby_header" "ciasta"}}
|
||||
<section>
|
||||
<div id="wyroby">
|
||||
|
||||
|
|
|
|||
13
templates/wyroby_header.gohtml
Normal file
13
templates/wyroby_header.gohtml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{{define "wyroby_header"}}
|
||||
<header class="subnav">
|
||||
<h1>Nasze słodkości</h1>
|
||||
<p>Poznaj nasze tradycyjne receptury przekute w nowoczesne formy. Każdy wypiek to historia pasji, a każde lody
|
||||
to powiew naturalnej świeżości</p>
|
||||
<nav>
|
||||
<a {{if (ne . "ciasta")}} href="wyroby.html" {{end}} class="btn-green">Ciasta</a>
|
||||
<a {{if (ne . "torty")}} href="wyroby_torty.html" {{end}} class="btn-green">Torty</a>
|
||||
<a {{if (ne . "slodkie_stoly")}}href="wyroby_slodkie_stoly.html" {{end}} class="btn-green">Slodkie stoły</a>
|
||||
<a {{if (ne . "lody")}} href="wyroby_lody.html" {{end}}class="btn-green">Lody</a>
|
||||
</nav>
|
||||
</header>
|
||||
{{end}}
|
||||
5
templates/wyroby_lody.gohtml
Normal file
5
templates/wyroby_lody.gohtml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{{template "header" "wyroby"}}
|
||||
<main>
|
||||
{{template "wyroby_header" "lody"}}
|
||||
</main>
|
||||
{{template "footer"}}
|
||||
5
templates/wyroby_slodkie_stoly.gohtml
Normal file
5
templates/wyroby_slodkie_stoly.gohtml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{{template "header" "wyroby"}}
|
||||
<main>
|
||||
{{template "wyroby_header" "slodkie_stoly"}}
|
||||
</main>
|
||||
{{template "footer"}}
|
||||
|
|
@ -1,17 +1,6 @@
|
|||
{{template "header" "wyroby"}}
|
||||
<main id="wyroby-torty">
|
||||
<header class="subnav">
|
||||
<h1>Nasze słodkości</h1>
|
||||
<p>Poznaj nasze tradycyjne receptury przekute w nowoczesne formy. Każdy wypiek to historia pasji, a każde lody
|
||||
to
|
||||
powiew naturalnej świeżości</p>
|
||||
<nav>
|
||||
<a class="btn-green" href="wyroby.html">Ciasta</a>
|
||||
<a class="btn-green">Torty</a>
|
||||
<a class="btn-green" href="wyroby_slodkie_stoly.html">Slodkie stoły</a>
|
||||
<a class="btn-green" href="wyroby_lody.html">Lody</a>
|
||||
</nav>
|
||||
</header>
|
||||
{{template "wyroby_header" "torty"}}
|
||||
<section id="rodzaje-tortow">
|
||||
<div class="card-low">
|
||||
<h3>Torty z masą cukrową</h3>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue