slow-steps 0.1.10 → 0.2.1

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: e9a95b4b4dd8828879fc02993396b89d73f860150fc517f6eb107e0ec53d8bf4
4
- data.tar.gz: b31c9f0c5bb63b9786917d63cc6b905c0e5d34ed3b93d86b204f1ee10eeb74a9
3
+ metadata.gz: ca83251dc806a7947a8b9de6c211911db6044e79b04cca7126824c08c1624ddb
4
+ data.tar.gz: 9fe0a9bc5eec32ead952396d1117b62ccfb7475d6d69f83e321b1318a60e06ec
5
5
  SHA512:
6
- metadata.gz: 4d221bdd2f95a1e850aebcfbbca361e801eeb5b633488647875ffb1ed35b55a7fa8ad7485fe66a450a3f7b330ba64b1dd5597947abab1dc2ea23765f4f709d6c
7
- data.tar.gz: 7b95604276b53832b699b118e20aef8265ca9680e559e81da82772573c8505be1513c4d7e23d67de5d8c88b83a8ac7618e41ff19b86e28c2d968fa3a7191d48c
6
+ metadata.gz: ad38fcc40813564bf185bfcd509e62070b1c232bd07a1364fe14bc180f5feab215e8d1b04adc163117b5ffd8bd691e28ee5d7007d3aeeb2a5fd7926d712383bd
7
+ data.tar.gz: 8759eaec96fbe2a60440e72f96ce6c36167cc11de10d7e9cd995f530cb00bd32feaf2c82fb804124d3aed501de79f4d28261824ff570723d68cb267923794349
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Made Slowly and contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,55 +1,53 @@
1
1
  ---
2
2
  ---
3
- # Slow Steps, a Jekyll theme
3
+ # [Slow Steps, a Jekyll theme](https://www.gaitq.madeslowly.xyz/clinician/about/)
4
4
 
5
- A jekyll theme built for GaitQ
5
+ [![Ruby gem](https://badge.fury.io/rb/slow-steps.svg)](https://badge.fury.io/rb/slow-steps)
6
+
7
+ [![LICENSE](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://github.com/madeslowly/slow-steps/blob/master/LICENSE)
8
+
9
+ [![Jekyll](https://img.shields.io/badge/jekyll-%3E%3D%203.7-blue.svg)](https://jekyllrb.com/)
10
+
11
+ A bold jekyll theme built for gaitQ. Designed to have two distinct styling, depending on current URL.
6
12
 
7
13
  ## Jekyll Theme Scaffolding
8
14
 
9
- How this repo is organised and what the various files are. All posts, layouts, includes, stylesheets, assets, and whatever else is grouped nicely under the root folder. The compiled Jekyll site outputs to `_site/`, which is never pushed to this repo, see https://www.gaitq.madeslowly.xyz/. General flow starts with a `.md` file in our root. With Front Matter, we declare our layout which points to a structural `.html` file in `_layouts`. From here, the layout file can call in data from our `_config.yml` with `{{ site.variable }}` and from any of our `YAML` files in `_data/file.yml` with `{{ site.data.file.variable }}`. The layout can also pull in other structural html snippets from `_includes` with `{% raw %}{% include relative/path/file.html %}{% endraw %}`.
15
+ How this repo is organised and what the various files are. All posts, layouts, includes, stylesheets, assets, and whatever else is grouped under the root folder. The compiled Jekyll site outputs to `_site/`, which is never pushed to this repo, see https://www.gaitq.madeslowly.xyz/. General flow starts with a `.md` file in our root. With Front Matter, we declare our layout which points to a structural `.html` file in `_layouts`. From here, the layout file can call in data from our `_config.yml` with `{{ site.variable }}` and from any of our `YAML` files in `_data/file.yml` with `{{ site.data.file.variable }}`. The layout can also pull in other structural html snippets from `_includes` with `{% raw %}{% include relative/path/file.html %}{% endraw %}`.
10
16
 
11
17
  It is worth noting that _include files can also perform the tasks just described. So, for example, when the `deafult.html` layout is executed (the penultimate step for *all* `.md` files), the `head.html` snippet is called, which in turn calls `og-meta.html`. Based on our sites settings and any relevant Front Matter belonging to the calling file, `og-meta.html` compiles all our `og:meta` tags and passes them to `head.html` which after adding further code, passes on to our default layout where it is placed at the top of our webpages `html`.
12
18
 
13
19
  ```
14
20
  https://github.com/madeslowly/slow-steps/
15
21
  |
16
- ├─ _config.yml/ # Jekyll build settings and data, site.variable
22
+ ├─ _config.yml/ # Website settings
17
23
  |
18
- ├─ _data/ # Site wide data, site.data.variable
24
+ ├─ _data/ # Site data
19
25
  | | |
20
- | | ├─ forms/ # inputs for MailChimp forms, picked up by _includes/forms/
26
+ | | ├─ forms/ # Inputs for MailChimp forms
21
27
  | |
22
- | ├─ copy.yml # Website copy picked up with {{ site.data.copy.copy.variable }}
28
+ | ├─ copy.yml # Website copy
23
29
  | |
24
- | ├─ menu.yml # Menu structure for GaitQ.com
30
+ | ├─ menu.yml # Menu structure
25
31
  |
26
32
  ├─ _includes/ # HTML and Liquid templating
27
33
  | |
28
34
  | ├─ branding/ # Site branding SVGs
29
35
  | | |
30
- | | ├─ site__logo.svg # Site wide logo with CSS classes, see front matter comments for class details.
31
- | |
32
- | ├─ errors/ # Error page SVGs
33
- | | |
34
- | | ├─ robot-403.svg # 403 - Forbidden
35
- | | |
36
- | | ├─ robot-404.svg # 404 - Not Found
37
- | | |
38
- | | ├─ robot-405.svg # 405 - Method Not Allowed
36
+ | | ├─ site__logo.svg # Site wide logo
39
37
  | |
40
38
  | ├─ footer/ # Site wide footers
41
39
  | | |
42
- | | ├─ footer_full.html # Multi div footer with sitemaps and contact etc
40
+ | | ├─ footer_full.html # Multi col footer
43
41
  | | |
44
- | | ├─ footer.html # Simple single div footer with legal links and copyright
42
+ | | ├─ footer.html # Simple footer
45
43
  | |
46
- | ├─ forms/ # MailChimp scaffolding, pulls data from _data/forms/
44
+ | ├─ forms/ # Form scaffolding
47
45
  | | |
48
- | | ├─ mc-register.html # Registration form, data from _data/forms/register
46
+ | | ├─ mc-register.html # MailChimp registration form
49
47
  | |
50
- | ├─ head/ # Header partials, everything inside our <html> tags comes from here.
48
+ | ├─ head/ # Header partials
51
49
  | | |
52
- | | ├─ descriptor/ # Site wide descriptors, basically this is where much of our SEO occurs.
50
+ | | ├─ descriptor/ # Site wide descriptors
53
51
  | | | |
54
52
  | | | ├─ og-meta.html
55
53
  | | | ├─ structured-data.html
@@ -59,7 +57,7 @@ https://github.com/madeslowly/slow-steps/
59
57
  | | | |
60
58
  | | | ├─ conditional.html # Page env: condition --> gaitq_env.css
61
59
  | | |
62
- | | ├─ head.html # Routine to collect header partials, page.env and page.layout dependencies. We also open <body> here.
60
+ | | ├─ head.html # Routine to collate header partials
63
61
  | |
64
62
  | ├─ navigation/ # HTML and Liquid templating
65
63
  | | |
@@ -69,7 +67,7 @@ https://github.com/madeslowly/slow-steps/
69
67
  |
70
68
  ├─ _layouts/ # HTML and Liquid templating
71
69
  | |
72
- | ├─ env/ # Environmental specific layouts, passed onto default.html after processing
70
+ | ├─ env/ # Environmental specific layouts
73
71
  | | |
74
72
  | | ├─ clinician.html # Professionals and press
75
73
  | | ├─ pwp.html # Patients and carers
@@ -77,9 +75,9 @@ https://github.com/madeslowly/slow-steps/
77
75
  | |
78
76
  | ├─ compress.html # Final step for all pages. Strips html comments, carriage returns and white space.
79
77
  | |
80
- | ├─ default.html # Wraps page content with header, nav and scripts. For all pages, also this is where Jekyll looks if no front matter defined. Passed onto compress.html after processing.
78
+ | ├─ default.html # Wraps page content with header, nav, scripts and footer.
81
79
  | |
82
- | ├─ error-page.html # Landing page. Passed onto default.html after processing.
80
+ | ├─ error-page.html # HTTP error pages
83
81
  |
84
82
  ├─ _plugins/ # Custom Ruby plugins
85
83
  | |
@@ -135,17 +133,17 @@ https://github.com/madeslowly/slow-steps/
135
133
 
136
134
  `_config.yml` is where most variables are set.
137
135
 
138
- #### title:
136
+ #### `title:`
139
137
 
140
138
  The global title of the website.
141
139
 
142
- #### subtitle:
140
+ #### `subtitle:`
143
141
 
144
142
  The global subtitle of the website.
145
143
 
146
144
  #### Page Titling
147
145
 
148
- Pages are given titles according to,
146
+ Each pages is given a title according to,
149
147
 
150
148
  ```Liquid
151
149
  {% if page.title %}
@@ -155,11 +153,11 @@ Pages are given titles according to,
155
153
  {% endif %}
156
154
  ```
157
155
 
158
- #### description:
156
+ #### `description:`
159
157
 
160
158
  Site wide description, used in head description, og:description, twitter:description and structured data. Overwritten by page front matter, `description:`
161
159
 
162
- #### url:
160
+ #### `url:`
163
161
 
164
162
  Used to generate absolute URLs for sitemaps, feeds and for generating canonical URLs in a page's `<head>`. When developing locally either comment this out or use something like `http://localhost:4000` so all assets load properly. *Don't include a trailing `/`*.
165
163
 
@@ -172,23 +170,23 @@ url: "http://www.gaitq.com"
172
170
  url: ""
173
171
  ```
174
172
 
175
- #### baseurl:
173
+ #### `baseurl:`
176
174
 
177
175
  Used when we are developing a partial.
178
176
 
179
- #### author:
177
+ #### `author:`
180
178
 
181
179
  Author of this Jekyll project. Content authors can be added to _data/authors.yml and assigned in a pages front matter.
182
180
 
183
- #### postal_add:
181
+ #### `postal_add:`
184
182
 
185
183
  Postal address of GaitQ Ltd. Used in structured data.
186
184
 
187
- #### opening_hours:
185
+ #### `opening_hours:`
188
186
 
189
187
  Used in structured data. This lets google know when we are open.
190
188
 
191
- #### logo
189
+ #### `logo:`
192
190
 
193
191
  Site wide logo, used as a default image for Twitter and Facebook. Can be over written by a pages front matter: `image:`.
194
192
 
@@ -16,8 +16,20 @@
16
16
  {% for item in site.postal_add %}
17
17
  <li class="address">{{ item[1] }}</li>
18
18
  {% endfor %}
19
+ <li><a class="ft--link" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
19
20
  <li>{{ site.phone }}</li>
20
- <li>{{ site.email }}</li>
21
+
22
+ <ul class="social-media">
23
+
24
+ {% for social in site.socials %}
25
+ <li class="social-media-item">
26
+ <a href="{{ social.url }}">
27
+ <i class="fab fa-{{ social.icon }} social--{{ social.name }} social-media-link"></i></a>
28
+ </li>
29
+ {% endfor %}
30
+
31
+ </ul>
32
+
21
33
  </ul>
22
34
 
23
35
  </div>
@@ -35,7 +47,7 @@
35
47
  <h4 class="ft__sitemap--env-header">{{ item.name }}</h4>
36
48
  <ul class="ft__sitemap--submenu">
37
49
  {% for sub in item.submenu %}
38
- <li><a href="{{ sub.url }}">{{ sub.alt }}</a></li>
50
+ <li><a class="ft--link" href="{{ sub.url }}">{{ sub.alt }}</a></li>
39
51
  {% endfor %}
40
52
  </ul>
41
53
  </div>
@@ -61,7 +73,7 @@
61
73
  <a href="{{ item.url }}">{{ item.name }}</a>
62
74
  {% endfor %}
63
75
  </div>
64
- <a href="{{ site.author.url }}" class="slogan">made slowly</a>
76
+ <a href="{{ site.author.url }}" class="slogan">Jekyll theme Slow Steps</a>
65
77
  </div>
66
78
 
67
79
  </footer>
@@ -1,33 +1,30 @@
1
1
  <!-- Take inputs from page front matter and calculate the coordinates of the svg elements -->
2
2
  {% assign image_handle = include.image_handle %}
3
3
 
4
- {% if page[image_handle].augment %}
4
+ <!-- get image dimensions -->
5
+ {%- assign imageX = page.images[image_handle].size | split: ', ' | first -%}
6
+ {%- assign imageY = page.images[image_handle].size | split: ', ' | last -%}
5
7
 
6
- <!-- get image dimensions -->
7
- {%- assign imageX = page[image_handle].augment.image | split: ', ' | first -%}
8
- {%- assign imageY = page[image_handle].augment.image | split: ', ' | last -%}
8
+ <!-- pre-assign arrays for circle centers and line ends -->
9
+ {% assign cX = '' | split: ',' %}
10
+ {% assign cY = '' | split: ',' %}
9
11
 
10
- <!-- pre-assign arrays for circle centers and line ends -->
11
- {% assign cX = '' | split: ',' %}
12
- {% assign cY = '' | split: ',' %}
12
+ <!-- loop over all the requested labels -->
13
+ {% for item in page.images[image_handle].labels %}
13
14
 
14
- <!-- loop over all the requested labels -->
15
- {% for item in page[image_handle].augment.labels %}
15
+ <!-- x(i) and y(i) -->
16
+ {% assign ix = item.coord | split: ', ' | first %}
17
+ {% assign iy = item.coord | split: ', ' | last %}
16
18
 
17
- <!-- x(i) and y(i) -->
18
- {% assign ix = item.coord | split: ', ' | first %}
19
- {% assign iy = item.coord | split: ', ' | last %}
19
+ <!-- calculate circle centers as percentage of image size -->
20
+ {% assign cx = ix | times: 100 | divided_by: imageX | append: ', ' %}
21
+ {% assign cy = iy | times: 100 | divided_by: imageY | append: ', ' %}
22
+ <!-- push into arrays -->
23
+ {% assign cX = cX | push: cx %}
24
+ {% assign cY = cY | push: cy %}
20
25
 
21
- <!-- calculate circle centers as percentage of image size -->
22
- {% assign cx = ix | times: 100 | divided_by: imageX | append: ', ' %}
23
- {% assign cy = iy | times: 100 | divided_by: imageY | append: ', ' %}
24
- <!-- push into arrays -->
25
- {% assign cX = cX | push: cx %}
26
- {% assign cY = cY | push: cy %}
26
+ {% endfor %}
27
27
 
28
- {% endfor %}
29
-
30
- {% endif %}
31
28
 
32
29
  <!--
33
30
  in: [imageX, imageY] pixels
@@ -35,6 +32,4 @@ in: [imageX, imageY] pixels
35
32
 
36
33
  out: cX = [cx_1, cx_2, ... , cx_n]
37
34
  cY = [cy_1, cy_2, ... , cy_n]
38
-
39
- X1 = [x1_1, x1_2, ... , x1_n]
40
35
  -->
@@ -0,0 +1,12 @@
1
+ <!--
2
+ insert an image located in assets/images/posts/ and wrap with .post__image div.
3
+ -->
4
+ <div class="post__image">
5
+
6
+ {% picture {{ include.link | prepend: 'posts/' }} --alt {{include.alt}} --img class="post__content--image" %}
7
+
8
+ {% if include.caption %}
9
+ <p class="image--caption">{{ include.caption }}</p>
10
+ {% endif %}
11
+
12
+ </div>
@@ -1,10 +1,55 @@
1
- <!-- include for post images to simplify the ux -->
1
+ <!--
2
+ insert an augmented image located in assets/images/content/
2
3
 
3
- <div class="post__image">
4
+ Usage:
4
5
 
5
- {% picture {{ include.link | prepend: 'posts/' }} --alt include.alt --img class="post__content--image" %}
6
+ <div class="wrapping-class" >
7
+ {% comment %}
8
+ {% include image.html
9
+ image="handle"
10
+ alt="Description"
11
+ class="image-class"
12
+ caption="Optional caption"
13
+ %}
14
+ {% endcomment %}
6
15
 
7
- {% if include.caption %}
8
- <p class="post__image--caption">{{ include.caption }}</p>
16
+ We close the wrapping div before the caption.
17
+
18
+ -->
19
+
20
+
21
+ {% capture path %}
22
+ {{ page.images[include.image].file | prepend: 'content/' }}
23
+ {% endcapture %}
24
+
25
+ {% picture {{ path }}
26
+ --img class="{{ include.class }}"
27
+ --alt {{ include.alt }} %}
28
+
29
+ {% if page.images[include.image].labels %}
30
+
31
+ {% include functions/calc-svg-coord.html image_handle=include.image %}
32
+
33
+ <svg class="svg__augment" width="100%" height="100%" xmlns="http://www.w3.org/2000/svg">
34
+
35
+ {% for item in page.images[include.image].labels %}
36
+ <svg class="svg__labels hidden" x="{{ cX[forloop.index0] | remove: ", " }}%" y="{{ cY[forloop.index0] | remove: ", " }}%" style="overflow: visible">
37
+
38
+ <circle class="svg--elem svg--circle" cx="0%" cy="0%" r="6" />
39
+
40
+ <line class="svg--elem svg--line" x1="0" y1="0" y2="0" />
41
+
42
+ <text class="svg--elem svg--text trans-{% if item.reverse %}right{% else %}left{% endif %}" >{{ item.text }}</text>
43
+
44
+ </svg>
45
+ {% endfor %}
46
+
47
+ </svg>
9
48
  {% endif %}
49
+
50
+ <!-- closing warpping div -->
10
51
  </div>
52
+
53
+ {% if include.caption %}
54
+ <p class="image--caption">{{ include.caption }}</p>
55
+ {% endif %}
@@ -19,7 +19,9 @@
19
19
 
20
20
  <script type="text/javascript" src="{{ "{{ site.baseurl }}/assets/js/calc-mobile-viewport.js" | relative_url }}" async></script>
21
21
 
22
+ {% if page.url != '/' %}
22
23
  <script type="text/javascript" src="{{ "{{ site.baseurl }}/assets/js/nav-scroll.js" | relative_url }}" async></script>
24
+ {% endif %}
23
25
 
24
26
  <script type="text/javascript" src="{{ site.baseurl }}/assets/vendor/aos/aos.js" ></script>
25
27
 
@@ -1,12 +1,12 @@
1
1
 
2
- <div class="embed-container">
3
- <iframe
4
- src="https://player.vimeo.com/video/{{ include.id }}"
5
- width="500"
6
- height="281"
7
- frameborder="0"
8
- webkitallowfullscreen
9
- mozallowfullscreen
10
- allowfullscreen>
11
- </iframe>
2
+ <div class="video__container">
3
+ <iframe
4
+ src="https://player.vimeo.com/video/{{ include.id }}?autoplay=1&title=0&byline=0&portrait=0"
5
+ frameborder="0"
6
+ allow="autoplay"
7
+ webkitallowfullscreen
8
+ mozallowfullscreen
9
+ allowfullscreen>
10
+ </iframe>
12
11
  </div>
12
+ <script src="https://player.vimeo.com/api/player.js"></script>
@@ -21,7 +21,7 @@ Last full read through 29/12/2020
21
21
  <div class="hero hero-65">
22
22
 
23
23
  <div class="hero__overlay h-100">
24
- {% picture {{ page.hero.image | prepend: 'content/' }}
24
+ {% picture {{ page.hero.file | prepend: 'content/' }}
25
25
  --img class="hero__image hero__image--fixed hero-65"
26
26
  --alt {{ page.hero.alt }} %}</div>
27
27
 
@@ -50,9 +50,18 @@ Last full read through 29/12/2020
50
50
  </div>
51
51
  {% endif %}
52
52
 
53
- <div class="about__team">
53
+ <div class="embedded__video about--video">
54
+ <!--
55
+ <h2>Watch our company video</h2>
56
+ -->
57
+ {% include vimeoPlayer.html id="493777125" %}
58
+
59
+ </div>
54
60
 
61
+ <div class="about__team">
62
+ <h2 class="bg--env-50 about__team--title">Meet the team</h2>
55
63
  <div class="team__head bg--env-50">
64
+
56
65
  {% for menu in site.data.team.menu %}
57
66
  <h3 class="team__title team--js-script-{{ menu.script }}"
58
67
  id="team{{ menu.script }}"
@@ -0,0 +1,22 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+
6
+
7
+ <div class="spacefiller"></div>
8
+ <div class="hero hero-65 collage">
9
+
10
+ {% for collage in page.collage %}
11
+ <div class="collage__image__wrap collage__image__wrap-{{ forloop.index }}">
12
+ <h3 class="image__header">{{ collage.reasons }}</h3>
13
+ {% picture {{ collage.image | prepend: 'content/' }}
14
+ --img class="collage__image collage__image-{{ forloop.index }}"
15
+ --alt {{ collage.reasons }} %}
16
+ </div>
17
+ {% endfor %}
18
+ </div>
19
+
20
+ <div class="fullwidth__wrap">
21
+ {{ content }}
22
+ </div>