diff --git a/src/lib/config.js b/src/lib/config.js index e07472a..3eb0ac9 100644 --- a/src/lib/config.js +++ b/src/lib/config.js @@ -1,31 +1,43 @@ export const EventTypes = { panel: { + text: 'Panelová debata', color: 'bg-orange-400', colorLight: 'bg-orange-400/20', colorDark: 'bg-orange-400/40' }, talk: { + text: 'Přednáška', color: 'bg-custom-green', colorLight: 'bg-custom-green/20', colorDark: 'bg-custom-green/40' }, workshop: { + text: 'Workshop', color: 'bg-custom-blue', colorLight: 'bg-custom-blue/20', colorDark: 'bg-custom-blue/40' }, campfire: { + text: 'Campfire', color: 'bg-purple-400', colorLight: 'bg-purple-400/20', colorDark: 'bg-purple-400/40' }, + lightning: { + text: 'Blesková přednáška', + color: 'bg-pink-400', + colorLight: 'bg-pink-400/20', + colorDark: 'bg-pink-400/40' + }, 'lightning-series': { + text: 'Série bleskových přednášek', color: 'bg-yellow-400', colorLight: 'bg-yellow-400/20', colorDark: 'bg-yellow-400/40' }, other: { + text: 'Ostatní', color: 'bg-rose-400', colorLight: 'bg-rose-400/20', colorDark: 'bg-rose-400/40' diff --git a/src/lib/header/Header.svelte b/src/lib/header/Header.svelte index 964305f..1fb2595 100644 --- a/src/lib/header/Header.svelte +++ b/src/lib/header/Header.svelte @@ -90,7 +90,7 @@ class:text-blue-400={$page.url.pathname === "/program"}>Program {#if $page.url.pathname !== "/tv"} - Praktické + Záznamy - utxo.tv + Fotky +

Fotky - zavi

+ +
+ + +
+ diff --git a/src/routes/tv-screen.svelte b/src/routes/tv-screen.svelte index 22cff12..377b33a 100644 --- a/src/routes/tv-screen.svelte +++ b/src/routes/tv-screen.svelte @@ -24,9 +24,10 @@ $: stage = stageId && $bundle ? $bundle.spec.stages.find(s => s.id === stageId) : null $: ss = stageId ? stageStatus[stageId] : null - $: eventId = getParam($page.url.search, 'id') - $: si = $bundle ? $bundle.spec.schedule.find(i => i.id === eventId) : null - $: event = si ? $bundle.spec.events.find(e => e.id === si.event) : null + $: scheduleId = getParam($page.url.search, 'id') + $: eventId = getParam($page.url.search, 'event') + $: si = $bundle ? $bundle.spec.schedule.find(i => i.id === scheduleId) : null + $: event = si ? $bundle.spec.events.find(e => e.id === si.event) : (eventId && $bundle ? $bundle.spec.events.find(e => e.id === eventId) : null) function getSpeakers (speakers) { return speakers.map(sId => { @@ -76,7 +77,7 @@
-
{event.type === 'talk' ? 'Přednáška' : (event.type == 'panel' ? 'Panelová debata' : 'Ostatní' )}
+
{EventTypes[event.type].text}
{event.name}