@@ -189,50 +189,52 @@ defmodule AlgoraWeb.CommunityLive do
189189 @ impl true
190190 def render ( assigns ) do
191191 ~H"""
192- < div class = "container mx-auto max-w-7xl space-y-6 p-4 md:p-6 lg:px-8 " >
193- < . section title = "Bounties " subtitle = "Open bounties for you " >
194- < div class = "mb-4 flex sm:flex-wrap gap-2 whitespace-nowrap overflow-x-auto scrollbar-thin " >
195- <%= for { tech , count } <- @ techs do %>
196- < div phx-click = "toggle_tech " phx-value-tech = { tech } class = "cursor-pointer " >
197- < . badge
198- variant = { if String . downcase ( tech ) in @ selected_techs , do: "success" , else: "default" }
199- class = {
200- if String . downcase ( tech ) in @ selected_techs ,
201- do: "hover:bg-success/5 transition-colors" ,
202- else: "hover:bg-accent/80 transition-colors"
203- }
204- >
205- { tech } ({ count } )
206- </ . badge >
207- </ div >
208- <% end %>
209- </ div >
210- <%= if Enum. empty? ( @ bounties ) do %>
211- < . card class = "rounded-lg bg-card py-12 text-center lg:rounded-[2rem] " >
212- < . card_header >
213- < div class = "mx-auto mb-2 rounded-full bg-muted p-4 " >
214- < . icon name = "tabler-diamond " class = "h-8 w-8 text-muted-foreground " />
192+ < main class = "relative overflow-hidden " >
193+ < section class = "container mx-auto max-w-7xl space-y-6 p-4 md:p-6 lg:px-8 " >
194+ < . section title = "Bounties " subtitle = "Open bounties for you " >
195+ < div class = "mb-4 flex sm:flex-wrap gap-2 whitespace-nowrap overflow-x-auto scrollbar-thin " >
196+ <%= for { tech , count } <- @ techs do %>
197+ < div phx-click = "toggle_tech " phx-value-tech = { tech } class = "cursor-pointer " >
198+ < . badge
199+ variant = {
200+ if String . downcase ( tech ) in @ selected_techs , do: "success" , else: "default"
201+ }
202+ class = {
203+ if String . downcase ( tech ) in @ selected_techs ,
204+ do: "hover:bg-success/5 transition-colors" ,
205+ else: "hover:bg-accent/80 transition-colors"
206+ }
207+ >
208+ { tech } ({ count } )
209+ </ . badge >
215210 </ div >
216- < . card_title > No bounties yet</ . card_title >
217- < . card_description >
218- Open bounties will appear here once created
219- </ . card_description >
220- </ . card_header >
221- </ . card >
222- <% else %>
223- < div id = "bounties-container " phx-hook = "InfiniteScroll " >
224- < . bounties bounties = { @ bounties |> Enum . take ( 20 ) } />
225- <%!-- <div :if={@has_more_bounties} class="flex justify-center mt-4" data-load-more-indicator>
211+ <% end %>
212+ </ div >
213+ <%= if Enum. empty? ( @ bounties ) do %>
214+ < . card class = "rounded-lg bg-card py-12 text-center lg:rounded-[2rem] " >
215+ < . card_header >
216+ < div class = "mx-auto mb-2 rounded-full bg-muted p-4 " >
217+ < . icon name = "tabler-diamond " class = "h-8 w-8 text-muted-foreground " />
218+ </ div >
219+ < . card_title > No bounties yet</ . card_title >
220+ < . card_description >
221+ Open bounties will appear here once created
222+ </ . card_description >
223+ </ . card_header >
224+ </ . card >
225+ <% else %>
226+ < div id = "bounties-container " phx-hook = "InfiniteScroll " >
227+ < . bounties bounties = { @ bounties |> Enum . take ( 20 ) } />
228+ <%!-- <div :if={@has_more_bounties} class="flex justify-center mt-4" data-load-more-indicator>
226229 <div class="animate-pulse text-muted-foreground">
227230 <.icon name="tabler-loader" class="h-6 w-6 animate-spin" />
228231 </div>
229232 </div> --%>
230- </ div >
231- <% end %>
232- </ . section >
233- </ div >
233+ </ div >
234+ <% end %>
235+ </ . section >
236+ </ section >
234237
235- < main class = "relative overflow-hidden " >
236238 < section class = "relative isolate " >
237239 < div class = "relative isolate -z-10 py-[35vw] sm:py-[25vw] " >
238240 < div class = "z-20 absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform " >
0 commit comments