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(/]*>/)) } if (annotation.settings.subtitle) { lines = lines.concat(annotation.settings.subtitle.split(/]*>/)) } return (
{lines.map((line, i) => ( ))}
) } export const Schedule = ({ media }) => { const nameLookup = Object.values(media.lookup).reduce((a,b) => { a.add(b.author) return a }, new Set) return (
Schedule
{SCHEDULE.map(row => (
{row.date}
{'Episode '}{row.id}{': '} {row.title}
))}
Curator
{ABOUT.curator}
Authors
{ABOUT.authors}
Artists
{Array.from(nameLookup).sort().join("\n")}
) } 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", }