Skip to content

Commit 4408265

Browse files
author
elia
committed
Merge remote-tracking branch 'origin/transport-vertical-page' into transport-vertical-page
2 parents 5c117c8 + 6ac2eb2 commit 4408265

File tree

6 files changed

+55
-8
lines changed

6 files changed

+55
-8
lines changed

_includes/head.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,14 @@
3737

3838
<!-- segment.io -->
3939
<script type="text/javascript">!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","page","once","off","on"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t){var e=document.createElement("script");e.type="text/javascript";e.async=!0;e.src=("https:"===document.location.protocol?"https://":"http://")+"cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(e,n)};analytics.SNIPPET_VERSION="3.1.0";
40-
analytics.load("oYxl7b92cjkh5Et7feoBTtVp4jfknzS2");
40+
41+
42+
{% if jekyll.environment == "production" %}
43+
analytics.load("oYxl7b92cjkh5Et7feoBTtVp4jfknzS2");
44+
{% else %}
45+
analytics.load("xPBgNdEqIFZmifgwFwMcvMNaHMLrIJhB");
46+
{% endif %}
47+
4148
analytics.page({%if page.analytics_category %}'{{ page.analytics_category }}', {% endif %}{% if page.title %}'{{ page.title }}'{% endif %})
4249
}}();
4350
</script>

_includes/vert-section.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
<section id="{{vsecloop.sectionid}}" class="vert-section-container {{vsecloop.color}} {{vsecloop.extra-classes}}">
1+
{% if vsecloop.now-image %}
2+
<section id="{{vsecloop.sectionid}}" class="vert-section-container {{vsecloop.color}} {{vsecloop.extra-classes}}">
3+
{% else %}
4+
{% capture nextColor %}next-color-{{ nextSection.color }}{% endcapture %}
5+
<section id="{{vsecloop.sectionid}}" class="vert-section-container {{vsecloop.color}} {{vsecloop.extra-classes}} {{nextColor}}">
6+
{% endif %}
27
<div class="vert-section-inner grid">
38
<h4 class="vert-section-breadcrumb">{{page.title}}</h4>
49
<h2 class="vert-section-title">{{vsecloop.title}}</h2>

_layouts/vertical.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<body class="{{ page.layout }}">
44

55
{% include header.html %}
6-
7-
<section class="hero-container {{ page.colour }}">
6+
{% capture nextColor %}next-color-{{ page.sections[0].color }}{% endcapture %}
7+
<section class="hero-container {{ page.colour }} {{ nextColor }}">
88
<div class="hero-inner grid">
99
<h1 class="hero-title col-1-1">{% if page.hero-title %}{{page.hero-title}}{% else %}{{page.title}}{% endif %}</h1>
1010

@@ -29,7 +29,9 @@ <h2 class="vert-sec-bubble-title">{{ sectionbubble.title }}</h2>
2929
</section>
3030

3131
{% for vsecloop in page.sections %}
32+
{% assign nextIndex = forloop.index %}
3233
{% assign vsection = vsecloop %}
34+
{% assign nextSection = page.sections[nextIndex] %}
3335
{% include vert-section.html %}
3436
{% endfor %}
3537

_sass/pages/_vertical.scss

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,19 @@
281281
content: none;
282282
}
283283
}
284+
285+
&.next-color-green:after {
286+
background-color: $green;
287+
}
288+
&.next-color-purple:after {
289+
background-color: $purple;
290+
}
291+
&.next-color-blue:after {
292+
background-color: $blue;
293+
}
294+
&.next-color-pink:after {
295+
background-color: $pink;
296+
}
284297
}
285298

286299
.vert-section-inner {
@@ -357,6 +370,21 @@
357370
background: $blue;
358371
}
359372

373+
&.next-color-aqua:after {
374+
background: $aqua;
375+
}
376+
&.next-color-green:after {
377+
background-color: $green;
378+
}
379+
&.next-color-purple:after {
380+
background-color: $purple;
381+
}
382+
&.next-color-blue:after {
383+
background-color: $blue;
384+
}
385+
&.next-color-pink:after {
386+
background-color: $pink;
387+
}
360388
}
361389

362390
h4.vert-section-breadcrumb {
@@ -451,4 +479,13 @@ h4.vert-section-breadcrumb {
451479
.vert-section-case-study {
452480
width: 50%;
453481
display: inline-block;
482+
background: rgba(black, 0.2);
483+
padding: 8px 18px;
484+
display: inline;
485+
border: 4px solid rgba(black, 0.2);
486+
color: white;
487+
font-weight: bold;
488+
&:hover {
489+
background: white;
490+
}
454491
}

vertical-health.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
layout: vertical
33
title: Health
44
permalink: /health/
5-
group: nav
65
colour: aqua
76

87
## Hero Content

vertical-transport.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
layout: vertical
33
title: Transport
44
permalink: /transport/
5-
group: nav
65
colour: blue
76

87
## Hero Content
@@ -24,8 +23,6 @@ sections:
2423
- In order to deliver great service to passengers, it’s increasingly important for rail operators to intelligently monitor and report on station and service quality.
2524
- We built an auditing and reporting platform in the cloud - for mobile devices - using web-location APIs and cutting edge web technologies.
2625
- This platform enables c2c to track continually how well their stations and trains are delivering on their commitment to provide a great service to their customers.
27-
28-
2926
casestudies:
3027
- Download the Case Study
3128

0 commit comments

Comments
 (0)