Skip to content

Commit 90d4655

Browse files
authored
move all contact sales links to pricing (#1595)
* move all contact sales links to pricing * update
1 parent ce1cf0f commit 90d4655

File tree

8 files changed

+22
-27
lines changed

8 files changed

+22
-27
lines changed

pcweb/constants.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
# pcweb constants.
44
API_BASE_URL_LOOPS: str = "https://app.loops.so/api/v1"
5-
REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO: str = (
6-
"https://cal.com/forms/f87bd9b2-b339-4915-b4d4-0098e2db4394"
7-
)
85
REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL: str = (
96
"https://hooks.zapier.com/hooks/catch/20661176/2s1nxp9/"
107
)

pcweb/pages/framework/components/hero.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from pcweb.components.button import button
44
from pcweb.components.icons.icons import get_icon
5-
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO
65
from pcweb.pages.docs import getting_started
76
from pcweb.pages.framework.demos.demos import demo_section
87

pcweb/pages/framework/views/hero.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from pcweb.components.button import button
44
from pcweb.components.icons.icons import get_icon
5-
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO
65
from pcweb.pages.docs import getting_started
76

87

pcweb/pages/hosting/views/hero.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import reflex as rx
22
from pcweb.components.new_button import button
33
from pcweb.pages.docs import hosting
4-
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO
54
from pcweb.components.hosting_banner import HostingBannerState
65

76

pcweb/pages/pricing/faq.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import reflex as rx
22
from pcweb.components.button import button
3-
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO
43

54

65
def glow() -> rx.Component:
@@ -31,8 +30,7 @@ def sales_button() -> rx.Component:
3130
variant="secondary",
3231
class_name="!text-slate-11 !font-semibold !text-sm",
3332
),
34-
href=REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO,
35-
is_external=True,
33+
href="#demo-form",
3634
class_name="self-center relative",
3735
)
3836

pcweb/pages/pricing/header.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def custom_quote_form() -> rx.Component:
3131
),
3232
class_name="grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-16 max-w-7xl mx-auto items-start",
3333
),
34-
class_name="py-12 sm:py-20 px-4 sm:px-8",
34+
id="demo-form",
35+
class_name="py-12 sm:py-20 px-4 sm:px-8 scroll-m-20",
3536
)
3637

3738

pcweb/pages/pricing/plan_cards.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import reflex as rx
22
from pcweb.components.new_button import button
33
from pcweb.constants import (
4-
REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO,
54
REFLEX_CLOUD_URL,
65
REFLEX_DOCS_URL,
76
)
@@ -273,7 +272,6 @@ def card(
273272
class_name="w-full mb-6",
274273
),
275274
href=redirect_url,
276-
is_external=True,
277275
underline="none",
278276
),
279277
# Pricing Section
@@ -326,8 +324,7 @@ def popular_card(
326324
size="lg",
327325
class_name="w-full mb-6 !text-sm !font-semibold",
328326
),
329-
href=REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO,
330-
is_external=True,
327+
href="/pricing",
331328
underline="none",
332329
),
333330
# Pricing Section

pcweb/pages/pricing/table.py

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import reflex as rx
22
from pcweb.components.button import button
3-
from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO
43

54
STYLES = {
65
"cell": "text-slate-12 font-medium text-sm whitespace-nowrap",
@@ -186,8 +185,8 @@ def create_action_button(
186185
variant=variant,
187186
class_name=f"{STYLES['button_base']} {extra_styles}",
188187
),
189-
href=REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO,
190-
is_external=True,
188+
href="#demo-form",
189+
is_external=False,
191190
underline="none",
192191
class_name="w-full flex justify-center items-center",
193192
)
@@ -223,11 +222,14 @@ def create_table_row_header(
223222
# Compose the header cell content
224223
header_content = rx.el.div(
225224
rx.el.span(name),
226-
rx.badge(
227-
badge, class_name="ml-2 bg-violet-2 text-violet-11 border border-violet-5"
228-
)
229-
if badge
230-
else None,
225+
(
226+
rx.badge(
227+
badge,
228+
class_name="ml-2 bg-violet-2 text-violet-11 border border-violet-5",
229+
)
230+
if badge
231+
else None
232+
),
231233
rx.badge("coming soon", margin_left="0.5rem") if coming_soon else None,
232234
class_name="flex items-center gap-x-2",
233235
)
@@ -286,11 +288,14 @@ def create_feature_row(feature: str, description: str) -> rx.Component:
286288
def create_feature_table_header(section: str, badge: str = None) -> rx.Component:
287289
header_content = rx.el.div(
288290
rx.el.span(section),
289-
rx.badge(
290-
badge, class_name="ml-2 bg-violet-2 text-violet-11 border border-violet-5"
291-
)
292-
if badge
293-
else None,
291+
(
292+
rx.badge(
293+
badge,
294+
class_name="ml-2 bg-violet-2 text-violet-11 border border-violet-5",
295+
)
296+
if badge
297+
else None
298+
),
294299
class_name="flex items-center gap-x-2",
295300
)
296301
return rx.table.row(

0 commit comments

Comments
 (0)