diff --git a/app/assets/javascripts/discourse/app/templates/invites/show.hbs b/app/assets/javascripts/discourse/app/templates/invites/show.hbs index 4fbe0db6ced..c1d652b49f3 100644 --- a/app/assets/javascripts/discourse/app/templates/invites/show.hbs +++ b/app/assets/javascripts/discourse/app/templates/invites/show.hbs @@ -2,133 +2,136 @@

{{welcomeTitle}}

-

{{i18n "create_account.subheader_title"}}

+ {{#unless successMessage}} +

{{i18n "create_account.subheader_title"}}

+ {{/unless}}
-
-
- {{i18n -
+
+
+
+ {{i18n +
-
- {{#if successMessage}} -

-
-

{{html-safe successMessage}}

-
- {{else}} -

{{i18n "invites.invited_by"}}

-

{{user-info user=invitedBy}}

+
+ {{#if successMessage}} +
+

{{html-safe successMessage}}

+
+ {{else}} +

{{i18n "invites.invited_by"}}

+

{{user-info user=invitedBy}}

- {{#if associateHtml}} - - {{/if}} - - {{#unless isInviteLink}} - - {{/unless}} - - {{#if externalAuthsOnly}} - {{! authOptions are present once the user has followed the OmniAuth flow (e.g. twitter/google/etc) }} - {{#if authOptions}} - {{#unless isInviteLink}} - {{input-tip validation=emailValidation id="account-email-validation"}} - {{/unless}} - {{else}} - {{login-buttons externalLogin=(action "externalLogin")}} + {{#if associateHtml}} + {{/if}} - {{/if}} - {{#if discourseConnectEnabled}} - - {{i18n "continue"}} - - {{/if}} + {{#unless isInviteLink}} + + {{/unless}} - {{#if shouldDisplayForm}} -
- {{#if isInviteLink}} - + {{/unless}} + {{else}} + {{login-buttons externalLogin=(action "externalLogin")}} {{/if}} + {{/if}} -
- - {{input value=accountUsername id="new-account-username" name="username" maxlength=maxUsernameLength autocomplete="discourse"}} - {{input-tip validation=usernameValidation id="username-validation"}} -
{{i18n "user.username.instructions"}}
-
+ {{#if discourseConnectEnabled}} + + {{i18n "continue"}} + + {{/if}} - {{#if fullnameRequired}} -
- + {{input type="email" value=email id="new-account-email" name="email" autofocus="autofocus" disabled=externalAuthsOnly}} + {{input-tip validation=emailValidation id="account-email-validation"}} +
{{i18n "user.email.instructions"}}
+
+ {{/if}} - {{#unless externalAuthsOnly}} -
-
diff --git a/app/assets/stylesheets/common/base/login.scss b/app/assets/stylesheets/common/base/login.scss index 6bd0865112d..6535c5abe57 100644 --- a/app/assets/stylesheets/common/base/login.scss +++ b/app/assets/stylesheets/common/base/login.scss @@ -66,7 +66,6 @@ display: inline; } .login-welcome-header { - z-index: z("modal", "content"); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; @@ -293,12 +292,31 @@ } .invites-show { + display: grid; + justify-content: center; .two-col { position: relative; - display: flex; + display: grid; margin-top: 5px; } + .invite-form, + .invite-success { + border-radius: 10px; + margin-top: 25px; + } + + .invite-form { + padding-left: 20px; + margin-bottom: 50px; + .tip { + display: block; + } + .col-image { + display: none; + } + } + #login-buttons { .btn { background-color: var(--primary-low); @@ -309,6 +327,7 @@ .col-image { position: relative; margin-right: 20px; + justify-self: center; @media screen and (max-width: 600px) { display: none; } diff --git a/app/assets/stylesheets/desktop/login.scss b/app/assets/stylesheets/desktop/login.scss index 514eabcf1e1..9d2c688f0aa 100644 --- a/app/assets/stylesheets/desktop/login.scss +++ b/app/assets/stylesheets/desktop/login.scss @@ -395,7 +395,7 @@ .invites-show { .col-form { padding-left: 20px; - width: 400px; + width: 470px; } .col-image { width: 175px; @@ -410,6 +410,10 @@ // 80% width on checkboxes messes up the layout for custom fields width: 80%; } + .invite-form, + .invite-success { + box-shadow: 0 1px 10px 1px rgba(var(--primary-low-rgb), 1.25); + } } .password-reset, diff --git a/app/assets/stylesheets/mobile/login.scss b/app/assets/stylesheets/mobile/login.scss index 3c729fa272c..60d121b9eea 100644 --- a/app/assets/stylesheets/mobile/login.scss +++ b/app/assets/stylesheets/mobile/login.scss @@ -256,4 +256,7 @@ .col-image { display: none; } + h1.login-title { + font-size: $font-up-3; + } }