home.py 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. """The home page of the app."""
  2. import reflex as rx
  3. from ..styles import *
  4. def home_page() -> rx.Component:
  5. """The UI for the home page.
  6. Returns:
  7. rx.Component: The UI for the home page.
  8. """
  9. return rx.box(
  10. rx.vstack(
  11. rx.heading(
  12. "Welcome to Reflex! 👋",
  13. font_size="3em",
  14. ),
  15. rx.text(
  16. "Reflex is an open-source app framework built specifically to allow you to build web apps in pure python. 👈 Select a demo from the sidebar to see some examples of what Reflex can do!",
  17. ),
  18. rx.heading(
  19. "Things to check out:",
  20. font_size="2em",
  21. ),
  22. rx.unordered_list(
  23. rx.list_item(
  24. "Take a look at ",
  25. rx.link(
  26. "reflex.dev",
  27. href="https://reflex.dev",
  28. color="rgb(107,99,246)",
  29. ),
  30. ),
  31. rx.list_item(
  32. "Check out our ",
  33. rx.link(
  34. "docs",
  35. href="https://reflex.dev/docs/getting-started/introduction/",
  36. color="rgb(107,99,246)",
  37. ),
  38. ),
  39. rx.list_item(
  40. "Ask a question in our ",
  41. rx.link(
  42. "community",
  43. href="https://discord.gg/T5WSbC2YtQ",
  44. color="rgb(107,99,246)",
  45. ),
  46. ),
  47. ),
  48. style=template_content_style,
  49. ),
  50. style=template_page_style,
  51. )