Skip to content

Commit 71728f7

Browse files
authored
fix pro plan page redirect (#1223)
1 parent 2b46b66 commit 71728f7

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

pcweb/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
# pcweb urls.
1212
REFLEX_URL = "https://reflex.dev/"
13+
REFLEX_DOCS_URL = "https://reflex.dev/docs/getting-started/introduction/"
1314
REFLEX_CLOUD_URL = "https://cloud.reflex.dev/"
1415
PYNECONE_URL = "https://pynecone.io"
1516
PIP_URL = "https://pypi.org/project/reflex"

pcweb/pages/pricing/plan_cards.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import reflex as rx
22
from pcweb.components.new_button import button
3-
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO
3+
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO, REFLEX_CLOUD_URL, REFLEX_DOCS_URL
44

55

66
def radial_circle(violet: bool = False) -> rx.Component:
@@ -134,7 +134,7 @@ def grid() -> rx.Component:
134134

135135

136136
def card(
137-
title: str, description: str, features: list[tuple[str, str]], button_text: str, price: str = None
137+
title: str, description: str, features: list[tuple[str, str]], button_text: str, price: str = None, redirect_url: str = None
138138
) -> rx.Component:
139139
return rx.box(
140140
rx.el.div(
@@ -168,7 +168,7 @@ def card(
168168
size="lg",
169169
class_name="w-full",
170170
),
171-
href=REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO,
171+
href=redirect_url,
172172
is_external=True,
173173
underline="none",
174174
),
@@ -216,7 +216,7 @@ def popular_card(
216216
size="lg",
217217
class_name="w-full !text-sm !font-semibold",
218218
),
219-
href=REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO,
219+
href=f"{REFLEX_CLOUD_URL}/?redirect_url={REFLEX_CLOUD_URL}/billing/",
220220
is_external=True,
221221
underline="none",
222222
),
@@ -240,6 +240,7 @@ def plan_cards() -> rx.Component:
240240
],
241241
"Start building for free",
242242
price="Free",
243+
redirect_url=REFLEX_DOCS_URL,
243244
),
244245
popular_card(
245246
"Pro",
@@ -272,6 +273,7 @@ def plan_cards() -> rx.Component:
272273
("circle-plus", "Everything in Pro"),
273274
],
274275
"Contact sales",
276+
redirect_url=REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO,
275277
),
276278
card(
277279
"Enterprise",
@@ -288,6 +290,7 @@ def plan_cards() -> rx.Component:
288290
("circle-plus", "Everything in Team"),
289291
],
290292
"Contact sales",
293+
redirect_url=REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO,
291294
),
292295
class_name="grid 2xl:grid-cols-4 xl:grid-cols-2 sm:grid-cols-1 gap-4",
293296
)

0 commit comments

Comments
 (0)