slow-steps 0.3.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) 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 +0 -1
  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 +1 -1
  18. data/_includes/navigation/global.html +65 -44
  19. data/_includes/scripts.html +3 -1
  20. data/_layouts/about.html +1 -1
  21. data/_layouts/careers.html +1 -1
  22. data/_layouts/contact.html +1 -1
  23. data/_layouts/default.html +4 -1
  24. data/_layouts/env/clinician.html +8 -8
  25. data/_layouts/env/landing.html +6 -6
  26. data/_layouts/env/pwp.html +4 -4
  27. data/_layouts/error-page.html +1 -1
  28. data/_layouts/faq.html +4 -1
  29. data/_layouts/feed.html +2 -2
  30. data/_layouts/full-width.html +1 -1
  31. data/_layouts/post.html +2 -2
  32. data/_layouts/register.html +1 -1
  33. data/_sass/_colors/_variables.sass +2 -0
  34. data/_sass/_functions.sass +9 -0
  35. data/_sass/_mixins.sass +6 -3
  36. data/_sass/about.sass +3 -1
  37. data/_sass/breakpoints/about.sass +11 -2
  38. data/_sass/collage.sass +1 -1
  39. data/_sass/contact.sass +2 -2
  40. data/_sass/env/breakpoints/768.sass +16 -11
  41. data/_sass/env/clinician.sass +12 -7
  42. data/_sass/env/landing.sass +18 -3
  43. data/_sass/env/pwp.sass +11 -2
  44. data/_sass/faq.sass +9 -1
  45. data/_sass/feed.sass +2 -2
  46. data/_sass/footer.sass +174 -14
  47. data/_sass/footer_redesign.sass +353 -0
  48. data/_sass/forms/mc-forms.sass +9 -0
  49. data/_sass/global.sass +89 -8
  50. data/_sass/navigation/_variables.sass +3 -3
  51. data/_sass/navigation/base.sass +14 -4
  52. data/_sass/navigation/breakpoints/1024.sass +48 -9
  53. data/_sass/navigation/burger.sass +1 -1
  54. data/_sass/typography/_variables.sass +1 -1
  55. data/_sass/typography/resets.sass +2 -2
  56. data/assets/css/env/gaitq_clinician.sass +1 -1
  57. data/assets/css/env/gaitq_landing.sass +1 -1
  58. data/assets/css/env/gaitq_pwp.sass +1 -1
  59. data/assets/css/gaitq_errors.sass +13 -1
  60. data/assets/js/mobile-nav-slider.js +1 -1
  61. data/assets/js/svg_text_width.js +4 -4
  62. metadata +7 -6
  63. data/_includes/footer/footer_full.html +0 -79
  64. data/_includes/functions/pull_page_args.html +0 -31
  65. 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
@@ -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
 
@@ -3,7 +3,7 @@
3
3
  -->
4
4
  <div class="post__image">
5
5
 
6
- {% picture {{ include.link | prepend: 'posts/' }} --alt {{include.alt}} --img class="post__content--image" %}
6
+ {% picture post {{ include.link | prepend: 'posts/' }} --alt {{include.alt}} --img class="post__content--image" %}
7
7
 
8
8
  {% if include.caption %}
9
9
  <p class="image--caption">{{ include.caption }}</p>
@@ -9,57 +9,78 @@
9
9
  </a>
10
10
  </div>
11
11
 
12
- {% if page.env != "landing" OR page.env != "error-page" %}
12
+ {% if page.url != "/" %}
13
+ <!-- exclude on home -->
14
+ {% if page.url != "/error-pages/404" %}
15
+ <!-- exclude on error pages -->
16
+ <ul class="social-media">
17
+ {% for social in site.socials %}
18
+ <li class="social-media-item">
19
+ <a href="{{ social.url }}">
20
+ <i class="fab fa-{{ social.icon }} social--{{ social.name }} social-media-link"></i></a>
21
+ </li>
22
+ {% endfor %}
23
+ </ul>
24
+
25
+ <ul class="nav-list">
26
+ {% for item in site.data.menu.navigation %}
27
+
28
+ <li class="nav-group">
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>
13
40
 
14
- <ul class="social-media">
15
- {% for social in site.socials %}
16
- <li class="social-media-item">
17
- <a href="{{ social.url }}">
18
- <i class="fab fa-{{ social.icon }} social--{{ social.name }} social-media-link"></i></a>
19
- </li>
20
- {% endfor %}
21
- </ul>
41
+ <div class="nav-group-content {{ item.env }}-group">
42
+ {% for sub in item.submenu %}
43
+ {% if sub.id == 'nav' %}
44
+ <div class="nav-group-container">
45
+ <a
46
+ class="
47
+ nav-link
48
+ sub-link
49
+ {% if page.url == sub.url %}
50
+ current--url
51
+ {% endif %}
52
+ {% if sub.cta == true %}
53
+ nav-cta
54
+ {% endif %}" href="{{ sub.url | relative_url }}">
55
+ <span>{{ sub.name }}</span></a>
22
56
 
23
- <ul class="nav-list">
24
- {% for item in site.data.menu.navigation %}
25
- <li class="nav-group">
26
- <a href="{{ item.url | relative_url }}" class="nav-group-link nav-link {{ item.env }}-group-link">
27
- <span>{{ item.name }}</span></a>
28
- <div class="nav-group-content {{ item.env }}-group">
29
- {% for sub in item.submenu %}
30
- <div class="nav-group-container">
31
- <a
32
- class="
33
- nav-link
34
- sub-link
35
- {% if page.url == sub.url %}
36
- current--url
37
- {% endif %}" href="{{ sub.url | relative_url }}">
38
- <span>{{ sub.name }}</span></a>
57
+ {% if sub.subsubmenu %}
58
+ <div class="nav-subsub-content ">
59
+ {% for subsub in sub.subsubmenu %}
60
+ <a class="nav-link subsub-link" href="{{ subsub.url | relative_url }}">
61
+ <span>{{ subsub.name }}</span></a>
39
62
 
40
- {% if sub.subsubmenu %}
41
- <div class="nav-subsub-content ">
42
- {% for subsub in sub.subsubmenu %}
43
- <a class="nav-link subsub-link" href="{{ subsub.url | relative_url }}">
44
- <span>{{ subsub.name }}</span></a>
63
+ {% endfor %}
64
+ </div>
65
+ {% endif %}
45
66
 
67
+ </div>
68
+ {% endif %}
46
69
  {% endfor %}
47
70
  </div>
48
- {% endif %}
49
-
50
- </div>
71
+ </li>
51
72
  {% endfor %}
52
- </div>
53
- </li>
54
- {% endfor %}
55
- </ul>
73
+ </ul>
56
74
 
57
- <div class="burger">
58
- <div class="burger-line-1"></div>
59
- <div class="burger-line-2"></div>
60
- <div class="burger-line-3"></div>
61
- </div>
62
- </nav>
75
+ <div class="burger">
76
+ <div class="burger-line-1"></div>
77
+ <div class="burger-line-2"></div>
78
+ <div class="burger-line-3"></div>
79
+ </div>
80
+ </nav>
81
+ {% else %}
82
+ </nav>
83
+ {% endif %}
63
84
  {% else %}
64
- </nav>
85
+ </nav>
65
86
  {% endif %}
@@ -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>