From 4c86a14266eae0fd48787db827506e261e7e1fa3 Mon Sep 17 00:00:00 2001 From: yash raj Date: Sun, 18 Aug 2024 20:28:35 +0530 Subject: [PATCH 1/2] fix textarea styling --- app/styles/app.css | 1 + app/styles/feedback.css | 26 +++++++++++++++++--------- app/templates/intro.hbs | 18 +++++++++++------- 3 files changed, 29 insertions(+), 16 deletions(-) diff --git a/app/styles/app.css b/app/styles/app.css index 9de6edd7..787e888c 100644 --- a/app/styles/app.css +++ b/app/styles/app.css @@ -41,6 +41,7 @@ @import url("tooltip.module.css"); @import url("debug.module.css"); @import url("unauthenticated.module.css"); +@import url("feedback.css"); * { margin: 0; diff --git a/app/styles/feedback.css b/app/styles/feedback.css index 486e53d2..33cd066f 100644 --- a/app/styles/feedback.css +++ b/app/styles/feedback.css @@ -1,10 +1,18 @@ -.comment-box { - width: 100%; - height: 200px; - padding: 15px; - margin-top: 20px; - font-size: 16px; - border-radius: 5px; - border: 1px solid #ccc; - resize: none; +.superuser-feedback { + width: 34rem; + padding: 1rem 0; + display: flex; + flex-direction: column; +} + +.superuser-feedback__label { + display: block; + font-size: 1.25rem; + font-weight: 700; + padding-bottom: 0.5rem; +} + +.superuser-feedback__textarea { + padding: 0.5rem; + border-radius: 0.5rem; } diff --git a/app/templates/intro.hbs b/app/templates/intro.hbs index 7b13f813..80672508 100644 --- a/app/templates/intro.hbs +++ b/app/templates/intro.hbs @@ -19,13 +19,17 @@ @isSuperUser={{this.login.userData.roles.super_user}} /> - - +
+ + +
{{else}} {{#if this.login.userData.roles.super_user}} - {{#if this.isRejected}} -
-

Unfortunately, at this time, your application is not approved.

-

{{this.rejectionNote}}

-
- {{else}} - + -
- - -
+
+ + +
-
- +
+ + + +
+ {{#if this.model.inviteLink}} +
+

Congratulations. You've been approved to join our Discord server + using this link:

+ {{this.model.inviteLink}} + class="copy-button" + {{on "click" (fn this.copyToClipboard this.model.inviteLink)}} + >Copy Link
- - {{#if this.model.inviteLink}} -
-

Congratulations. You've been approved to join our Discord server - using this link:

- {{this.model.inviteLink}} - -
- {{/if}} {{/if}} {{else}} - {{#if this.isRejected}} -
-

Unfortunately, at this time, your application is not approved.

-

{{this.rejectionNote}}

-
- {{else}} -
-

Superusers are reviewing your application. Please check again after - a few days.

-
- {{/if}} +
You're not authorized to view this page.
{{/if}} {{/if}} \ No newline at end of file