Skip to content

Commit e7dd4f2

Browse files
committed
update landing pages
1 parent 2107804 commit e7dd4f2

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

lib/algora_web/live/community_live.ex

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,12 @@ defmodule AlgoraWeb.CommunityLive do
221221
</.card>
222222
<% else %>
223223
<div id="bounties-container" phx-hook="InfiniteScroll">
224-
<.bounties bounties={@bounties} />
225-
<div :if={@has_more_bounties} class="flex justify-center mt-4" data-load-more-indicator>
224+
<.bounties bounties={@bounties |> Enum.take(20)} />
225+
<%!-- <div :if={@has_more_bounties} class="flex justify-center mt-4" data-load-more-indicator>
226226
<div class="animate-pulse text-muted-foreground">
227227
<.icon name="tabler-loader" class="h-6 w-6 animate-spin" />
228228
</div>
229-
</div>
229+
</div> --%>
230230
</div>
231231
<% end %>
232232
</.section>
@@ -1280,11 +1280,7 @@ defmodule AlgoraWeb.CommunityLive do
12801280
<.button navigate={~p"/auth/signup"}>
12811281
Get started
12821282
</.button>
1283-
<.button
1284-
class="pointer-events-none opacity-75"
1285-
href={AlgoraWeb.Constants.get(:github_repo_url)}
1286-
variant="secondary"
1287-
>
1283+
<.button href={AlgoraWeb.Constants.get(:github_repo_url)} variant="secondary">
12881284
<.icon name="github" class="size-4 mr-2 -ml-1" /> View source code
12891285
</.button>
12901286
</div>
@@ -1359,7 +1355,7 @@ defmodule AlgoraWeb.CommunityLive do
13591355
end
13601356

13611357
# Update the URL with selected techs
1362-
path = if selected_techs == [], do: ~p"/bounties", else: ~p"/bounties/#{Enum.join(selected_techs, ",")}"
1358+
path = if selected_techs == [], do: ~p"/community", else: ~p"/community/#{Enum.join(selected_techs, ",")}"
13631359

13641360
{:noreply,
13651361
socket
@@ -1430,7 +1426,7 @@ defmodule AlgoraWeb.CommunityLive do
14301426
|> assign(:has_more_bounties, length(bounties) >= page_size())
14311427
end
14321428

1433-
defp page_size, do: 10
1429+
defp page_size, do: 20
14341430

14351431
defp glow(assigns) do
14361432
~H"""

lib/algora_web/router.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ defmodule AlgoraWeb.Router do
106106
live "/bounties", BountiesLive, :index
107107
live "/bounties/:tech", BountiesLive, :index
108108
live "/community", CommunityLive, :index
109+
live "/community/:tech", CommunityLive, :index
109110
live "/jobs", JobsLive, :index
110111
live "/leaderboard", LeaderboardLive, :index
111112
live "/projects", OrgsLive, :index

0 commit comments

Comments
 (0)