forked from TryGhost/London
-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.hbs
29 lines (29 loc) · 1.02 KB
/
signup.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
{{!< default}}
{{#if @member}}
{{!-- Logged in: Redirect home --}}
<script>window.location = '{{@site.url}}';</script>
{{else}}
<div class="gh-page signup">
<div class="gh-container">
{{> "subscribe-form"
heading="Join the Adventure!"
description="Get two introductory science-fiction stories for free when you sign up."
form-type="subscribe"
show-name=true
button-name="Subscribe"
success-text="confirm your subscription"
}}
{{> "free-stories" }}
</div>
</div>
{{!-- The #contentFor helper here will send everything inside it up to the matching #block helper found in default.hbs --}}
{{#contentFor "scripts"}}
<script>
function scrollToTop() {
$('html, body').animate({
scrollTop: parseInt($(".subscribe-form").offset().top)
}, 1000);
};
</script>
{{/contentFor}}
{{/if}}