slow-steps 0.4.0 → 0.4.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: bbad31b2a8aaea8349d5af8c79aa8b6fb3678e131c2b0fda6bb7daa68b331d51
4
- data.tar.gz: 9e1b70d5ee7bc2e102e4e1fa30cedd1f6b7ecadf23816438a15b6d885a40ed34
3
+ metadata.gz: e4a1d4bde8448a9b326115676b5b1ff9d15522b3ccff4c67861c3081d5ad7db5
4
+ data.tar.gz: f78cfe5499f41c77606a9b08c37ad01a38f60a6cce554eb43bf38769be26e0a2
5
5
  SHA512:
6
- metadata.gz: 5e3164e6bf919b747ca3f25f96cced25aee3fbabb934d0d3176b063f2aa3a31f40b2317d5b4a0acf32fe838df1eb27f2c74247cc48939d45f2f7c39d60034e9c
7
- data.tar.gz: 5ab6d9779c3ffc803772a8e2c64327442910d353d2c008e293bbf9101d29f8ef61f9467a77633bb58b9e2c4c416c47999e74a58b64802e78c7d9f03d95057b94
6
+ metadata.gz: 1ac85811ac4949da04d07b7d2de9f56617d4d87edfb7c75de70b808198eaff716228bc62582e80991c136d49e214bfe109825d8afa45935bf978965be08f874d
7
+ data.tar.gz: a162ddf4369a1cd0aad3ca6ca728b77a961c4105eeb98437cecd25e480fa254efbee90af6e9302e86b3787a3d3df38bb0debdf7781fd1c9704736744c11c2b77
@@ -0,0 +1,21 @@
1
+ <!--
2
+ This is where we put scripts for managing cookie consent
3
+ This is placed before /body along with _include/scripts.html
4
+ -->
5
+
6
+ <script src="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.js" data-cfasync="false"></script>
7
+
8
+ <script>
9
+ window.cookieconsent.initialise({
10
+
11
+ "theme": "block",
12
+ "position": "top",
13
+ "content": {
14
+ "message": "{{ site.cookieconsent.message }}",
15
+ "dismiss": "{{ site.cookieconsent.button }}",
16
+ "link": "Tell me more.",
17
+ "href": "/privacy-policy/#cookies",
18
+ "target": "_self"
19
+ }
20
+ });
21
+ </script>
@@ -11,53 +11,85 @@
11
11
  <li class="ft__company__logo">
12
12
  {% include /branding/site-logo.svg %}
13
13
  </li>
14
- <li class="ft__company__no">Registered in England and Wales, company number 12281171.</li>
14
+
15
+ <li class="ft__company__no">{{ site.company.registration }} {{ site.company.number }}.</li>
16
+ <!--
15
17
  <li class="address"><h4>Registered office</h4></li>
16
18
  {% for item in site.postal_add %}
17
19
  <li class="address">{{ item[1] }}</li>
18
20
  {% endfor %}
19
-
20
- <!--
21
- <ul class="social-media">
22
-
23
- {% for social in site.socials %}
24
- <li class="social-media-item">
25
- <a href="{{ social.url }}">
26
- <i class="fab fa-{{ social.icon }} social--{{ social.name }} social-media-link"></i></a>
27
- </li>
28
- {% endfor %}
29
-
30
- </ul>
31
- -->
21
+ -->
32
22
  </ul>
33
23
 
34
24
  </div>
35
25
  </div>
36
26
 
27
+
28
+
37
29
  <div class="ft__sitemap">
38
30
  <div class="ft__sitemap--menu">
31
+
32
+ {% if page.url != "/" %}
33
+
34
+ <h2 class="ft__sitemap--header">COMAPNY INFORMATION</h2>
35
+
36
+ <div class="ft__sitemap--env-wrap">
37
+
38
+ {% for item in site.data.menu.navigation %}
39
+
40
+ {% if item.env == page.env %}
41
+
42
+ <div class="ft__sitemap--env">
43
+
44
+ <ul class="ft__sitemap--submenu ft__sitemap--company">
45
+
46
+ {% for sub in item.submenu %}
47
+ {% if sub.id == 'footer' %}
48
+
49
+ <li><a class="ft__sitemap--link " href="{{ sub.url | relative_url }}">{{ sub.alt }}</a></li>
50
+
51
+ {% endif %}
52
+ {% endfor %}
53
+
54
+ </ul>
55
+ </div>
56
+ {% endif %}
57
+
58
+ {% endfor %}
59
+
60
+ </div>
61
+
62
+ {% endif %}
63
+
64
+
65
+
39
66
  <h2 class="ft__sitemap--header">INFORMATION FOR</h2>
40
67
 
41
68
  <div class="ft__sitemap--env-wrap">
42
- {% for item in site.data.menu.navigation %}
69
+ {% for item in site.data.menu.navigation %}
43
70
 
44
71
  <div class="ft__sitemap--env">
45
72
 
46
73
  <h3 class="ft__sitemap--env-header">{{ item.name }}</h3>
47
74
  <ul class="ft__sitemap--submenu">
48
- {% for sub in item.submenu %}
49
- {% if sub.id != 'contact' %}
75
+ {% for sub in item.submenu %}
76
+ {% if sub.id == 'nav' %}
77
+
50
78
  <li><a class="ft__sitemap--link" href="{{ sub.url | relative_url }}">{{ sub.alt }}</a></li>
79
+
51
80
  {% endif %}
52
- {% endfor %}
81
+ {% endfor %}
53
82
  </ul>
54
83
  </div>
55
84
 
56
- {% endfor %}
85
+ {% endfor %}
86
+
87
+ </div>
57
88
 
58
- </div>
59
89
  </div>
60
90
  </div>
91
+
92
+
61
93
  <div class="ft__contact">
62
94
 
63
95
  <h2 class="ft__contact--header">Connect with us</h2>
@@ -1,3 +1,6 @@
1
+
2
+ <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/cookieconsent@3/build/cookieconsent.min.css" media="none" onload="if(media!='all')media='all'" />
3
+
1
4
  <!-- Animate on scroll, js is in footer -->
2
5
  <link rel="stylesheet" type="text/css" href="{{ '/assets/vendor/aos/aos.css' | relative_url }}" media="none" onload="if(media!='all')media='all'" />
3
6
 
@@ -10,9 +10,9 @@
10
10
  </div>
11
11
 
12
12
  {% if page.url != "/" %}
13
-
13
+ <!-- exclude on home -->
14
14
  {% if page.url != "/error-pages/404" %}
15
-
15
+ <!-- exclude on error pages -->
16
16
  <ul class="social-media">
17
17
  {% for social in site.socials %}
18
18
  <li class="social-media-item">
@@ -26,9 +26,13 @@
26
26
  {% for item in site.data.menu.navigation %}
27
27
  <li class="nav-group">
28
28
  <a href="{{ item.url | relative_url }}" class="nav-group-link nav-link {{ item.env }}-group-link">
29
- <span>{{ item.name }}</span></a>
29
+
30
+ <span>{{ item.name }}</span>
31
+ </a>
32
+
30
33
  <div class="nav-group-content {{ item.env }}-group">
31
34
  {% for sub in item.submenu %}
35
+ {% if sub.id == 'nav' %}
32
36
  <div class="nav-group-container">
33
37
  <a
34
38
  class="
@@ -36,6 +40,9 @@
36
40
  sub-link
37
41
  {% if page.url == sub.url %}
38
42
  current--url
43
+ {% endif %}
44
+ {% if sub.cta == true %}
45
+ nav-cta
39
46
  {% endif %}" href="{{ sub.url | relative_url }}">
40
47
  <span>{{ sub.name }}</span></a>
41
48
 
@@ -50,6 +57,7 @@
50
57
  {% endif %}
51
58
 
52
59
  </div>
60
+ {% endif %}
53
61
  {% endfor %}
54
62
  </div>
55
63
  </li>
@@ -26,6 +26,8 @@
26
26
 
27
27
  <script type="text/javascript" src="{{ '/assets/vendor/aos/aos.js' | relative_url }}" ></script>
28
28
 
29
+ {% include cookie-consent.html %}
30
+
29
31
  <script>
30
32
  AOS.init({
31
33
  disable: false,
@@ -17,10 +17,10 @@ Last full read through 27/12/2020
17
17
  {%- assign env = site.data.menu.navigation | where: 'env', 'pwp' -%}
18
18
  {%- assign env = env[0] -%}
19
19
 
20
- {%- assign cta = env.submenu | where: 'id', 'cta' -%}
20
+ {%- assign cta = env.submenu | where: 'cta', 'true' -%}
21
21
  {%- assign cta = cta[0] -%}
22
22
 
23
- {%- assign cta_2 = env.submenu | where: 'id', 'landing' -%}
23
+ {%- assign cta_2 = env.submenu | where: 'cta', 'landing' -%}
24
24
  {%- assign cta_2 = cta_2[0] -%}
25
25
 
26
26
  <div class="page__half">
@@ -51,10 +51,10 @@ Last full read through 27/12/2020
51
51
  {%- assign env = site.data.menu.navigation | where: 'env', 'clinician' -%}
52
52
  {%- assign env = env[0] -%}
53
53
 
54
- {%- assign cta = env.submenu | where: 'id', 'cta' -%}
54
+ {%- assign cta = env.submenu | where: 'cta', 'true' -%}
55
55
  {%- assign cta = cta[0] -%}
56
56
 
57
- {%- assign cta_2 = env.submenu | where: 'id', 'landing' -%}
57
+ {%- assign cta_2 = env.submenu | where: 'cta', 'landing' -%}
58
58
  {%- assign cta_2 = cta_2[0] -%}
59
59
 
60
60
  <div class="page__half">
@@ -73,6 +73,7 @@
73
73
  li
74
74
  //line-height: 2rem
75
75
  list-style: none
76
+
76
77
  &:last-child
77
78
  @include default-trans
78
79
  margin: auto
@@ -88,6 +89,7 @@
88
89
  a
89
90
  text-decoration: none
90
91
 
92
+
91
93
  .ft__sitemap--link
92
94
  //text-decoration: none
93
95
  color: inherit
@@ -220,7 +222,7 @@
220
222
  width: 40vw
221
223
 
222
224
  .ft__sitemap, .ft__contact
223
- margin-top: 9.5rem
225
+ margin-top: 0
224
226
 
225
227
 
226
228
  .ft__sitemap--submenu
@@ -250,9 +252,11 @@
250
252
  list-style: none
251
253
 
252
254
  &:last-child
253
- margin-top: 5rem
255
+ //margin-top: 5rem
256
+ margin-bottom: 8rem
254
257
  width: auto
255
258
  border: solid 1px $opd-coral
259
+
256
260
  .ft__sitemap--link
257
261
  @include default-trans
258
262
  text-align: center
data/_sass/global.sass CHANGED
@@ -392,3 +392,40 @@ $svg-text-offset: 60px
392
392
 
393
393
  span
394
394
  color: $white
395
+
396
+
397
+ .cc-window
398
+ background-color: $opd-blue
399
+ display: flex
400
+ align-items: center
401
+ position: fixed
402
+
403
+ .cc-message
404
+ width: 80vw
405
+ padding: 3rem 2rem
406
+ color: $pure-white
407
+
408
+ .cc-compliance
409
+ width: 20vw
410
+ border-style: none
411
+ height: 100%
412
+
413
+
414
+
415
+ .cc-dismiss
416
+ display: flex
417
+ flex-wrap: nowrap
418
+ background-color: $opd-coral
419
+ border-style: none
420
+ color: $pure-white
421
+ border-radius: 6px
422
+
423
+ &:hover
424
+ background-color: lighten($opd-coral, 10)
425
+
426
+ .cc-link
427
+ text-decoration: none
428
+ color: lighten($opd-coral, 10)
429
+
430
+ &:hover
431
+ color: $opd-coral
@@ -63,6 +63,8 @@
63
63
 
64
64
  .nav-group-content
65
65
  //text-indent: 2rem
66
+ &:last-child
67
+ margin-right: 10rem
66
68
  .nav-link
67
69
  margin: 0
68
70
 
@@ -79,6 +81,19 @@
79
81
  .subsub-link
80
82
  color: $env-primary
81
83
 
84
+ .nav-cta
85
+ @include default-trans
86
+ color: $pure-white
87
+ background-color: $env-primary
88
+ padding: 2rem 2rem!important
89
+ margin-right: 8rem!important
90
+ border-radius: 6px
91
+
92
+ &:before, &:after
93
+ display: none!important
94
+
95
+ &:hover
96
+ background-color: darken($env-primary,10)
82
97
 
83
98
  // Surround current link with ticks
84
99
  .current--url
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slow-steps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Made Slowly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-03 00:00:00.000000000 Z
11
+ date: 2021-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -184,6 +184,7 @@ files:
184
184
  - _includes/build-version.html
185
185
  - _includes/contact-details.html
186
186
  - _includes/contact-form.html
187
+ - _includes/cookie-consent.html
187
188
  - _includes/env_filter.html
188
189
  - _includes/errors/robot-403.svg
189
190
  - _includes/errors/robot-404.svg