hey-world 0.1.5 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a225ea32dfeef4cb61ca447a275db040c1d116450c29fda2fb6937bcddd8bcf
4
- data.tar.gz: a10ef45365be03a13573ac278f807e26fa3e44bfbe023ef38f4a1c1abf246d6c
3
+ metadata.gz: bbbbb1c52dc22c141424f6927ced8ac80450bc8d2e9177172ff8366e1c1fc101
4
+ data.tar.gz: 07e34821e86897294d03bb369d47640f1cf78b6b52f4629d659c1e3f5f43db50
5
5
  SHA512:
6
- metadata.gz: 2fdf2be46e0d05a0c0c442a6630419c35e9ce76e54f668aced9a7d219c116c392b52cbe8de7ac7e7c7b44fcc1c68a7b536d764ed0dc1e4d106b7ccca4518edcf
7
- data.tar.gz: '082af9208cfa2bf808e521f418325b3be1c18387b4f6cb6a49d800dc09d956668aa2585e2fc236708c8a9a5b6a27f5e337c88559fab8933756cfbc0c76c233c5'
6
+ metadata.gz: 9e2b2800fae0dfbe936aa24ff228f992d302eefcc87ebba5dc177128230dac911a3e5810d8973d1e39f5ca036d3868f672ba03489c0d0b8eab32e95deed9e7b1
7
+ data.tar.gz: c33b3385552c9b6bf5f33125dddebf28a0e75cb15b265a5e7eefcd7e2545c98400dc3aa6751aa5ed43b4e1fd504aa8ebc529977b0d8508ef39d8ad27a53325f4
data/README.md CHANGED
@@ -1,6 +1,18 @@
1
1
  # hey-world
2
2
 
3
- This theme is inspired by Hey by Basecamp. They have recently introduce https://hey.com/world/ and really like the minimal look for the blogging page. Here is one example by [DHH](https://world.hey.com/dhh/)
3
+ This theme is inspired by Hey by Basecamp. They have recently introduced https://hey.com/world/ and I really like the minimal look for the blogging page. Here is one example by [DHH](https://world.hey.com/dhh/).
4
+
5
+ This is what this theme looks like for a jekyll project:
6
+ ![sample](./sample.png)
7
+
8
+ Or you can visit [my blog](https://marcushwz.netlify.app/) where I have hosted it on Netlify using this theme.
9
+
10
+ ## Usage
11
+
12
+ This theme is tested to be working on Netlify, simply follow the installation procedures below and you will have the theme in place.
13
+ The idea of this theme is to keep things very minimal, so the theme is mainly focusing on the index.html and page.html. There are no suport for `Tag or Categories` for now.
14
+
15
+ This theme is not tested on GitHub Pages, but it seems like GitHub Pages does not support gem based theme. So you might have to copy those necessary folders into your Jekyll project if you are planning to host your blog on GitHub Pages.
4
16
 
5
17
 
6
18
  ## Installation
@@ -0,0 +1,49 @@
1
+ <div class="grid-item">
2
+ <div class="newsletter-container">
3
+ <!-- Begin Mailchimp Signup Form -->
4
+ <div id="mc_embed_signup">
5
+ <form
6
+ action="//{{site.mailchimp}}"
7
+ method="post"
8
+ id="mc-embedded-subscribe-form"
9
+ name="mc-embedded-subscribe-form"
10
+ target="_blank"
11
+ >
12
+ <label for="EMAIL"
13
+ >Subscribe below to get future posts from<br /><span
14
+ >{{site.author.name}}</span
15
+ ></label
16
+ >
17
+ <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
18
+ <div style="position: absolute; left: -5000px" aria-hidden="true">
19
+ <input
20
+ type="text"
21
+ name="b_becbf687e29d6ebb24d593c8b_d1b189ae5a"
22
+ tabindex="-1"
23
+ value=""
24
+ />
25
+ </div>
26
+ <div class="form-input">
27
+ <input
28
+ type="email"
29
+ value=""
30
+ name="EMAIL"
31
+ class="email"
32
+ id="mce-EMAIL"
33
+ placeholder="Type your email..."
34
+ required
35
+ />
36
+ <input
37
+ type="submit"
38
+ value="Subscribe"
39
+ name="subscribe"
40
+ id="mc-embedded-subscribe"
41
+ class="button"
42
+ />
43
+ </div>
44
+ </form>
45
+ </div>
46
+
47
+ <!--End mc_embed_signup-->
48
+ </div>
49
+ </div>
@@ -27,6 +27,8 @@
27
27
  </style>
28
28
  </head>
29
29
  <body>
30
- <div class="grid-container">{% include header.html %} {{ content }}</div>
30
+ <div class="main-container">
31
+ <div class="grid-container">{% include header.html %} {{ content }}</div>
32
+ </div>
31
33
  </body>
32
34
  </html>
@@ -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 %}
data/_layouts/post.html CHANGED
@@ -11,3 +11,5 @@ layout: default
11
11
  <div class="content">{{content}}</div>
12
12
  </article>
13
13
  </div>
14
+
15
+ {% if site.mailchimp %} {% include subscribe-form.html %} {% endif %}
@@ -1,13 +1,17 @@
1
1
  body {
2
2
  background-color: #1b2733;
3
- // font-family: "Roboto Slab", serif;
4
3
  font-family: "Montserrat", sans-serif;
5
- padding: 0 0 6.4rem;
4
+ }
5
+
6
+ .main-container {
7
+ position: relative;
8
+ padding: 1.6rem;
9
+ position: relative;
6
10
  }
7
11
 
8
12
  .grid-container {
13
+ position: relative;
9
14
  display: grid;
10
- padding: 10px;
11
15
  max-width: 790px;
12
16
  margin: 0 auto;
13
17
  justify-content: center;
@@ -62,7 +66,7 @@ body {
62
66
  }
63
67
 
64
68
  .post {
65
- margin-top: 0;
69
+ margin-top: 1rem;
66
70
  text-align: center;
67
71
  color: #ece9e6;
68
72
  blockquote {
@@ -104,6 +108,70 @@ body {
104
108
  }
105
109
  }
106
110
 
111
+ .newsletter-container {
112
+ text-align: center;
113
+ border-radius: 0.2rem;
114
+ border: 1px solid #3a444e;
115
+ color: #ece9e6;
116
+ margin: 0 auto;
117
+ max-width: 26rem;
118
+ margin-bottom: 1.6rem;
119
+ transform: rotate(-1deg);
120
+ box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.15);
121
+ padding: 2em;
122
+ .form-input {
123
+ display: flex;
124
+ justify-content: center;
125
+ }
126
+ .title {
127
+ font-weight: bold;
128
+ font-size: 24px;
129
+ }
130
+ .content {
131
+ margin-top: 1.6rem;
132
+ }
133
+ label {
134
+ font-size: 13px;
135
+ font-weight: bold;
136
+ box-sizing: border-box;
137
+ }
138
+ input[type="email"] {
139
+ padding: 12px 20px;
140
+ margin: 8px 0;
141
+ box-sizing: border-box;
142
+ border-top-left-radius: 3rem;
143
+ border: 1px solid #3a444e;
144
+ color: #ece9e6;
145
+ font-size: 14px;
146
+ border-right-color: transparent;
147
+ border-bottom-left-radius: 3rem;
148
+ background-color: #1b2733;
149
+ ::placeholder {
150
+ color: #5e656c;
151
+ opacity: 1;
152
+ }
153
+ }
154
+ input[type="email"]:focus,
155
+ textarea:focus {
156
+ outline: none;
157
+ box-shadow: 0 0 5px rgba(81, 203, 238, 1);
158
+ border: 1px solid rgba(81, 203, 238, 1);
159
+ }
160
+ input[type="submit"] {
161
+ border: 1px solid #3a444e;
162
+ border-left-color: transparent;
163
+ margin: 8px 0;
164
+ box-sizing: border-box;
165
+ border-top-right-radius: 3rem;
166
+ border-bottom-right-radius: 3rem;
167
+ color: #ece9e6;
168
+ font-size: 14px;
169
+ padding: 0.5em 0.9em;
170
+ cursor: pointer;
171
+ background-color: #2d3643;
172
+ }
173
+ }
174
+
107
175
  .post-container {
108
176
  position: relative;
109
177
  padding: 1.6rem;
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.5
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcus Heng
@@ -69,11 +69,13 @@ files:
69
69
  - README.md
70
70
  - _includes/header.html
71
71
  - _includes/main.scss
72
+ - _includes/subscribe-form.html
72
73
  - _layouts/default.html
74
+ - _layouts/home.html
73
75
  - _layouts/page.html
74
76
  - _layouts/post.html
75
77
  - _sass/2-base/_base.scss
76
- homepage: http://website.com
78
+ homepage: https://github.com/marcushwz/hey-world
77
79
  licenses:
78
80
  - MIT
79
81
  metadata:
@@ -96,5 +98,5 @@ requirements: []
96
98
  rubygems_version: 3.1.4
97
99
  signing_key:
98
100
  specification_version: 4
99
- summary: Inspired by Hey World by Basecamp
101
+ summary: Minimal Jekyll theme inspired by HEY World from Basecamp
100
102
  test_files: []