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 + ')',
}
const nameLookup = Object.values(media.lookup).reduce((a,b) => {
a.add(b.author)
return a
}, new Set)
return (
{annotation.settings.title && }
{annotation.settings.subtitle && }
Schedule
{SCHEDULE.map(row => (
{row.date}
{'Episode '}{row.id}{': '}
{row.title}
))}
Artists
{Array.from(nameLookup).sort().join("\n")}
Sponsors
{ABOUT.sponsors}
)
}
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",
sponsors: "This\nThis\nThis",
}