liebling/subscribe.hbs

50 lines
1.7 KiB
Handlebars
Raw Permalink Normal View History

2019-04-14 18:41:25 +00:00
{{!--
This error template is used for the subscription page.
--}}
{{!-- The tag below means: insert everything in this file
into the {body} of the default.hbs template --}}
2019-02-23 13:53:40 +00:00
{{!< default}}
<div class="l-wrapper" data-aos="fade-down">
<a href="{{@site.url}}" class="m-back">
<span class="m-back__icon icon-arrow-left"></span>
2019-08-15 14:40:46 +00:00
<span>{{t "Back to home"}}</span>
2019-02-23 13:53:40 +00:00
</a>
</div>
2019-03-12 10:39:01 +00:00
<main class="l-fullscreen">
2019-02-23 13:53:40 +00:00
<section class="l-fullscreen__content in-subscribe-page" data-aos="fade-up" data-aos-delay="300">
{{^if success}}
<div>
<header class="m-heading in-subscribe-page">
2019-08-15 14:40:46 +00:00
<h1 class="m-heading__title">{{t "Subscribe to"}} {{@site.title}}</h1>
2019-02-23 13:53:40 +00:00
<p class="m-heading__description in-subscribe-page">
2019-08-15 14:40:46 +00:00
{{t "Stay up to date! Get all the latest & greatest posts delivered straight to your inbox."}}
2019-02-23 13:53:40 +00:00
</p>
</header>
{{subscribe_form
form_id="subscribe-form"
2019-02-23 13:53:40 +00:00
form_class="m-subscribe-section__form"
input_id="subscribe_input"
2019-02-23 13:53:40 +00:00
input_class="m-input in-subscribe-section"
button_id="subscribe_button"
2019-02-23 13:53:40 +00:00
button_class="m-button primary block"
2019-08-17 18:34:39 +00:00
placeholder=(t "Your email address")
2019-02-23 13:53:40 +00:00
autofocus="true"
}}
</div>
{{else}}
<div>
<header class="m-heading in-subscribe-page">
2019-08-15 14:40:46 +00:00
<h1 class="m-heading__title">{{t "Subscribed!"}}</h1>
2019-02-23 13:53:40 +00:00
<p class="m-heading__description in-subscribe-page">
2019-08-15 14:40:46 +00:00
{{t "You've successfully subscribed to"}} <strong>{{@site.title}}</strong> {{t "with the email address"}} <strong>{{email}}</strong>
2019-02-23 13:53:40 +00:00
</p>
</header>
2019-08-15 14:40:46 +00:00
<a href="{{@site.url}}" class="m-button outlined">{{t "Back to home"}}</a>
2019-02-23 13:53:40 +00:00
</div>
{{/if}}
</section>
</main>