forked from godofredoninja/simply
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubscribe.hbs
32 lines (22 loc) · 1.69 KB
/
subscribe.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{{!< default}}
{{!-- custom Styles For tag <body> --}}
{{#contentFor "special_body_class"}}is-subscribe{{/contentFor}}
<div class="newsletter u-maxWidth740 u-marginAuto {{#if success}}newsletter-success{{/if}}">
<div class="newsletter-wrap u-textAlignCenter u-marginAuto">
{{^if success}}
<h1 class="newsletter-title u-fontSize28 u-fontWeightBold u-marginBottom15">{{t "# for my newsletter!"}}</h1>
<h2 class="newsletter-description u-fontSizeSmall u-block u-fontWeightNormal">{{t "Stay up to date! Get all the latest & greatest posts delivered straight to your inbox"}}</h2>
<form class="newsletter-form" action="/subscribe/" method="post">
<input type="hidden" name="confirm" />
<input type="hidden" name="location" />
<input type="hidden" name="referrer" />
<input class="u-marginBottom15" type="email" name="email" placeholder="{{t 'Your email address'}}" autocomplete="off" aria-label="{{t 'Your email address'}}" aria-describedby="button-subscribe" required/>
<button id="button-subscribe" class="button button--large button--filled u-textUppercase u-sizeFullWidth">{{t 'Subscribe'}}</button>
</form>
{{else}}
<h1 class="newsletter-title u-fontSize28 u-fontWeightBold u-marginBottom15">{{t "Subscribed!"}}</h1>
<h2 class="newsletter-description u-fontSizeSmall u-block u-fontWeightNormal">{{t "You've successfully subscribed"}} {{t "with the email address"}} <span class="u-fontWeightSemibold">{{email}}</span></h2>
<a href="{{#if subscribed_url}}{{subscribed_url}}{{else}}{{@site.url}}{{/if}}" class="button button--filled u-marginTop20">ok</a>
{{/if}}
</div>
</div>