@@ -269,50 +269,42 @@ defmodule AlgoraWeb.CommunityLive do
269269 </ div >
270270 </ section >
271271
272- < section class = "container mx-auto max-w-7xl space-y-6 p-4 md:p-6 lg:px-8 " >
273- < . section title = "Bounties " subtitle = "Open bounties for you " >
274- < div class = "mb-4 flex sm:flex-wrap gap-2 whitespace-nowrap overflow-x-auto scrollbar-thin " >
275- <%= for { tech , count } <- @ techs do %>
276- < div phx-click = "toggle_tech " phx-value-tech = { tech } class = "cursor-pointer " >
277- < . badge
278- variant = {
279- if String . downcase ( tech ) in @ selected_techs , do: "success" , else: "default"
280- }
281- class = {
282- if String . downcase ( tech ) in @ selected_techs ,
283- do: "hover:bg-success/5 transition-colors" ,
284- else: "hover:bg-accent/80 transition-colors"
285- }
286- >
287- { tech } ({ count } )
288- </ . badge >
289- </ div >
290- <% end %>
291- </ div >
292- <%= if Enum. empty? ( @ bounties ) do %>
293- < . card class = "rounded-lg bg-card py-12 text-center lg:rounded-[2rem] " >
294- < . card_header >
295- < div class = "mx-auto mb-2 rounded-full bg-muted p-4 " >
296- < . icon name = "tabler-diamond " class = "h-8 w-8 text-muted-foreground " />
272+ <%= if not Enum . empty? ( @ bounties ) do %>
273+ < section class = "relative " >
274+ < h2 class = "font-display text-4xl font-semibold tracking-tight text-foreground sm:text-6xl text-center mb-2 sm:mb-4 " >
275+ < span class = "drop-shadow-[0_1px_5px_#00000080] " >
276+ Bounties
277+ </ span >
278+ </ h2 >
279+ < p class = "text-center font-medium text-base text-muted-foreground sm:text-xl mx-auto " >
280+ Discover GitHub bounties and contract work
281+ </ p >
282+ < div class = "container mx-auto max-w-7xl space-y-6 p-4 md:p-6 lg:px-8 " >
283+ < div class = "mb-4 flex sm:items-center sm:justify-center sm:flex-wrap gap-2 whitespace-nowrap overflow-x-auto scrollbar-thin " >
284+ <%= for { tech , count } <- @ techs do %>
285+ < div phx-click = "toggle_tech " phx-value-tech = { tech } class = "cursor-pointer " >
286+ < . badge
287+ variant = {
288+ if String . downcase ( tech ) in @ selected_techs , do: "success" , else: "default"
289+ }
290+ class = {
291+ if String . downcase ( tech ) in @ selected_techs ,
292+ do: "hover:bg-success/5 transition-colors" ,
293+ else: "hover:bg-accent/80 transition-colors"
294+ }
295+ >
296+ { tech } ({ count } )
297+ </ . badge >
297298 </ div >
298- < . card_title > No bounties yet</ . card_title >
299- < . card_description >
300- Open bounties will appear here once created
301- </ . card_description >
302- </ . card_header >
303- </ . card >
304- <% else %>
305- < div id = "bounties-container " phx-hook = "InfiniteScroll " >
306- < . bounties bounties = { @ bounties |> Enum . take ( 20 ) } />
307- <%!-- <div :if={@has_more_bounties} class="flex justify-center mt-4" data-load-more-indicator>
308- <div class="animate-pulse text-muted-foreground">
309- <.icon name="tabler-loader" class="h-6 w-6 animate-spin" />
299+ <% end %>
310300 </ div >
311- </div> --%>
301+
302+ < div id = "bounties-container " >
303+ < . bounties bounties = { @ bounties |> Enum . take ( 20 ) } />
312304 </ div >
313- <% end % >
314- </ . section >
315- </ section >
305+ </ div >
306+ </ section >
307+ <% end % >
316308
317309 < section class = "relative isolate " >
318310 < div class = "relative isolate -z-10 py-[35vw] sm:py-[25vw] " >
0 commit comments