mirror of
https://github.com/bigchaindb/site.git
synced 2024-11-25 03:03:16 +01:00
play with guide photo headers
This commit is contained in:
parent
7aa0636734
commit
15118d1245
@ -50,7 +50,7 @@
|
||||
border-radius: $border-radius;
|
||||
|
||||
&:before {
|
||||
opacity: .9;
|
||||
opacity: .85;
|
||||
}
|
||||
|
||||
&:hover,
|
||||
|
@ -1,7 +1,7 @@
|
||||
.header {
|
||||
@extend .background--photo;
|
||||
background-image: url('../img/header-berlin.jpg');
|
||||
background-position: center bottom;
|
||||
background-position: center center;
|
||||
}
|
||||
|
||||
.header__content {
|
||||
|
BIN
_src/_guides/header-car.jpg
Normal file
BIN
_src/_guides/header-car.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 87 KiB |
@ -3,7 +3,7 @@ layout: guide
|
||||
|
||||
title: "Tutorial: Car Telemetry App"
|
||||
tagline: Learn how to build telemetry apps to track specific dynamic parameters of an asset.
|
||||
header: photo4.jpg
|
||||
header: header-car.jpg
|
||||
---
|
||||
|
||||
You will learn:
|
||||
|
@ -1,5 +1,11 @@
|
||||
<header role="banner" class="header" {% if page.header %}style="background-image:url('/assets/img/{{ page.header }}')" {%
|
||||
endif %}>
|
||||
<header role="banner" class="header"
|
||||
{% if page.header %}
|
||||
{% if page.path contains '_guides' %}
|
||||
style="background-image:url('../{{ page.header }}')"
|
||||
{% else %}
|
||||
style="background-image:url('/assets/img/{{ page.header }}')"
|
||||
{% endif %}
|
||||
{% endif %}>
|
||||
|
||||
{% include menu-main.html %}
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
{% for guide in site.guides limit: 4 %}
|
||||
<div class="grid__col">
|
||||
<article class="guide">
|
||||
<a href="{{ guide.url }}" {% if guide.header %}style="background-image:url('/assets/img/{{ guide.header }}')" {% endif %}>
|
||||
<a href="{{ guide.url }}" {% if guide.header %}style="background-image:url('/guides/{{ guide.header }}')" {% endif %}>
|
||||
<h1 class="guide__title">{{ guide.title }}</h1>
|
||||
<p class="guide__tagline">{{ guide.tagline }}</p>
|
||||
</a>
|
||||
|
@ -24,7 +24,7 @@ layout: base
|
||||
{% unless page.id == guide.id %}
|
||||
<div class="grid__col">
|
||||
<article class="guide">
|
||||
<a href="{{ guide.url }}" {% if guide.header %}style="background-image:url('/assets/img/{{ guide.header }}')" {% endif %}>
|
||||
<a href="{{ guide.url }}" {% if guide.header %}style="background-image:url('../{{ guide.header }}')" {% endif %}>
|
||||
<h1 class="guide__title">{{ guide.title }}</h1>
|
||||
</a>
|
||||
</article>
|
||||
|
@ -11,7 +11,7 @@ tagline: "These guides explain you how to get started and build apps with Bigcha
|
||||
{% for guide in site.guides %}
|
||||
<div class="grid__col">
|
||||
<article class="guide">
|
||||
<a href="{{ guide.url }}" {% if guide.header %}style="background-image:url('/assets/img/{{ guide.header }}')" {% endif %}>
|
||||
<a href="{{ guide.url }}" {% if guide.header %}style="background-image:url('./{{ guide.header }}')" {% endif %}>
|
||||
<h1 class="guide__title">{{ guide.title }}</h1>
|
||||
<p class="guide__tagline">{{ guide.tagline }}</p>
|
||||
</a>
|
||||
|
Loading…
Reference in New Issue
Block a user