0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Updated copy for portal signup notice

Refs https://github.com/TryGhost/Team/issues/2897
This commit is contained in:
Sanne de Vries 2023-04-12 08:28:02 +01:00
parent 8571011e7d
commit bbcc7de31c
4 changed files with 9 additions and 2 deletions

View file

@ -141,11 +141,12 @@
{{#if (feature "makingItRain")}} {{#if (feature "makingItRain")}}
<GhFormGroup class="gh-stack-item mt5 mb5" @errors={{this.settings.errors}} @hasValidated={{this.settings.hasValidated}}> <GhFormGroup class="gh-stack-item mt5 mb5" @errors={{this.settings.errors}} @hasValidated={{this.settings.hasValidated}}>
<label class="modal-fullsettings-title">Notice on signup</label> <label class="modal-fullsettings-title">Display notice at signup</label>
<KoenigBasicHtmlInput <KoenigBasicHtmlInput
@name="footer" @name="footer"
@html={{this.settings.portalSignupTermsHtml}} @html={{this.settings.portalSignupTermsHtml}}
@class="miw-100 form-text gh-members-emailsettings-footer-input" @class="miw-100 form-text gh-members-emailsettings-footer-input"
@placeholder="By signing up, I agree to receive emails from {{this.config.blogTitle}}."
@onChange={{action "setTermsHtml"}} @onChange={{action "setTermsHtml"}}
/> />
<GhErrorMessage @errors={{this.settings.errors}} @property="portalSignupTermsHtml" /> <GhErrorMessage @errors={{this.settings.errors}} @property="portalSignupTermsHtml" />

View file

@ -286,7 +286,7 @@ export default ModalComponent.extend({
this.settings.hasValidated.removeObject('portalSignupTermsHtml'); this.settings.hasValidated.removeObject('portalSignupTermsHtml');
if (content.length > this.maxTermsLength) { if (content.length > this.maxTermsLength) {
this.settings.errors.add('portalSignupTermsHtml', 'You\'ve exceeded the character limit'); this.settings.errors.add('portalSignupTermsHtml', 'Signup notice is too long');
this.settings.hasValidated.pushObject('portalSignupTermsHtml'); this.settings.hasValidated.pushObject('portalSignupTermsHtml');
} }
} }

View file

@ -17,8 +17,10 @@ export function countDownCharacters(params) {
if (length > maxCharacters) { if (length > maxCharacters) {
el.style.color = '#E25440'; el.style.color = '#E25440';
el.style.fontWeight = 'bold';
} else { } else {
el.style.color = '#30CF43'; el.style.color = '#30CF43';
el.style.fontWeight = 'bold';
} }
el.innerHTML = length; el.innerHTML = length;

View file

@ -107,6 +107,10 @@
height: 60px; height: 60px;
} }
.gh-portal-settings .gh-members-emailsettings-footer-input .__mobiledoc-editor.__has-no-content:after {
line-height: 1.5em
}
.gh-portal-setting-sectionheading { .gh-portal-setting-sectionheading {
font-size: 1.1rem; font-size: 1.1rem;
font-weight: 600; font-weight: 600;