scoobr 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a85fa2774af2561db92522137a9b2c4a1e124c9
4
- data.tar.gz: fbc1cd976af6c20daea7511184936e4fa4d96b1c
3
+ metadata.gz: 321407c2ba2a016aecc071941368b00781bfe0ef
4
+ data.tar.gz: '0881e4687098b79d6f270d8069aa9b80b9624e32'
5
5
  SHA512:
6
- metadata.gz: d411e2c066903aa27a5824bd07c87569f7b87c85b9ae06c5289084931b839cd3ad90f4b479ff66a4ba1213d23ca777497c3355efca325f588096fc1e0084228c
7
- data.tar.gz: 888f49bc0e7e736badb4e3a8ab089c404df85c757c87ba202edd29b978dae5afd2c9b9657798ff084dfc44dffc3ef1a7b3e906144a36b14faf0bf47a00ac6180
6
+ metadata.gz: 5611a15a282e0f7108ee8b825658af24b7cbd8251d7566931fb5fc7ae0c21b594e731334b0b52fad007cac9d16eea65c8894630745444a9c129b5dcaee28c16f
7
+ data.tar.gz: a1b30272cc921ce1e9317a2fac6daf6b79012b559db973ceba8392548040f109379cebe7a9ff495dc5668e16b4f05f77c72c206ba56c05b2734d1956bba72615
@@ -1,5 +1,5 @@
1
1
  <div class="content-section text-center form-box">
2
- <h3>Subscribe to our newsletter</h3>
3
- <p>Ulysses - no-one else can do the things you do. Ulysses - like a bolt of thunder from the blue.</p>
2
+ <h3>{{ include.heading | default: post.mailchimp-form.heading | default: site.data.mailchimp.copywriting.heading | default: "Subscribe to our newsletter" }}</h3>
3
+ {{ include.body | default: post.mailchimp-form.body_markdown | default: site.data.mailchimp.copywriting.body_markdown | default: "Ulysses — no-one else can do the things you do. Ulysses - like a bolt of thunder from the blue." | markdownify }}
4
4
  {% include mailchimp-form.html %}
5
5
  </div>
@@ -1,4 +1,7 @@
1
- <div class="mailchimp-form">
2
- <input type="text" name="EMAIL" placeholder="Email address">
3
- <input type="submit" value="Sign up">
4
- </div>
1
+ <form class="mailchimp-form" action="{{ site.data.mailchimp.action-value }}?SIGNUP={{ include.signup_source | default: post.mailchimp-form.signup_source | default: "Home" | cgi_escape }}" method="POST">
2
+ <input type="hidden" name="u" value="{{ site.data.mailchimp.user-value }}">
3
+ <input type="hidden" name="id" value="{{ site.data.mailchimp.id-value }}">
4
+
5
+ <input class="input" type="text" name="{{ site.mailchimp.email-value }}" placeholder="Email address" required>
6
+ <input class="input" type="submit" value="{{ include.button_text | default: post.mailchimp-form.button_text | default: site.data.mailchimp.copywriting.button_text | default: "Sign up" }}">
7
+ </form>
@@ -4,7 +4,7 @@
4
4
 
5
5
  <div class="container">
6
6
 
7
- <a class="site-title" href="{{ site.url }}">{{ site.title }}</a>
7
+ <a class="site-title" href="{{ site.url }}">{% unless site.logo_path == "" %}<img class="site-logo" src="{{ site.logo_path }}">{% else %}{{ site.title }}{% endunless %}</a>
8
8
 
9
9
  <div class="navigation-links">
10
10
 
data/_layouts/home.html CHANGED
@@ -4,16 +4,13 @@ layout: default
4
4
 
5
5
  <header class="text-center vertical-center home-header" style="background-image: url({{ site.data.home.background_path | default: "/assets/pattern.svg" }});">
6
6
 
7
- <div class="small-container">
7
+ <div class="small-container{% unless site.logo_path == "" %} push-down{% endunless %}">
8
8
 
9
9
  <h2 class="no-margin-top">{{ site.data.home.heading | default: "One morning, when Gregor Samsa woke from troubled dreams." }}</h2>
10
10
 
11
11
  {{ site.data.home.body_markdown | default: "Ulysses, Ulysses - Soaring through all the galaxies. In search of Earth, flying in to the night. Ulysses, Ulysses - Fighting evil and tyranny, with all his power, and with all of his might. Ulysses - no-one else can do the things you do. Ulysses - like a bolt of thunder from the blue." | markdownify }}
12
12
 
13
- <div class="mailchimp-form">
14
- <input type="text" name="EMAIL" placeholder="Email address">
15
- <input type="submit" value="Sign up">
16
- </div>
13
+ {% include mailchimp-form.html %}
17
14
 
18
15
  </div>
19
16
 
@@ -1,6 +1,10 @@
1
1
  /* Layout
2
2
  =============== */
3
3
 
4
+ .push-down {
5
+ margin-top: 60px;
6
+ }
7
+
4
8
  .main {
5
9
  position: relative;
6
10
  }
@@ -105,11 +109,11 @@
105
109
  font-size: 1.1rem;
106
110
  }
107
111
 
108
- .mailchimp-form input {
112
+ .mailchimp-form .input {
109
113
  height: $large-buttons;
110
114
  }
111
115
 
112
- .mailchimp-form input:first-of-type {
116
+ .mailchimp-form .input[type=text] {
113
117
  width: 80%;
114
118
  }
115
119
 
@@ -20,6 +20,7 @@
20
20
  display: flex;
21
21
  flex-direction: row;
22
22
  justify-content: space-between;
23
+ align-items: center;
23
24
  }
24
25
 
25
26
  .main-navigation a {
@@ -29,3 +30,10 @@
29
30
  .navigation-links a {
30
31
  padding: $padding;
31
32
  }
33
+
34
+ .site-logo {
35
+ max-width: 200px;
36
+ max-height: 100px;
37
+ object-fit: contain;
38
+ object-position: center;
39
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scoobr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon