update cover

This commit is contained in:
Lachlan Kermode
2020-07-01 11:30:49 +02:00
parent 1a8fe3b832
commit 200a2826e6
2 changed files with 4 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ class TemplateCover extends React.Component {
const { featureVideo } = this.props.cover
const { featureLang } = this.state
const { translations } = featureVideo
console.log(featureVideo)
const source = featureLang === 0
? featureVideo
: {
@@ -143,10 +144,10 @@ class TemplateCover extends React.Component {
</div>
) : null
}
<h1 dangerouslySetInnerHTML={{ __html: marked(this.props.cover.title) }} />
<h2 style={{ margin: 0 }} dangerouslySetInnerHTML={{ __html: marked(this.props.cover.title) }} />
{
this.props.cover.subtitle ? (
<h3>{this.props.cover.subtitle}</h3>
<h3 style={{ marginTop: 0 }}>{this.props.cover.subtitle}</h3>
) : null
}
{

View File

@@ -203,6 +203,7 @@
max-width: 600px;
overflow-y: auto;
overflow-x: hidden;
margin-bottom: 10em;
h1, h2, h3, h4, h5 { text-align: center; }
h1 { margin-bottom: -15px; margin-top: 30px; }
h5 { margin-top: -15px; }