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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
import React, { Component } from 'react'
import { MediaCitation } from '../components.media'
export const Intro = ({ paragraph, media, onAnnotationClick }) => {
const annotation = paragraph.annotations[0]
const item = media.lookup[annotation.settings.media_id]
// console.log(item)
const style = {
backgroundImage: 'url(' + item.settings.file.url + ')',
}
let lines = []
if (annotation.settings.title) {
lines = lines.concat(annotation.settings.title.split(/<br[^>]*>/))
}
if (annotation.settings.subtitle) {
lines = lines.concat(annotation.settings.subtitle.split(/<br[^>]*>/))
}
return (
<div>
<div
className='site-intro'
style={style}
>
<div className='inner'>
{lines.map((line, i) => (
<span key={i} dangerouslySetInnerHTML={{ __html: line }} />
))}
</div>
</div>
<div className='media'>
<MediaCitation media={item} />
</div>
</div>
)
}
export const Schedule = ({ media }) => {
const nameLookup = Object.values(media.lookup).reduce((a,b) => {
a.add(b.author)
return a
}, new Set)
return (
<div>
<div className='schedule'>
<div className='schedule-title'>Schedule</div>
{SCHEDULE.map(row => (
<div className={row.active ? 'schedule-row active' : 'schedule-row inactive'} key={row.id}>
<div className='schedule-date'>
{row.date}
</div>
<div className='schedule-title'>
{'Episode '}{row.id}{': '}
<i>{row.title}</i>
</div>
</div>
))}
</div>
<div className='credits'>
<div>
<div className='credits-title'>
Curator
</div>
<div className='credits-info'>
{ABOUT.curator}
</div>
</div>
<div>
<div className='credits-title'>
Authors
</div>
<div className='credits-info'>
{ABOUT.authors}
</div>
</div>
<div>
<div className='credits-title'>
Artists
</div>
<div className='credits-info'>
{Array.from(nameLookup).sort().join("\n")}
</div>
</div>
</div>
</div>
)
}
const SCHEDULE = [
{ id: 1, active: true, date: 'Mon 00-00, 2020', title: 'Animist Origins & Export Projections' },
{ id: 2, active: false, date: 'Mon 00-00, 2020', title: 'Animation & The Mummy Complex: The Museum' },
{ id: 3, active: false, date: 'Mon 00-00, 2020', title: 'The Extirpation of Animism' },
{ id: 4, active: false, date: 'Mon 00-00, 2020', title: 'Media History & Animism\'s Continuous Displacement' },
{ id: 5, active: false, date: 'Mon 00-00, 2020', title: 'Soul-Design or Liminal Cosmologies' },
{ id: 6, active: false, date: 'Mon 00-00, 2020', title: 'Animal, Mythic and Other' },
]
const ABOUT = {
curator: "Anselm Franke",
authors: "Anselm Franke\nAmal Issa",
}
|