@@ -13,7 +13,6 @@ defmodule AlgoraWeb.HomeLive do
1313 alias Algora.Jobs.JobPosting
1414 alias Algora.Payments.Transaction
1515 alias Algora.Repo
16- alias Algora.Workspace.Ticket
1716 alias AlgoraWeb.Components.Footer
1817 alias AlgoraWeb.Components.Header
1918 alias AlgoraWeb.Data.PlatformStats
@@ -627,39 +626,6 @@ defmodule AlgoraWeb.HomeLive do
627626 { :noreply , assign ( socket , :user_metadata , AsyncResult . failed ( socket . assigns . user_metadata , reason ) ) }
628627 end
629628
630- defp dev_card ( assigns ) do
631- ~H"""
632- < . link navigate = { User . url ( @ dev ) } target = "_blank " class = "relative " >
633- < img
634- src = { @ dev . avatar_url }
635- alt = { @ dev . name }
636- class = "aspect-square w-full rounded-xl rounded-b-none bg-muted object-cover shadow-lg ring-1 ring-border "
637- />
638- < div class = "font-display mt-1 rounded-xl rounded-t-none bg-card/50 p-3 text-sm ring-1 ring-border backdrop-blur-sm " >
639- < div class = "font-semibold text-foreground " >
640- { @ dev . name } { Algora.Misc.CountryEmojis . get ( @ dev . country ) }
641- </ div >
642- < div class = "mt-0.5 text-xs font-medium text-foreground line-clamp-2 " > { @ dev . bio } </ div >
643- < div class = "hidden mt-1 text-sm " >
644- < div class = "-ml-1 flex h-6 flex-wrap gap-1 overflow-hidden p-px text-sm " >
645- <%= for tech <- @ dev . tech_stack do %>
646- < span class = "rounded-xl bg-muted/50 px-2 py-0.5 text-xs text-muted-foreground ring-1 ring-border " >
647- { tech }
648- </ span >
649- <% end %>
650- </ div >
651- </ div >
652- < div class = "mt-0.5 text-xs text-muted-foreground " >
653- < span class = "font-medium " > Total Earned:</ span >
654- < span class = "text-sm font-bold text-success " >
655- { Money . to_string! ( @ dev . total_earned , no_fraction_if_integer: true ) }
656- </ span >
657- </ div >
658- </ div >
659- </ . link >
660- """
661- end
662-
663629 defp get_total_paid_out do
664630 subtotal =
665631 Repo . one (
@@ -771,79 +737,6 @@ defmodule AlgoraWeb.HomeLive do
771737 """
772738 end
773739
774- defp events ( assigns ) do
775- ~H"""
776- < ul class = "w-full pl-10 relative space-y-8 " >
777- < li :for = { { transaction , index } <- @ transactions |> Enum . with_index ( ) } class = "relative " >
778- < div >
779- < div class = "relative -ml-[2.75rem] " >
780- < span
781- :if = { index != length ( @ transactions ) - 1 }
782- class = "absolute left-1 top-6 h-full w-0.5 block ml-[2.75rem] bg-muted-foreground/25 "
783- aria-hidden = "true "
784- >
785- </ span >
786- < . link
787- rel = "noopener "
788- target = "_blank "
789- class = "w-full group inline-flex "
790- href = { transaction . ticket . url }
791- >
792- < div class = "w-full relative flex space-x-3 " >
793- < div class = "w-full flex min-w-0 flex-1 justify-between space-x-4 pt-1.5 " >
794- < div class = "w-full flex items-center gap-3 " >
795- < div class = "flex -space-x-1 ring-8 ring-[#050505] " >
796- < span class = "relative shrink-0 overflow-hidden flex h-9 w-9 items-center justify-center rounded-xl ring-4 bg-gray-950 ring-[#050505] " >
797- < img
798- class = "aspect-square h-full w-full "
799- alt = { transaction . user . name }
800- src = { transaction . user . avatar_url }
801- />
802- </ span >
803- < span class = "relative shrink-0 overflow-hidden flex h-9 w-9 items-center justify-center rounded-xl ring-4 bg-gray-950 ring-[#050505] " >
804- < img
805- class = "aspect-square h-full w-full "
806- alt = { transaction . linked_transaction . user . name }
807- src = { transaction . linked_transaction . user . avatar_url }
808- />
809- </ span >
810- </ div >
811- < div class = "w-full z-10 flex gap-3 items-start xl:items-end " >
812- < p class = "text-xs transition-colors text-muted-foreground group-hover:text-foreground/90 sm:text-base " >
813- < span class = "font-semibold text-foreground/80 group-hover:text-foreground transition-colors " >
814- { transaction . linked_transaction . user . name }
815- </ span >
816- awarded
817- < span class = "font-semibold text-foreground/80 group-hover:text-foreground transition-colors " >
818- { transaction . user . name }
819- </ span >
820- a
821- < span class = "font-bold font-display text-success-400 group-hover:text-success-300 transition-colors " >
822- { Money . to_string! ( transaction . net_amount ) }
823- </ span >
824- <%= if transaction . bounty_id do %>
825- bounty
826- <% else %>
827- tip
828- <% end %>
829- </ p >
830- < div class = "ml-auto xl:ml-0 xl:mb-[2px] whitespace-nowrap text-xs text-muted-foreground sm:text-sm " >
831- < time datetime = { transaction . succeeded_at } >
832- { Algora.Util . time_ago ( transaction . succeeded_at ) }
833- </ time >
834- </ div >
835- </ div >
836- </ div >
837- </ div >
838- </ div >
839- </ . link >
840- </ div >
841- </ div >
842- </ li >
843- </ ul >
844- """
845- end
846-
847740 defp social_icons do
848741 % {
849742 website: "tabler-world" ,
0 commit comments