hey-world 0.1.7 → 1.0.2

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
  SHA256:
3
- metadata.gz: '0889dfc0f44e4a5b496aa75795cec81b5c51497501a4a44366eab84e028d05cf'
4
- data.tar.gz: 27affa260fa46f0ba05a51bb679ff2b101fd703fe991e7f86ab994b27619340f
3
+ metadata.gz: 93ced1e140d6f6b8d706b8e9f8b7f5fa0a949304b549919b1d12a1448e2db74e
4
+ data.tar.gz: d7bb47baa3ca196d0e78bbec4ede86b836fe06f69c3fff710f6081476ef5893b
5
5
  SHA512:
6
- metadata.gz: 8889e5e3fb26fd43fbaf0db76ad9cee3c6c8ce38b8a4c27e627d2652c475b93400911ca9f0923df8eaf786060d207b2cf8557e3a88dc06bea84a16c64315c125
7
- data.tar.gz: 48851ca7ee3e1c4bdb39710e6392f18953108054ac1e5188943256c4b16efff85898bc41c22486b9745bf5a4079e967d996357ffbc4eef0547c074158906e9be
6
+ metadata.gz: 4705b4acc61b3a79021faaf7fe9593ff8e6a07246e6c631c0d471c7b5950cdcfadc316d7d36f40b229d3a322144258b2123537cc0f6302c95f73120cee22e13a
7
+ data.tar.gz: 65eedbf7ae6c60ab7cea4d0c41deda95254118373110bfd66548fca0dd3726b35deda159e9f54046bb50e8244e9b043fcebc248dc1f6903fef6f3a54627027b4
@@ -1,7 +1,7 @@
1
1
  <div class="grid-item">
2
2
  <div class="newsletter-container">
3
3
  <!-- Begin Mailchimp Signup Form -->
4
- <div id="mc_embed_signup">
4
+ <div class="form-container">
5
5
  <form
6
6
  action="//{{site.mailchimp}}"
7
7
  method="post"
@@ -0,0 +1,27 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% if site.mailchimp %} {% include subscribe-form.html %} {% endif %} {% for
6
+ post in site.posts %}
7
+ <div class="grid-item">
8
+ <article class="post-container">
9
+ <span class="date"> {{ post.date | date: '%B %d, %Y' }} </span>
10
+ <p class="post-title">{{post.title}}</p>
11
+ <p class="excerpt">
12
+ {% if post.description %}{{ post.description }}{% else %}{{ post.content |
13
+ strip_html | truncate: 300 }}{% endif %}
14
+ </p>
15
+ <a class="card-link" href="{{post.url}}"></a>
16
+ <div class="read-more-section">
17
+ <span class="read-more-button">Read more</span>
18
+ </div>
19
+ </article>
20
+ </div>
21
+ {% endfor %} {% if paginator.next_page %}
22
+ <div class="grid-item">
23
+ <div class="pagination">
24
+ <a class="pagination-next" href="{{post.url}}">See more posts »</a>
25
+ </div>
26
+ </div>
27
+ {% endif %}
@@ -4,13 +4,11 @@ body {
4
4
  }
5
5
 
6
6
  .main-container {
7
- position: relative;
8
- padding: 1.6rem;
7
+ padding: 0.4rem;
9
8
  position: relative;
10
9
  }
11
10
 
12
11
  .grid-container {
13
- position: relative;
14
12
  display: grid;
15
13
  max-width: 790px;
16
14
  margin: 0 auto;
@@ -66,7 +64,7 @@ body {
66
64
  }
67
65
 
68
66
  .post {
69
- margin-top: 0;
67
+ margin-top: 1rem;
70
68
  text-align: center;
71
69
  color: #ece9e6;
72
70
  blockquote {
@@ -109,6 +107,8 @@ body {
109
107
  }
110
108
 
111
109
  .newsletter-container {
110
+ position: relative;
111
+ padding: 1.5rem;
112
112
  text-align: center;
113
113
  border-radius: 0.2rem;
114
114
  border: 1px solid #3a444e;
@@ -118,10 +118,10 @@ body {
118
118
  margin-bottom: 1.6rem;
119
119
  transform: rotate(-1deg);
120
120
  box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.15);
121
- padding: 2em;
122
121
  .form-input {
123
122
  display: flex;
124
- justify-content: center;
123
+ box-sizing: border-box;
124
+ margin-top: 1rem;
125
125
  }
126
126
  .title {
127
127
  font-weight: bold;
@@ -136,10 +136,11 @@ body {
136
136
  box-sizing: border-box;
137
137
  }
138
138
  input[type="email"] {
139
- padding: 12px 20px;
140
- margin: 8px 0;
141
- box-sizing: border-box;
139
+ padding: 0.65rem 1em;
140
+ margin: 0;
142
141
  border-top-left-radius: 3rem;
142
+ display: block;
143
+ width: 100%;
143
144
  border: 1px solid #3a444e;
144
145
  color: #ece9e6;
145
146
  font-size: 14px;
@@ -158,15 +159,14 @@ body {
158
159
  border: 1px solid rgba(81, 203, 238, 1);
159
160
  }
160
161
  input[type="submit"] {
162
+ padding: 0.5rem 1em;
161
163
  border: 1px solid #3a444e;
162
164
  border-left-color: transparent;
163
- margin: 8px 0;
164
- box-sizing: border-box;
165
+ margin: 0;
165
166
  border-top-right-radius: 3rem;
166
167
  border-bottom-right-radius: 3rem;
167
168
  color: #ece9e6;
168
169
  font-size: 14px;
169
- padding: 0.5em 0.9em;
170
170
  cursor: pointer;
171
171
  background-color: #2d3643;
172
172
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hey-world
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcus Heng
@@ -71,6 +71,7 @@ files:
71
71
  - _includes/main.scss
72
72
  - _includes/subscribe-form.html
73
73
  - _layouts/default.html
74
+ - _layouts/home.html
74
75
  - _layouts/page.html
75
76
  - _layouts/post.html
76
77
  - _sass/2-base/_base.scss