|
| 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