-
Notifications
You must be signed in to change notification settings - Fork 230
Fix missing success pages and improve UI #1719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,27 @@ | ||
| import reflex as rx | ||
| import reflex_ui as ui | ||
|
|
||
| from pcweb.flexdown import markdown_with_shiki | ||
| from pcweb.templates.webpage import webpage | ||
|
|
||
| contents = """ | ||
| # Thanks for Submitting a Demo Request | ||
|
|
||
| Check your email, we sent a calendar link to get access. | ||
| """ | ||
|
|
||
|
|
||
| @webpage( | ||
| path="/thank-you", | ||
| title="Thanks for Submitting a Demo Request · Reflex.dev", | ||
| add_as_page=False, | ||
| add_as_page=True, | ||
| ) | ||
| def page_thank_you(): | ||
| return rx.box( | ||
| markdown_with_shiki(contents), | ||
| class_name="h-[80vh] w-full flex flex-col items-center justify-center", | ||
| rx.heading( | ||
| "Thanks for Submitting a Demo Request", | ||
| class_name="gradient-heading font-x-large lg:font-xxx-large text-center text-transparent", | ||
| ), | ||
| rx.text( | ||
| "Check your email, we sent a calendar link to get access.", | ||
| class_name="font-md text-balance text-slate-9 text-center mt-4", | ||
| ), | ||
| rx.box( | ||
| ui.button("Home", variant="primary", size="lg", on_click=rx.redirect("/")), | ||
| class_name="flex flex-row items-center gap-x-4 mt-8", | ||
| ), | ||
| class_name="h-[60vh] w-full flex flex-col items-center justify-center p-4", | ||
| ) | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,22 +1,27 @@ | ||||||||||||||
| import reflex as rx | ||||||||||||||
| import reflex_ui as ui | ||||||||||||||
|
|
||||||||||||||
| from pcweb.flexdown import markdown_with_shiki | ||||||||||||||
| from pcweb.templates.webpage import webpage | ||||||||||||||
|
|
||||||||||||||
| contents = """ | ||||||||||||||
| # Thanks for Submitting a Demo Request | ||||||||||||||
|
|
||||||||||||||
| Meeting successfully booked! | ||||||||||||||
| """ | ||||||||||||||
|
|
||||||||||||||
|
|
||||||||||||||
| @webpage( | ||||||||||||||
| path="/meeting-successfully-booked", | ||||||||||||||
| title="Meeting Successfully Booked · Reflex.dev", | ||||||||||||||
| add_as_page=False, | ||||||||||||||
| add_as_page=True, | ||||||||||||||
| ) | ||||||||||||||
| def page_meeting_successfully_booked(): | ||||||||||||||
| return rx.box( | ||||||||||||||
| markdown_with_shiki(contents), | ||||||||||||||
| class_name="h-[80vh] w-full flex flex-col items-center justify-center", | ||||||||||||||
| rx.heading( | ||||||||||||||
| "Meeting Successfully Booked!", | ||||||||||||||
| class_name="gradient-heading font-x-large lg:font-xxx-large text-center text-transparent", | ||||||||||||||
| ), | ||||||||||||||
| rx.text( | ||||||||||||||
| "We have sent you a confirmation email with all the details.", | ||||||||||||||
| class_name="font-md text-balance text-slate-9 text-center mt-4", | ||||||||||||||
| ), | ||||||||||||||
| rx.box( | ||||||||||||||
| ui.button("Home", variant="primary", size="lg", on_click=rx.redirect("/")), | ||||||||||||||
| class_name="flex flex-row items-center gap-x-4 mt-8", | ||||||||||||||
| ), | ||||||||||||||
| class_name="h-[60vh] w-full flex flex-col items-center justify-center p-4", | ||||||||||||||
|
Comment on lines
+22
to
+26
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Consider removing
Suggested change
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! Prompt To Fix With AIThis is a comment left during a code review.
Path: pcweb/pages/meeting_successfully_booked.py
Line: 21:25
Comment:
The `gap-x-4` class in the wrapper box is unnecessary since there's only one button. The `gap-x-4` utility adds horizontal spacing between flex items, but with a single child element, this has no effect.
Consider removing `gap-x-4` from the class name, or if you plan to add a second button (like "Installation" as seen in similar pages like `/booked` and `/to-be-booked`), then the gap class would be appropriate.
```suggestion
class_name="flex flex-row items-center mt-8",
```
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise. |
||||||||||||||
| ) | ||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
gap-x-4class in the wrapper box is unnecessary since there's only one button. Thegap-x-4utility adds horizontal spacing between flex items, but with a single child element, this has no effect.Consider removing
gap-x-4from the class name, or if you plan to add a second button (like "Installation" as seen in similar pages like/bookedand/to-be-booked), then the gap class would be appropriate.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Prompt To Fix With AI