Setup comfy board header

This commit is contained in:
Dominic Ferrando
2025-04-16 23:13:57 -04:00
parent 333bbca221
commit a7b2c052de
4 changed files with 38 additions and 6 deletions
+9 -5
View File
@@ -3,9 +3,13 @@ package boards
import "github.com/dominicf2001/comfychan/web/views/shared"
templ Comfy() {
@shared.Layout() {
<section style="margin-top: 100px;">
<div>Comfy</div>
</section>
}
@shared.Layout() {
<header class="board-header">
<img src="/static/img/banner-comfy.png"/>
<h1>
"/comfy/" - Comfy
</h1>
<p>Be comfy fren</p>
</header>
}
}
+1 -1
View File
@@ -43,7 +43,7 @@ func Comfy() templ.Component {
}()
}
ctx = templ.InitializeContext(ctx)
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<section style=\"margin-top: 100px;\"><div>Comfy</div></section>")
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<header class=\"board-header\"><img src=\"/static/img/banner-comfy.png\"><h1>\"/comfy/\" - Comfy</h1><p>Be comfy fren</p></header>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}