Skip to content

Commit e3fe107

Browse files
authored
calcom demo form (#1705)
1 parent 7101ee0 commit e3fe107

File tree

13 files changed

+76
-82
lines changed

13 files changed

+76
-82
lines changed

blog/2025-12-05-on-premises-deployment.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import reflex as rx
3333
import reflex_ui as ui
3434
from pcweb import pages, constants
3535
from reflex_image_zoom import image_zoom
36-
from reflex_ui.blocks.demo_form import demo_form_dialog
36+
from reflex_ui.blocks.calcom import get_cal_attrs
3737
```
3838

3939
For organizations with strict security, compliance, or data sovereignty requirements, building applications on your own infrastructure isn't just a preference — it's a necessity. With Reflex Enterprise, you can now run **Reflex Build**—our AI-powered app builder—on-premises or in your own private cloud, giving you complete control over your development environment while maintaining all the productivity benefits of building apps with AI. You can securely hook up with all your company data sources, internal services, documentation, databases, and APIs—all within your own infrastructure.
@@ -150,12 +150,11 @@ If you're interested in deploying Reflex on-premises, book a demo to discuss you
150150

151151
```python eval
152152
rx.el.div(
153-
demo_form_dialog(
154-
ui.button(
155-
"Book a Demo",
156-
variant="primary",
157-
class_name="font-semibold",
158-
),
153+
ui.button(
154+
"Book a Demo",
155+
variant="primary",
156+
class_name="font-semibold",
157+
custom_attrs=get_cal_attrs(),
159158
),
160159
class_name="flex justify-center items-center my-8",
161160
)

pcweb/components/docpage/navbar/navbar.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import reflex as rx
44
import reflex_ui as ui
5-
from reflex_ui.blocks.demo_form import demo_form_dialog
5+
from reflex_ui.blocks.calcom import get_cal_attrs
66

77
from pcweb.constants import REFLEX_BUILD_URL, REFLEX_CLOUD_URL
88
from pcweb.pages.blog import blogs
@@ -550,13 +550,12 @@ def new_component_section() -> rx.Component:
550550
class_name="desktop-only",
551551
),
552552
ui.navigation_menu.item(
553-
render_=demo_form_dialog(
554-
ui.button(
555-
"Book a Demo",
556-
size="sm",
557-
variant="primary",
558-
class_name="font-semibold whitespace-nowrap max-xl:hidden",
559-
),
553+
render_=ui.button(
554+
"Book a Demo",
555+
size="sm",
556+
variant="primary",
557+
custom_attrs=get_cal_attrs(),
558+
class_name="font-semibold whitespace-nowrap max-xl:hidden",
560559
),
561560
unstyled=True,
562561
class_name="xl:flex hidden",

pcweb/pages/databricks/views/video.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import reflex as rx
22
import reflex_ui as ui
3-
from reflex_ui.blocks.demo_form import demo_form_dialog
3+
from reflex_ui.blocks.calcom import get_cal_attrs
44

55
VIDEO_URL = "https://youtu.be/Hy3uhBVRdtk?si=Z5szIyInkBfeG2lk&t=92s"
66

@@ -37,12 +37,11 @@ def text() -> rx.Component:
3737
),
3838
class_name="text-slate-12 lg:text-3xl text-2xl font-semibold max-w-[57rem]",
3939
),
40-
demo_form_dialog(
41-
ui.button(
42-
"Get Personalized Walkthrough",
43-
size="lg",
44-
class_name="w-fit font-semibold mr-auto rounded-[0.625rem]",
45-
),
40+
ui.button(
41+
"Get Personalized Walkthrough",
42+
size="lg",
43+
class_name="w-fit font-semibold mr-auto rounded-[0.625rem]",
44+
custom_attrs=get_cal_attrs(),
4645
),
4746
class_name="flex flex-col gap-6 items-start justify-center lg:py-20 py-8 px-10",
4847
)

pcweb/pages/demo/header.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import reflex as rx
22
import reflex_ui as ui
3-
from reflex_ui.blocks.demo_form import demo_form_dialog
3+
from reflex_ui.blocks.calcom import get_cal_attrs
44

55
from pcweb.components.hosting_banner import HostingBannerState
66
from pcweb.pages.framework.views.companies import pricing_page_companies
@@ -18,15 +18,14 @@ def custom_quote_form() -> rx.Component:
1818
"Enterprise-ready solutions designed for scale, compliance, and support. Contact us for a tailored quote based on your infrastructure and team size.",
1919
class_name="text-slate-11 text-md leading-relaxed font-medium text-center max-w-xl mx-auto",
2020
),
21-
demo_form_dialog(
22-
rx.el.div(
23-
ui.button(
24-
"Contact Sales",
25-
class_name="font-semibold",
26-
size="lg",
27-
),
28-
class_name="p-3 border border-slate-3 rounded-[1.375rem] border-solid mt-2",
21+
rx.el.div(
22+
ui.button(
23+
"Contact Sales",
24+
class_name="font-semibold",
25+
size="lg",
26+
custom_attrs=get_cal_attrs(),
2927
),
28+
class_name="p-3 border border-slate-3 rounded-[1.375rem] border-solid mt-2",
3029
),
3130
rx.box(
3231
rx.el.span(

pcweb/pages/gallery/apps.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import flexdown
55
import reflex as rx
66
import reflex_ui as ui
7-
from reflex_ui.blocks.demo_form import demo_form_dialog
7+
from reflex_ui.blocks.calcom import get_cal_attrs
88

99
from pcweb.components.button import button, button_with_icon
1010
from pcweb.components.code_card import gallery_app_card
@@ -202,12 +202,11 @@ def page(document, is_reflex_template: bool) -> rx.Component:
202202
*(
203203
[
204204
rx.box(
205-
demo_form_dialog(
206-
button_with_icon(
207-
"Book a Demo",
208-
icon="new_tab",
209-
class_name="flex-row-reverse gap-2 !w-full",
210-
),
205+
button_with_icon(
206+
"Book a Demo",
207+
icon="new_tab",
208+
custom_attrs=get_cal_attrs(),
209+
class_name="flex-row-reverse gap-2 !w-full",
211210
),
212211
class_name="flex justify-center items-center h-full !w-full [&_button]:!w-full",
213212
)

pcweb/pages/landing/views/start_building.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import reflex as rx
2-
from reflex_ui.blocks.demo_form import demo_form_dialog
2+
from reflex_ui.blocks.calcom import get_cal_attrs
33

44
from pcweb.components.new_button import button
55

@@ -22,12 +22,11 @@ def start_building() -> rx.Component:
2222
"Start building with Reflex",
2323
class_name="text-secondary-11 text-2xl lg:text-4xl font-semibold text-center",
2424
),
25-
demo_form_dialog(
26-
button(
27-
"Contact sales",
28-
size="xl",
29-
class_name="mt-6",
30-
),
25+
button(
26+
"Contact sales",
27+
size="xl",
28+
class_name="mt-6",
29+
custom_attrs=get_cal_attrs(),
3130
),
3231
class_name="flex flex-col justify-center items-center lg:mx-auto md:w-full max-w-[64.19rem] lg:border-x border-slate-3 pb-[6.31rem] border-t border-slate-3 py-[6rem] relative z-[1] overflow-hidden isolate w-screen -mx-4",
3332
)

pcweb/pages/pricing/enterprise_demo_form.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import reflex as rx
2-
from reflex_ui.blocks.demo_form import demo_form
2+
from reflex_ui.blocks.calcom import cal_embed
33

44
from pcweb.pages.framework.views.companies import pricing_page_companies
55

@@ -25,12 +25,12 @@ def book_a_demo_form() -> rx.Component:
2525
class_name="mb-8 lg:mb-0 text-center sm:text-left",
2626
),
2727
# Right column - Form
28-
demo_form(
29-
class_name="relative bg-slate-1 p-6 sm:p-8 rounded-2xl border-2 border-violet-9 shadow-lg w-full max-w-md mx-auto lg:max-w-none lg:mx-0"
28+
cal_embed(
29+
class_name="relative bg-slate-1 rounded-2xl border-2 border-violet-9 shadow-lg w-full max-w-md mx-auto lg:max-w-none lg:mx-0 overflow-hidden"
3030
),
31-
class_name="grid grid-cols-1 lg:grid-cols-2 gap-8 lg:gap-16 max-w-7xl mx-auto items-start",
31+
class_name="grid grid-cols-1 lg:grid-cols-2 gap-6 lg:gap-2 max-w-7xl mx-auto items-start",
3232
),
33-
class_name="lg:pt-[4.5rem] pt-[2.5rem] pb-[3.5rem] px-8",
33+
class_name="lg:pt-[4.5rem] pt-[2.5rem] pb-[3.5rem] px-4",
3434
),
3535
class_name="flex items-center justify-center 2xl:border-x border-slate-4 max-w-[64.19rem] mx-auto w-full gap-1 2xl:border-b",
3636
)

pcweb/pages/pricing/faq.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import reflex as rx
2-
from reflex_ui.blocks.demo_form import demo_form_dialog
2+
from reflex_ui.blocks.calcom import get_cal_attrs
33

44
from pcweb.components.button import button
55

@@ -26,15 +26,14 @@ def header() -> rx.Component:
2626

2727
def sales_button() -> rx.Component:
2828
return rx.el.div(
29-
demo_form_dialog(
30-
rx.el.div(
31-
glow(),
32-
button(
33-
"Need more help? Contact sales",
34-
variant="secondary",
35-
class_name="!text-slate-11 !font-semibold !text-sm w-fit",
36-
),
29+
rx.el.div(
30+
glow(),
31+
button(
32+
"Need more help? Contact sales",
33+
variant="secondary",
34+
class_name="!text-slate-11 !font-semibold !text-sm w-fit",
3735
),
36+
custom_attrs=get_cal_attrs(),
3837
),
3938
class_name="self-center relative",
4039
)

pcweb/pages/pricing/plan_cards.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import reflex as rx
55
import reflex_ui as ui
66
from reflex.experimental.client_state import ClientStateVar
7-
from reflex_ui.blocks.demo_form import demo_form_dialog
7+
from reflex_ui.blocks.calcom import get_cal_attrs
88

99
from pcweb.components.hosting_banner import HostingBannerState
1010
from pcweb.components.number_flow import number_flow
@@ -259,13 +259,12 @@ def pricing_cards() -> rx.Component:
259259
Feature("QuestionIcon", "Dedicated Support Channel"),
260260
Feature("CustomerSupportIcon", "Onboarding support"),
261261
],
262-
demo_form_dialog(
263-
ui.button(
264-
"Contact sales",
265-
variant="primary",
266-
size="lg",
267-
class_name="w-full font-semibold",
268-
),
262+
ui.button(
263+
"Contact sales",
264+
variant="primary",
265+
size="lg",
266+
custom_attrs=get_cal_attrs(),
267+
class_name="w-full font-semibold",
269268
),
270269
),
271270
class_name=ui.cn(

pcweb/pages/pricing/slider_calculator.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import reflex as rx
44
import reflex_ui as ui
55
from reflex.experimental.client_state import ClientStateVar
6-
from reflex_ui.blocks.demo_form import demo_form_dialog
6+
from reflex_ui.blocks.calcom import get_cal_attrs
77

88
from pcweb.constants import PRO_TIERS_TABLE, REFLEX_CLOUD_URL
99
from pcweb.pages.pricing.calculator import (
@@ -269,12 +269,11 @@ def total_credits_card() -> rx.Component:
269269
),
270270
rx.cond(
271271
get_is_enterprise_tier(MachineState.messages_tier_index),
272-
demo_form_dialog(
273-
ui.button(
274-
"Contact Sales",
275-
size="sm",
276-
class_name="font-semibold w-full",
277-
),
272+
ui.button(
273+
"Contact Sales",
274+
size="sm",
275+
custom_attrs=get_cal_attrs(),
276+
class_name="font-semibold w-full",
278277
),
279278
ui.link(
280279
render_=ui.button(

0 commit comments

Comments
 (0)