forked from TryGhost/Headline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom-signup.hbs
104 lines (90 loc) · 4.08 KB
/
custom-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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="{{@site.locale}}">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}" />
<title>Empieza tu camino en Criptonautas</title>
<script>
if(typeof(Storage) !== 'undefined') {
if (localStorage.getItem('selected-theme') == 'light') {
document.documentElement.setAttribute('data-theme', 'light');
}
else if (localStorage.getItem('selected-theme') == 'dark') {
document.documentElement.setAttribute('data-theme', 'dark');
}
}
</script>
{{ghost_head}}
{{!-- Outputs SEO meta+structured data and important settings, should always be in <head> --}}
</head>
<body class="{{body_class}}">
{{#if @member.paid}}
{{!-- Logged in: Redirect home --}}
<script>window.location = '{{@site.url}}';</script>
{{else if @member}}
{{!-- Member: Redirect to Subscribe --}}
<script>window.location = '{{@site.url}}/nauta/';</script>
{{else}}
<!-- subscribe section start from here -->
<div class="subscribe-section">
{{#post}}
{{#if feature_image}}
<div class="custom-feature-sign">
<img loading="lazy" srcset="{{img_url feature_image size="s" format="webp"}} 300w,
{{img_url feature_image size="m" format="webp"}} 600w,
{{img_url feature_image size="l" format="webp"}} 1000w,
{{img_url feature_image size="xl" format="webp"}} 1600w"
sizes="(max-width: 600px) 600px, (max-width: 1160px) 1000px, 1140px"
src="{{img_url feature_image size="m" format="webp"}}"
data-src="{{img_url feature_image size="m" format="webp"}}"
alt="{{title}}"
/>
</div>
{{/if}}
<div class="{{#if feature_image}}signup-form{{else}}custom-no-feature-sign{{/if}}">
<div class="cus-sign-box subscribe-title">
<img src ="{{asset "images/mario-mushroom.gif"}}"></img>
<div class="form-inner-content">
<form data-members-form="signup">
<div class="login-text">
<p>{{ t "Start free" }}</p>
</div>
<div class="message-text">
<div class="message-success">
{{{t "Check your inbox"}}}
</div>
<div class="message-error">
{{t "Please enter a valid email address (!)"}}
</div>
</div>
<div>
<div class="single-input mb-20">
<input data-members-email class="form-control" type="email" required placeholder="{{t "Enter your email"}}">
</div>
<div class="subscribe-btn align-items-center">
<button type="submit" class="btn btn-sign">
<span class="button-text">{{t "Continue"}}</span>
<span class="button-loader">{{> "icons/loader"}}</span>
</button>
</div>
</div>
<p>{{t "Already have an account?"}}</br><a href="{{@site.url}}/continue">{{t "Sign in"}}</a></p>
</form>
</div>
</div>
</div>
</div>
{{/post}}
{{/if}}
<!-- // subscribe section end from here -->
{{!-- Jquery scripts --}}
{{!-- {{> "membership/notifications"}} --}}
{{> "site-structure/site-scripts"}}
{{{block "scripts"}}}
{{!-- ghost footer --}}
{{ghost_foot}}
</body>
</html>