Skip to content

Commit b00d1e8

Browse files
committed
update landing pages
1 parent 9e6a8e6 commit b00d1e8

File tree

4 files changed

+37
-46
lines changed

4 files changed

+37
-46
lines changed

config/config.exs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
import Config
99

1010
config :algora,
11-
title: "Algora",
12-
description:
13-
"Discover GitHub bounties, contract work and jobs. Hire the top 1% open source developers.",
11+
title: "Algora - Hire the top 1% open source engineers",
12+
description: "Algora connects companies and engineers for full-time and contract work",
1413
ecto_repos: [Algora.Repo],
1514
generators: [timestamp_type: :utc_datetime_usec],
1615
redirects: [

lib/algora_web/live/community_live.ex

Lines changed: 33 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -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]">

lib/algora_web/live/home_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ defmodule AlgoraWeb.HomeLive do
4444
_ ->
4545
{:ok,
4646
socket
47-
|> assign(:page_title, "Algora - The open source Upwork for engineers")
47+
|> assign(:page_title, Algora.config([:title]))
4848
|> assign(:page_title_suffix, "")
4949
|> assign(:page_image, "#{AlgoraWeb.Endpoint.url()}/images/og/home.png")
5050
|> assign(:screenshot?, not is_nil(params["screenshot"]))

lib/algora_web/live/user/nav.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ defmodule AlgoraWeb.User.Nav do
6464
label: "Profile"
6565
},
6666
%{href: "/bounties", tab: :bounties, icon: "tabler-diamond", label: "Bounties"},
67+
%{href: "/jobs", tab: :jobs, icon: "tabler-briefcase", label: "Jobs"},
6768
%{href: "/projects", tab: :projects, icon: "tabler-rocket", label: "Projects"},
68-
%{href: "/community", tab: :community, icon: "tabler-heart-code", label: "Community"},
6969
%{
7070
href: "/user/transactions",
7171
tab: :transactions,

0 commit comments

Comments
 (0)