mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-05 02:41:41 +00:00
refactor: remove cdn package and move assets to global styles
This commit is contained in:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user