Jobs & Workflows
https://armen.surge.sh
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
45 lines
1.1 KiB
/* |
|
------------------------------------------------------------------------------------------------------------------------ |
|
####### gui ####### Copyright (c) 2021 mls-361 ##################################################### MIT License ####### |
|
------------------------------------------------------------------------------------------------------------------------ |
|
*/ |
|
|
|
package gui |
|
|
|
import ( |
|
g "github.com/maragudk/gomponents" |
|
. "github.com/maragudk/gomponents/html" |
|
) |
|
|
|
func container(nodes ...g.Node) g.Node { |
|
return Div( |
|
Class("container"), |
|
g.Group(nodes), |
|
) |
|
} |
|
|
|
func page(title, class string, content g.Node) g.Node { |
|
return Doctype( |
|
HTML( |
|
Lang("en"), |
|
Head( |
|
Meta(Charset("utf-8")), |
|
Meta(Name("viewport"), Content("width=device-width, initial-scale=1")), |
|
TitleEl(g.Text(title)), |
|
Link(Rel("stylesheet"), Href("/static/css/app.css"), Type("text/css")), |
|
), |
|
Body( |
|
container( |
|
Main( |
|
Class(class), |
|
content, |
|
), |
|
), |
|
), |
|
), |
|
) |
|
} |
|
|
|
/* |
|
######################################################################################################## @(°_°)@ ####### |
|
*/
|
|
|