Work on the index page
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 3.4 MiB |
@@ -2,6 +2,13 @@ body {
|
|||||||
background: #EEF2FF;
|
background: #EEF2FF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#clavis {
|
||||||
|
display: block;
|
||||||
|
width: 300px;
|
||||||
|
margin: 10px auto;
|
||||||
|
margin-bottom: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
#boardList {
|
#boardList {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
@@ -14,3 +21,25 @@ body {
|
|||||||
#boardList a:hover {
|
#boardList a:hover {
|
||||||
color: #ff0000;
|
color: #ff0000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
width: 600px;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box {
|
||||||
|
font-size: 12px;
|
||||||
|
border: 1px solid black;
|
||||||
|
background-color: #eceff6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box h2 {
|
||||||
|
padding: 5px;
|
||||||
|
margin: 0;
|
||||||
|
background-color: #00007F;
|
||||||
|
color: #FFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box p {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|||||||
+10
-2
@@ -4,8 +4,16 @@ import "github.com/dominicf2001/comfychan/web/views/shared"
|
|||||||
|
|
||||||
templ Index() {
|
templ Index() {
|
||||||
@shared.Layout() {
|
@shared.Layout() {
|
||||||
<section style="margin-top: 100px;">
|
<section class="container">
|
||||||
<div>Index</div>
|
<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>
|
</section>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ func Index() 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>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 {
|
if templ_7745c5c3_Err != nil {
|
||||||
return templ_7745c5c3_Err
|
return templ_7745c5c3_Err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user