slow-steps 0.3.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) 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 +57 -44
  19. data/_includes/scripts.html +3 -1
  20. data/_layouts/default.html +1 -1
  21. data/_layouts/env/clinician.html +6 -6
  22. data/_layouts/env/landing.html +8 -8
  23. data/_layouts/env/pwp.html +3 -3
  24. data/_layouts/faq.html +3 -0
  25. data/_layouts/feed.html +1 -1
  26. data/_layouts/post.html +1 -1
  27. data/_sass/_colors/_variables.sass +2 -0
  28. data/_sass/_functions.sass +9 -0
  29. data/_sass/_mixins.sass +6 -3
  30. data/_sass/about.sass +3 -1
  31. data/_sass/breakpoints/about.sass +11 -2
  32. data/_sass/collage.sass +2 -1
  33. data/_sass/contact.sass +2 -2
  34. data/_sass/env/breakpoints/768.sass +16 -11
  35. data/_sass/env/clinician.sass +12 -7
  36. data/_sass/env/landing.sass +18 -3
  37. data/_sass/env/pwp.sass +11 -2
  38. data/_sass/faq.sass +9 -1
  39. data/_sass/feed.sass +2 -2
  40. data/_sass/footer.sass +174 -14
  41. data/_sass/footer_redesign.sass +353 -0
  42. data/_sass/forms/mc-forms.sass +9 -0
  43. data/_sass/global.sass +79 -8
  44. data/_sass/navigation/_variables.sass +3 -3
  45. data/_sass/navigation/base.sass +14 -4
  46. data/_sass/navigation/breakpoints/1024.sass +33 -8
  47. data/_sass/navigation/burger.sass +1 -1
  48. data/_sass/typography/_variables.sass +1 -1
  49. data/_sass/typography/resets.sass +2 -2
  50. data/assets/css/env/gaitq_clinician.sass +1 -1
  51. data/assets/css/env/gaitq_landing.sass +1 -1
  52. data/assets/css/env/gaitq_pwp.sass +1 -1
  53. data/assets/css/gaitq_errors.sass +13 -1
  54. data/assets/js/mobile-nav-slider.js +1 -1
  55. data/assets/js/svg_text_width.js +4 -4
  56. metadata +7 -6
  57. data/_includes/footer/footer_full.html +0 -79
  58. data/_includes/functions/pull_page_args.html +0 -31
  59. 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,70 @@
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
+ <li class="nav-group">
28
+ <a href="{{ item.url | relative_url }}" class="nav-group-link nav-link {{ item.env }}-group-link">
13
29
 
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>
30
+ <span>{{ item.name }}</span>
31
+ </a>
22
32
 
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>
33
+ <div class="nav-group-content {{ item.env }}-group">
34
+ {% for sub in item.submenu %}
35
+ {% if sub.id == 'nav' %}
36
+ <div class="nav-group-container">
37
+ <a
38
+ class="
39
+ nav-link
40
+ sub-link
41
+ {% if page.url == sub.url %}
42
+ current--url
43
+ {% endif %}
44
+ {% if sub.cta == true %}
45
+ nav-cta
46
+ {% endif %}" href="{{ sub.url | relative_url }}">
47
+ <span>{{ sub.name }}</span></a>
39
48
 
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>
49
+ {% if sub.subsubmenu %}
50
+ <div class="nav-subsub-content ">
51
+ {% for subsub in sub.subsubmenu %}
52
+ <a class="nav-link subsub-link" href="{{ subsub.url | relative_url }}">
53
+ <span>{{ subsub.name }}</span></a>
45
54
 
55
+ {% endfor %}
56
+ </div>
57
+ {% endif %}
58
+
59
+ </div>
60
+ {% endif %}
46
61
  {% endfor %}
47
62
  </div>
48
- {% endif %}
49
-
50
- </div>
63
+ </li>
51
64
  {% endfor %}
52
- </div>
53
- </li>
54
- {% endfor %}
55
- </ul>
65
+ </ul>
56
66
 
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>
67
+ <div class="burger">
68
+ <div class="burger-line-1"></div>
69
+ <div class="burger-line-2"></div>
70
+ <div class="burger-line-3"></div>
71
+ </div>
72
+ </nav>
73
+ {% else %}
74
+ </nav>
75
+ {% endif %}
63
76
  {% else %}
64
- </nav>
77
+ </nav>
65
78
  {% 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,
@@ -8,6 +8,6 @@ layout: compress
8
8
 
9
9
  {{ content }}
10
10
 
11
- {% include footer/footer_full.html %}
11
+ {% include footer/footer_redesign.html %}
12
12
 
13
13
  {% 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>
@@ -68,10 +68,10 @@ Last full read through 27/12/2020
68
68
 
69
69
  <div class="segment__wrap">
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>
@@ -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,8 +34,8 @@ 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 }}">Sign up</a>
38
- <a class="secondary__cta" aria-label="{{ cta_2.aria }}" href="{{ cta_2.url }}">More Info</a>
37
+ <a class="primary__cta" aria-label="{{ cta.aria }}" href="{{ cta.url | relative_url }}">{{ cta.name }}</a>
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>
41
41
 
@@ -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,8 +68,8 @@ 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 }}">Register interest</a>
72
- <a class="secondary__cta" aria-label="{{ cta_2.aria }}" href="{{ cta_2.url }}">More Info</a>
71
+ <a class="primary__cta" aria-label="{{ cta.aria }}" href="{{ cta.url | relative_url }}">{{ cta.name }}</a>
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>
75
75
 
@@ -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>
data/_layouts/faq.html CHANGED
@@ -27,6 +27,8 @@ layout: default
27
27
 
28
28
  <div class="faq__wrapper">
29
29
  {% for faq in site.data.faq %}
30
+
31
+ {% if faq.display == 'all' or faq.display == page.env %}
30
32
  <div class="faq__panel">
31
33
  <div class="faq__question">
32
34
  <h4 class="faq__question--title">{{ faq.question }}</h4><i class="fas fa-chevron-down"></i>
@@ -36,6 +38,7 @@ layout: default
36
38
  <p>{{ faq.answer }}</p>
37
39
  </div>
38
40
  </div>
41
+ {% endif %}
39
42
  {% endfor %}
40
43
  </div>
41
44
 
data/_layouts/feed.html CHANGED
@@ -18,7 +18,7 @@ layout: default
18
18
 
19
19
  {% for post in site.posts %}
20
20
 
21
- <div class="feed__card">
21
+ <div class="feed__card" data-aos="fade-up">
22
22
 
23
23
  <div class="feed__card__image">
24
24
  {% picture thumb {{ post.image | prepend: 'posts/' }} --alt {{ post.alt }} --img class="feed__card--image" %}