Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions pcweb/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
)
Expand Down
1 change: 0 additions & 1 deletion pcweb/pages/framework/components/hero.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion pcweb/pages/framework/views/hero.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
1 change: 0 additions & 1 deletion pcweb/pages/hosting/views/hero.py
Original file line number Diff line number Diff line change
@@ -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


Expand Down
4 changes: 1 addition & 3 deletions pcweb/pages/pricing/faq.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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",
)

Expand Down
3 changes: 2 additions & 1 deletion pcweb/pages/pricing/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)


Expand Down
5 changes: 1 addition & 4 deletions pcweb/pages/pricing/plan_cards.py
Original file line number Diff line number Diff line change
@@ -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,
)
Expand Down Expand Up @@ -273,7 +272,6 @@ def card(
class_name="w-full mb-6",
),
href=redirect_url,
is_external=True,
underline="none",
),
# Pricing Section
Expand Down Expand Up @@ -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
Expand Down
31 changes: 18 additions & 13 deletions pcweb/pages/pricing/table.py
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
)
Expand Down Expand Up @@ -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",
)
Expand Down Expand Up @@ -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(
Expand Down
Loading