From 740d2c4bedbfbf202534b50b369822777c746b87 Mon Sep 17 00:00:00 2001 From: tiago-bacelar Date: Mon, 5 Jun 2023 15:37:57 +0100 Subject: [PATCH] Add location data --- data/schedule.json | 31 ++++++++++++++++--- .../live/landing/home_live/index.html.heex | 12 +++---- .../landing/schedule_live/index.html.heex | 12 +++---- 3 files changed, 38 insertions(+), 17 deletions(-) diff --git a/data/schedule.json b/data/schedule.json index 15a8fb2e..2095dae1 100644 --- a/data/schedule.json +++ b/data/schedule.json @@ -3,7 +3,7 @@ { "title": "Acreditação", "hours": "05/06/2023 9:30 AM", - "location": "location", + "location": "Acreditação", "speaker": null, "company": null, "href": null @@ -11,7 +11,7 @@ { "title": "Sessão de abertura", "hours": "05/06/2023 10:00 AM", - "location": "location", + "location": "CP1 A1", "speaker": null, "company": null, "href": null @@ -19,7 +19,6 @@ { "title": "☕ Coffee break", "hours": "05/06/2023 11:00 AM", - "location": "location", "speaker": null, "company": null, "href": null @@ -27,7 +26,7 @@ { "title": "[Talk] Do algoritmo ao impacto: uma viagem pela disrupção da IA", "hours": "05/06/2023 11:30 AM", - "location": "location", + "location": "CP1 0.20", "speaker": "Michel Ozzello", "company": "Agentifai", "href": null @@ -42,6 +41,7 @@ { "title": "[Pitch] Agentifai", "hours": "05/06/2023 02:00 PM", + "location": "CP1 0.20", "speaker": null, "company": "Agentifai", "href": null @@ -49,6 +49,7 @@ { "title": "[Talk] Functional Web Development", "hours": "05/06/2023 02:10 PM", + "location": "CP1 0.20", "speaker": "Nelson Estevão", "company": "Marmelasoft", "href": null @@ -56,6 +57,7 @@ { "title": "[Pitch] Bliss", "hours": "05/06/2023 03:10 PM", + "location": "CP1 0.20", "speaker": null, "company": "Bliss", "href": null @@ -63,7 +65,7 @@ { "title": "[Talk] Web and Mobile Development in 2023", "hours": "05/06/2023 03:20 PM", - "location": "location", + "location": "CP1 0.20", "speaker": "Nuno Pereira", "company": "Bliss", "href": null @@ -78,6 +80,7 @@ { "title": "[Pitch] DTx CoLAB", "hours": "05/06/2023 04:50 PM", + "location": "CP1 0.20", "speaker": null, "company": "DTx CoLAB", "href": null @@ -85,6 +88,7 @@ { "title": "[Talk] Accenture READY! SET! CLOUD!", "hours": "05/06/2023 05:00 PM", + "location": "CP1 0.20", "speaker": "Zeeshan Hurmat & Ana Costeira", "company": "Accenture", "href": null @@ -101,6 +105,7 @@ { "title": "[Workshop] Kick-Start a React Project", "hours": "06/06/2023 09:00 AM", + "location": "CP1 0.20", "speaker": "Rui Rigueira", "company": "Bliss", "href": "https://www.eventbrite.pt/e/workshop-kick-start-a-react-project-tickets-648159040137" @@ -115,6 +120,7 @@ { "title": "[Pitch] Atice Labs", "hours": "06/06/2023 11:20 AM", + "location": "CP1 0.20", "speaker": null, "company": "Altice Labs", "href": null @@ -122,6 +128,7 @@ { "title": "[Talk] Mobile Development and MEO Go Showcase", "hours": "06/06/2023 11:30 AM", + "location": "CP1 0.20", "speaker": "Romeu Gomes", "company": "Altice Labs" }, @@ -135,6 +142,7 @@ { "title": "[Talk] Inteligência Artificial nos nossos dias", "hours": "06/06/2023 02:00 PM", + "location": "CP1 0.20", "speaker": "Paulo Novais", "company": "Professor Universitário", "href": null @@ -142,6 +150,7 @@ { "title": "[Pitch] Retail Consult", "hours": "06/06/2023 03:00 PM", + "location": "CP1 0.20", "speaker": null, "company": "Retail Consult", "href": null @@ -149,6 +158,7 @@ { "title": "[Pitch] Wintouch", "hours": "06/06/2023 03:10 PM", + "location": "CP1 0.20", "speaker": null, "company": "Wintouch", "href": null @@ -156,6 +166,7 @@ { "title": "Concurso de Programação", "hours": "06/06/2023 03:20 PM", + "location": "CP1 0.20", "speaker": null, "company": null, "href": null @@ -170,6 +181,7 @@ { "title": "[Pitch] Accenture", "hours": "06/06/2023 04:50 PM", + "location": "CP1 0.20", "speaker": null, "company": "Accenture", "href": null @@ -177,6 +189,7 @@ { "title": "[Talk] CI/CD > Build/Deploy Automation", "hours": "06/06/2023 5:00 PM", + "location": "CP1 0.20", "speaker": "Riardo Castro", "company": "Blip.pt", "href": null @@ -193,6 +206,7 @@ { "title": "[Workshop] Testa ou detesta o teu código (Testes unitários)", "hours": "07/06/2023 09:00 AM", + "location": "CP1 0.20", "speaker": "Hugo Cardoso", "company": "Agentifai", "href": "https://www.eventbrite.pt/e/workshop-kick-start-a-react-project-tickets-648159040137" @@ -207,6 +221,7 @@ { "title": "[Talk] Gerando novas moléculas adoçantes com Inteligência Artificial", "hours": "07/06/2023 11:30 AM", + "location": "CP1 0.20", "speaker": "João Capela", "company": "CEB", "href": null @@ -214,6 +229,7 @@ { "title": "[Pitch] Algoritmi", "hours": "06/06/2023 12:10 PM", + "location": "CP1 0.20", "speaker": null, "company": "Algoritmi", "href": null @@ -228,6 +244,7 @@ { "title": "[Talk] Regulamentação e Futuro da IA na Comunidade Europeia", "hours": "07/06/2023 02:00 PM", + "location": "CP1 0.20", "speaker": "Alexandra Oliveira", "company": "Retail Consult", "href": null @@ -235,6 +252,7 @@ { "title": "[Talk] What is quantum computing … and why you should care", "hours": "07/06/2023 03:00 PM", + "location": "CP1 0.20", "speaker": "Luís Soares Barbosa", "company": "Professor Universitário", "href": null @@ -242,6 +260,7 @@ { "title": "[Pitch] INESC TEC", "hours": "07/06/2023 04:00 PM", + "location": "CP1 0.20", "speaker": null, "company": "INESC TEC + Universidade do Minho", "href": null @@ -256,6 +275,7 @@ { "title": "Mesa redonda", "hours": "07/06/2023 04:30 PM", + "location": "CP1 0.20", "speaker": null, "company": null, "href": null @@ -263,6 +283,7 @@ { "title": "🏆 Cerimónia de encerramento + Entrega de prémios", "hours": "07/06/2023 05:30 PM", + "location": "CP1 A1", "speaker": null, "company": null, "href": null diff --git a/lib/parzival_web/live/landing/home_live/index.html.heex b/lib/parzival_web/live/landing/home_live/index.html.heex index 283f4072..2b089095 100644 --- a/lib/parzival_web/live/landing/home_live/index.html.heex +++ b/lib/parzival_web/live/landing/home_live/index.html.heex @@ -102,8 +102,8 @@ else "bg-[#BB2A22]" end} w-36 h-44 rounded-3xl relative -z-50"}> - -

+ +

<%= if String.length(activity["title"]) < 50 do activity["title"] else @@ -111,11 +111,11 @@ end %>

<%= if activity["location"] do %> -

- <%= if String.length(activity["location"]) < 12 do +

+ <%= if String.length(activity["location"]) < 15 do activity["location"] - else - String.slice(activity["location"], 0..10) <> "... " + else + String.slice(activity["location"], 0..13) <> "... " end %>

<% end %> diff --git a/lib/parzival_web/live/landing/schedule_live/index.html.heex b/lib/parzival_web/live/landing/schedule_live/index.html.heex index 24c4f101..79d829b0 100644 --- a/lib/parzival_web/live/landing/schedule_live/index.html.heex +++ b/lib/parzival_web/live/landing/schedule_live/index.html.heex @@ -49,8 +49,8 @@ else "bg-[#BB2A22]" end} w-36 h-44 rounded-3xl relative -z-50"}> - -

+ +

<%= if String.length(activity["title"]) < 50 do activity["title"] else @@ -58,11 +58,11 @@ end %>

<%= if activity["location"] do %> -

- <%= if String.length(activity["location"]) < 12 do +

+ <%= if String.length(activity["location"]) < 15 do activity["location"] - else - String.slice(activity["location"], 0..10) <> "... " + else + String.slice(activity["location"], 0..13) <> "... " end %>

<% end %>