Skip to content

Commit

Permalink
Add location data
Browse files Browse the repository at this point in the history
  • Loading branch information
tiago-bacelar committed Jun 5, 2023
1 parent db418bf commit 740d2c4
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 17 deletions.
31 changes: 26 additions & 5 deletions data/schedule.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,30 @@
{
"title": "Acreditação",
"hours": "05/06/2023 9:30 AM",
"location": "location",
"location": "Acreditação",
"speaker": null,
"company": null,
"href": null
},
{
"title": "Sessão de abertura",
"hours": "05/06/2023 10:00 AM",
"location": "location",
"location": "CP1 A1",
"speaker": null,
"company": null,
"href": null
},
{
"title": "☕ Coffee break",
"hours": "05/06/2023 11:00 AM",
"location": "location",
"speaker": null,
"company": null,
"href": null
},
{
"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
Expand All @@ -42,28 +41,31 @@
{
"title": "[Pitch] Agentifai",
"hours": "05/06/2023 02:00 PM",
"location": "CP1 0.20",
"speaker": null,
"company": "Agentifai",
"href": null
},
{
"title": "[Talk] Functional Web Development",
"hours": "05/06/2023 02:10 PM",
"location": "CP1 0.20",
"speaker": "Nelson Estevão",
"company": "Marmelasoft",
"href": null
},
{
"title": "[Pitch] Bliss",
"hours": "05/06/2023 03:10 PM",
"location": "CP1 0.20",
"speaker": null,
"company": "Bliss",
"href": null
},
{
"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
Expand All @@ -78,13 +80,15 @@
{
"title": "[Pitch] DTx CoLAB",
"hours": "05/06/2023 04:50 PM",
"location": "CP1 0.20",
"speaker": null,
"company": "DTx CoLAB",
"href": null
},
{
"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
Expand All @@ -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"
Expand All @@ -115,13 +120,15 @@
{
"title": "[Pitch] Atice Labs",
"hours": "06/06/2023 11:20 AM",
"location": "CP1 0.20",
"speaker": null,
"company": "Altice Labs",
"href": null
},
{
"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"
},
Expand All @@ -135,27 +142,31 @@
{
"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
},
{
"title": "[Pitch] Retail Consult",
"hours": "06/06/2023 03:00 PM",
"location": "CP1 0.20",
"speaker": null,
"company": "Retail Consult",
"href": null
},
{
"title": "[Pitch] Wintouch",
"hours": "06/06/2023 03:10 PM",
"location": "CP1 0.20",
"speaker": null,
"company": "Wintouch",
"href": null
},
{
"title": "Concurso de Programação",
"hours": "06/06/2023 03:20 PM",
"location": "CP1 0.20",
"speaker": null,
"company": null,
"href": null
Expand All @@ -170,13 +181,15 @@
{
"title": "[Pitch] Accenture",
"hours": "06/06/2023 04:50 PM",
"location": "CP1 0.20",
"speaker": null,
"company": "Accenture",
"href": null
},
{
"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
Expand All @@ -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"
Expand All @@ -207,13 +221,15 @@
{
"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
},
{
"title": "[Pitch] Algoritmi",
"hours": "06/06/2023 12:10 PM",
"location": "CP1 0.20",
"speaker": null,
"company": "Algoritmi",
"href": null
Expand All @@ -228,20 +244,23 @@
{
"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
},
{
"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
},
{
"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
Expand All @@ -256,13 +275,15 @@
{
"title": "Mesa redonda",
"hours": "07/06/2023 04:30 PM",
"location": "CP1 0.20",
"speaker": null,
"company": null,
"href": null
},
{
"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
Expand Down
12 changes: 6 additions & 6 deletions lib/parzival_web/live/landing/home_live/index.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,20 @@
else
"bg-[#BB2A22]"
end} w-36 h-44 rounded-3xl relative -z-50"}>
<span class="text-white">
<p class="absolute left-3 top-4 w-32 text-sm font-light">
<span class="inline-block py-3 px-3 text-white">
<p class="text-sm font-light">
<%= if String.length(activity["title"]) < 50 do
activity["title"]
else
String.slice(activity["title"], 0..48) <> "... "
end %>
</p>
<%= if activity["location"] do %>
<p class="absolute left-3 w-32 font-bold text-md top-[88px]">
<%= if String.length(activity["location"]) < 12 do
<p class="text-md">
<%= if String.length(activity["location"]) < 15 do
activity["location"]
else
String.slice(activity["location"], 0..10) <> "... "
else
String.slice(activity["location"], 0..13) <> "... "
end %>
</p>
<% end %>
Expand Down
12 changes: 6 additions & 6 deletions lib/parzival_web/live/landing/schedule_live/index.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,20 @@
else
"bg-[#BB2A22]"
end} w-36 h-44 rounded-3xl relative -z-50"}>
<span class="text-white">
<p class="absolute left-3 top-4 w-32 text-sm font-light">
<span class="inline-block py-3 px-3 text-white">
<p class="text-sm font-light">
<%= if String.length(activity["title"]) < 50 do
activity["title"]
else
String.slice(activity["title"], 0..48) <> "... "
end %>
</p>
<%= if activity["location"] do %>
<p class="absolute left-3 w-32 font-bold text-md top-[88px]">
<%= if String.length(activity["location"]) < 12 do
<p class="text-md">
<%= if String.length(activity["location"]) < 15 do
activity["location"]
else
String.slice(activity["location"], 0..10) <> "... "
else
String.slice(activity["location"], 0..13) <> "... "
end %>
</p>
<% end %>
Expand Down

0 comments on commit 740d2c4

Please sign in to comment.