About page landed

This commit is contained in:
2025-09-20 23:18:18 -06:00
parent ab06dc92ac
commit 6a9f4807c0
8 changed files with 106 additions and 48 deletions
+1
View File
@@ -36,6 +36,7 @@ func setupEcho() *echo.Echo {
e.Use(session.Middleware(ui.SessionStore)) e.Use(session.Middleware(ui.SessionStore))
e.GET("/img/*", ui.AmWrap(ui.AmServeImage)) e.GET("/img/*", ui.AmWrap(ui.AmServeImage))
e.GET("/about", ui.AmWrap(AboutPage))
e.GET("/", ui.AmWrap(TopPage)) e.GET("/", ui.AmWrap(TopPage))
return e return e
+6
View File
@@ -79,3 +79,9 @@ func TopPage(ctxt ui.AmContext) (string, any, error) {
ctxt.VarMap().Set("sideboxes", rc) ctxt.VarMap().Set("sideboxes", rc)
return "framed_template", "top.jet", nil 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
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

+1
View File
@@ -36,6 +36,7 @@ func SetupTemplates() {
), ),
jet.DevelopmentMode(true), jet.DevelopmentMode(true),
) )
views.AddGlobal("AmsterdamVersion", config.AMSTERDAM_VERSION)
views.AddGlobal("GlobalConfig", config.GlobalConfig) views.AddGlobal("GlobalConfig", config.GlobalConfig)
} }
+51
View File
@@ -0,0 +1,51 @@
<!-- Venice Logo -->
<div class="text-center mb-6">
<img src="/img/builtin/AmsterdamLogo.png"
alt="Amsterdam Web Communities System"
class="w-96 h-88 mx-auto">
</div>
<!-- Version and Copyright -->
<div class="mb-6">
<h3 class="text-lg font-bold mb-2">Amsterdam Web Communities System Release {{ AmsterdamVersion }}</h3>
<p class="text-sm text-black mb-4">
Copyright © 2025 <a href="https://erbosoft.com/">Erbosoft Metaverse Design Solutions</a>, All Rights Reserved.
</p>
<p class="text-sm text-black">
This software is subject to the
<a href="https://www.mozilla.org/en-US/MPL/2.0/"
target="_blank"
class="text-blue-700 hover:text-blue-900">Mozilla Public License Version 2.0</a>.
It is distributed on an "AS IS" basis, <strong>without warranty of any kind</strong>, either express or implied.
See the License for the specific language governing rights and limitations under the License.
</p>
</div>
<!-- Project Team -->
<div class="mb-6">
<h3 class="text-lg font-bold mb-4">The Amsterdam Project Team</h3>
<dl class="text-sm text-black space-y-3">
<div>
<dt class="font-bold">Amy Gale Ruth Bowersox</dt>
<dd class="ml-4">Code wrangler, system guru, and administrator in general</dd>
</div>
</dl>
</div>
<!-- Thanks Section -->
<div class="text-center mb-6">
<p class="text-sm text-black italic">
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.
</p>
</div>
<!-- Erbosoft Logo -->
<div class="text-center">
<a href="https://erbosoft.com/">
<img src="/img/builtin/Erbosoft-logo.png"
alt="Erbosoft Metaverse Design Solutions"
class="w-72 h-25 mx-auto">
</a>
</div>
</div>
+1 -4
View File
@@ -89,19 +89,16 @@
<div class="text-black text-sm"> <div class="text-black text-sm">
<div class="font-bold mb-1">About This Site</div> <div class="font-bold mb-1">About This Site</div>
<div class="text-gray-500 mb-1">Documentation</div> <div class="text-gray-500 mb-1">Documentation</div>
<a href="/TODO/aboutpage" <a href="/about" class="text-blue-700 hover:text-blue-900">About Amsterdam</a>
class="text-blue-700 hover:text-blue-900">About Amsterdam</a>
</div> </div>
</div> </div>
</div> </div>
<!-- MAIN CONTENT --> <!-- MAIN CONTENT -->
<div class="flex-1 bg-white"> <div class="flex-1 bg-white">
<div class="flex">
{{ .SubRender(amsterdam_innerPage) | raw }} {{ .SubRender(amsterdam_innerPage) | raw }}
</div> </div>
</div> </div>
</div>
<!-- FOOTER --> <!-- FOOTER -->
<div class="flex"> <div class="flex">
+2
View File
@@ -6,6 +6,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. * file, You can obtain one at https://mozilla.org/MPL/2.0/.
*} *}
<div class="flex">
<!-- Content Area --> <!-- Content Area -->
<div class="flex-1 p-4"> <div class="flex-1 p-4">
{{ if .CurrentUser().IsAnon }} {{ if .CurrentUser().IsAnon }}
@@ -54,3 +55,4 @@ dead by now.</pre>
{{ ctxt.SubRender(.TemplateName) | raw }} {{ ctxt.SubRender(.TemplateName) | raw }}
{{ end }} {{ end }}
</div> </div>
</div>