Skip to content

Commit d0a4875

Browse files
committed
feat: update homepage content and styling
- Changed background gradient color for improved aesthetics. - Updated main heading and subheading to better reflect the platform's purpose. - Removed the funding benefits section to streamline the homepage layout. - Enhanced text clarity and consistency throughout the homepage.
1 parent cd1f530 commit d0a4875

File tree

1 file changed

+13
-66
lines changed

1 file changed

+13
-66
lines changed

lib/algora_web/live/home_live.ex

Lines changed: 13 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ defmodule AlgoraWeb.HomeLive do
6161
aria-hidden="true"
6262
>
6363
<div
64-
class="left-[calc(50%-11rem)] aspect-[1155/678] w-[36.125rem] rotate-[30deg] relative -translate-x-1/2 bg-gradient-to-tr from-primary to-secondary opacity-20 sm:left-[calc(50%-30rem)] sm:w-[72.1875rem]"
64+
class="left-[calc(50%-11rem)] aspect-[1155/678] w-[36.125rem] rotate-[30deg] relative -translate-x-1/2 bg-gradient-to-tr from-slate-400 to-secondary opacity-20 sm:left-[calc(50%-30rem)] sm:w-[72.1875rem]"
6565
style="clip-path: polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"
6666
>
6767
</div>
@@ -91,7 +91,7 @@ defmodule AlgoraWeb.HomeLive do
9191
9292
<div class="absolute inset-x-0 -z-10 transform overflow-hidden blur-3xl" aria-hidden="true">
9393
<div
94-
class="left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] relative -translate-x-1/2 bg-gradient-to-tr from-primary to-secondary opacity-20 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"
94+
class="left-[calc(50%+3rem)] aspect-[1155/678] w-[36.125rem] relative -translate-x-1/2 bg-gradient-to-tr from-slate-400 to-secondary opacity-20 sm:left-[calc(50%+36rem)] sm:w-[72.1875rem]"
9595
style="clip-path: polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"
9696
>
9797
</div>
@@ -101,10 +101,13 @@ defmodule AlgoraWeb.HomeLive do
101101
<div class="mx-auto gap-x-14 lg:mx-0 lg:flex lg:max-w-none lg:items-center">
102102
<div class="relative w-full lg:max-w-xl lg:shrink-0 xl:max-w-2xl 2xl:max-w-3xl">
103103
<h1 class="font-display text-pretty text-5xl font-semibold tracking-tight text-foreground sm:text-7xl">
104-
The open source Upwork alternative.
104+
The open source Upwork for engineers
105105
</h1>
106-
<p class="mt-8 text-pretty text-lg font-medium text-muted-foreground sm:max-w-md sm:text-xl/8 lg:max-w-none">
107-
GitHub bounties, contract work and jobs for developers.
106+
<p class="mt-8 font-display text-lg font-medium text-muted-foreground sm:max-w-md sm:text-2xl/8 lg:max-w-none">
107+
Discover GitHub bounties, contract work and jobs
108+
</p>
109+
<p class="mt-4 font-display text-lg font-medium text-muted-foreground sm:max-w-md sm:text-2xl/8 lg:max-w-none">
110+
Hire top 1% of open source developers
108111
</p>
109112
<!-- CTA buttons -->
110113
<div class="mt-10 flex flex-col sm:flex-row text-center sm:items-center gap-6">
@@ -288,64 +291,6 @@ defmodule AlgoraWeb.HomeLive do
288291
</div>
289292
</div>
290293
</div>
291-
<div class="mx-auto max-w-4xl px-6 lg:px-8 mt-16">
292-
<h2 class="mb-8 text-xl font-bold text-card-foreground text-center">
293-
<span>Fund any issue</span>
294-
<span class="block sm:inline text-success">in seconds</span>
295-
</h2>
296-
<div class="grid grid-cols-1 gap-4 lg:grid-cols-2">
297-
<.card class="bg-muted/30">
298-
<.card_header>
299-
<div class="flex items-center gap-3">
300-
<.icon name="tabler-diamond" class="h-8 w-8" />
301-
<h2 class="text-2xl font-semibold">Post a bounty</h2>
302-
</div>
303-
</.card_header>
304-
<.card_content>
305-
<.simple_form for={@bounty_form} phx-submit="create_bounty">
306-
<div class="flex flex-col gap-6">
307-
<.input
308-
label="URL"
309-
field={@bounty_form[:url]}
310-
placeholder="https://github.com/owner/repo/issues/1337"
311-
/>
312-
<.input
313-
label="Amount"
314-
icon="tabler-currency-dollar"
315-
field={@bounty_form[:amount]}
316-
/>
317-
<div class="flex justify-end gap-4">
318-
<.button variant="subtle">Submit</.button>
319-
</div>
320-
</div>
321-
</.simple_form>
322-
</.card_content>
323-
</.card>
324-
<.card class="bg-muted/30">
325-
<.card_header>
326-
<div class="flex items-center gap-3">
327-
<.icon name="tabler-gift" class="h-8 w-8" />
328-
<h2 class="text-2xl font-semibold">Tip a developer</h2>
329-
</div>
330-
</.card_header>
331-
<.card_content>
332-
<.simple_form for={@tip_form} phx-submit="create_tip">
333-
<div class="flex flex-col gap-6">
334-
<.input
335-
label="GitHub handle"
336-
field={@tip_form[:github_handle]}
337-
placeholder="jsmith"
338-
/>
339-
<.input label="Amount" icon="tabler-currency-dollar" field={@tip_form[:amount]} />
340-
<div class="flex justify-end gap-4">
341-
<.button variant="subtle">Submit</.button>
342-
</div>
343-
</div>
344-
</.simple_form>
345-
</.card_content>
346-
</.card>
347-
</div>
348-
</div>
349294
</section>
350295
351296
<section class="bg-black border-t py-16 sm:py-24">
@@ -790,7 +735,7 @@ defmodule AlgoraWeb.HomeLive do
790735
<div class="mx-auto max-w-7xl px-6 lg:px-8">
791736
<h2 class="mb-8 text-3xl font-bold text-card-foreground text-center">
792737
<span class="text-muted-foreground">The open source</span>
793-
<span class="block sm:inline">UpWork alternative.</span>
738+
<span class="block sm:inline">UpWork on GitHub</span>
794739
</h2>
795740
<div class="flex justify-center gap-4">
796741
<.button navigate="/onboarding/org">
@@ -839,7 +784,8 @@ defmodule AlgoraWeb.HomeLive do
839784
|> redirect(to: ~p"/")}
840785

841786
{:error, :already_exists} ->
842-
{:noreply, put_flash(socket, :warning, "You have already created a bounty for this ticket")}
787+
{:noreply,
788+
put_flash(socket, :warning, "You have already created a bounty for this ticket")}
843789

844790
{:error, _reason} ->
845791
{:noreply, put_flash(socket, :error, "Something went wrong")}
@@ -1070,7 +1016,8 @@ defmodule AlgoraWeb.HomeLive do
10701016
"""
10711017
end
10721018

1073-
defp format_money(money), do: money |> Money.round(currency_digits: 0) |> Money.to_string!(no_fraction_if_integer: true)
1019+
defp format_money(money),
1020+
do: money |> Money.round(currency_digits: 0) |> Money.to_string!(no_fraction_if_integer: true)
10741021

10751022
defp format_number(number), do: Number.Delimit.number_to_delimited(number, precision: 0)
10761023

0 commit comments

Comments
 (0)