Skip to content

Commit cd8fc4a

Browse files
authored
Fix missing success pages and improve UI (#1719)
* Fix missing success pages and improve UI * Apply ruff formatting * Fix typo in healthcare use case * Fix import sorting (ruff)
1 parent 92c9fc5 commit cd8fc4a

File tree

3 files changed

+31
-21
lines changed

3 files changed

+31
-21
lines changed
Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
import reflex as rx
2+
import reflex_ui as ui
23

3-
from pcweb.flexdown import markdown_with_shiki
44
from pcweb.templates.webpage import webpage
55

6-
contents = """
7-
# Thanks for Submitting a Demo Request
8-
9-
Check your email, we sent a calendar link to get access.
10-
"""
11-
126

137
@webpage(
148
path="/thank-you",
159
title="Thanks for Submitting a Demo Request · Reflex.dev",
16-
add_as_page=False,
10+
add_as_page=True,
1711
)
1812
def page_thank_you():
1913
return rx.box(
20-
markdown_with_shiki(contents),
21-
class_name="h-[80vh] w-full flex flex-col items-center justify-center",
14+
rx.heading(
15+
"Thanks for Submitting a Demo Request",
16+
class_name="gradient-heading font-x-large lg:font-xxx-large text-center text-transparent",
17+
),
18+
rx.text(
19+
"Check your email, we sent a calendar link to get access.",
20+
class_name="font-md text-balance text-slate-9 text-center mt-4",
21+
),
22+
rx.box(
23+
ui.button("Home", variant="primary", size="lg", on_click=rx.redirect("/")),
24+
class_name="flex flex-row items-center gap-x-4 mt-8",
25+
),
26+
class_name="h-[60vh] w-full flex flex-col items-center justify-center p-4",
2227
)
Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
import reflex as rx
2+
import reflex_ui as ui
23

3-
from pcweb.flexdown import markdown_with_shiki
44
from pcweb.templates.webpage import webpage
55

6-
contents = """
7-
# Thanks for Submitting a Demo Request
8-
9-
Meeting successfully booked!
10-
"""
11-
126

137
@webpage(
148
path="/meeting-successfully-booked",
159
title="Meeting Successfully Booked · Reflex.dev",
16-
add_as_page=False,
10+
add_as_page=True,
1711
)
1812
def page_meeting_successfully_booked():
1913
return rx.box(
20-
markdown_with_shiki(contents),
21-
class_name="h-[80vh] w-full flex flex-col items-center justify-center",
14+
rx.heading(
15+
"Meeting Successfully Booked!",
16+
class_name="gradient-heading font-x-large lg:font-xxx-large text-center text-transparent",
17+
),
18+
rx.text(
19+
"We have sent you a confirmation email with all the details.",
20+
class_name="font-md text-balance text-slate-9 text-center mt-4",
21+
),
22+
rx.box(
23+
ui.button("Home", variant="primary", size="lg", on_click=rx.redirect("/")),
24+
class_name="flex flex-row items-center gap-x-4 mt-8",
25+
),
26+
class_name="h-[60vh] w-full flex flex-col items-center justify-center p-4",
2227
)

pcweb/pages/use_cases/healthcare/views/features_2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def features_2() -> rx.Component:
2727
"PlugSocketIcon",
2828
"Designed for Data-Intensive Healthcare Workflows",
2929
"Native Python environment for all your integrations",
30-
"Integrate EMR/EHR data, HL7 & FHIR APIs, claims & billing systems, research databases, Snowflake, Postgres, Databricks, BigQuery, and clinical analytics & ML models — all in pure Python without switching contexts or languages.",
30+
"Integrate EMR data, HL7 & FHIR APIs, claims & billing systems, research databases, Snowflake, Postgres, Databricks, BigQuery, and clinical analytics & ML models — all in pure Python without switching contexts or languages.",
3131
),
3232
class_name="grid lg:grid-cols-4 grid-cols-1 mx-auto w-full max-w-[64.19rem] lg:border-x border-slate-3 relative overflow-hidden border-t lg:divide-x divide-slate-3 max-lg:divide-y",
3333
)

0 commit comments

Comments
 (0)