initial
This commit is contained in:
30
components/core/html.templ
Normal file
30
components/core/html.templ
Normal file
@@ -0,0 +1,30 @@
|
||||
package core
|
||||
|
||||
import "vctp/version"
|
||||
|
||||
templ HTML(title string, content templ.Component) {
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
@head(title)
|
||||
@body(content)
|
||||
</html>
|
||||
}
|
||||
|
||||
templ head(title string) {
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<meta name="description" content="Hello world"/>
|
||||
<title>{ title }</title>
|
||||
<script src="/assets/js/htmx@v2.0.2.min.js"></script>
|
||||
<link href={ "/assets/css/output@" + version.Value + ".css" } rel="stylesheet"/>
|
||||
</head>
|
||||
}
|
||||
|
||||
templ body(content templ.Component) {
|
||||
<body class="flex flex-col min-h-screen">
|
||||
<main class="flex-grow">
|
||||
@content
|
||||
</main>
|
||||
</body>
|
||||
}
|
Reference in New Issue
Block a user