diff --git a/lib/algora_web/live/home_live.ex b/lib/algora_web/live/home_live.ex index c27c2e9dd..a49587b4d 100644 --- a/lib/algora_web/live/home_live.ex +++ b/lib/algora_web/live/home_live.ex @@ -16,7 +16,6 @@ defmodule AlgoraWeb.HomeLive do alias AlgoraWeb.Components.Footer alias AlgoraWeb.Components.Header alias AlgoraWeb.Components.Logos - alias AlgoraWeb.Components.Wordmarks alias AlgoraWeb.Data.PlatformStats alias AlgoraWeb.Forms.BountyForm alias AlgoraWeb.Forms.TipForm @@ -63,12 +62,44 @@ defmodule AlgoraWeb.HomeLive do |> assign(:stats, stats) |> assign(:faq_items, get_faq_items()) |> assign(:bounty_form, to_form(BountyForm.changeset(%BountyForm{}, %{}))) - # TODO: add url |> assign(:tip_form, to_form(TipForm.changeset(%TipForm{}, %{}))) |> assign(:repo_form, to_form(RepoForm.changeset(%RepoForm{}, %{}))) |> assign(:pending_action, nil)} end + attr :src, :string, required: true + attr :poster, :string, required: true + attr :title, :string, default: nil + attr :alt, :string, default: nil + attr :class, :string, default: nil + attr :autoplay, :boolean, default: true + + defp modal_video(assigns) do + ~H""" +
JS.set_attribute({"src", @src <> "?autoplay=#{@autoplay}"}, to: "#video-modal-iframe") + |> JS.set_attribute({"title", @title}, to: "#video-modal-iframe") + |> show_modal("video-modal") + } + > + {@alt} +
+
+ <.icon name="tabler-player-play-filled" class="size-8 text-white" /> +
+
+
+ """ + end + @impl true def render(assigns) do ~H""" @@ -76,7 +107,7 @@ defmodule AlgoraWeb.HomeLive do
-
+
<.pattern />
@@ -96,12 +127,12 @@ defmodule AlgoraWeb.HomeLive do <.input field={@repo_form[:url]} placeholder="github.com/your/repo" - class="w-full h-16 text-xl sm:text-2xl pl-[3.75rem] pr-48 border-emerald-500 font-display" + class="w-full h-16 text-xl sm:text-2xl pl-[3.75rem] pr-48 ring-2 ring-emerald-500 font-display rounded-xl" /> <.button type="submit" - class="absolute right-2 top-2 bottom-2 px-8 h-[3rem] text-xl font-semibold" + class="absolute right-2 top-2 bottom-2 px-8 h-[3rem] text-xl font-semibold drop-shadow-[0_1px_5px_#34d39980]" > Get Started @@ -130,10 +161,143 @@ defmodule AlgoraWeb.HomeLive do
+
+
+
+ <.modal_video + class="aspect-[9/16] rounded-l-xl lg:rounded-l-2xl" + src="https://www.youtube.com/embed/xObOGcUdtY0" + title="$15,000 Open source bounty to hire a Rust engineer" + poster={~p"/images/people/john-de-goes.jpg"} + alt="John A De Goes" + /> +
+
+
+ Golem bounty to hire +
+
+
+
+
+
+ Fund any issue + + in seconds + +
+
+ Help improve the OSS you love and rely on +
+
+
+ <.icon name="tabler-check" class="h-4 w-4 mr-1 text-success-400" /> + Pay when PRs are merged +
+
+ <.icon name="tabler-check" class="h-4 w-4 mr-1 text-success-400" /> + Pool bounties with other sponsors +
+
+ <.icon name="tabler-check" class="h-4 w-4 mr-1 text-success-400" /> + Algora handles invoices, payouts, compliance & 1099s +
+
+
+ <.form + for={@bounty_form} + phx-submit="create_bounty" + class="col-span-3 grid gap-6 w-full" + > + <.input + label="URL" + field={@bounty_form[:url]} + placeholder="https://github.com/owner/repo/issues/1337" + /> + <.input + label="Amount" + icon="tabler-currency-dollar" + field={@bounty_form[:amount]} + class="placeholder:text-success" + /> +
+ <.button size="lg" class="w-full drop-shadow-[0_1px_5px_#34d39980]"> + Fund issue + +
No credit card required
+
+ +
+
+ <.link + href="https://github.com/zed-industries/zed/issues/4440" + rel="noopener" + class="relative flex items-center gap-x-4 rounded-xl bg-black p-6 ring-1 ring-border transition-colors" + > +
+ Zed + Scott Chacon +
+
+
+ GitHub cofounder funds new feature in Zed Editor +
+
+ Zed Editor, Scott Chacon +
+
+ <.button size="lg" variant="secondary"> + View issue + + + + <.link + href="https://github.com/PX4/PX4-Autopilot/issues/22464" + rel="noopener" + class="relative flex items-center gap-x-4 rounded-xl bg-black p-6 ring-1 ring-border transition-colors" + > +
+ Alex Klimaj + PX4 + Andrew Wilkins +
+
+
+ DefenceTech CEOs fund obstacle avoidance in PX4 Drone Autopilot +
+
+ Alex Klimaj, Founder of ARK Electronics & Andrew Wilkins, CEO of Ascend Engineering +
+
+ <.button size="lg" variant="secondary"> + View issue + + +
+
-
- <.pattern /> +
-
- <.pattern /> +

Build product faster

- Use bounties in your own repositories to manage contract work efficiently. Pay only for completed tasks, with full GitHub integration. + Use bounties for outcome-based contract work with full GitHub integration.

@@ -394,10 +557,9 @@ defmodule AlgoraWeb.HomeLive do
-
- <.pattern /> +
-

+

Hire by building product

@@ -536,129 +698,20 @@ defmodule AlgoraWeb.HomeLive do

-
-
- Gergő Móricz -
- <.icon name="tabler-player-play-filled" class="size-8 text-white" /> -
-
- -
-
- - - - <%!-- john --%> -
- <.link - class="flex justify-center items-center" - aria-label="Logo" - navigate={~p"/org/golemcloud"} - > - - -

- $15,000 Open source bounty to hire -

-
-
-
-
-
John A De Goes
-
- Founder & CEO -
-
- John A De Goes -
-
- <.icon name="tabler-git-merge" class="size-8 text-purple-400" /> -
-
- Maxim Schuwalow -
-
Maxim Schuwalow
-
- Software Engineer -
-
-
-
-
- -
-
-
-
- John A De Goes -
- <.icon name="tabler-player-play-filled" class="size-8 text-white" /> -
-
- -
-
-
-
- Golem bounty to hire -
+ <.modal_video + class="rounded-r-xl lg:rounded-r-2xl" + src="https://www.youtube.com/embed/HhTT-GX5tjQ" + title="🧑🏻‍💻 Building your bounty hunter reputation & Mendable contributions 💸" + poster={~p"/images/people/mogery.png"} + alt="Gergő Móricz" + />
-
- <.pattern /> +

Did you know? @@ -668,12 +721,13 @@ defmodule AlgoraWeb.HomeLive do

-
-

- Tip any contributor in seconds -

-
-
+
+
+
+

+ Tip any contributor + instantly +

Support the maintainers behind your favorite open source projects

@@ -693,7 +747,7 @@ defmodule AlgoraWeb.HomeLive do
- <.form for={@tip_form} phx-submit="create_tip" class="space-y-6"> + <.form for={@tip_form} phx-submit="create_tip" class="col-span-4 space-y-6">
<.input label="GitHub Username" @@ -714,24 +768,30 @@ defmodule AlgoraWeb.HomeLive do helptext="We'll comment to notify the developer." />
- <.button size="lg" class="w-full" variant="blue">Tip contributor + <.button + size="lg" + class="w-full drop-shadow-[0_1px_5px_#60a5fa80]" + variant="blue" + > + Tip contributor +
-
+
Tip contributor

-
+

The open source @@ -756,6 +816,20 @@ defmodule AlgoraWeb.HomeLive do

+ + <.dialog id="video-modal" show={false} class="w-screen h-screen lg:max-w-none p-[5rem]"> + <.dialog_content class="flex items-center justify-center"> + + + """ end