blob: 2d7003855f190eca7589e2cd3b7b8b55a4c2c3bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
import React, { Component } from 'react'
export const Intro = ({ paragraph, media, currentParagraph, currentAnnotation, onAnnotationClick }) => {
let className = 'site-intro'
const annotation = paragraph.annotations[0]
const item = media.lookup[annotation.settings.media_id]
console.log(item)
const style = {
backgroundImage: 'url(' + item.settings.file.url + ')',
}
return (
<div>
<div
className='site-intro'
style={style}
>
<div className='inner'>
{annotation.settings.title && <span dangerouslySetInnerHTML={{ __html: annotation.settings.title }} />}
{annotation.settings.subtitle && <span dangerouslySetInnerHTML={{ __html: annotation.settings.subtitle }} />}
</div>
</div>
<div className='schedule'>
<div>Schedule</div>
<div>
</div>
</div>
</div>
)
}
const schedule = [
{ date: 'Mon 00-00, 2020', title: 'Episode 1: ' },
]
|