Skip to content

Commit d207764

Browse files
authored
use lemcal embedded calendar (#1620)
1 parent 9d25b05 commit d207764

File tree

7 files changed

+15
-29
lines changed

7 files changed

+15
-29
lines changed

pcweb/components/docpage/navbar/navbar.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def link_item(name: str, url: str, active_str: str = ""):
107107
}
108108
},
109109
class_name=common_cn + rx.cond(active, active_cn, unactive_cn),
110-
on_click=SidebarState.set_sidebar_index(0)
110+
on_click=SidebarState.set_sidebar_index(0),
111111
)
112112

113113

@@ -535,13 +535,11 @@ def new_component_section() -> rx.Component:
535535
class_name="desktop-only",
536536
),
537537
nav_menu.item(
538-
ui.link(
539-
render_=button(
538+
lemcal_dialog(
539+
button(
540540
"Book a Demo",
541541
class_name="!h-8 !font-small-smbold !rounded-[0.625rem] whitespace-nowrap",
542542
),
543-
target="_blank",
544-
to=LEMCAL_DEMO_URL,
545543
),
546544
class_name="xl:flex hidden",
547545
),

pcweb/pages/demo/header.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,15 @@ def custom_quote_form() -> rx.Component:
1717
"Enterprise-ready solutions designed for scale, compliance, and support. Contact us for a tailored quote based on your infrastructure and team size.",
1818
class_name="text-slate-11 text-md leading-relaxed font-medium text-center max-w-xl mx-auto",
1919
),
20-
ui.link(
21-
render_=rx.el.div(
20+
lemcal_dialog(
21+
rx.el.div(
2222
ui.button(
2323
"Contact Sales",
2424
class_name="font-semibold",
2525
size="lg",
2626
),
2727
class_name="p-3 border border-slate-3 rounded-[1.375rem] border-solid mt-2",
2828
),
29-
target="_blank",
30-
to=LEMCAL_DEMO_URL,
3129
),
3230
rx.box(
3331
rx.el.span(

pcweb/pages/gallery/apps.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,12 @@ def page(document, is_reflex_template: bool) -> rx.Component:
162162
*(
163163
[
164164
rx.box(
165-
ui.link(
166-
render_=button_with_icon(
165+
lemcal_dialog(
166+
button_with_icon(
167167
"Book a Demo",
168168
icon="new_tab",
169169
class_name="flex-row-reverse gap-2 !w-full",
170170
),
171-
target="_blank",
172-
to=LEMCAL_DEMO_URL,
173171
),
174172
class_name="flex justify-center items-center h-full !w-full [&_button]:!w-full",
175173
)

pcweb/pages/landing/views/start_building.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@ def start_building() -> rx.Component:
2323
"Start building with Reflex",
2424
class_name="text-slate-9 text-2xl lg:text-4xl font-semibold text-center",
2525
),
26-
ui.link(
27-
render_=button(
26+
lemcal_dialog(
27+
button(
2828
"Contact sales",
2929
size="xl",
3030
),
31-
target="_blank",
32-
to=LEMCAL_DEMO_URL,
3331
class_name="mt-6",
3432
),
3533
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",

pcweb/pages/pricing/faq.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,15 @@ def header() -> rx.Component:
2525

2626

2727
def sales_button() -> rx.Component:
28-
return ui.link(
29-
render_=rx.fragment(
28+
return lemcal_dialog(
29+
rx.fragment(
3030
glow(),
3131
button(
3232
"Need more help? Contact sales",
3333
variant="secondary",
3434
class_name="!text-slate-11 !font-semibold !text-sm",
3535
),
3636
),
37-
target="_blank",
38-
to=LEMCAL_DEMO_URL,
3937
class_name="self-center relative",
4038
)
4139

pcweb/pages/pricing/plan_cards.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,15 +345,13 @@ def popular_card(
345345
disabled=True,
346346
class_name="w-full mb-6 !text-sm !font-semibold opacity-50 cursor-not-allowed",
347347
),
348-
ui.link(
349-
render_=ui.button(
348+
lemcal_dialog(
349+
ui.button(
350350
button_text,
351351
variant="primary",
352352
size="lg",
353353
class_name="w-full mb-6 !text-sm !font-semibold",
354354
),
355-
target="_blank",
356-
to=LEMCAL_DEMO_URL,
357355
),
358356
),
359357
# Pricing Section

pcweb/pages/pricing/table.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,12 @@ def create_table_cell(content: str | rx.Component) -> rx.Component:
181181
def create_action_button(
182182
text: str, variant: str, extra_styles: str = ""
183183
) -> rx.Component:
184-
return ui.link(
185-
render_=button(
184+
return lemcal_dialog(
185+
button(
186186
text,
187187
variant=variant,
188188
class_name=f"{STYLES['button_base']} {extra_styles}",
189189
),
190-
target="_blank",
191-
to=LEMCAL_DEMO_URL,
192190
class_name="w-full flex justify-center items-center",
193191
)
194192

0 commit comments

Comments
 (0)