minor changes and starting to add examples of how to use it

This commit is contained in:
James Tombleson 2024-07-13 10:38:02 -07:00
parent 90f847b757
commit 9eb97d892f
4 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,8 @@
package bulma
// Simple spacer that accepts children
templ Block() {
<div class="block">
{ children... }
</div>
}

View File

@ -0,0 +1,19 @@
package example
import "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma"
import "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma/html"
import "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma/layout"
templ example() {
@html.Doctype()
@html.New("en"){
@html.NewHeader(){
@bulma.UseBulmaCdn()
}
@html.NewBody() {
@layout.Container(bulma.BreakpointDefault) {
{ children... }
}
}
}
}

View File

@ -0,0 +1 @@
package example

View File

@ -11,4 +11,10 @@ const (
SizeNormal = "is-normal" SizeNormal = "is-normal"
SizeMedium = "is-medium" SizeMedium = "is-medium"
SizeLarge = "is-large" SizeLarge = "is-large"
BreakpointDefault = ""
BreakpointWidescreen = "is-widescreen"
BreakpointFullHd = "is-fullhd"
BreakpointMaxDesktop = "is-max-desktop"
BreakpointMaxWidescreen = "is-max-widescreen"
) )