Skip to content

Commit 115fbfd

Browse files
author
NiallNiall
committed
updating template
1 parent 65674a5 commit 115fbfd

File tree

5 files changed

+38
-7
lines changed

5 files changed

+38
-7
lines changed

_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: 28 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 {

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)