flatter html
This commit is contained in:
parent
cf2e217030
commit
a74c276cd3
11 changed files with 84 additions and 107 deletions
|
|
@ -1,6 +1,6 @@
|
|||
package templates
|
||||
|
||||
templ Layout(title string, header, main templ.Component) {
|
||||
templ Layout(title string, main templ.Component) {
|
||||
<!DOCTYPE html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
|
|
@ -17,11 +17,10 @@ templ Layout(title string, header, main templ.Component) {
|
|||
<aside>
|
||||
@Nav()
|
||||
</aside>
|
||||
<header class="topnav">
|
||||
<h1>{ title }</h1>
|
||||
</header>
|
||||
<main id="main">
|
||||
<header class="topnav">
|
||||
<h1>{ title }</h1>
|
||||
@header
|
||||
</header>
|
||||
<div class="main-content">
|
||||
@main
|
||||
</div>
|
||||
|
|
@ -30,13 +29,12 @@ templ Layout(title string, header, main templ.Component) {
|
|||
</html>
|
||||
}
|
||||
|
||||
templ MainContent(title string, header, main templ.Component) {
|
||||
templ MainContent(title string, main templ.Component) {
|
||||
<header class="topnav" hx-swap-oob="true">
|
||||
<h1>{ title }</h1>
|
||||
</header>
|
||||
<main id="main">
|
||||
<title hx-swap-oob="true">{ title } — Zamówienia ciast</title>
|
||||
<header class="topnav">
|
||||
<h1>{ title }</h1>
|
||||
@header
|
||||
</header>
|
||||
<div class="main-content">
|
||||
@main
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue