From 95c0eff41459349ff128dc160e81ed9c867bbc4f Mon Sep 17 00:00:00 2001 From: gxnca Date: Sun, 7 Dec 2025 14:14:40 +0000 Subject: [PATCH] feat: customizable enei ticket --- lib/pearl_web/components/ticket.ex | 381 +++++++++++++++++++++++++++++ 1 file changed, 381 insertions(+) create mode 100644 lib/pearl_web/components/ticket.ex diff --git a/lib/pearl_web/components/ticket.ex b/lib/pearl_web/components/ticket.ex new file mode 100644 index 0000000..7ca6bec --- /dev/null +++ b/lib/pearl_web/components/ticket.ex @@ -0,0 +1,381 @@ +defmodule PearlWeb.Components.Ticket do + @moduledoc false + + use PearlWeb, :component + + attr :class, :string, default: "" + attr :attendee, :string, default: nil + attr :ticket_type, :string, default: nil + + def ticket(assigns) do + ~H""" +
+ + + + + + + + + + + + + enco + n + t + r + o n + a + cional de + + + e + s + tuda + n + t + es de i + n + f + orm + á + tica + + + + + B + r + a + ga • 9-12 abril 2026 + + + + + + + + + + + + + NOME + + + + + + + F + orum B + r + a + ga + + + + + A + v + . + D + r + . + F + r + ancisco Pi + r + es + + + + + Gonçal + v + es + + + + + 4 + 7 + 15-558 B + r + a + ga + + + + + + + ADMIS + S + Ã + O + + + + + + + {if @attendee, do: @attendee, else: "Participante do ENEI"} + + + + + + + {if @ticket_type, do: @ticket_type, else: "Passe Geral"} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ """ + end +end