42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
package layouts
|
|
|
|
import "git.staur.ca/stobbsm/clustvirt/view/components"
|
|
|
|
templ StaticPage(title string, subtitle string, navBarItems []components.NavItem) {
|
|
<!DOCTYPE html>
|
|
<html class={ "text-uigrey-100" , "bg-uigrey-900" }>
|
|
<head>
|
|
<title>Clustvirt</title>
|
|
<link href="/static/css/style.css" type="text/css" rel="stylesheet"/>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
@header(title, subtitle, navBarItems)
|
|
</header>
|
|
<div id="content" name="content" class={ "flex" , "flex-col" , "gap-2" }>
|
|
{ children... }
|
|
</div>
|
|
<footer>
|
|
@footer()
|
|
</footer>
|
|
</body>
|
|
</html>
|
|
}
|
|
|
|
templ hero(title string) {
|
|
<h1 class={ "text-2xl", "font-bold", "text-uiblue-200", "md:order-1" }>{ title }</h1>
|
|
}
|
|
|
|
templ header(title string, subtitle string, navBarItems []components.NavItem) {
|
|
<h2 class={ "text-lg" , "font-semibold" , "italic" , "h-6" }>{ subtitle }</h2>
|
|
@components.NavBar(hero(title), navBarItems)
|
|
}
|
|
|
|
templ footer() {
|
|
<div class="flex gap-4 md:gap-6 sm:gap-8 divide divide-solid">
|
|
<div id="footer_left" class="flex-auto basis-1/4 md:basis-1/3 p-2">Left</div>
|
|
<div id="footer_middle" class="flex-auto basis-1/2 md:basis-1/3 p-2">Middle</div>
|
|
<div id="footer_right" class="flex-auto basis-1/4 md:basis-1/3 p-2">Right</div>
|
|
</div>
|
|
}
|