2020-11-12 17:45:22 +03:00
<div class="modal-body modal-fullsettings">
2021-06-21 15:40:54 +03:00
<div class="flex items-center justify-between w-100 modal-fullsettings-topbar">
<h2 class="modal-fullsettings-heading">Email newsletter design</h2>
<div class="flex items-center">
<button
class="gh-btn mr3"
{{ on "click" ( action "closeModal" ) }}
{{!-- disable mouseDown so it does not trigger focus-out validations --}}
{{ on "mousedown" ( optional this .noop ) }}
data-test-button="cancel-custom-view-form"
>
<span>Cancel</span>
</button>
<GhTaskButton
@buttonText="Save and close"
@successText="Saved"
@task= {{ this .saveSettings }}
@idleClass="gh-btn-primary"
@class="gh-btn gh-btn-icon"
data-test-button="save-members-modal-setting"
/>
</div>
</div>
2020-11-12 17:45:22 +03:00
<div class="modal-fullsettings-body">
<div class="modal-fullsettings-sidebar with-footer">
<div>
<fieldset class="modal-fullsettings-form">
<div class="modal-fullsettings-section first">
2021-06-21 15:40:54 +03:00
<GhFormGroup @classNames="vertical">
<GhUploader
@extensions= {{ this .imageExtensions }}
@paramsHash= {{ hash purpose = "image" }}
@onComplete= {{ fn this .imageUploaded "headerImage" }}
as |uploader|
>
<div class="modal-fullsettings-uploader">
<div class="gh-header-img-desc">
<h4 class="modal-fullsettings-title">Header image</h4>
<p>Optional, recommended size 1200x600</p>
</div>
{{ # if uploader .isUploading }}
<div class="gh-header-img-container">
<div class="gh-loading-spinner"></div>
</div>
{{ else if this .headerImage }}
<div class="gh-header-img">
<img
class="gh-header-img-thumbnail"
src= {{ this .headerImage }}
alt="header image"
data-test-img="header"
>
<button type="button" class="gh-btn gh-header-img-deleteicon" {{ on "click" ( fn this .changeSetting "headerImage" null ) }} >
<span> {{ svg-jar "trash" class = "w5 h5" }} </span>
</button>
</div>
{{ else }}
<button type="button" class="gh-btn gh-header-img-uploadicon" {{ on "click" uploader .triggerFileDialog }} data-test-image-upload-btn="header-image">
<span> {{ svg-jar "upload-fill" class = "w5 h5" }} </span>
</button>
<div style="display:none">
<GhFileInput
@multiple= {{ false }}
@action= {{ uploader .setFiles }}
@accept= {{ uploader .imageMimeTypes }}
@onInsert= {{ uploader .registerFileInput }}
data-test-file-input="icon" />
</div>
{{ / if }}
</div>
</GhUploader>
</GhFormGroup>
<GhFormGroup data-tooltip= {{ if ( not this .settings .icon ) "A publication icon must be set in Branding settings." }} >
<h4 class="modal-fullsettings-title {{ if ( not this .settings .icon ) "disabled" }} ">Publication icon</h4>
<div class="for-switch small {{ if ( not this .settings .icon ) "disabled" }} ">
<label class="switch" for="show-header">
2020-11-12 17:45:22 +03:00
<input
type="checkbox"
2021-06-21 15:40:54 +03:00
checked= {{ and this .showHeaderIcon this .settings .icon }}
2020-11-12 17:45:22 +03:00
id="show-header"
name="show-header"
2021-06-21 15:40:54 +03:00
disabled= {{ not this .settings .icon }}
{{ on "click" ( fn this .toggleSetting "showHeaderIcon" ) }}
2020-11-12 17:45:22 +03:00
>
<span class="input-toggle-component"></span>
</label>
</div>
</GhFormGroup>
2021-06-21 15:40:54 +03:00
<GhFormGroup>
<h4 class="modal-fullsettings-title">Publication title</h4>
<div class="for-switch small">
<label class="switch" for="show-title">
<input
type="checkbox"
checked= {{ this .showHeaderTitle }}
id="show-title"
name="show-title"
{{ on "click" ( fn this .toggleSetting "showHeaderTitle" ) }}
2020-11-12 17:45:22 +03:00
>
2021-06-21 15:40:54 +03:00
<span class="input-toggle-component"></span>
</label>
</div>
</GhFormGroup>
</div>
<div class="modal-fullsettings-section divider-top">
<GhFormGroup>
<h4 class="modal-fullsettings-title gh-email-design-alignment">Header style</h4>
<div class="gh-email-design-typography-wrapper header">
<div class="modal-fullsettings-radiogroup gh-email-design-typography">
<GhFontSelector
@selected= {{ this .titleFontCategory }}
@onChange= {{ fn this .changeSetting "titleFontCategory" }}
/>
2020-11-12 17:45:22 +03:00
</div>
2021-06-21 15:40:54 +03:00
<div class="gh-btn-group icons">
<button type="button" class="gh-btn gh-btn-icon {{ if ( eq this .titleAlignment "left" ) "gh-btn-group-selected" }} " {{ on "click" ( fn this .changeSetting "titleAlignment" "left" ) }} ><span> {{ svg-jar "align-left" }} </span></button>
<button type="button" class="gh-btn gh-btn-icon {{ if ( eq this .titleAlignment "center" ) "gh-btn-group-selected" }} " {{ on "click" ( fn this .changeSetting "titleAlignment" "center" ) }} ><span> {{ svg-jar "align-center" }} </span></button>
2020-11-12 17:45:22 +03:00
</div>
</div>
2021-06-21 15:40:54 +03:00
</GhFormGroup>
<GhFormGroup>
<h4 class="modal-fullsettings-title">Feature image</h4>
<div class="for-switch small">
<label class="switch" for="show-feature-image">
<input
type="checkbox"
checked= {{ this .showFeatureImage }}
id="show-feature-image"
name="show-feature-image"
{{ on "click" ( fn this .toggleSetting "showFeatureImage" ) }}
>
<span class="input-toggle-component"></span>
</label>
</div>
2020-11-12 17:45:22 +03:00
</GhFormGroup>
</div>
2020-11-13 16:21:42 +03:00
<div class="modal-fullsettings-section">
2021-06-21 15:40:54 +03:00
<GhFormGroup>
<h4 class="modal-fullsettings-title">Body style</h4>
<div class="gh-email-design-typography-wrapper">
<div class="modal-fullsettings-radiogroup gh-email-design-typography">
<GhFontSelector
@selected= {{ this .bodyFontCategory }}
@onChange= {{ fn this .changeSetting "bodyFontCategory" }}
/>
</div>
</div>
</GhFormGroup>
</div>
<div class="modal-fullsettings-section divider-top">
2020-11-13 16:21:42 +03:00
<GhFormGroup @classNames="vertical">
2021-06-21 15:40:54 +03:00
<h4 class="modal-fullsettings-title">Email footer</h4>
2020-11-16 13:29:32 +03:00
<KoenigBasicHtmlInput
2020-11-13 16:21:42 +03:00
@name="footer"
2020-11-16 13:29:32 +03:00
@html= {{ this .footerContent }}
@class="miw-100 form-text gh-members-emailsettings-footer-input"
2021-06-21 15:40:54 +03:00
@onChange= {{ fn this .changeSetting "footerContent" }}
2020-11-16 13:29:32 +03:00
@onFocus= {{ this .handleInputFocus }}
@onBlur= {{ this .handleInputBlur }}
2020-11-13 16:21:42 +03:00
/>
2021-09-01 15:13:42 +03:00
<p>Any extra information or legal text</p>
2020-11-13 16:21:42 +03:00
</GhFormGroup>
</div>
2020-11-12 17:45:22 +03:00
</fieldset>
</div>
<div class="modal-fullsettings-section gh-members-emailsettings-footer">
<GhFormGroup>
<div class="gh-members-emailsettings-promotelabel">
<span> {{ svg-jar "heart" }} </span>
<div>
<h4 class="modal-fullsettings-title">Promote independent publishing</h4>
<p>Show you’ re a part of the indie publishing movement with a small badge in the footer</p>
</div>
</div>
<div class="for-switch small">
<label
class="switch"
for="promote-ghost"
>
<input
type="checkbox"
2020-11-13 16:21:42 +03:00
checked= {{ this .showBadge }}
2020-11-12 17:45:22 +03:00
id="promote-ghost"
name="promote-ghost"
2021-06-21 15:40:54 +03:00
{{ on "click" ( fn this .toggleSetting "showBadge" ) }}
2020-11-12 17:45:22 +03:00
>
<span class="input-toggle-component"></span>
</label>
</div>
</GhFormGroup>
</div>
</div>
<div class="modal-fullsettings-main">
2020-11-13 18:31:21 +03:00
<div class="modal-fullsettings-preview-container gh-members-emailpreview">
<div class="gh-members-emailpreview-container">
<div class="gh-members-emailpreview-faux">
<p>
2021-06-21 15:40:54 +03:00
<span class="strong"> {{ this .config .blogTitle }} </span> < {{ full-email-address this .settings .membersFromAddress }} >
2020-11-13 18:31:21 +03:00
</p>
<p><span class="dark">To:</span> Jamie Larson <jamie@example.com></p>
</div>
<div class="gh-members-emailpreview-contents">
2021-06-21 15:40:54 +03:00
{{ # if this .headerImage }}
<div class="gh-members-emailpreview-header-image">
<img src= {{ this .headerImage }} >
</div>
{{ / if }}
{{ # if this .showHeader }}
<div class="gh-members-emailpreview-header">
{{ # if ( and this .settings .icon this .showHeaderIcon ) }}
<img src= {{ this .settings .icon }} />
{{ / if }}
{{ # if this .showHeaderTitle }}
<h4> {{ this .config .blogTitle }} </h4>
{{ / if }}
</div>
{{ / if }}
<div class="gh-members-emailpreview-title {{ if ( eq this .titleAlignment "left" ) "gh-members-emailpreview-title-left" }} ">
<h2 class=" {{ if ( eq this .titleFontCategory "serif" ) "serif" }} ">Your email newsletter</h2>
2020-11-13 14:18:19 +03:00
<p>
2021-06-30 14:38:29 +03:00
<span>By {{ if this .session .user .name this .session .user .name this .session .user .email }} – {{ this .currentDate }} – </span> <a href="javascript:">View online →</a>
2020-11-13 14:18:19 +03:00
</p>
</div>
2021-06-21 15:40:54 +03:00
{{ # if this .showFeatureImage }}
<div class="gh-members-emailpreview-featureimage" style= {{ this .featureImageStyle }} ></div>
<div class="gh-members-emailpreview-featureimage-caption">Feature image caption</div>
{{ / if }}
2020-11-13 16:21:42 +03:00
<div class="gh-members-emailpreview-content {{ if ( eq this .bodyFontCategory "sans_serif" ) "sans-serif" }} ">
2020-12-02 15:12:41 +03:00
<p>This is what your content will look like when you send one of your posts as an email newsletter to your subscribers.</p>
2021-06-09 18:28:19 +03:00
<p>Over there on the left you’ ll see some settings that allow you to customize the look and feel of this template to make it perfectly suited to your brand. Email templates are exceptionally finnicky to make, but we’ ve spent a long time optimising this one to make it work beautifully across devices, email clients and content types.</p>
2020-12-02 15:12:41 +03:00
<p>So, you can trust that every email you send with Ghost will look great and work well. Just like the rest of your site.</p>
2020-11-13 14:18:19 +03:00
</div>
<div class="gh-members-emailpreview-footer">
<div class="gh-members-emailpreview-footercontent">
2020-11-16 13:29:32 +03:00
{{{ this .footerContent }}}
2020-11-13 14:18:19 +03:00
</div>
<div class="gh-members-emailpreview-footersite">
2021-06-21 15:40:54 +03:00
<span> {{ this .config .blogTitle }} © {{ this .copyrightYear }} – </span> <a href="javascript:">Unsubscribe</a>
2020-11-13 14:18:19 +03:00
</div>
</div>
2020-11-13 16:21:42 +03:00
<div class="gh-members-emailpreview-badge {{ if ( not this .showBadge ) "hide" }} ">
2020-11-13 14:18:19 +03:00
<a href="javascript:"><svg viewBox="0 0 156 156"><g fill="none" fill-rule="evenodd"><rect fill="#15212B" width="156" height="156" rx="27"></rect><g transform="translate(36 36)" fill="#F6F8FA"><path d="M0 71.007A4.004 4.004 0 014 67h26a4 4 0 014 4.007v8.986A4.004 4.004 0 0130 84H4a4 4 0 01-4-4.007v-8.986zM50 71.007A4.004 4.004 0 0154 67h26a4 4 0 014 4.007v8.986A4.004 4.004 0 0180 84H54a4 4 0 01-4-4.007v-8.986z"></path><rect y="34" width="84" height="17" rx="4"></rect><path d="M0 4.007A4.007 4.007 0 014.007 0h41.986A4.003 4.003 0 0150 4.007v8.986A4.007 4.007 0 0145.993 17H4.007A4.003 4.003 0 010 12.993V4.007z"></path><rect x="67" width="17" height="17" rx="4"></rect></g></g></svg> <span>Publish with Ghost</span></a>
2020-11-12 17:45:22 +03:00
</div>
</div>
</div>
</div>
</div>
</div>
</div>