fixed base layout so the footer stays down

This commit is contained in:
Johannes Bülow 2025-07-24 20:54:39 +02:00
parent 03330e0c67
commit 4c7f72570e
Signed by: jmb
GPG key ID: B56971CF7B8F83A6
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ templ Base(title string) {
<title>{title}</title> <title>{title}</title>
<link rel="stylesheet" href="/assets/styles.css"/> <link rel="stylesheet" href="/assets/styles.css"/>
</head> </head>
<body> <body class="flex flex-col min-h-screen">
<header> <header>
@NavBar(title) @NavBar(title)
</header> </header>

View file

@ -46,7 +46,7 @@ func Base(title string) templ.Component {
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err return templ_7745c5c3_Err
} }
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "</title><link rel=\"stylesheet\" href=\"/assets/styles.css\"></head><body><header>") templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "</title><link rel=\"stylesheet\" href=\"/assets/styles.css\"></head><body class=\"flex flex-col min-h-screen\"><header>")
if templ_7745c5c3_Err != nil { if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err return templ_7745c5c3_Err
} }