Skip to content

Commit 907e293

Browse files
authored
ref: bring back 'Our Principles' page (#72)
* ref: change nav colors and add 'primarylink' * chore: replace image assets * ref: change layout of 'principles' page * ref: place 'Our Principles' back in the navbar * chore: adjustment based on PR review
1 parent 7e43295 commit 907e293

File tree

10 files changed

+56
-32
lines changed

10 files changed

+56
-32
lines changed

_data/navigation.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ main:
44
# to be moved to the page body
55
# - title: "Categories"
66
# id: categories
7-
# - title: "Our Principles"
8-
# url: /principles
9-
- title: "About"
10-
url: /about
117
- title: "Jobs"
128
url: https://workatbackbase.com/
139
external: true
10+
- title: "About"
11+
url: /about
12+
- title: "Our Principles"
13+
url: /principles
14+
id: principles

_includes/masthead.html

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919
</a>
2020
{% endif %}
2121
</div>
22+
2223
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
2324
<span class="navbar-toggler-icon"></span>
2425
</button>
25-
<div class="collapse navbar-collapse justify-content-end" id="navbarSupportedContent">
26+
<div class="collapse navbar-collapse justify-content-end me-4" id="navbarSupportedContent">
2627
<ul class="navbar-nav">
2728
{%- for item in site.data.navigation.main -%}
2829
{% if item.id == 'categories' %}
@@ -39,7 +40,7 @@
3940
{% endfor %}
4041
</ul>
4142
</li>
42-
{% else %}
43+
{% elsif item.id != 'principles' %}
4344
<li class="nav-item">
4445
<a class="nav-link" href="{{ item.url | relative_url }}"{% if item.description %} title="{{ item.description }}"{% endif %} {% if item.external %}target="_blank"{% endif %}>
4546
<span>{{ item.title }}</span>
@@ -49,6 +50,17 @@
4950
{%- endfor -%}
5051
</ul>
5152
</div>
53+
{%- for item in site.data.navigation.main -%}
54+
{% if item.id == 'principles' %}
55+
<ul class="navbar-nav" style="text-align:right;">
56+
<li class="nav-item">
57+
<a class="nav-primarylink" href="{{ item.url | relative_url }}"{% if item.description %} title="{{ item.description }}"{% endif %} {% if item.external %}target="_blank"{% endif %} style="text-decoration:none;">
58+
<span>{{ item.title }}</span>
59+
</a>
60+
</li>
61+
</ul>
62+
{% endif %}
63+
{%- endfor -%}
5264
{% if site.search == true %}
5365
<button class="search__toggle" type="button">
5466
<span class="visually-hidden">{{ site.data.ui-text[site.locale].search_label | default: "Toggle search" }}</span>

_layouts/principles.html

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,18 @@
1111
{% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}
1212
{% if page.date %}<meta itemprop="datePublished" content="{{ page.date | date: "%B %d, %Y" }}">{% endif %}
1313
{% if page.modified %}<meta itemprop="dateModified" content="{{ page.modified | date: "%B %d, %Y" }}">{% endif %}
14-
15-
<section class="page__content" itemprop="text">
16-
{% if page.splash %}
17-
{% include bb_splash.html %}
18-
{% endif %}
19-
{% if page.feature_row %}
20-
{% include feature_row.html %}
21-
{% endif %}
22-
{{ content }}
23-
</section>
2414
</article>
2515
</section>
2616

2717
<section class="section__entries">
2818
<div class="container">
29-
3019
{% assign posts = site.principles %}
20+
{% assign entries_layout = page.entries_layout | default: 'list' %}
3121
<div class="row">
32-
<div class="offset-md-4 col-md-8">
33-
<div class="row">
34-
{% for post in posts %}
35-
{% include archive-single.html type='list' %}
36-
{% endfor %}
37-
</div>
38-
</div>
22+
{% for post in posts %}
23+
{% include archive-single.html type=entries_layout class="col-md-6 col-lg-4" %}
24+
{% endfor %}
3925
</div>
40-
41-
{% include paginator.html %}
4226
</div>
4327
</div>
4428
</div>

_pages/principles.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
layout: principles
33
permalink: /principles/
4+
entries_layout: grid
45
lead: power the <span class="fw-bolder">digital banking revolution</span>
5-
splash: true
6+
splash: false
67
---
78

_sass/abstract/_bootstrap.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $card-box-shadow: 0px 2px 3px rgba(0,0,0,.25);
5050

5151
$min-contrast-ratio: 2.8;
5252

53-
$navbar-dark-color: map-get($bb-palette, "white");
53+
$navbar-dark-color: map-get($bb-palette, "dark-blue");
5454
$navbar-dark-hover-color: $navbar-dark-color;
5555
$navbar-nav-link-padding-x: 1rem;
5656

_sass/components/_logo.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
font-size: $logo-font-size;
66
display: inline-flex;
77
vertical-align: middle;
8-
color: map-get($bb-palette, "white");
8+
color: map-get($bb-palette, "dark-blue");
99

1010
svg {
1111
object-fit: contain;
1212
height: .85em;
13-
fill: map-get($bb-palette, "white");
13+
fill: map-get($bb-palette, "dark-blue");
1414
}
1515

1616
&::before {

_sass/components/_nav.scss

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
.nav {
22
&bar {
3-
margin-bottom: 2rem;
3+
margin-bottom: 0rem;
44
}
55

66
&-link {
77
span {
8+
vertical-align: middle;
9+
display: table-cell;
810
padding: map-get($spacers, 1) 0;
911
border-bottom: 3px solid transparent;
1012
transition: .25s border-color;
@@ -16,6 +18,23 @@
1618
}
1719
}
1820

21+
&-primarylink {
22+
span {
23+
vertical-align: middle;
24+
display: table-cell;
25+
background: map-get($bb-palette, "blue");
26+
color: map-get($bb-palette, "white");
27+
font-weight: bold;
28+
padding: map-get($spacers, 2) map-get($spacers, 3);
29+
transition: .25s background-color;
30+
}
31+
&.active span,
32+
&:hover span {
33+
background: map-get($bb-palette, "red");
34+
transition: .25s background-color;
35+
}
36+
}
37+
1938
&bar:before {
2039
@include media-breakpoint-up(md) {
2140
@at-root .layout--home & {
@@ -30,7 +49,7 @@
3049
right: 0;
3150
width: 100%;
3251
height: 100%;
33-
background: map-get($bb-palette, 'blue');
52+
background: map-get($bb-palette, 'white');
3453
z-index: -1;
3554
}
3655
}

_sass/layout/_footer.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
.bb-engineering-logo {
33
color: map-get($bb-palette, "white");
44
fill: map-get($bb-palette, "white");
5+
svg {
6+
fill: map-get($bb-palette, "white");
7+
}
8+
&::before {
9+
content: "/";
10+
color: map-get($bb-palette, "white");
11+
}
512
}
613
.social-icons {
714
margin-top: map-get($spacers, 3);

assets/images/innersource.png

-179 KB
Loading
Loading

0 commit comments

Comments
 (0)