diff --git a/pkg/nebula/components/register/modal_templ.go b/pkg/nebula/components/register/modal_templ.go
index 04386e445..9cd7c8aed 100644
--- a/pkg/nebula/components/register/modal_templ.go
+++ b/pkg/nebula/components/register/modal_templ.go
@@ -10,7 +10,8 @@ import templruntime "github.com/a-h/templ/runtime"
import (
"github.com/labstack/echo/v4"
- "github.com/onsonr/sonr/pkg/nebula/components/blocks"
+ "github.com/onsonr/sonr/pkg/nebula/global/styles"
+ "github.com/onsonr/sonr/pkg/nebula/global/ui"
)
func Modal(c echo.Context) templ.Component {
@@ -38,7 +39,7 @@ func Modal(c echo.Context) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- templ_7745c5c3_Err = blocks.Breadcrumbs().Render(ctx, templ_7745c5c3_Buffer)
+ templ_7745c5c3_Err = ui.Breadcrumbs().Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -46,7 +47,7 @@ func Modal(c echo.Context) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- templ_7745c5c3_Err = blocks.Spacer().Render(ctx, templ_7745c5c3_Buffer)
+ templ_7745c5c3_Err = styles.Spacer().Render(ctx, templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
diff --git a/pkg/nebula/components/blocks/fonts.templ b/pkg/nebula/global/styles/fonts.templ
similarity index 98%
rename from pkg/nebula/components/blocks/fonts.templ
rename to pkg/nebula/global/styles/fonts.templ
index bbd2d6e36..f75c3e699 100644
--- a/pkg/nebula/components/blocks/fonts.templ
+++ b/pkg/nebula/global/styles/fonts.templ
@@ -1,4 +1,4 @@
-package blocks
+package styles
func H1(content string) templ.Component {
return renderText(1, content)
diff --git a/pkg/nebula/components/blocks/fonts_templ.go b/pkg/nebula/global/styles/fonts_templ.go
similarity index 96%
rename from pkg/nebula/components/blocks/fonts_templ.go
rename to pkg/nebula/global/styles/fonts_templ.go
index 564baf691..3f6bb6eee 100644
--- a/pkg/nebula/components/blocks/fonts_templ.go
+++ b/pkg/nebula/global/styles/fonts_templ.go
@@ -1,7 +1,7 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.2.778
-package blocks
+package styles
//lint:file-ignore SA4006 This context is only used if a nested component is present.
@@ -54,7 +54,7 @@ func renderText(level int, text string) templ.Component {
var templ_7745c5c3_Var2 string
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(text)
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/fonts.templ`, Line: 23, Col: 10}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/fonts.templ`, Line: 23, Col: 10}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
if templ_7745c5c3_Err != nil {
@@ -72,7 +72,7 @@ func renderText(level int, text string) templ.Component {
var templ_7745c5c3_Var3 string
templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(text)
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/fonts.templ`, Line: 27, Col: 10}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/fonts.templ`, Line: 27, Col: 10}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3))
if templ_7745c5c3_Err != nil {
@@ -90,7 +90,7 @@ func renderText(level int, text string) templ.Component {
var templ_7745c5c3_Var4 string
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(text)
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/fonts.templ`, Line: 31, Col: 10}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/fonts.templ`, Line: 31, Col: 10}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
if templ_7745c5c3_Err != nil {
@@ -108,7 +108,7 @@ func renderText(level int, text string) templ.Component {
var templ_7745c5c3_Var5 string
templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(text)
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/fonts.templ`, Line: 35, Col: 10}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/fonts.templ`, Line: 35, Col: 10}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5))
if templ_7745c5c3_Err != nil {
@@ -159,7 +159,7 @@ func renderLink(attrs templ.Attributes, text string) templ.Component {
var templ_7745c5c3_Var7 string
templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(text)
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/fonts.templ`, Line: 42, Col: 8}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/fonts.templ`, Line: 42, Col: 8}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7))
if templ_7745c5c3_Err != nil {
@@ -209,7 +209,7 @@ func renderStrong(attrs templ.Attributes, text string) templ.Component {
var templ_7745c5c3_Var9 string
templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(text)
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/fonts.templ`, Line: 48, Col: 8}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/fonts.templ`, Line: 48, Col: 8}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9))
if templ_7745c5c3_Err != nil {
@@ -259,7 +259,7 @@ func renderEmphasis(attrs templ.Attributes, text string) templ.Component {
var templ_7745c5c3_Var11 string
templ_7745c5c3_Var11, templ_7745c5c3_Err = templ.JoinStringErrs(text)
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/fonts.templ`, Line: 54, Col: 8}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/fonts.templ`, Line: 54, Col: 8}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var11))
if templ_7745c5c3_Err != nil {
@@ -309,7 +309,7 @@ func renderCode(attrs templ.Attributes, text string) templ.Component {
var templ_7745c5c3_Var13 string
templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(text)
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/fonts.templ`, Line: 60, Col: 8}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/fonts.templ`, Line: 60, Col: 8}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13))
if templ_7745c5c3_Err != nil {
diff --git a/pkg/nebula/components/blocks/head.templ b/pkg/nebula/global/styles/head.templ
similarity index 99%
rename from pkg/nebula/components/blocks/head.templ
rename to pkg/nebula/global/styles/head.templ
index 48e27108b..40083fadc 100644
--- a/pkg/nebula/components/blocks/head.templ
+++ b/pkg/nebula/global/styles/head.templ
@@ -1,4 +1,4 @@
-package blocks
+package styles
import "strings"
diff --git a/pkg/nebula/components/blocks/head_templ.go b/pkg/nebula/global/styles/head_templ.go
similarity index 99%
rename from pkg/nebula/components/blocks/head_templ.go
rename to pkg/nebula/global/styles/head_templ.go
index 51f9e2f27..935f8ca1b 100644
--- a/pkg/nebula/components/blocks/head_templ.go
+++ b/pkg/nebula/global/styles/head_templ.go
@@ -1,7 +1,7 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.2.778
-package blocks
+package styles
//lint:file-ignore SA4006 This context is only used if a nested component is present.
diff --git a/pkg/nebula/components/blocks/layout.templ b/pkg/nebula/global/styles/layout.templ
similarity index 99%
rename from pkg/nebula/components/blocks/layout.templ
rename to pkg/nebula/global/styles/layout.templ
index 40c283d67..016443807 100644
--- a/pkg/nebula/components/blocks/layout.templ
+++ b/pkg/nebula/global/styles/layout.templ
@@ -1,4 +1,4 @@
-package blocks
+package styles
templ Layout(title string, remote bool) {
diff --git a/pkg/nebula/components/blocks/layout_templ.go b/pkg/nebula/global/styles/layout_templ.go
similarity index 98%
rename from pkg/nebula/components/blocks/layout_templ.go
rename to pkg/nebula/global/styles/layout_templ.go
index 171a596e1..2e67402b4 100644
--- a/pkg/nebula/components/blocks/layout_templ.go
+++ b/pkg/nebula/global/styles/layout_templ.go
@@ -1,7 +1,7 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.2.778
-package blocks
+package styles
//lint:file-ignore SA4006 This context is only used if a nested component is present.
@@ -52,7 +52,7 @@ func Layout(title string, remote bool) templ.Component {
var templ_7745c5c3_Var2 string
templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(title)
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/layout.templ`, Line: 13, Col: 17}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/layout.templ`, Line: 13, Col: 17}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2))
if templ_7745c5c3_Err != nil {
@@ -118,7 +118,7 @@ func LayoutNoBody(title string, remote bool) templ.Component {
var templ_7745c5c3_Var4 string
templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(title)
if templ_7745c5c3_Err != nil {
- return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/layout.templ`, Line: 37, Col: 17}
+ return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/layout.templ`, Line: 37, Col: 17}
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4))
if templ_7745c5c3_Err != nil {
diff --git a/pkg/nebula/components/blocks/sizes.templ b/pkg/nebula/global/styles/sizes.templ
similarity index 98%
rename from pkg/nebula/components/blocks/sizes.templ
rename to pkg/nebula/global/styles/sizes.templ
index a36727643..1059a817c 100644
--- a/pkg/nebula/components/blocks/sizes.templ
+++ b/pkg/nebula/global/styles/sizes.templ
@@ -1,4 +1,4 @@
-package blocks
+package styles
type Size int
diff --git a/pkg/nebula/components/blocks/sizes_templ.go b/pkg/nebula/global/styles/sizes_templ.go
similarity index 98%
rename from pkg/nebula/components/blocks/sizes_templ.go
rename to pkg/nebula/global/styles/sizes_templ.go
index 3a6e40584..4e9555a0c 100644
--- a/pkg/nebula/components/blocks/sizes_templ.go
+++ b/pkg/nebula/global/styles/sizes_templ.go
@@ -1,7 +1,7 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.2.778
-package blocks
+package styles
//lint:file-ignore SA4006 This context is only used if a nested component is present.
diff --git a/pkg/nebula/components/blocks/badge.templ b/pkg/nebula/global/ui/badge.templ
similarity index 99%
rename from pkg/nebula/components/blocks/badge.templ
rename to pkg/nebula/global/ui/badge.templ
index a8ac1584e..266d6fbf7 100644
--- a/pkg/nebula/components/blocks/badge.templ
+++ b/pkg/nebula/global/ui/badge.templ
@@ -1,4 +1,4 @@
-package blocks
+package ui
templ PoweredBySonr() {
diff --git a/pkg/nebula/components/blocks/badge_templ.go b/pkg/nebula/global/ui/badge_templ.go
similarity index 99%
rename from pkg/nebula/components/blocks/badge_templ.go
rename to pkg/nebula/global/ui/badge_templ.go
index 202f7ab97..606c77c21 100644
--- a/pkg/nebula/components/blocks/badge_templ.go
+++ b/pkg/nebula/global/ui/badge_templ.go
@@ -1,7 +1,7 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.2.778
-package blocks
+package ui
//lint:file-ignore SA4006 This context is only used if a nested component is present.
diff --git a/pkg/nebula/components/blocks/button.templ b/pkg/nebula/global/ui/button.templ
similarity index 94%
rename from pkg/nebula/components/blocks/button.templ
rename to pkg/nebula/global/ui/button.templ
index 6f05f6b4e..81e240a43 100644
--- a/pkg/nebula/components/blocks/button.templ
+++ b/pkg/nebula/global/ui/button.templ
@@ -1,7 +1,22 @@
-package blocks
+package ui
+
+import "github.com/onsonr/sonr/pkg/nebula/global/styles"
+
+templ PrimaryButton(href string, text string) {
+
+
{ text }
+
+}
+
+templ SecondaryButton(href string, text string) {
+
+
{ text }
+
+}
+
type button struct {
- variant Variant
+ variant styles.Variant
hxGet string
hxPost string
hxTarget string
diff --git a/pkg/nebula/components/blocks/button_templ.go b/pkg/nebula/global/ui/button_templ.go
similarity index 74%
rename from pkg/nebula/components/blocks/button_templ.go
rename to pkg/nebula/global/ui/button_templ.go
index b7a09278a..315dc1fce 100644
--- a/pkg/nebula/components/blocks/button_templ.go
+++ b/pkg/nebula/global/ui/button_templ.go
@@ -1,15 +1,127 @@
// Code generated by templ - DO NOT EDIT.
// templ: version: v0.2.778
-package blocks
+package ui
//lint:file-ignore SA4006 This context is only used if a nested component is present.
import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
+import "github.com/onsonr/sonr/pkg/nebula/global/styles"
+
+func PrimaryButton(href string, text string) templ.Component {
+ return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
+ templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+ if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+ return templ_7745c5c3_CtxErr
+ }
+ templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
+ if !templ_7745c5c3_IsBuffer {
+ defer func() {
+ templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer)
+ if templ_7745c5c3_Err == nil {
+ templ_7745c5c3_Err = templ_7745c5c3_BufErr
+ }
+ }()
+ }
+ ctx = templ.InitializeContext(ctx)
+ templ_7745c5c3_Var1 := templ.GetChildren(ctx)
+ if templ_7745c5c3_Var1 == nil {
+ templ_7745c5c3_Var1 = templ.NopComponent
+ }
+ ctx = templ.ClearChildren(ctx)
+ _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("