Skip to content

Commit 8478ff8

Browse files
authored
ENG-7551: add booked page (#1606)
* add booked page * second page * updates * add url
1 parent 22efa06 commit 8478ff8

File tree

3 files changed

+104
-0
lines changed

3 files changed

+104
-0
lines changed

pcweb/pages/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
from .page404 import page404 as page404
1919
from .pricing.pricing import pricing as pricing
2020
from .sales import sales as sales
21+
from .booked import booked as booked
22+
from .to_be_booked import to_be_booked as to_be_booked
2123

2224
routes = [
2325
*[r for r in locals().values() if isinstance(r, Route) and r.add_as_page],

pcweb/pages/booked.py

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import reflex as rx
2+
3+
from pcweb.components.docpage.navbar import navbar
4+
from pcweb.pages.framework.index_colors import index_colors
5+
from pcweb.pages.framework.views.footer_index import footer_index
6+
import reflex_ui as ui
7+
from pcweb.pages.docs import getting_started
8+
from pcweb.meta.meta import create_meta_tags
9+
10+
11+
def booked_title():
12+
return rx.box(
13+
rx.heading(
14+
"Call Successfully Booked!",
15+
class_name="gradient-heading font-x-large lg:font-xxx-large text-start text-transparent lg:text-center",
16+
),
17+
rx.text(
18+
"We’ve sent you a confirmation email with all the details.",
19+
class_name="font-md text-balance text-slate-9",
20+
),
21+
class_name="section-header",
22+
)
23+
24+
25+
26+
27+
@rx.page(
28+
route="/booked",
29+
title="Call Successfully Booked | Reflex",
30+
meta=create_meta_tags(
31+
title="Call Successfully Booked | Reflex",
32+
description="Your call has been successfully scheduled. A confirmation email has been sent with all the details.",
33+
image="/previews/index_preview.png"
34+
)
35+
)
36+
def booked() -> rx.Component:
37+
return rx.box(
38+
index_colors(),
39+
navbar(),
40+
rx.el.section(
41+
booked_title(),
42+
rx.box(
43+
ui.button("Home", variant="primary", size="lg", on_click=rx.redirect("/")),
44+
ui.button("Installation", variant="secondary", size="lg", on_click=rx.redirect(getting_started.installation.path)),
45+
class_name="flex flex-row items-center gap-x-4 pb-14"
46+
),
47+
id="booked",
48+
class_name="section-content",
49+
),
50+
footer_index(),
51+
class_name="flex flex-col w-full max-w-[94.5rem] justify-center items-center mx-auto px-4 lg:px-5 relative overflow-hidden",
52+
)

pcweb/pages/to_be_booked.py

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import reflex as rx
2+
3+
from pcweb.components.docpage.navbar import navbar
4+
from pcweb.pages.framework.index_colors import index_colors
5+
from pcweb.pages.framework.views.footer_index import footer_index
6+
import reflex_ui as ui
7+
from pcweb.pages.docs import getting_started
8+
from pcweb.meta.meta import create_meta_tags
9+
10+
11+
def to_be_booked_title():
12+
return rx.box(
13+
rx.heading(
14+
"Call Request Received!",
15+
class_name="gradient-heading font-x-large lg:font-xxx-large text-start text-transparent lg:text-center",
16+
),
17+
rx.text(
18+
"Our team will reach out to you shortly over email to schedule your call.",
19+
class_name="font-md text-balance text-slate-9",
20+
),
21+
class_name="section-header",
22+
)
23+
24+
25+
@rx.page(
26+
route="/to-be-booked",
27+
title="Call Request Received | Reflex",
28+
meta=create_meta_tags(
29+
title="Call Request Received | Reflex",
30+
description="Your request has been received. Our team will reach out to you shortly via email to schedule your call.",
31+
image="/previews/index_preview.png"
32+
)
33+
)
34+
def to_be_booked() -> rx.Component:
35+
return rx.box(
36+
index_colors(),
37+
navbar(),
38+
rx.el.section(
39+
to_be_booked_title(),
40+
rx.box(
41+
ui.button("Home", variant="primary", size="lg", on_click=rx.redirect("/")),
42+
ui.button("Installation", variant="secondary", size="lg", on_click=rx.redirect(getting_started.installation.path)),
43+
class_name="flex flex-row items-center gap-x-4 pb-14"
44+
),
45+
id="to-be-booked",
46+
class_name="section-content",
47+
),
48+
footer_index(),
49+
class_name="flex flex-col w-full max-w-[94.5rem] justify-center items-center mx-auto px-4 lg:px-5 relative overflow-hidden",
50+
)

0 commit comments

Comments
 (0)