Matthew Stobbs
4819cc8e9b
- Pages will go to view - pages will be seperated into each file by type (host, vm, etc.) - each page will have multiple sections in each file that can be either rendered together, or loaded via HTMX, depending on the call - started on htmx api endpoints
30 lines
892 B
Plaintext
30 lines
892 B
Plaintext
package layouts
|
|
|
|
import "git.staur.ca/stobbsm/clustvirt/view/components"
|
|
|
|
templ Manager(title string, subtitle string, navBarItem []components.NavItem) {
|
|
<!DOCTYPE html>
|
|
<html class={ "text-slate-50" , "bg-slate-900" }>
|
|
<head>
|
|
<title>ClustVirt</title>
|
|
<link href="/static/css/style.css" type="text/css" rel="stylesheet"/>
|
|
</head>
|
|
<body>
|
|
<div class={ "flex" , "flex-col" , "h-screen" }>
|
|
<header class={ "px-4" }>
|
|
@header(title, subtitle, navBarItem)
|
|
</header>
|
|
<main class={ "px-4" , "h-full" }>
|
|
{ children... }
|
|
</main>
|
|
<footer class={ "px-4" , "bottom-0", "w-full" , "justify-self-end" }>
|
|
@footer()
|
|
</footer>
|
|
</div>
|
|
<!-- Load HTMX -->
|
|
<script src=" https://unpkg.com/htmx.org@1.9.11" integrity="sha384-0gxUXCCR8yv9FM2b+U3FDbsKthCI66oH5IA9fHppQq9DDMHuMauqq1ZHBpJxQ0J0" crossorigin="anonymous">
|
|
</script>
|
|
</body>
|
|
</html>
|
|
}
|