theme base system

This commit is contained in:
Zeni Kim 2024-09-27 02:27:24 -05:00
parent 1172e23c16
commit 465e88bf40
7 changed files with 74 additions and 51 deletions

View file

@ -0,0 +1,8 @@
{{define "head"}}
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1, viewport-fit=cover, width=device-width, maximum-scale=1.0, minimum-scale=1.0">
<title>{{.}} | Goffee</title>
<link href="/public/style.css" rel="stylesheet">
</head>
{{end}}

View file

@ -0,0 +1,5 @@
package components
type Title struct {
Label string
}

View file

@ -0,0 +1,5 @@
{{define "title"}}
<div class="title">
<h1>{{.Label}}</h1>
</div>
{{end}}