diff --git a/server/router/pages/components/footer.templ b/server/router/pages/components/footer.templ new file mode 100644 index 0000000..225cce4 --- /dev/null +++ b/server/router/pages/components/footer.templ @@ -0,0 +1,21 @@ +package components + +import c "git.ekzyis.com/ekzyis/delphi.market/server/router/context" + +templ Footer() { + +} diff --git a/server/router/pages/components/head.templ b/server/router/pages/components/head.templ new file mode 100644 index 0000000..0e25cf2 --- /dev/null +++ b/server/router/pages/components/head.templ @@ -0,0 +1,21 @@ +package components + +import c "git.ekzyis.com/ekzyis/delphi.market/server/router/context" + +templ Head() { + + delphi.market + + + + + + + + + + if ctx.Value(c.EnvContextKey) == "development" { + + } + +} diff --git a/server/router/pages/components/header.templ b/server/router/pages/components/header.templ new file mode 100644 index 0000000..3faaab3 --- /dev/null +++ b/server/router/pages/components/header.templ @@ -0,0 +1,16 @@ +package components + +import c "git.ekzyis.com/ekzyis/delphi.market/server/router/context" + +templ Header() { +
+ +
+} diff --git a/server/router/pages/index.templ b/server/router/pages/index.templ index c332506..b8fe61a 100644 --- a/server/router/pages/index.templ +++ b/server/router/pages/index.templ @@ -2,37 +2,14 @@ package pages import ( "fmt" - c "git.ekzyis.com/ekzyis/delphi.market/server/router/context" + "git.ekzyis.com/ekzyis/delphi.market/server/router/pages/components" ) templ Index() { - - delphi.market - - - - - - - - - - if ctx.Value(c.EnvContextKey) == "development" { - - } - + @components.Head() -
- -
+ @components.Header()
@@ -50,21 +27,7 @@ templ Index() {
A prediction market using the lightning network
- + @components.Footer() } diff --git a/tailwind.config.js b/tailwind.config.js index 601cd25..aef4a61 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,6 +1,6 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - content: ["./server/router/pages/*.templ"], + content: ["./server/router/pages/**/*.templ"], theme: { container: { center: true,