From d9d0b39d594352c6d7f5abd5dfd3c454305f0422 Mon Sep 17 00:00:00 2001 From: 0ceanSlim Date: Thu, 13 Jun 2024 16:13:14 -0400 Subject: [PATCH] better styling and htmx examples --- web/views/example.html | 27 +++++++++----- web/views/index.html | 65 +++++++++++++++++++++------------ web/views/templates/header.html | 2 +- 3 files changed, 60 insertions(+), 34 deletions(-) diff --git a/web/views/example.html b/web/views/example.html index 1693dc2..c5df87b 100644 --- a/web/views/example.html +++ b/web/views/example.html @@ -1,11 +1,18 @@ {{define "view"}} -
-
-

Serve Static Files Like this Gopher

- - - alternate text -
- {{end}} +
+
You are now viewing the {{.Title}}
+

Serve Static Files Like this Gopher

+
+ alternate text +
+
You can get back to the index view with this button
+ +
+{{end}} diff --git a/web/views/index.html b/web/views/index.html index 5ed1e73..8d290fb 100644 --- a/web/views/index.html +++ b/web/views/index.html @@ -1,27 +1,46 @@ {{define "view"}} -
-
- - -

API Example

- Access Example API -

Content Section

-

- This is the main content of your web app. You can add any HTML content - here. +

+
You are now viewing the {{.Title}}
+ +
+ Clicking the blue button will replace the entire page with an additional + example view +
+ +

+ Clicking the orange button will replace the content in the box below with + the example API +

+ +
+ +

+ Dynamic content will be displayed here.

- Another Example Route can be found here -
+ +
{{end}} diff --git a/web/views/templates/header.html b/web/views/templates/header.html index 7317f16..2432622 100644 --- a/web/views/templates/header.html +++ b/web/views/templates/header.html @@ -1,7 +1,7 @@ {{define "header"}}

- Welcome to My GO Web App Framework {{.Title}} + Welcome to My GO Web App Framework

{{end}}