diff --git a/main.go b/main.go index 31c37b1..56d7ac8 100644 --- a/main.go +++ b/main.go @@ -36,6 +36,7 @@ func setupEcho() *echo.Echo { e.Use(session.Middleware(ui.SessionStore)) e.GET("/img/*", ui.AmWrap(ui.AmServeImage)) + e.GET("/about", ui.AmWrap(AboutPage)) e.GET("/", ui.AmWrap(TopPage)) return e diff --git a/top.go b/top.go index 7a5db84..3d692ca 100644 --- a/top.go +++ b/top.go @@ -79,3 +79,9 @@ func TopPage(ctxt ui.AmContext) (string, any, error) { ctxt.VarMap().Set("sideboxes", rc) return "framed_template", "top.jet", nil } + +func AboutPage(ctxt ui.AmContext) (string, any, error) { + // Set the page title. + ctxt.VarMap().Set("amsterdam_pageTitle", "About Amsterdam") + return "framed_template", "about.jet", nil +} diff --git a/ui/static_images/AmsterdamLogo.png b/ui/static_images/AmsterdamLogo.png new file mode 100644 index 0000000..64b1385 Binary files /dev/null and b/ui/static_images/AmsterdamLogo.png differ diff --git a/ui/static_images/Erbosoft-logo.png b/ui/static_images/Erbosoft-logo.png new file mode 100644 index 0000000..e90728e Binary files /dev/null and b/ui/static_images/Erbosoft-logo.png differ diff --git a/ui/templates.go b/ui/templates.go index 62d9314..57017ce 100644 --- a/ui/templates.go +++ b/ui/templates.go @@ -36,6 +36,7 @@ func SetupTemplates() { ), jet.DevelopmentMode(true), ) + views.AddGlobal("AmsterdamVersion", config.AMSTERDAM_VERSION) views.AddGlobal("GlobalConfig", config.GlobalConfig) } diff --git a/ui/views/about.jet b/ui/views/about.jet new file mode 100644 index 0000000..a85984c --- /dev/null +++ b/ui/views/about.jet @@ -0,0 +1,51 @@ + +
+ + Copyright © 2025 Erbosoft Metaverse Design Solutions, All Rights Reserved. +
++ This software is subject to the + Mozilla Public License Version 2.0. + It is distributed on an "AS IS" basis, without warranty of any kind, either express or implied. + See the License for the specific language governing rights and limitations under the License. +
++ Thanks to: Howard, who thought it up; Andre, who rescued it the first time; the Electric Minds community, who rescued it again; + and Nicole, without whom none of this would have been possible. +
+
+
+ - Welcome to the Amsterdam Web Communities System. To get the most out of this site, you should log in or create an account, using one of the links above. -
-+ Welcome to the Amsterdam Web Communities System. To get the most out of this site, you should log in or create an account, using one of the links above. +
This is a test. -This is only a test. -If this had been an actual emergency, we would all be -dead by now.-
This is a test. + This is only a test. + If this had been an actual emergency, we would all be + dead by now.+