Skip to content

Commit d8e4428

Browse files
committed
update pricing cards
1 parent 1ad3065 commit d8e4428

File tree

1 file changed

+55
-64
lines changed

1 file changed

+55
-64
lines changed

lib/algora_web/live/pricing_live.ex

Lines changed: 55 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ defmodule AlgoraWeb.PricingLive do
5151
5252
<div class="mx-auto flex flex-col lg:container lg:px-16 xl:px-12">
5353
<div class="relative z-10 mx-auto w-full px-4 sm:px-6 lg:px-8">
54-
<div class="mx-auto grid max-w-md gap-4 lg:max-w-none lg:grid-cols-2 xl:grid-cols-3 xl:gap-0">
54+
<div class={
55+
classes([
56+
"mx-auto grid max-w-md gap-4 lg:grid-cols-2",
57+
"lg:max-w-4xl"
58+
# "lg:max-w-none xl:grid-cols-3 xl:gap-0"
59+
])
60+
}>
5561
<%= for plan <- @plans do %>
5662
<.pricing_card plan={plan} />
5763
<% end %>
@@ -429,10 +435,13 @@ defmodule AlgoraWeb.PricingLive do
429435

430436
defp pricing_card(assigns) do
431437
~H"""
432-
<div class={[
433-
"bg-surface-75 flex flex-col rounded-xl border first:rounded-l-xl last:rounded-r-xl last:border-r xl:rounded-none xl:border-r-0",
434-
@plan.popular && "border-foreground-muted !border-2 !rounded-xl xl:-my-8"
435-
]}>
438+
<div class={
439+
[
440+
"bg-card/75 flex flex-col rounded-xl border",
441+
# "first:rounded-l-xl last:rounded-r-xl last:border-r xl:rounded-none xl:border-r-0",
442+
@plan.popular && "border-foreground-muted !border-2 !rounded-xl xl:-my-8"
443+
]
444+
}>
436445
<div class="px-8 pt-6 xl:px-4 2xl:px-8">
437446
<div class="flex items-center gap-2">
438447
<div class="flex items-center gap-2 pb-2">
@@ -449,19 +458,14 @@ defmodule AlgoraWeb.PricingLive do
449458
<p class="text-foreground-light mb-4 text-sm 2xl:pr-4">
450459
{@plan.description}
451460
</p>
452-
<button
461+
<.button
453462
phx-click="select_plan"
454463
phx-value-plan={@plan.name}
455-
class={[
456-
"font-regular h-[42px] relative w-full cursor-pointer space-x-2 rounded-md border px-4 py-2 text-center outline-none outline-0 transition-all duration-200 ease-out focus-visible:outline-4 focus-visible:outline-offset-1",
457-
@plan.popular && "mt-8 bg-primary text-primary-foreground hover:bg-primary/90",
458-
!@plan.popular &&
459-
"bg-background text-foreground hover:bg-accent hover:text-accent-foreground"
460-
]}
464+
class="font-regular h-[42px] relative w-full cursor-pointer space-x-2 rounded-md border px-4 py-2 text-center outline-none outline-0 transition-all duration-200 ease-out focus-visible:outline-4 focus-visible:outline-offset-1"
461465
>
462466
{@plan.cta_text}
463-
</button>
464-
<div class="border-default flex items-baseline border-b py-8 text-5xl font-normal text-foreground lg:min-h-[175px] lg:pt-10 lg:pb-0 lg:text-4xl xl:text-4xl">
467+
</.button>
468+
<div class="border-default flex items-baseline border-b py-8 text-5xl font-normal text-foreground lg:py-10 lg:text-4xl xl:text-4xl">
465469
<div class="flex flex-col gap-1">
466470
<%= if @plan.price do %>
467471
<div>
@@ -472,8 +476,22 @@ defmodule AlgoraWeb.PricingLive do
472476
</div>
473477
</div>
474478
<% else %>
475-
<div class="mt-4 flex items-end">
476-
<p class="font-display mt-2 pb-1 text-4xl">Custom</p>
479+
<div>
480+
<%= if @plan.name == "Individuals" do %>
481+
<p class="font-display mt-2 pb-1 text-4xl">
482+
100%
483+
</p>
484+
<p class="text-foreground-lighter text-sm mb-1.5 ml-1 leading-4">
485+
payout received
486+
</p>
487+
<% else %>
488+
<p class="font-display mt-2 pb-1 text-4xl">
489+
19%
490+
</p>
491+
<p class="text-foreground-lighter text-sm mb-1.5 ml-1 leading-4">
492+
pay as you go
493+
</p>
494+
<% end %>
477495
</div>
478496
<% end %>
479497
</div>
@@ -517,62 +535,35 @@ defmodule AlgoraWeb.PricingLive do
517535
defp get_plans do
518536
[
519537
%Plan{
520-
name: "Hobby",
521-
description: "Perfect for small projects and indie developers",
522-
price: 0,
523-
cta_text: "Start for Free",
538+
name: "Individuals",
539+
description: "For developers contributing to open source",
540+
price: nil,
541+
cta_text: "Start Contributing",
524542
popular: false,
525543
features: [
526-
%Feature{name: "Up to $5,000 in project budgets"},
527-
%Feature{name: "Algora Network", detail: "15% platform fee"},
528-
%Feature{name: "Bring Your Own Devs", detail: "5% platform fee"},
529-
%Feature{name: "Unlimited projects"},
530-
%Feature{name: "Community support"},
531-
%Feature{name: "Basic project management tools"},
532-
%Feature{name: "Pay per milestone"}
533-
],
534-
footnote: "Perfect for testing the waters with smaller projects"
535-
},
536-
%Plan{
537-
name: "Startup",
538-
description: "For growing companies",
539-
price: 599,
540-
cta_text: "Upgrade now",
541-
popular: true,
542-
previous_tier: "Hobby",
543-
features: [
544-
%Feature{name: "Up to $50,000 in project budgets"},
545-
%Feature{name: "Algora Network", detail: "15% platform fee"},
546-
%Feature{name: "Bring Your Own Devs", detail: "5% platform fee"},
547-
%Feature{name: "Priority support"},
548-
%Feature{name: "Advanced project management"},
549-
%Feature{name: "Custom workflows"},
550-
%Feature{name: "Team collaboration tools"},
551-
%Feature{name: "Analytics dashboard"},
552-
%Feature{name: "Job board access"},
553-
%Feature{name: "Unlimited job postings"}
544+
%Feature{name: "Payouts in 3-8 days on average"},
545+
%Feature{name: "Available in 119 countries/regions"},
546+
%Feature{name: "Algora profile with contribution history"},
547+
%Feature{name: "Free livestreaming on Algora TV"}
554548
]
555549
},
556550
%Plan{
557-
name: "Enterprise",
558-
description: "For large organizations",
551+
name: "Organizations",
552+
description: "For companies and projects",
559553
price: nil,
560-
cta_text: "Contact Sales",
554+
cta_text: "Get Started",
561555
popular: false,
562-
previous_tier: "Startup",
563556
features: [
564-
%Feature{name: "Unlimited project budgets"},
565-
%Feature{name: "Algora Network", detail: "15% platform fee"},
566-
%Feature{name: "Bring Your Own Devs", detail: "5% platform fee"},
567-
%Feature{name: "Dedicated account manager"},
568-
%Feature{name: "Custom contracts & MSA"},
569-
%Feature{name: "Advanced security features"},
570-
%Feature{name: "Custom integrations"},
571-
%Feature{name: "SLA guarantees"},
572-
%Feature{name: "Onboarding assistance"},
573-
%Feature{name: "Training for your team"},
574-
%Feature{name: "Custom job board"},
575-
%Feature{name: "ATS integration"}
557+
%Feature{name: "Fees drop to 7.5% with volume"},
558+
%Feature{name: "Public org page with complete history"},
559+
%Feature{name: "Teammates with granular access rights"},
560+
%Feature{name: "Slack / Discord notifications (Webhooks)"},
561+
%Feature{name: "Display bounties on your site (SDK)"},
562+
%Feature{name: "Auto-pay on merge"},
563+
%Feature{name: "Embedded livestreaming"},
564+
%Feature{name: "Experts Network"},
565+
%Feature{name: "Hiring Portal"},
566+
%Feature{name: "Live Challenges"}
576567
]
577568
}
578569
]

0 commit comments

Comments
 (0)