Skip to content

Commit

Permalink
Fix footer position on blog/404
Browse files Browse the repository at this point in the history
Also makes the branding colour (the blue) a variable `brand-color`.

Signed-off-by: John McCabe <john@johnmccabe.net>
  • Loading branch information
johnmccabe authored and alexellis committed Jul 24, 2018
1 parent 7b0b0fc commit 79fb047
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 6 deletions.
2 changes: 1 addition & 1 deletion 404.html
Expand Up @@ -3,5 +3,5 @@
description: This page doesn't exist!
image: https://source.unsplash.com/BcoGknSqlDc/2000x1322?a=.png
permalink: /404.html
layout: page
layout: fullpage
---
3 changes: 2 additions & 1 deletion _layouts/archive.html
Expand Up @@ -2,7 +2,7 @@
layout: default
---

<!-- <section class="hero" style="background-image: url(https://source.unsplash.com/MqJX_8EaStM/2000x1322)"> -->
<div class="full">
<section class="hero">
<div class="inner-hero text-container">
<div class="hero-text-container">
Expand All @@ -21,3 +21,4 @@ <h1>The latest news</h1>
</ul>
</div>
</section>
</div>
15 changes: 15 additions & 0 deletions _layouts/fullpage.html
@@ -0,0 +1,15 @@
---
layout: default
---

<!-- <section class="hero" style="background-image: url({% include relative-src.html src=page.image %})"> -->
<section class="hero full" {% include relative-post-hero.html src=page.image %}>
<div class="inner-hero text-container">
<div class="hero-text-container">
<h1>{{ page.title }}</h1>
<p class="subtext">{{ page.description }}</p>
</div>
</div>
</section>

{{ content }}
8 changes: 7 additions & 1 deletion _sass/landing-page.scss
Expand Up @@ -3,7 +3,7 @@
text-align: center;
height: 45vh;
min-height: 550px;
background: rgba(69,99,221,1);
background: $brand-color;
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
Expand Down Expand Up @@ -42,6 +42,12 @@
}
}


.full {
min-height: calc(100vh - 53px);
background-color: #f9f9f9;
}

.image {
text-align: center;
}
Expand Down
2 changes: 1 addition & 1 deletion _sass/openfaas-landing/landing.scss
Expand Up @@ -107,7 +107,7 @@ footer {
width: 100%;
height: 100%;
position: absolute;
background: rgba(69,99,221,1);
background: $brand-color;
z-index: 2;
}
#whale {
Expand Down
2 changes: 1 addition & 1 deletion _sass/variables.scss
@@ -1,4 +1,4 @@
$brand-color: #6ba1f3;
$brand-color: rgba(69,99,221,1);

// Breakpoints
$tablet: "(min-width: 450px)";
Expand Down
4 changes: 3 additions & 1 deletion blog/index.html
Expand Up @@ -4,7 +4,8 @@
image: https://source.unsplash.com/MqJX_8EaStM/2000x1322?a=.png
---

<!-- <section class="hero" style="background-image: url({% include relative-src.html src=page.image %})"> -->

<div class="full">
<section class="hero">
<div class="inner-hero text-container">
<div class="hero-text-container">
Expand Down Expand Up @@ -35,3 +36,4 @@ <h1 class="editable">The latest news</h1>
{% endif %}
</div>
</section>
</div>
1 change: 1 addition & 0 deletions css/openfaas.scss
@@ -1,5 +1,6 @@
---
---
@import "variables";
@import "openfaas-landing/foundation";
@import "openfaas-landing/mixins/landing";
@import "openfaas-landing/fonts";
Expand Down

0 comments on commit 79fb047

Please sign in to comment.