Skip to content

Commit 2d9407f

Browse files
Alek99Alek99
andauthored
Pricing Update (#1431)
* Update * Update --------- Co-authored-by: Alek99 <[email protected]>
1 parent 7ada856 commit 2d9407f

File tree

4 files changed

+143
-202
lines changed

4 files changed

+143
-202
lines changed

pcweb/pages/pricing/header.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
def header() -> rx.Component:
66
return rx.box(
77
rx.el.h1(
8-
"Pricing that scales with you",
8+
"Get a custom quote",
99
class_name="gradient-heading font-semibold text-3xl lg:text-5xl text-center",
1010
),
1111
rx.el.p(
1212
"The complete platform for building and deploying your apps.",
1313
class_name="text-slate-9 text-md lg:text-xl font-semibold text-center",
1414
),
1515
class_name="flex flex-col gap-2 justify-center items-center max-w-[64.19rem] 2xl:border-x border-slate-4 w-full pb-16 "
16-
+ rx.cond(HostingBannerState.show_banner, "pt-[11rem]", "pt-[8rem]"),
16+
+ rx.cond(HostingBannerState.show_banner, "pt-[11rem]", "pt-[12rem]"),
1717
)

pcweb/pages/pricing/plan_cards.py

Lines changed: 11 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,8 @@ def _render_messaging_section(title: str) -> rx.Component:
173173
"""Render the messaging/features section for each plan."""
174174
messaging_config = {
175175
"Hobby": {
176-
"main": "Reflex Build 5 msgs/day",
177-
"sub": rx.link("Monthly cap 30 messages", href="#reflex-build",
178-
class_name="text-xs text-slate-9 hover:text-slate-11 underline")
176+
"main": "",
177+
"sub": None
179178
},
180179
"Pro": {
181180
"main": "Reflex Build 100 msgs/month",
@@ -198,12 +197,9 @@ def _render_messaging_section(title: str) -> rx.Component:
198197
config = messaging_config[title]
199198
return rx.el.div(
200199
rx.el.p(config["main"], class_name="text-md font-semibold text-slate-12 mt-4"),
201-
rx.el.p(config["sub"]) if title == "Hobby" else config["sub"],
202-
class_name="mt-4"
200+
config["sub"] if config["sub"] else None,
203201
)
204-
else:
205-
# Default spacing for plans without messaging section
206-
return rx.el.div(class_name="h-[3.5rem]")
202+
return rx.el.div()
207203

208204

209205
def _get_features_header(title: str) -> str:
@@ -280,7 +276,7 @@ def card(
280276
_render_feature_list(features),
281277
),
282278

283-
class_name="flex flex-col p-6 border border-slate-4 rounded-lg shadow-small bg-slate-2 w-full min-w-0 overflow-hidden h-[42rem]",
279+
class_name="flex flex-col p-6 border border-slate-4 rounded-lg shadow-small bg-slate-2 w-full min-w-0 max-w-md w-[28rem] overflow-hidden h-[42rem]",
284280
)
285281

286282

@@ -295,7 +291,7 @@ def popular_card(
295291
return rx.box(
296292
# Popular Badge
297293
rx.box(
298-
"Most Popular",
294+
"1 Month Free Trial",
299295
class_name="absolute top-[-0.75rem] left-8 rounded-md bg-[--violet-9] h-[1.5rem] text-sm font-medium text-center px-2 flex items-center justify-center text-[#FCFCFD] z-[10]",
300296
),
301297

@@ -316,7 +312,7 @@ def popular_card(
316312
size="lg",
317313
class_name="w-full mb-6 !text-sm !font-semibold",
318314
),
319-
href=f"{REFLEX_CLOUD_URL}/?redirect_url={REFLEX_CLOUD_URL}/billing/",
315+
href=REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO,
320316
is_external=True,
321317
underline="none",
322318
),
@@ -338,10 +334,10 @@ def popular_card(
338334
_render_feature_list(features),
339335
),
340336

341-
class_name="flex flex-col p-6 border-2 border-[--violet-9] rounded-lg w-full min-w-0 relative z-[1] backdrop-blur-[6px] bg-[rgba(249,_249,_251,_0.48)] dark:bg-[rgba(26,_27,_29,_0.48)] shadow-[0px_2px_5px_0px_rgba(28_32_36_0.03)] overflow-hidden h-[42rem]",
337+
class_name="flex flex-col p-6 border-2 border-[--violet-9] rounded-lg w-full min-w-0 max-w-md w-[28rem] relative z-[1] backdrop-blur-[6px] bg-[rgba(249,_249,_251,_0.48)] dark:bg-[rgba(26,_27,_29,_0.48)] shadow-[0px_2px_5px_0px_rgba(28_32_36_0.03)] overflow-hidden h-[42rem]",
342338
),
343339

344-
class_name="relative",
340+
class_name="relative w-full min-w-0 max-w-md w-[28rem]",
345341
)
346342

347343

@@ -361,40 +357,10 @@ def plan_cards() -> rx.Component:
361357
("frame", "Open Source Framework"),
362358
],
363359
"Start for Free",
364-
price="$0/month",
360+
price="Free",
365361
redirect_url=REFLEX_DOCS_URL,
366362
),
367-
card(
368-
"Pro",
369-
"For professional projects and startups.",
370-
[
371-
("credit-card", "Cloud Credits $10/month included"),
372-
("brush", "Custom domains"),
373-
("building", rx.link("Reflex Enterprise", href="https://reflex.dev/docs/enterprise/overview/", class_name="!text-slate-11"), "Pro-tier users can access Reflex Enterprise features without the 'Built with Reflex' badge when hosting their apps on Reflex Cloud"),
374-
],
375-
"Upgrade now",
376-
price="$20/month",
377-
redirect_url=f"{REFLEX_CLOUD_URL}/?redirect_url={REFLEX_CLOUD_URL}/billing/",
378-
),
379363
popular_card(
380-
"Team",
381-
"For teams looking to scale their applications.",
382-
[
383-
("credit-card", "Cloud Compute $20/month included"),
384-
("users", "Invite your teammates"),
385-
(
386-
"cable",
387-
"Reflex Build Integrations",
388-
"Databricks, Snowflake, etc.",
389-
),
390-
("file-badge", "AG Grid with no Reflex Branding"),
391-
("mail", "Email support"),
392-
("building", rx.link("Reflex Enterprise", href="https://reflex.dev/docs/enterprise/overview/", class_name="!text-slate-11"), "Team-tier users can access Reflex Enterprise features without the 'Built with Reflex' badge when self-hosting their apps."),
393-
],
394-
"Upgrade now",
395-
price="$49 user/month",
396-
),
397-
card(
398364
"Enterprise",
399365
"Get a plan tailored to your business needs.",
400366
[
@@ -409,7 +375,6 @@ def plan_cards() -> rx.Component:
409375
],
410376
"Contact Us",
411377
price="Custom",
412-
redirect_url=REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO,
413378
),
414-
class_name="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6"
379+
class_name="flex flex-row flex-wrap justify-center items-center gap-6 w-full"
415380
)

pcweb/pages/pricing/pricing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from pcweb.pages.pricing.plan_cards import plan_cards
66
from pcweb.pages.pricing.table import (
77
comparison_table_hosting,
8-
comparison_table_ai_and_oss,
8+
comparison_table_ai,
99
)
1010
from pcweb.pages.pricing.faq import faq
1111
from pcweb.pages.pricing.calculator import calculator_section
@@ -26,7 +26,7 @@ def pricing() -> rx.Component:
2626
rx.box(
2727
header(),
2828
plan_cards(),
29-
comparison_table_ai_and_oss(),
29+
comparison_table_ai(),
3030
comparison_table_hosting(),
3131
calculator_section(),
3232
faq(),

0 commit comments

Comments
 (0)