Skip to content

Commit 290ca88

Browse files
authored
feat: update landing pages (#143)
1 parent 9e26c39 commit 290ca88

File tree

7 files changed

+2659
-1214
lines changed

7 files changed

+2659
-1214
lines changed

lib/algora_web/components/header.ex

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,19 @@ defmodule AlgoraWeb.Components.Header do
1414
]
1515
end
1616

17+
attr :class, :string, default: nil
18+
1719
def header(assigns) do
1820
~H"""
1921
<header class="absolute inset-x-0 top-0 z-50">
2022
<AlgoraWeb.Components.Banner.banner />
2123
<nav
22-
class="-mt-3 mx-auto flex max-w-7xl items-center justify-between p-6 lg:px-8"
24+
class={
25+
classes([
26+
"-mt-3 mx-auto container flex items-center justify-between p-6 lg:px-8",
27+
@class
28+
])
29+
}
2330
aria-label="Global"
2431
>
2532
<div class="flex lg:flex-1">

lib/algora_web/live/bounties_live.ex

Lines changed: 874 additions & 2 deletions
Large diffs are not rendered by default.

lib/algora_web/live/home_live.ex

Lines changed: 292 additions & 1175 deletions
Large diffs are not rendered by default.

lib/algora_web/live/platform_live.ex

Lines changed: 1458 additions & 0 deletions
Large diffs are not rendered by default.

lib/algora_web/live/pricing_live.ex

Lines changed: 26 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ defmodule AlgoraWeb.PricingLive do
5050
<div class="mx-auto max-w-7xl sm:text-center">
5151
<div class="mx-auto max-w-3xl space-y-2 lg:max-w-none">
5252
<h1 class="text-2xl sm:text-4xl font-bold text-popover-foreground">
53-
Simple, transparent pricing
53+
Pricing for every team
5454
</h1>
5555
<p class="text-sm sm:text-lg text-muted-foreground">
5656
For individuals, OSS communities, and open/closed source companies
@@ -214,7 +214,7 @@ defmodule AlgoraWeb.PricingLive do
214214
</.button>
215215
</div>
216216
<p class="text-foreground-light text-sm sm:text-base 2xl:pr-4">
217-
End-to-end hiring with 0% placement fees
217+
End-to-end hiring
218218
</p>
219219
</div>
220220
<div class="p-4 sm:pt-2 sm:px-6 group-hover:sm:-ml-[4px] transition-all">
@@ -289,16 +289,6 @@ defmodule AlgoraWeb.PricingLive do
289289
</span>
290290
</div>
291291
</li>
292-
<li class="flex flex-col pt-1">
293-
<div class="flex items-start">
294-
<div class="flex w-7 shrink-0">
295-
<.icon name="tabler-check" class="size-5 text-purple-400" />
296-
</div>
297-
<span class="text-sm xl:text-base mb-0 text-foreground font-medium bg-purple-500/30 px-2 py-0.5 rounded-md -mt-1">
298-
0% placement fees
299-
</span>
300-
</div>
301-
</li>
302292
<li class="flex flex-col pt-1">
303293
<div class="flex items-start">
304294
<div class="flex w-7 shrink-0">
@@ -336,7 +326,7 @@ defmodule AlgoraWeb.PricingLive do
336326
</div>
337327
<h4 class="font-semibold text-foreground mb-1">Save Time & Money</h4>
338328
<p class="text-sm text-foreground-light">
339-
0% placement fees and efficient matching process
329+
Match with top developers efficiently
340330
</p>
341331
</div>
342332
<div>
@@ -386,21 +376,26 @@ defmodule AlgoraWeb.PricingLive do
386376
</div>
387377
</section>
388378
389-
<section class="bg-background border-t py-16 sm:py-24">
379+
<section class="relative isolate pb-16 sm:pb-40">
390380
<div class="mx-auto max-w-7xl px-6 lg:px-8">
391381
<h2 class="mb-8 text-3xl font-bold text-card-foreground text-center">
392-
<span class="text-muted-foreground">The open source</span>
393-
<span class="block sm:inline">Upwork alternative.</span>
382+
Join the open source economy
394383
</h2>
395-
<div class="flex justify-center gap-4">
396-
<.button navigate="/onboarding/org">
397-
Start your project
384+
<div class="mt-6 sm:mt-10 flex gap-4 justify-center">
385+
<.button
386+
navigate={~p"/onboarding/org"}
387+
class="h-10 sm:h-14 rounded-md px-8 sm:px-12 text-sm sm:text-xl"
388+
>
389+
Companies
398390
</.button>
399-
<.button href={AlgoraWeb.Constants.get(:calendar_url)} variant="secondary">
400-
Request a demo
391+
<.button
392+
navigate={~p"/onboarding/dev"}
393+
variant="secondary"
394+
class="h-10 sm:h-14 rounded-md px-8 sm:px-12 text-sm sm:text-xl"
395+
>
396+
Developers
401397
</.button>
402398
</div>
403-
<.features_bento />
404399
</div>
405400
</section>
406401
@@ -470,12 +465,13 @@ defmodule AlgoraWeb.PricingLive do
470465
<% "pay-developers" -> %>
471466
<div class="flex justify-between">
472467
<div class="flex items-end">
473-
<p class="font-display text-4xl text-emerald-400">
474-
9%
475-
</p>
476-
<p class="text-foreground-lighter text-sm mb-1.5 ml-2 leading-4">
477-
service fee
478-
</p>
468+
<.button
469+
variant="default"
470+
size="lg"
471+
class="font-display text-lg mr-auto sm:mr-0"
472+
>
473+
Contact us
474+
</.button>
479475
</div>
480476
</div>
481477
<% end %>
@@ -529,7 +525,7 @@ defmodule AlgoraWeb.PricingLive do
529525
description: "Reward contributors with Algora",
530526
price: nil,
531527
cta_text: "Create bounties",
532-
cta_url: "/onboarding/org",
528+
cta_url: AlgoraWeb.Constants.get(:calendar_url),
533529
popular: false,
534530
features: [
535531
%Feature{name: "GitHub bounties and tips"},
@@ -542,12 +538,6 @@ defmodule AlgoraWeb.PricingLive do
542538

543539
defp get_faq_items do
544540
[
545-
%FaqItem{
546-
id: "platform-fee",
547-
question: "How do the platform fees work?",
548-
answer:
549-
"For organizations, we charge a 9% fee on bounties when they are rewarded. For individual contributors, you receive 100% of the bounty amount with no fees deducted."
550-
},
551541
%FaqItem{
552542
id: "payment-methods",
553543
question: "What payment methods do you support?",
@@ -558,7 +548,7 @@ defmodule AlgoraWeb.PricingLive do
558548
id: "payment-process",
559549
question: "How does the payment process work?",
560550
answer:
561-
"There's no upfront payment required for bounties. Organizations can either pay manually after merging pull requests, or save their card with Stripe to enable auto-pay on merge. Manual payments are processed through a secure Stripe hosted checkout page."
551+
"Organizations can either pay manually after merging pull requests, or save their card with Stripe to enable auto-pay on merge. Manual payments are processed through a secure Stripe hosted checkout page."
562552
},
563553
%FaqItem{
564554
id: "invoices-receipts",

lib/algora_web/router.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ defmodule AlgoraWeb.Router do
105105
live "/onboarding/dev", Onboarding.DevLive
106106
live "/community", CommunityLive, :index
107107
live "/community/:tech", CommunityLive, :index
108+
live "/platform", PlatformLive, :index
108109
live "/crowdfund", CrowdfundLive, :index
109110
live "/pricing", PricingLive
110111
live "/challenges", ChallengesLive
201 KB
Loading

0 commit comments

Comments
 (0)