From 1e2964b488e102efa05b03b0d43e086ca7bb7930 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 10 Dec 2023 01:20:24 +0100 Subject: Embellish signup page. --- server.js | 1 + views/signup.pug | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/server.js b/server.js index d964048..b4620e6 100644 --- a/server.js +++ b/server.js @@ -166,6 +166,7 @@ function set_static_headers(res, path) { let app = express() app.locals.SITE_NAME = SITE_NAME +app.locals.SITE_NAME_P = SITE_NAME.endsWith("!") ? SITE_NAME : SITE_NAME + "." app.locals.SITE_URL = SITE_URL app.locals.SITE_THEME = process.env.SITE_THEME app.locals.SITE_ICON = process.env.SITE_ICON diff --git a/views/signup.pug b/views/signup.pug index f0ff37f..70de257 100644 --- a/views/signup.pug +++ b/views/signup.pug @@ -15,14 +15,23 @@ html p You're already logged in! else form(method="post" action="/signup") + p You need to sign up for a free account to play games on #{SITE_NAME_P} p label Name: br input(type="text" name="username" required) + br + i How you will be known to other players. + br + i You can change your user name at any time. p label Mail: br input(type="email" name="mail" required) + br + i Your mail address is only used for turn notifications and password recovery. + br + i It will not be visible to other players. p label Password: br -- cgit v1.2.3