11import reflex as rx
22from 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
66def radial_circle (violet : bool = False ) -> rx .Component :
@@ -134,7 +134,7 @@ def grid() -> rx.Component:
134134
135135
136136def 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