diff --git a/data/23/events/utxo/_sync.js b/data/23/events/utxo/_sync.js index 3c7012e..e3d8cb5 100644 --- a/data/23/events/utxo/_sync.js +++ b/data/23/events/utxo/_sync.js @@ -1,7 +1,13 @@ export async function data($) { const bundle = await $.loadJSONUrl("https://spec.utxo.cz/23/bundle.json"); return { - speakers: bundle.spec.speakers, + speakers: bundle.spec.speakers.map(s => { + if (s.photos && s.photos[0]) { + const [ tp, ext ] = s.photos[0].split(":") + s.photoUrl = `https://spec.utxo.cz/22/photos/speakers/${s.id}-${tp}.${ext}` + } + return s + }), tracks: bundle.spec.tracks, }; } diff --git a/data/23/events/utxo/data.json b/data/23/events/utxo/data.json index da17635..46bab24 100644 --- a/data/23/events/utxo/data.json +++ b/data/23/events/utxo/data.json @@ -13,7 +13,9 @@ "photos": [ "web:png", "twitter:jpg" - ] + ], + "photoUrl": "https://spec.utxo.cz/22/photos/speakers/petr-lukac-web.png", + "photo": "photos/speakers/petr-lukáč.png" }, { "id": "tereza-starostova", @@ -27,7 +29,9 @@ "country": "cz", "photos": [ "twitter:jpg" - ] + ], + "photoUrl": "https://spec.utxo.cz/22/photos/speakers/tereza-starostova-twitter.jpg", + "photo": "photos/speakers/tereza-starostová.jpg" }, { "id": "tree", @@ -44,7 +48,9 @@ "desc": "Founder of @gweicz | 🦄 #Ethereum #DeFi #DAO enthusiast 🦇🔊 | ✈️ #travel maniac | ⚡ riding #electricunicycle | 🇨🇿🇬🇧 lang | 🟡⚫ | 🇺🇦 Слава Україні!\n", "photos": [ "twitter:jpg" - ] + ], + "photoUrl": "https://spec.utxo.cz/22/photos/speakers/tree-twitter.jpg", + "photo": "photos/speakers/tree.jpg" } ], "tracks": [ diff --git a/data/23/events/utxo/photos/speakers/petr-lukáč.png b/data/23/events/utxo/photos/speakers/petr-lukáč.png new file mode 100644 index 0000000..cad2f3e Binary files /dev/null and b/data/23/events/utxo/photos/speakers/petr-lukáč.png differ diff --git a/data/23/events/utxo/photos/speakers/tereza-starostová.jpg b/data/23/events/utxo/photos/speakers/tereza-starostová.jpg new file mode 100644 index 0000000..2ef003d Binary files /dev/null and b/data/23/events/utxo/photos/speakers/tereza-starostová.jpg differ diff --git a/data/23/events/utxo/photos/speakers/tree.jpg b/data/23/events/utxo/photos/speakers/tree.jpg new file mode 100644 index 0000000..7206963 Binary files /dev/null and b/data/23/events/utxo/photos/speakers/tree.jpg differ