mirror of
https://github.com/bigchaindb/site.git
synced 2025-02-14 21:10:28 +01:00
fix video hero loading state/overlay, closes #24
This commit is contained in:
parent
5b4aaae444
commit
f216c87d3d
@ -11,6 +11,7 @@ email:
|
|||||||
cla: troy@ascribe.io
|
cla: troy@ascribe.io
|
||||||
|
|
||||||
twitter: BigchainDB
|
twitter: BigchainDB
|
||||||
|
facebook: BigchainDB
|
||||||
disqus: bigchain
|
disqus: bigchain
|
||||||
|
|
||||||
address:
|
address:
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 571 KiB |
BIN
_src/_assets/images/northern-lights-poster.jpg
Normal file
BIN
_src/_assets/images/northern-lights-poster.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 168 KiB |
@ -8,6 +8,7 @@ $menu-height-md: 73px;
|
|||||||
|
|
||||||
.hero {
|
.hero {
|
||||||
@extend .background--photo;
|
@extend .background--photo;
|
||||||
|
background-image: url('/assets/img/northern-lights-poster.jpg');
|
||||||
text-align: center;
|
text-align: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -96,13 +97,12 @@ $menu-height-md: 73px;
|
|||||||
// Video hero
|
// Video hero
|
||||||
//
|
//
|
||||||
.hero-video {
|
.hero-video {
|
||||||
// poster image
|
|
||||||
background: $brand-main-blue-dark url('../img/hero-video-poster.jpg') no-repeat center center;
|
|
||||||
background-size: cover;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-video .menu,
|
.hero-video .menu,
|
||||||
.hero-video__content {
|
.hero-video__content,
|
||||||
|
.hero-video__video {
|
||||||
@media ($screen-md) {
|
@media ($screen-md) {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -112,8 +112,9 @@ $menu-height-md: 73px;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.hero-video__content {
|
.hero-video__content {
|
||||||
|
|
||||||
@media ($screen-md) {
|
@media ($screen-md) {
|
||||||
z-index: 1;
|
z-index: 3 !important;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@ -123,14 +124,36 @@ $menu-height-md: 73px;
|
|||||||
|
|
||||||
// video container
|
// video container
|
||||||
.hero-video__background {
|
.hero-video__background {
|
||||||
z-index: 0;
|
@extend .color-overlay;
|
||||||
|
display: none;
|
||||||
|
|
||||||
@media ($screen-md) {
|
@media ($screen-md) {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: -9px;
|
||||||
max-height: 100vh;
|
max-height: 100vh;
|
||||||
|
|
||||||
|
&:before { z-index: 2; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// the video itself
|
// the video itself
|
||||||
.hero-video__video {
|
.hero-video__video,
|
||||||
|
.hero-video__poster {
|
||||||
@extend .img--responsive;
|
@extend .img--responsive;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hero-video__video {
|
||||||
|
@extend .transition;
|
||||||
|
opacity: 0;
|
||||||
|
margin: auto;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
&.enabled {
|
||||||
|
opacity: 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.hero-video__poster {
|
||||||
|
display: block;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
@ -55,6 +55,7 @@
|
|||||||
|
|
||||||
.section-description {
|
.section-description {
|
||||||
font-size: $font-size-lg;
|
font-size: $font-size-lg;
|
||||||
|
line-height: $line-height-lg;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|
||||||
+ .section-description {
|
+ .section-description {
|
||||||
|
@ -13,6 +13,6 @@ footer:
|
|||||||
- title: Contact
|
- title: Contact
|
||||||
url: /contact/
|
url: /contact/
|
||||||
- title: Terms
|
- title: Terms
|
||||||
url: /tos/
|
url: /terms/
|
||||||
- title: Privacy
|
- title: Privacy
|
||||||
url: /privacy/
|
url: /privacy/
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
{% include menu-main.html %}
|
{% include menu-main.html %}
|
||||||
|
|
||||||
<div class="hero__content hero-video__content row">
|
<div class="hero__content hero-video__content row">
|
||||||
|
|
||||||
<hgroup>
|
<hgroup>
|
||||||
<svg class="logo logo--full logo--white--green" aria-labelledby="title">
|
<svg class="logo logo--full logo--white--green" aria-labelledby="title">
|
||||||
<title>Logo</title>
|
<title>Logo</title>
|
||||||
@ -13,7 +12,6 @@
|
|||||||
<h1 class="section-title">{{ page.tagline }}</h1>
|
<h1 class="section-title">{{ page.tagline }}</h1>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
|
|
||||||
|
|
||||||
<a href="#features" class="scroll btn btn-link btn-sm">Learn More <svg class="icon">
|
<a href="#features" class="scroll btn btn-link btn-sm">Learn More <svg class="icon">
|
||||||
<use xlink:href="/assets/img/sprite.svg#icon-caret"></use>
|
<use xlink:href="/assets/img/sprite.svg#icon-caret"></use>
|
||||||
</svg></a>
|
</svg></a>
|
||||||
@ -24,6 +22,7 @@
|
|||||||
<source src="/assets/videos/{{ page.hero_video_name }}.mp4" type="video/mp4">
|
<source src="/assets/videos/{{ page.hero_video_name }}.mp4" type="video/mp4">
|
||||||
<source src="/assets/videos/{{ page.hero_video_name }}.webm" type="video/webm">
|
<source src="/assets/videos/{{ page.hero_video_name }}.webm" type="video/webm">
|
||||||
</video>
|
</video>
|
||||||
|
<img class="hero-video__poster" width="1920" height="1080" src="/assets/img/northern-lights-poster.jpg" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
@ -14,6 +14,7 @@ hero_video_name: northern-light
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<header class="section-header">
|
<header class="section-header">
|
||||||
<h1 class="section-title">This is BigchainDB. 100K writes/s, sustained.</h1>
|
<h1 class="section-title">This is BigchainDB. 100K writes/s, sustained.</h1>
|
||||||
|
<p class="section-description">BigchainDB allows enterprises to deploy blockchains at scale, formerly a limiting factor in getting sandbox proof-of-concepts into production systems.</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<figure>
|
<figure>
|
||||||
@ -40,6 +41,10 @@ hero_video_name: northern-light
|
|||||||
Use as a Public or Private Blockchain
|
Use as a Public or Private Blockchain
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="text-center">
|
||||||
|
<a href="/features" class="btn btn-primary">How it works</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@ -47,7 +52,7 @@ hero_video_name: northern-light
|
|||||||
<div class="row row--wide">
|
<div class="row row--wide">
|
||||||
<header class="section-header">
|
<header class="section-header">
|
||||||
<h1 class="section-title">Get started</h1>
|
<h1 class="section-title">Get started</h1>
|
||||||
<h1 class="section-description">Just clone and run</h1>
|
<p class="section-description">Just clone and run</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="grid grid--gutters grid--full grid-medium--columns grid--center">
|
<div class="grid grid--gutters grid--full grid-medium--columns grid--center">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user