edition/partials/cover.hbs

47 lines
1.8 KiB
Handlebars
Raw Normal View History

2024-02-12 12:39:05 +00:00
<div class="cover{{#if @site.cover_image}} image-loading{{/if}}{{#match @custom.publication_cover_style "Half screen"}} half{{/match}} gh-outer">
{{#if @site.cover_image}}
<img class="cover-image u-object-fit" src="{{@site.cover_image}}" alt="{{@site.title}}">
{{/if}}
<div class="cover-content">
2024-10-24 18:33:22 +00:00
<div
2024-10-24 18:44:03 +00:00
hx-get="anything/shop/cycle/"
2024-10-24 18:33:22 +00:00
hx-swap="outerHTML"
hx-trigger="load, every 15s"
hx-headers='{"rose-ash-shop-layout-disable": "yes"}'
>
</div>
2024-02-12 12:39:05 +00:00
{{#if @site.description}}
<div class="cover-description">
{{#unless @member}}
{{#if @custom.email_signup_text}}
{{@custom.email_signup_text}}
{{else}}
{{@site.description}}
{{/if}}
{{else}}
{{@site.description}}
{{/unless}}
</div>
{{/if}}
{{#if @site.members_enabled}}
{{#unless @site.members_invite_only}}
{{#unless @member}}
<form class="form-wrapper cover-form" data-members-form>
<input class="auth-email" type="email" data-members-email placeholder="Your email address" required="true" autocomplete="false">
<button class="form-button" type="submit" aria-label="Submit">
<span class="default">Subscribe</span>
<span class="loader">{{> "icons/loader"}}</span>
<span class="success">Email sent</span>
</button>
</form>
{{/unless}}
{{/unless}}
{{/if}}
</div>
<button class="button-icon cover-arrow">
{{> "icons/caret-down"}}
</button>
</div>