Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion _includes/vert-section.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<section id="{{vsecloop.sectionid}}" class="vert-section-container {{vsecloop.color}} {{vsecloop.extra-classes}}">
{% if vsecloop.now-image %}
<section id="{{vsecloop.sectionid}}" class="vert-section-container {{vsecloop.color}} {{vsecloop.extra-classes}}">
{% else %}
{% capture nextColor %}next-color-{{ nextSection.color }}{% endcapture %}
<section id="{{vsecloop.sectionid}}" class="vert-section-container {{vsecloop.color}} {{vsecloop.extra-classes}} {{nextColor}}">
{% endif %}
<div class="vert-section-inner grid">
<h4 class="vert-section-breadcrumb">{{page.title}}</h4>
<h2 class="vert-section-title">{{vsecloop.title}}</h2>
Expand Down Expand Up @@ -38,6 +43,20 @@ <h3 class="vert-section-point-title">{{paragraph.list-title}}</h3>
{{ casestudy }}
</a>
{% endfor %}


{% for bloglink in vsecloop.bloglinks %}
<div class="vert-section-blog-link">
{% if vsecloop.link-url %}
<a href="{{vsecloop.link-url}}">
{{ bloglink }}
</a>
{% endif %}

</div>
{% endfor %}


</div>
</section>
{% if vsecloop.now-image %}
Expand Down
6 changes: 4 additions & 2 deletions _layouts/vertical.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<body class="{{ page.layout }}">

{% include header.html %}

<section class="hero-container {{ page.colour }}">
{% capture nextColor %}next-color-{{ page.sections[0].color }}{% endcapture %}
<section class="hero-container {{ page.colour }} {{ nextColor }}">
<div class="hero-inner grid">
<h1 class="hero-title col-1-1">{% if page.hero-title %}{{page.hero-title}}{% else %}{{page.title}}{% endif %}</h1>

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

{% for vsecloop in page.sections %}
{% assign nextIndex = forloop.index %}
{% assign vsection = vsecloop %}
{% assign nextSection = page.sections[nextIndex] %}
{% include vert-section.html %}
{% endfor %}

Expand Down
60 changes: 58 additions & 2 deletions _sass/pages/_vertical.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@

.vert-bubble-container {
text-align: center;
padding: 30px;

&:before {
content: "";
display: inline-block;
vertical-align: top;

}

@media screen and ( max-width: $medium ) {
padding: 12px;
}
Expand All @@ -19,12 +28,14 @@
width: 250px;
display: inline-block;
position: relative;
vertical-align: top;

img {
height: 100%;
width: 100%;
position: relative;
top: 0;

@media screen and ( max-width: $medium ) {
height: 100%;
float: right;
Expand Down Expand Up @@ -281,6 +292,19 @@
content: none;
}
}

&.next-color-green:after {
background-color: $green;
}
&.next-color-purple:after {
background-color: $purple;
}
&.next-color-blue:after {
background-color: $blue;
}
&.next-color-pink:after {
background-color: $pink;
}
}

.vert-section-inner {
Expand Down Expand Up @@ -357,6 +381,21 @@
background: $blue;
}

&.next-color-aqua:after {
background: $aqua;
}
&.next-color-green:after {
background-color: $green;
}
&.next-color-purple:after {
background-color: $purple;
}
&.next-color-blue:after {
background-color: $blue;
}
&.next-color-pink:after {
background-color: $pink;
}
}

h4.vert-section-breadcrumb {
Expand Down Expand Up @@ -448,7 +487,24 @@ h4.vert-section-breadcrumb {
// Case Study
//===============================================================================

.vert-section-case-study {
width: 50%;
.vert-section-case-study,
.vert-section-blog-link {
margin: 20px auto;
display: inline-block;

a {
width: 50%;
background: rgba(black, 0.2);
padding: 8px 18px;
display: inline;
border: 4px solid rgba(black, 0.2);
color: white;
font-weight: bold;

&:hover {
background: white;
color: $pink;
}
}

}
161 changes: 161 additions & 0 deletions img/verticals/vert-transport-future-b.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading