mirror of
https://github.com/ipdb/website.git
synced 2024-11-22 09:36:52 +01:00
add Ocean Protocol banner to front page
This commit is contained in:
parent
c6011f2f41
commit
1471d6eb93
5
_src/_assets/img/logo-oceanprotocol.svg
Normal file
5
_src/_assets/img/logo-oceanprotocol.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 6.8 KiB |
49
_src/_assets/scss/_oceanprotocol.scss
Normal file
49
_src/_assets/scss/_oceanprotocol.scss
Normal 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;
|
||||
}
|
@ -19,6 +19,7 @@
|
||||
@import 'alerts';
|
||||
@import 'cookiebanner';
|
||||
@import 'syntax';
|
||||
@import 'oceanprotocol';
|
||||
|
||||
.content--page--markdown {
|
||||
padding-top: $spacer * 2;
|
||||
|
9
_src/_includes/oceanprotocol.html
Normal file
9
_src/_includes/oceanprotocol.html
Normal 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>
|
@ -8,6 +8,8 @@ css: page-front
|
||||
|
||||
{% assign content = site.data.content-front %}
|
||||
|
||||
{% include oceanprotocol.html %}
|
||||
|
||||
<header class="hero section">
|
||||
|
||||
{% include menu-main.html %}
|
||||
|
Loading…
Reference in New Issue
Block a user