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.GET("/img/*", ui.AmWrap(ui.AmServeImage))
e.GET("/about", ui.AmWrap(AboutPage))
e.GET("/", ui.AmWrap(TopPage))
return e
+6
View File
@@ -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
}
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),
)
views.AddGlobal("AmsterdamVersion", config.AMSTERDAM_VERSION)
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>
+2 -5
View File
@@ -89,17 +89,14 @@
<div class="text-black text-sm">
<div class="font-bold mb-1">About This Site</div>
<div class="text-gray-500 mb-1">Documentation</div>
<a href="/TODO/aboutpage"
class="text-blue-700 hover:text-blue-900">About Amsterdam</a>
<a href="/about" class="text-blue-700 hover:text-blue-900">About Amsterdam</a>
</div>
</div>
</div>
<!-- MAIN CONTENT -->
<div class="flex-1 bg-white">
<div class="flex">
{{ .SubRender(amsterdam_innerPage) | raw }}
</div>
{{ .SubRender(amsterdam_innerPage) | raw }}
</div>
</div>
+45 -43
View File
@@ -6,51 +6,53 @@
* 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/.
*}
<!-- Content Area -->
<div class="flex-1 p-4">
{{ if .CurrentUser().IsAnon }}
<!-- Welcome Section -->
<div class="mb-8">
<h1 class="text-blue-800 text-4xl font-bold mb-2">Welcome to Amsterdam</h1>
<hr class="border-2 border-gray-400 w-4/5 mb-4">
<p class="text-black text-sm mb-4">
Welcome to the <strong>Amsterdam Web Communities System</strong>. To get the most out of this site, you should log in or create an account, using one of the links above.
</p>
</div>
{{ end }}
<!-- Venice Currents Section -->
<div>
<h2 class="text-blue-800 text-4xl font-bold mb-2">Venice Currents</h2>
<hr class="border-2 border-gray-400 w-4/5 mb-4">
<div class="text-black text-sm">
<div class="mb-2">
<strong>Amy, formerly Eric</strong>
(<em>
<a href="http://necrovenice:8080/venice/user/Administrator"
target="_blank"
class="text-blue-700 hover:text-blue-900">Administrator</a>,
Sep 8, 2025 5:17:02 PM
</em>)
<div class="flex">
<!-- Content Area -->
<div class="flex-1 p-4">
{{ if .CurrentUser().IsAnon }}
<!-- Welcome Section -->
<div class="mb-8">
<h1 class="text-blue-800 text-4xl font-bold mb-2">Welcome to Amsterdam</h1>
<hr class="border-2 border-gray-400 w-4/5 mb-4">
<p class="text-black text-sm mb-4">
Welcome to the <strong>Amsterdam Web Communities System</strong>. To get the most out of this site, you should log in or create an account, using one of the links above.
</p>
</div>
<pre class="mb-4 whitespace-pre-wrap">This is a test.
This is only a test.
If this had been an <em>actual</em> emergency, we would all be
dead by now.</pre>
<div class="text-xs italic">
(From the topic: <a href="http://necrovenice:8080/venice/go/Piazza!General.1"
class="text-blue-700 hover:text-blue-900">It Works Again!</a>)
{{ end }}
<!-- Venice Currents Section -->
<div>
<h2 class="text-blue-800 text-4xl font-bold mb-2">Venice Currents</h2>
<hr class="border-2 border-gray-400 w-4/5 mb-4">
<div class="text-black text-sm">
<div class="mb-2">
<strong>Amy, formerly Eric</strong>
(<em>
<a href="http://necrovenice:8080/venice/user/Administrator"
target="_blank"
class="text-blue-700 hover:text-blue-900">Administrator</a>,
Sep 8, 2025 5:17:02 PM
</em>)
</div>
<pre class="mb-4 whitespace-pre-wrap">This is a test.
This is only a test.
If this had been an <em>actual</em> emergency, we would all be
dead by now.</pre>
<div class="text-xs italic">
(From the topic: <a href="http://necrovenice:8080/venice/go/Piazza!General.1"
class="text-blue-700 hover:text-blue-900">It Works Again!</a>)
</div>
</div>
</div>
</div>
</div>
<!-- RIGHT SIDEBAR -->
<div class="w-52 p-4">
{{ ctxt := . }}
{{ range sideboxes }}
{{ ctxt.SetScratch("__sidebox", .) }}
{{ ctxt.SubRender(.TemplateName) | raw }}
{{ end }}
</div>
<!-- RIGHT SIDEBAR -->
<div class="w-52 p-4">
{{ ctxt := . }}
{{ range sideboxes }}
{{ ctxt.SetScratch("__sidebox", .) }}
{{ ctxt.SubRender(.TemplateName) | raw }}
{{ end }}
</div>
</div>