refactor: remove cdn package and move assets to global styles

This commit is contained in:
Prad Nukala
2024-10-09 14:16:53 -04:00
parent 58a02be5cf
commit a824c23022
5 changed files with 24 additions and 32 deletions
+7 -10
View File
@@ -1,9 +1,6 @@
package styles
import (
cdn "github.com/onsonr/sonr/pkg/nebula/assets"
"strings"
)
import "strings"
type Icon interface {
Render() templ.Component
@@ -33,9 +30,9 @@ templ Layout(title string, remote bool) {
<!DOCTYPE html>
<html lang="en">
<head>
@cdn.Styles()
@cdn.Htmx()
@cdn.Alpine()
@Styles()
@Htmx()
@Alpine()
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
@@ -57,9 +54,9 @@ templ LayoutNoBody(title string, remote bool) {
<!DOCTYPE html>
<html lang="en">
<head>
@cdn.Styles()
@cdn.Htmx()
@cdn.Alpine()
@Styles()
@Htmx()
@Alpine()
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>