From c1ab90518c4250db342a6d4556d5273832bd7a83 Mon Sep 17 00:00:00 2001 From: Ash Monty Date: Mon, 4 Jul 2022 22:19:26 +0200 Subject: [PATCH] style: minor changes to account page --- public/assets/css/account.css | 8 +++---- src/routers/account.js | 2 -- views/account/account.handlebars | 38 ++++++++++++++++++-------------- 3 files changed, 26 insertions(+), 22 deletions(-) diff --git a/public/assets/css/account.css b/public/assets/css/account.css index ca03116..6c91735 100644 --- a/public/assets/css/account.css +++ b/public/assets/css/account.css @@ -118,13 +118,11 @@ } fieldset { + position: relative; height: min-content; padding: 0; border: none; } -fieldset:disabled form label { - cursor: not-allowed; -} .setting-card .server-selection { display: flex; @@ -162,9 +160,11 @@ fieldset:disabled form label { background: #383f6b; } -.setting-card.sign-in-history a button { +.setting-card button { width: 100%; + height: fit-content; padding: 12px 48px; + align-self: flex-end; cursor: pointer; background: #383f6b; } diff --git a/src/routers/account.js b/src/routers/account.js index 8184e4b..b8c61ea 100644 --- a/src/routers/account.js +++ b/src/routers/account.js @@ -193,8 +193,6 @@ router.get('/', async (request, response) => { renderData.discordAuthURL = discordAuthURL; } - renderData.isTester = false; - response.render('account/account', renderData); }); diff --git a/views/account/account.handlebars b/views/account/account.handlebars index 072f1a3..ef6a6a2 100644 --- a/views/account/account.handlebars +++ b/views/account/account.handlebars @@ -19,7 +19,7 @@ -

Upgrade Account

+

Upgrade account

@@ -58,9 +58,8 @@
-

Server Environment

- {{#if isTester}} -
+

Server environment

+
+ {{#if isTester}} + {{/if}}
- {{#if discordUser}} -

Connected to Discord as {{ discordUser.username }}#{{ discordUser.discriminator }}

- - {{else}} - - - - {{/if}} - {{else}} -

Account is not a beta tester, locked to production servers.

+ {{#unless isTester}}

Beta servers are exclusive to beta testers.
To become a beta tester, upgrade to a higher account tier.

- {{/if}} + {{else}} +

Your current tier (insert current tier{{currentTier}}) gives you beta server access. Cool!

+ {{/unless}}

Sign in and security

@@ -134,13 +128,25 @@

Other settings

-
+
+

Discord

+ {{#if discordUser}} +

Connected to Discord as {{ discordUser.username }}#{{ discordUser.discriminator }}

+ + {{else}} +

To link your Discord account, run /whatever in the Discord server

+ {{/if}} +
+ +

Newsletter

+ +
{{> footer }}