1
0
mirror of https://github.com/ipdb/website.git synced 2024-12-27 23:27:45 +01:00

add Ocean Protocol banner to front page

This commit is contained in:
Matthias Kretschmann 2017-10-10 12:15:43 +02:00
parent c6011f2f41
commit 1471d6eb93
Signed by: m
GPG Key ID: 606EEEF3C479A91F
5 changed files with 66 additions and 0 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@ -0,0 +1,49 @@
.oceanprotocol {
display: block;
box-shadow: none;
height: 100%;
background: #141414;
padding-top: $spacer / 2;
padding-bottom: $spacer / 2;
&:hover,
&:focus {
background: #fff;
.oceanprotocol__title {
opacity: 1;
color: #141414;
}
.oceanprotocol__logo {
fill: #141414;
}
}
.row {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
}
.oceanprotocol__title {
font-size: .65rem;
margin: 0;
opacity: .8;
color: #fff;
@media ($screen-sm) {
font-size: .75rem;
}
}
.oceanprotocol__logo {
fill: #fff;
width: 1rem;
height: 1rem;
margin-right: $spacer / 4;
margin-bottom: -.3rem;
display: inline-block;
}

View File

@ -19,6 +19,7 @@
@import 'alerts';
@import 'cookiebanner';
@import 'syntax';
@import 'oceanprotocol';
.content--page--markdown {
padding-top: $spacer * 2;

View File

@ -0,0 +1,9 @@
<a class="banner--ocean oceanprotocol" href="https://oceanprotocol.com/?utm_source=ipdb.io&utm_medium=banner&utm_campaign=ocean_banner">
<div class="row row--wide">
<h1 class="oceanprotocol__title">
<svg class="oceanprotocol__logo">
<use xlink:href="/assets/img/sprite.svg#logo-oceanprotocol"></use>
</svg>
Meet Ocean. A Decentralized Data Exchange Protocol</h1>
</div>
</a>

View File

@ -8,6 +8,8 @@ css: page-front
{% assign content = site.data.content-front %}
{% include oceanprotocol.html %}
<header class="hero section">
{% include menu-main.html %}