Work on the index page

This commit is contained in:
Dominic Ferrando
2025-04-16 22:44:20 -04:00
parent 7ebebf084f
commit 333bbca221
4 changed files with 43 additions and 6 deletions
+13 -5
View File
@@ -3,9 +3,17 @@ package views
import "github.com/dominicf2001/comfychan/web/views/shared"
templ Index() {
@shared.Layout() {
<section style="margin-top: 100px;">
<div>Index</div>
</section>
}
@shared.Layout() {
<section class="container">
<img id="clavis" src="/static/img/clavis.png" />
<div class="box">
<h2>Welcome to Comfychan</h2>
<div>
<p>
<strong>Comfychan</strong> is place to share comfy images and videos.
</p>
</div>
</div>
</section>
}
}
+1 -1
View File
@@ -43,7 +43,7 @@ func Index() templ.Component {
}()
}
ctx = templ.InitializeContext(ctx)
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<section style=\"margin-top: 100px;\"><div>Index</div></section>")
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<section class=\"container\"><img id=\"clavis\" src=\"/static/img/clavis.png\"><div class=\"box\"><h2>Welcome to Comfychan</h2><div><p><strong>Comfychan</strong> is place to share comfy images and videos.</p></div></div></section>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}