()
| 29 | ) |
| 30 | |
| 31 | def contact_page() -> rx.Component: |
| 32 | |
| 33 | my_child = rx.vstack( |
| 34 | rx.heading("Contact Us", size="9"), |
| 35 | rx.cond(state.ContactState.did_submit, state.ContactState.thank_you, ""), |
| 36 | rx.desktop_only( |
| 37 | rx.box( |
| 38 | form.contact_form(), |
| 39 | width='50vw' |
| 40 | ) |
| 41 | ), |
| 42 | rx.tablet_only( |
| 43 | rx.box( |
| 44 | form.contact_form(), |
| 45 | width='75vw' |
| 46 | ) |
| 47 | ), |
| 48 | rx.mobile_only( |
| 49 | rx.box( |
| 50 | form.contact_form(), |
| 51 | width='95vw' |
| 52 | ) |
| 53 | ), |
| 54 | spacing="5", |
| 55 | justify="center", |
| 56 | align="center", |
| 57 | min_height="85vh", |
| 58 | id='my-child' |
| 59 | ) |
| 60 | return base_page(my_child) |
nothing calls this directly
no test coverage detected