+ {/* NOTE: only take first four videos, drop any others for style reasons */}
{ this.props.cover.videos.slice(0,4).map( (media, index) => (
-
this.setState({ video: index })} >
+
this.setState({ video: index + (headerVideos.length || 0)})} >
{media.buttonTitle}
{media.buttonSubtitle}
)) }
@@ -98,6 +102,7 @@ class TemplateCover extends React.Component {
paths: [video.file],
poster: video.poster
}}
+ translations={video.translations}
onCancel={() => this.setState({ video: MEDIA_HIDDEN })}
/>
) : null }
diff --git a/src/scss/cover.scss b/src/scss/cover.scss
index 4c86b19..0892d47 100644
--- a/src/scss/cover.scss
+++ b/src/scss/cover.scss
@@ -103,7 +103,8 @@
max-width: 100%;
min-height: 100px;
&.thin {
- min-width: 250px;
+ min-width: 350px;
+ width: 400px;
max-width: 400px;
}
margin: auto;
@@ -119,6 +120,9 @@
flex-direction: column;
}
justify-content: space-around;
+ &.vertical {
+ flex-direction: column;
+ }
.cell {
border: 1px solid white;
display: flex;
diff --git a/src/scss/overlay.scss b/src/scss/overlay.scss
index 5428bc9..35e9942 100644
--- a/src/scss/overlay.scss
+++ b/src/scss/overlay.scss
@@ -48,7 +48,7 @@ $overlay-bg: rgba(239,239,239,0.9);
top: 0;
width: 100%;
display: flex;
- justify-content: flex-start;
+ justify-content: space-between;
align-items: stretch;
flex-direction: row;
@@ -57,6 +57,7 @@ $overlay-bg: rgba(239,239,239,0.9);
justify-content: center;
align-items: center;
min-width: $banner-height;
+ width: $banner-height;
.material-icons {
font-size: 40pt;
background-color: transparent;
@@ -75,12 +76,12 @@ $overlay-bg: rgba(239,239,239,0.9);
}
.mo-banner-content {
- flex: 11;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
- h3 {
+ margin-left: $banner-height; // to offset the 2*$banner-height below
+ &.h3 {
border-radius: 2px;
padding: 10px 15px;
background-color: transparent;
@@ -88,6 +89,26 @@ $overlay-bg: rgba(239,239,239,0.9);
margin-left: -$banner-height;
}
}
+
+ .mo-banner-trans {
+ display: flex;
+ flex-direction: row;
+ justify-content: flex-start;
+ align-items: center;
+ min-width: 2 * $banner-height;
+ width: 2 * $banner-height;
+ // width: $banner-height;
+ .mo-trans {
+ padding: 15px;
+ margin: 10px;
+ border: 1px solid $darkwhite;
+ transition: 0.3s all ease;
+ &:hover {
+ background-color: $darkwhite;
+ cursor: pointer;
+ }
+ }
+ }
}
.media-gallery-controls {