slow-steps 0.3.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/_config.yml +3 -3
  4. data/_includes/contact-form.html +1 -1
  5. data/_includes/cookie-consent.html +21 -0
  6. data/_includes/footer/footer.html +64 -7
  7. data/_includes/footer/footer_redesign.html +139 -0
  8. data/_includes/forms/mc-register.html +124 -110
  9. data/_includes/functions/calc-svg-coord.html +2 -0
  10. data/_includes/functions/reposition-svg-labels.html +44 -0
  11. data/_includes/head/descriptors/og-meta.html +1 -2
  12. data/_includes/head/descriptors/structured-data.html +3 -3
  13. data/_includes/head/descriptors/twitter-meta.html +1 -1
  14. data/_includes/{google-analytics.html → head/google-analytics.html} +9 -2
  15. data/_includes/head/head.html +6 -4
  16. data/_includes/head/stylesheets.html +3 -0
  17. data/_includes/image-post.html +3 -1
  18. data/_includes/image.html +1 -1
  19. data/_includes/navigation/global.html +20 -4
  20. data/_includes/scripts.html +3 -1
  21. data/_layouts/about.html +1 -1
  22. data/_layouts/careers.html +1 -1
  23. data/_layouts/contact.html +1 -1
  24. data/_layouts/default.html +4 -1
  25. data/_layouts/env/clinician.html +8 -8
  26. data/_layouts/env/landing.html +6 -6
  27. data/_layouts/env/pwp.html +4 -4
  28. data/_layouts/error-page.html +1 -1
  29. data/_layouts/faq.html +4 -1
  30. data/_layouts/feed.html +3 -3
  31. data/_layouts/full-width.html +1 -1
  32. data/_layouts/post.html +3 -3
  33. data/_layouts/register.html +1 -1
  34. data/_sass/_colors/_variables.sass +2 -0
  35. data/_sass/_functions.sass +9 -0
  36. data/_sass/_mixins.sass +6 -3
  37. data/_sass/about.sass +3 -1
  38. data/_sass/breakpoints/about.sass +11 -2
  39. data/_sass/collage.sass +1 -1
  40. data/_sass/contact.sass +2 -2
  41. data/_sass/env/breakpoints/768.sass +16 -11
  42. data/_sass/env/clinician.sass +12 -8
  43. data/_sass/env/landing.sass +18 -3
  44. data/_sass/env/pwp.sass +11 -3
  45. data/_sass/faq.sass +9 -1
  46. data/_sass/feed.sass +2 -2
  47. data/_sass/footer.sass +174 -14
  48. data/_sass/footer_redesign.sass +353 -0
  49. data/_sass/forms/mc-forms.sass +9 -0
  50. data/_sass/global.sass +89 -8
  51. data/_sass/navigation/_variables.sass +3 -3
  52. data/_sass/navigation/base.sass +14 -4
  53. data/_sass/navigation/breakpoints/1024.sass +48 -9
  54. data/_sass/navigation/burger.sass +1 -1
  55. data/_sass/post.sass +7 -1
  56. data/_sass/typography/_variables.sass +1 -1
  57. data/_sass/typography/resets.sass +2 -2
  58. data/assets/css/env/gaitq_clinician.sass +1 -1
  59. data/assets/css/env/gaitq_landing.sass +1 -1
  60. data/assets/css/env/gaitq_pwp.sass +1 -1
  61. data/assets/css/gaitq_errors.sass +1 -1
  62. data/assets/js/mobile-nav-slider.js +1 -1
  63. data/assets/js/svg_text_width.js +4 -4
  64. metadata +7 -6
  65. data/_includes/footer/footer_full.html +0 -79
  66. data/_includes/functions/pull_page_args.html +0 -31
  67. data/_sass/footer_full.sass +0 -183
@@ -1,3 +1,5 @@
1
+ <!-- Liquid function -->
2
+
1
3
  <!-- Take inputs from page front matter and calculate the coordinates of the svg elements -->
2
4
  {% assign image_handle = include.image_handle %}
3
5
 
@@ -0,0 +1,44 @@
1
+ <!-- JS function to reposition SVG labels on images !fullwidth -->
2
+ <!-- We use Front Matter to determine if this script should be included, hence here and not in assets -->
3
+
4
+ <script type="text/javascript">
5
+
6
+ function reposition_svg_labels(){
7
+
8
+ /* get svg labels */
9
+ var svg = document.querySelectorAll('.augment-not-fullwidth .svg__labels');
10
+
11
+ /* rendered image in pixels */
12
+ var x_i_px = document.getElementsByClassName("image--guarantee")[0].offsetWidth ;
13
+ var y_i_px = document.getElementsByClassName("image--guarantee")[0].offsetHeight ;
14
+ var r_i = x_i_px / y_i_px ;
15
+
16
+ /* original image in pixels */
17
+ var x_0_px = {{ page.images.guarantee.size | split: ', ' | first }} ;
18
+ var y_0_px = {{ page.images.guarantee.size | split: ', ' | last }} ;
19
+ var r_0 = x_0_px / y_0_px ;
20
+
21
+ for (let i = 0; i < svg.length; i++) {
22
+
23
+ /* Reversing the calculation we did in Liquid on build */
24
+ var dx_0_px = parseInt( svg[i].getAttribute('x'), 10 ) / 100 * x_0_px ;
25
+ var dy_0_px = parseInt( svg[i].getAttribute('y'), 10 ) / 100 * y_0_px ;
26
+
27
+ if (r_i > r_0 ) { /* x_i / y_i > r_0 so x_i is 100% */
28
+ /* rendered image magnification */
29
+ var scale = x_i_px / x_0_px ;
30
+ var dy_i_px = dy_0_px * scale - ( (y_0_px * scale - y_i_px ) / 2 ) ;
31
+ svg[i].setAttribute("y", ( dy_i_px * 100 / y_i_px + '%') ) ;
32
+
33
+ }
34
+ if (r_i < r_0 ) { /* x_i/y_i < r_0 so y_i is 100% */
35
+ /* rendered image magnification */
36
+ var scale = y_i_px / y_0_px ;
37
+ var dx_i_px = dx_0_px * scale - ( (x_0_px * scale - x_i_px ) / 2 ) ;
38
+ svg[i].setAttribute("x", ( dx_i_px * 100 / x_i_px + '%') ) ;
39
+ }
40
+ };
41
+ }
42
+ reposition_svg_labels()
43
+
44
+ </script>
@@ -8,7 +8,6 @@
8
8
  {% if page.id %}
9
9
  {%- assign facebook = site.socials | where: 'name', 'Facebook' -%}
10
10
 
11
-
12
11
  article" />
13
12
  <meta
14
13
  property=article:publisher
@@ -38,7 +37,7 @@
38
37
  <!-- use local image if it exist but only for posts -->
39
38
 
40
39
  {% if page.id %}
41
- {% assign image = '/posts/' | append: page.image %}
40
+ {% assign image = '/posts/' | append: page.hero %}
42
41
  {% else %}
43
42
  {% assign image = site.fallback_path | append: site.brand %}
44
43
  {% endif %}
@@ -23,7 +23,7 @@
23
23
  /* Person */
24
24
  "@type": "Person",
25
25
  "@context": "http://schema.org",
26
- "name": "{{ site.title }}",
26
+ "name": "{{ site.data.authors.default.name }}",
27
27
  "description": "{{ site.description }}",
28
28
  "image": "{{ site.url }}{{ site.baseurl }}{{ site.fallback_path }}{{ site.brand }}"} ]
29
29
  } , {
@@ -72,12 +72,12 @@
72
72
  "author": {
73
73
  "@type": "Person",
74
74
  "name":
75
- "{%- if page.author -%}{{ site.data.authors[page.author].name }}{%- else -%}{{ site.title }}{% endif %}"
75
+ "{%- if page.author -%}{{ site.data.authors[page.author].name }}{%- else -%}{{ site.data.authors.default.name }}{% endif %}"
76
76
  },
77
77
  "creator": {
78
78
  "@type": "Person",
79
79
  "name":
80
- "{%- if page.author -%}{{ site.data.authors[page.author].name }}{%- else -%}{{ site.title }}{% endif %}"
80
+ "{%- if page.author -%}{{ site.data.authors[page.author].name }}{%- else -%}{{ site.data.authors.default.name }}{% endif %}"
81
81
  },
82
82
  "publisher": {
83
83
  "@type": "Organization",
@@ -3,7 +3,7 @@
3
3
  <meta name="twitter:card" content="summary_large_image" />
4
4
 
5
5
  <meta name="twitter:site" content="@{{ site.data.socials.twitter.username }}" />
6
- <meta name="twitter:creator" content="@{{ site.author.twitter }}">
6
+ <meta name="twitter:creator" content="@{{ site.data.authors.default.twitter }}">
7
7
  <meta name="twitter:title" content="{% if page.url == "/" %} {{ site.title }} | {{ site.subtitle }} {% else %} {{ page.title }} | {{ site.title }}{% endif %}" />
8
8
 
9
9
  <meta name="twitter:description" content="{% if page.description == null %} {{ site.description }}
@@ -1,10 +1,15 @@
1
1
  <!-- This goes before </head> closing tag -->
2
2
 
3
- <!-- Google site verification -->
3
+ {% if site.google.verification %}
4
+
5
+ <!-- Google verification -->
4
6
  <meta name="google-site-verification" content="{{ site.google.verification }}" />
5
7
 
6
- <!-- Google Analytics -->
8
+ {% endif %}
9
+
10
+ {% if site.google.analytics %}
7
11
 
12
+ <!-- Google Analytics -->
8
13
  <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google.analytics }}"></script>
9
14
 
10
15
  <script>
@@ -13,3 +18,5 @@
13
18
  gtag('js', new Date());
14
19
  gtag('config', '{{ site.google.analytics }}');
15
20
  </script>
21
+
22
+ {% endif %}
@@ -26,10 +26,10 @@
26
26
 
27
27
  <meta name="keywords" content="{{ site.keywords }}" />
28
28
 
29
- <meta name="author" content="{{ site.author.name }}" />
29
+ <meta name="author" content="{{ site.data.authors.default.name }}" />
30
30
 
31
31
  {% assign date = 'now' | date: "%Y" %}
32
- <meta name="copyright" content="Copyright {{ site.title | append: ' Ltd. ' | append: date }}" />
32
+ <meta name="copyright" content="Copyright {{ site.title | append: ' Limited ' | append: date }}" />
33
33
 
34
34
  <meta name="robots" content="follow" />
35
35
 
@@ -37,7 +37,7 @@
37
37
 
38
38
  <link rel="preconnect" href="https://fonts.gstatic.com">
39
39
 
40
- <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap" rel="stylesheet">
40
+ <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500&display=swap" rel="stylesheet">
41
41
 
42
42
  <link rel="shortcut icon" type="image/x-icon" href="{{ site.fallback_path | append: site.favicon | relative_url }}">
43
43
 
@@ -50,9 +50,11 @@
50
50
  {% include /head/stylesheets.html %}
51
51
 
52
52
  {% if jekyll.environment == "production" %}
53
- {% include google-analytics.html %}
53
+ {% include head/google-analytics.html %}
54
54
  {% endif %}
55
55
 
56
+
57
+
56
58
  </head>
57
59
 
58
60
  <body class="preload" onload="animate_after_load()">
@@ -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
 
@@ -1,9 +1,11 @@
1
+
2
+
1
3
  <!--
2
4
  insert an image located in assets/images/posts/ and wrap with .post__image div.
3
5
  -->
4
6
  <div class="post__image">
5
7
 
6
- {% picture {{ include.link | prepend: 'posts/' }} --alt {{include.alt}} --img class="post__content--image" %}
8
+ {% picture post {{ include.link | prepend: 'posts/' }} --alt {{include.alt}} --img class="post__content--image image--{{ include.focus }}" %}
7
9
 
8
10
  {% if include.caption %}
9
11
  <p class="image--caption">{{ include.caption }}</p>
data/_includes/image.html CHANGED
@@ -47,7 +47,7 @@
47
47
  </svg>
48
48
  {% endif %}
49
49
 
50
- <!-- closing warpping div -->
50
+ <!-- closing wrapping div -->
51
51
  </div>
52
52
 
53
53
  {% if include.caption %}
@@ -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">
@@ -24,11 +24,23 @@
24
24
 
25
25
  <ul class="nav-list">
26
26
  {% for item in site.data.menu.navigation %}
27
+
27
28
  <li class="nav-group">
28
- <a href="{{ item.url | relative_url }}" class="nav-group-link nav-link {{ item.env }}-group-link">
29
- <span>{{ item.name }}</span></a>
29
+ <a href="{{ item.url | relative_url }}" class="nav-group-link nav-link
30
+ {% assign url = page.env | append: '/' | prepend: '/' %}
31
+
32
+ {% if item.url == url %}
33
+ current--env
34
+ {% endif %}
35
+
36
+ {{ item.env }}-group-link">
37
+
38
+ <span>{{ item.name }}</span>
39
+ </a>
40
+
30
41
  <div class="nav-group-content {{ item.env }}-group">
31
42
  {% for sub in item.submenu %}
43
+ {% if sub.id == 'nav' %}
32
44
  <div class="nav-group-container">
33
45
  <a
34
46
  class="
@@ -36,6 +48,9 @@
36
48
  sub-link
37
49
  {% if page.url == sub.url %}
38
50
  current--url
51
+ {% endif %}
52
+ {% if sub.cta == true %}
53
+ nav-cta
39
54
  {% endif %}" href="{{ sub.url | relative_url }}">
40
55
  <span>{{ sub.name }}</span></a>
41
56
 
@@ -50,6 +65,7 @@
50
65
  {% endif %}
51
66
 
52
67
  </div>
68
+ {% endif %}
53
69
  {% endfor %}
54
70
  </div>
55
71
  </li>
@@ -8,7 +8,7 @@
8
8
 
9
9
  <script type="text/javascript" src="{{ '/assets/js/svg_aos.js' | relative_url }}" async></script>
10
10
 
11
- {% include functions/pull_page_args.html %}
11
+ {% include functions/reposition-svg-labels.html %}
12
12
 
13
13
  {% endif %}
14
14
 
@@ -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,
data/_layouts/about.html CHANGED
@@ -41,7 +41,7 @@ Last full read through 29/12/2020
41
41
 
42
42
  <!-- exclude if no text is provided -->
43
43
  {% if site.data.copy.about[page.env].text %}
44
- <div class="about__copy bg--env-100" >
44
+ <div class="about__copy bg--env-100" id="content">
45
45
 
46
46
  {% for item in site.data.copy.about[page.env].text %}
47
47
  <p class="about--copy" data-aos="fade-in">
@@ -17,6 +17,6 @@ layout: default
17
17
  {% endfor %}
18
18
  </div>
19
19
 
20
- <div class="fullwidth__wrap">
20
+ <div class="fullwidth__wrap" id="content">
21
21
  {{ content }}
22
22
  </div>
@@ -25,7 +25,7 @@ layout: default
25
25
 
26
26
  </div>
27
27
 
28
- <div class="contact__wrapper">
28
+ <div class="contact__wrapper" id="content">
29
29
 
30
30
  <div class="contact--left">
31
31
  {% include contact-form.html %}
@@ -4,10 +4,13 @@ layout: compress
4
4
 
5
5
  {% include head/head.html %}
6
6
 
7
+ <a class="skip-link screen-reader-text" href="#content">Skip to content</a>
8
+
7
9
  {% include navigation/global.html %}
8
10
 
9
11
  {{ content }}
10
12
 
11
- {% include footer/footer_full.html %}
13
+
14
+ {% include footer/footer_redesign.html %}
12
15
 
13
16
  {% include scripts.html %}
@@ -12,7 +12,7 @@ Last full read through 27/12/2020
12
12
 
13
13
  -->
14
14
 
15
- <!-- assign description with site decsription as fallback -->
15
+ <!-- assign description with site.decsription fallback -->
16
16
 
17
17
  {% if site.data.copy.landing.clinician.description %}
18
18
  {% assign description = site.data.copy.landing.clinician.description %}
@@ -29,7 +29,7 @@ Last full read through 27/12/2020
29
29
 
30
30
  <div class="hero__strap hero__strap--baseline bg--env-100">
31
31
  <h2>{{ site.data.copy.landing.clinician.title }}</h2>
32
- <p data-aos="fade-up">{{ site.data.copy.landing.clinician.description }}</p>
32
+ <p>{{ site.data.copy.landing.clinician.description }}</p>
33
33
  </div>
34
34
 
35
35
  <div class="hero__follow"></div>
@@ -66,12 +66,12 @@ Last full read through 27/12/2020
66
66
 
67
67
  </div>
68
68
 
69
- <div class="segment__wrap">
69
+ <div class="segment__wrap" id="content">
70
70
 
71
- <div class="segment__left">
71
+ <div class="segment__left strap--opd-trust">
72
72
 
73
73
 
74
- <div class="center-text segment__keywords strap--opd-trust">
74
+ <div class="center-text segment__keywords ">
75
75
  {% assign keyword = site.data.copy.landing.clinician.keywords | split: ", " %}
76
76
  {% for word in (1..keyword.size) %}
77
77
  <h3 data-aos="fade-in">{{ keyword[forloop.index0] }}</h3>
@@ -81,7 +81,7 @@ Last full read through 27/12/2020
81
81
  {%- assign env = site.data.menu.navigation | where: 'env', 'clinician' -%}
82
82
  {%- assign env = env[0] -%}
83
83
 
84
- {%- assign cta = env.submenu | where: 'id', 'cta' -%}
84
+ {%- assign cta = env.submenu | where: 'cta', 'true' -%}
85
85
  {%- assign cta = cta[0] -%}
86
86
 
87
87
  <a class="action__call" aria-label="{{ cta.aria }}" href="{{ cta.url }}">
@@ -95,8 +95,8 @@ Last full read through 27/12/2020
95
95
 
96
96
  </div>
97
97
 
98
- <div class="segment__right augmented-image" >
98
+ <div class="segment__right augmented-image svg__labels--red" >
99
99
 
100
- {% include image.html image="guarantee" alt="Describe the image" class="hero__image image--guarantee h-100"%}
100
+ {% include image.html image="guarantee" alt="Describe the image" class="hero__image image--guarantee"%}
101
101
 
102
102
  </div>
@@ -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">
@@ -34,7 +34,7 @@ Last full read through 27/12/2020
34
34
  <div class="landing__strap">
35
35
  <p>{{ site.data.copy.landing.landing.pwp }}</p>
36
36
  <div class="landing__cta">
37
- <a class="primary__cta" aria-label="{{ cta.aria }}" href="{{ cta.url | relative_url }}">Sign up</a>
37
+ <a class="primary__cta" aria-label="{{ cta.aria }}" href="{{ cta.url | relative_url }}">{{ cta.name }}</a>
38
38
  <a class="secondary__cta" aria-label="{{ cta_2.aria }}" href="{{ cta_2.url | relative_url }}">More Info</a>
39
39
  </div>
40
40
  </div>
@@ -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">
@@ -68,7 +68,7 @@ Last full read through 27/12/2020
68
68
  <div class="landing__strap">
69
69
  <p>{{ site.data.copy.landing.landing.clinician }}</p>
70
70
  <div class="landing__cta">
71
- <a class="primary__cta" aria-label="{{ cta.aria }}" href="{{ cta.url | relative_url }}">Register interest</a>
71
+ <a class="primary__cta" aria-label="{{ cta.aria }}" href="{{ cta.url | relative_url }}">{{ cta.name }}</a>
72
72
  <a class="secondary__cta" aria-label="{{ cta_2.aria }}" href="{{ cta_2.url | relative_url }}">More Info</a>
73
73
  </div>
74
74
  </div>
@@ -78,7 +78,7 @@ Last full read through 27/12/2020
78
78
 
79
79
  </div>
80
80
 
81
- <div class="center-text strap__100 strap--opd-trust">
81
+ <div class="center-text strap__100 strap--opd-trust" id="content">
82
82
  <h2>{{ site.data.copy.landing.pwp.subtitle }}</h2>
83
83
  <p data-aos="fade-in">{{ site.data.copy.landing.pwp.strap }}</p>
84
84
  </div>
@@ -87,7 +87,7 @@ Last full read through 27/12/2020
87
87
 
88
88
  <div class="segment__left">
89
89
  <div class="segment__gaurentee center-text">
90
- <div data-aos="fade-right">
90
+ <div data-aos="zoom-in">
91
91
  {% include branding/site-logo.svg %}</div>
92
92
  <p data-aos="fade-in" class="strap__guarantee">
93
93
  {{ description }}</p></div>
@@ -100,9 +100,9 @@ Last full read through 27/12/2020
100
100
 
101
101
  </div>
102
102
 
103
- <div class="segment__right augmented-image" >
103
+ <div class="segment__right augmented-image svg__labels--red augment-not-fullwidth" >
104
104
 
105
- {% include image.html image="guarantee" alt="Describe the image" class="hero__image image--guarantee h-100"%}
105
+ {% include image.html image="guarantee" alt="Describe the image" class="hero__image image--guarantee"%}
106
106
 
107
107
 
108
108
  </div>
@@ -3,7 +3,7 @@ layout: default
3
3
  ---
4
4
 
5
5
 
6
- <section class="error-page">
6
+ <section class="error-page" id="content">
7
7
 
8
8
  {{ content }}
9
9