diff --git a/internal/views/bulma/button.templ b/internal/views/bulma/button.templ new file mode 100644 index 0000000..865a605 --- /dev/null +++ b/internal/views/bulma/button.templ @@ -0,0 +1,34 @@ +package bulma + +templ Button(color string, isLight, isDark bool) { + if isLight { + + } + if isDark { + + } + if !isLight && !isDark { + + } +} + +templ ButtonNewTab(url, text string) { + +} + + +templ ALink(url, title string) { + { title } +} + +templ ANewTab(url, text string) { + { text } +} diff --git a/internal/views/bulma/form/control.templ b/internal/views/bulma/form/control.templ new file mode 100644 index 0000000..d5183b2 --- /dev/null +++ b/internal/views/bulma/form/control.templ @@ -0,0 +1,8 @@ +package form + +// Div container to add a input field to. +templ Control() { +
+ { children... } +
+} \ No newline at end of file diff --git a/internal/views/bulma/form/field.templ b/internal/views/bulma/form/field.templ new file mode 100644 index 0000000..ad7b0c3 --- /dev/null +++ b/internal/views/bulma/form/field.templ @@ -0,0 +1,8 @@ +package form + +// This creates a field that you can add a Label, Control or Input object. +templ Field() { +
+ { children... } +
+} \ No newline at end of file diff --git a/internal/views/bulma/form/input.templ b/internal/views/bulma/form/input.templ new file mode 100644 index 0000000..5255d18 --- /dev/null +++ b/internal/views/bulma/form/input.templ @@ -0,0 +1,9 @@ +package form + +templ Input(color, id, fieldType string) { + if color == "" { + + } else { + + } +} diff --git a/internal/views/bulma/form/label.templ b/internal/views/bulma/form/label.templ new file mode 100644 index 0000000..66deea3 --- /dev/null +++ b/internal/views/bulma/form/label.templ @@ -0,0 +1,6 @@ +package form + +// This will create a small bit of text to add context to the form. +templ Label(text string) { + +} \ No newline at end of file diff --git a/internal/views/bulma/form/new.templ b/internal/views/bulma/form/new.templ new file mode 100644 index 0000000..a0a4190 --- /dev/null +++ b/internal/views/bulma/form/new.templ @@ -0,0 +1,7 @@ +package form + +templ New(postUrl string) { +
+ { children... } +
+} \ No newline at end of file diff --git a/internal/views/bulma/form/submit.templ b/internal/views/bulma/form/submit.templ new file mode 100644 index 0000000..e12ada7 --- /dev/null +++ b/internal/views/bulma/form/submit.templ @@ -0,0 +1,5 @@ +package form + +templ Submit(text, color string) { + +} \ No newline at end of file diff --git a/internal/views/bulma/form/util.go b/internal/views/bulma/form/util.go new file mode 100644 index 0000000..34750a1 --- /dev/null +++ b/internal/views/bulma/form/util.go @@ -0,0 +1,6 @@ +package form + +const ( + InputTypeText = "text" + InputTypePassword = "password" +) diff --git a/internal/views/bulma/util.go b/internal/views/bulma/util.go new file mode 100644 index 0000000..f53dfd9 --- /dev/null +++ b/internal/views/bulma/util.go @@ -0,0 +1,10 @@ +package bulma + +const ( + ColorPrimary = "is-primary" + ColorInfo = "is-info" + ColorLink = "is-link" + ColorWarning = "is-warning" + ColorSuccess = "is-success" + ColorError = "is-error" +)