diff --git a/pcweb/constants.py b/pcweb/constants.py index a4dcf30e79..ecd0697da4 100644 --- a/pcweb/constants.py +++ b/pcweb/constants.py @@ -2,9 +2,6 @@ # pcweb constants. API_BASE_URL_LOOPS: str = "https://app.loops.so/api/v1" -REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO: str = ( - "https://cal.com/forms/f87bd9b2-b339-4915-b4d4-0098e2db4394" -) REFLEX_DEV_WEB_LANDING_FORM_SALES_CALL_WEBHOOK_URL: str = ( "https://hooks.zapier.com/hooks/catch/20661176/2s1nxp9/" ) diff --git a/pcweb/pages/framework/components/hero.py b/pcweb/pages/framework/components/hero.py index 7041601abb..22db9bd3ae 100644 --- a/pcweb/pages/framework/components/hero.py +++ b/pcweb/pages/framework/components/hero.py @@ -2,7 +2,6 @@ from pcweb.components.button import button from pcweb.components.icons.icons import get_icon -from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO from pcweb.pages.docs import getting_started from pcweb.pages.framework.demos.demos import demo_section diff --git a/pcweb/pages/framework/views/hero.py b/pcweb/pages/framework/views/hero.py index a67596f5c1..46c029810f 100644 --- a/pcweb/pages/framework/views/hero.py +++ b/pcweb/pages/framework/views/hero.py @@ -2,7 +2,6 @@ from pcweb.components.button import button from pcweb.components.icons.icons import get_icon -from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO from pcweb.pages.docs import getting_started diff --git a/pcweb/pages/hosting/views/hero.py b/pcweb/pages/hosting/views/hero.py index 338c330570..9c975145f0 100644 --- a/pcweb/pages/hosting/views/hero.py +++ b/pcweb/pages/hosting/views/hero.py @@ -1,7 +1,6 @@ import reflex as rx from pcweb.components.new_button import button from pcweb.pages.docs import hosting -from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO from pcweb.components.hosting_banner import HostingBannerState diff --git a/pcweb/pages/pricing/faq.py b/pcweb/pages/pricing/faq.py index 9e05945f60..5b7f34fc66 100644 --- a/pcweb/pages/pricing/faq.py +++ b/pcweb/pages/pricing/faq.py @@ -1,6 +1,5 @@ import reflex as rx from pcweb.components.button import button -from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO def glow() -> rx.Component: @@ -31,8 +30,7 @@ def sales_button() -> rx.Component: variant="secondary", class_name="!text-slate-11 !font-semibold !text-sm", ), - href=REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO, - is_external=True, + href="#demo-form", class_name="self-center relative", ) diff --git a/pcweb/pages/pricing/header.py b/pcweb/pages/pricing/header.py index 153fc7c045..1d935b7b0b 100644 --- a/pcweb/pages/pricing/header.py +++ b/pcweb/pages/pricing/header.py @@ -31,7 +31,8 @@ def custom_quote_form() -> rx.Component: ), class_name="grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-16 max-w-7xl mx-auto items-start", ), - class_name="py-12 sm:py-20 px-4 sm:px-8", + id="demo-form", + class_name="py-12 sm:py-20 px-4 sm:px-8 scroll-m-20", ) diff --git a/pcweb/pages/pricing/plan_cards.py b/pcweb/pages/pricing/plan_cards.py index 7ab2fca518..6b90af18f1 100644 --- a/pcweb/pages/pricing/plan_cards.py +++ b/pcweb/pages/pricing/plan_cards.py @@ -1,7 +1,6 @@ import reflex as rx from pcweb.components.new_button import button from pcweb.constants import ( - REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO, REFLEX_CLOUD_URL, REFLEX_DOCS_URL, ) @@ -273,7 +272,6 @@ def card( class_name="w-full mb-6", ), href=redirect_url, - is_external=True, underline="none", ), # Pricing Section @@ -326,8 +324,7 @@ def popular_card( size="lg", class_name="w-full mb-6 !text-sm !font-semibold", ), - href=REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO, - is_external=True, + href="/pricing", underline="none", ), # Pricing Section diff --git a/pcweb/pages/pricing/table.py b/pcweb/pages/pricing/table.py index 327247e585..18d330a705 100644 --- a/pcweb/pages/pricing/table.py +++ b/pcweb/pages/pricing/table.py @@ -1,6 +1,5 @@ import reflex as rx from pcweb.components.button import button -from pcweb.constants import REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO STYLES = { "cell": "text-slate-12 font-medium text-sm whitespace-nowrap", @@ -186,8 +185,8 @@ def create_action_button( variant=variant, class_name=f"{STYLES['button_base']} {extra_styles}", ), - href=REFLEX_DEV_WEB_LANDING_FORM_URL_GET_DEMO, - is_external=True, + href="#demo-form", + is_external=False, underline="none", class_name="w-full flex justify-center items-center", ) @@ -223,11 +222,14 @@ def create_table_row_header( # Compose the header cell content header_content = rx.el.div( rx.el.span(name), - rx.badge( - badge, class_name="ml-2 bg-violet-2 text-violet-11 border border-violet-5" - ) - if badge - else None, + ( + rx.badge( + badge, + class_name="ml-2 bg-violet-2 text-violet-11 border border-violet-5", + ) + if badge + else None + ), rx.badge("coming soon", margin_left="0.5rem") if coming_soon else None, class_name="flex items-center gap-x-2", ) @@ -286,11 +288,14 @@ def create_feature_row(feature: str, description: str) -> rx.Component: def create_feature_table_header(section: str, badge: str = None) -> rx.Component: header_content = rx.el.div( rx.el.span(section), - rx.badge( - badge, class_name="ml-2 bg-violet-2 text-violet-11 border border-violet-5" - ) - if badge - else None, + ( + rx.badge( + badge, + class_name="ml-2 bg-violet-2 text-violet-11 border border-violet-5", + ) + if badge + else None + ), class_name="flex items-center gap-x-2", ) return rx.table.row(