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
Binary file not shown.

After

Width:  |  Height:  |  Size: 213 KiB

+28
View File
@@ -2,6 +2,8 @@ body {
background: #EEF2FF; background: #EEF2FF;
} }
/* INDEX */
#clavis { #clavis {
display: block; display: block;
width: 300px; width: 300px;
@@ -9,6 +11,9 @@ body {
margin-bottom: 50px; margin-bottom: 50px;
} }
/* BOARD LIST */
#boardList { #boardList {
font-size: 12px; font-size: 12px;
} }
@@ -22,6 +27,29 @@ body {
color: #ff0000; color: #ff0000;
} }
/* BOARDS */
.board-header {
text-align: center;
color: #AF0A0F;
}
.board-header h1 {
padding: 0;
margin: 0;
}
.board-header p {
font-size: 12px;
margin: 5px;
}
.board-header img {
width: 300px;
}
/* GENERAL LAYOUT */
.container { .container {
width: 600px; width: 600px;
margin: auto; margin: auto;
+9 -5
View File
@@ -3,9 +3,13 @@ package boards
import "github.com/dominicf2001/comfychan/web/views/shared" import "github.com/dominicf2001/comfychan/web/views/shared"
templ Comfy() { templ Comfy() {
@shared.Layout() { @shared.Layout() {
<section style="margin-top: 100px;"> <header class="board-header">
<div>Comfy</div> <img src="/static/img/banner-comfy.png"/>
</section> <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) 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 { if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err return templ_7745c5c3_Err
} }