12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- """The home page of the app."""
- import reflex as rx
- from ..styles import *
- def home_page() -> rx.Component:
- """The UI for the home page.
- Returns:
- rx.Component: The UI for the home page.
- """
- return rx.box(
- rx.vstack(
- rx.heading(
- "Welcome to Reflex! 👋",
- font_size="3em",
- ),
- rx.text(
- "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!",
- ),
- rx.heading(
- "Things to check out:",
- font_size="2em",
- ),
- rx.unordered_list(
- rx.list_item(
- "Take a look at ",
- rx.link(
- "reflex.dev",
- href="https://reflex.dev",
- color="rgb(107,99,246)",
- ),
- ),
- rx.list_item(
- "Check out our ",
- rx.link(
- "docs",
- href="https://reflex.dev/docs/getting-started/introduction/",
- color="rgb(107,99,246)",
- ),
- ),
- rx.list_item(
- "Ask a question in our ",
- rx.link(
- "community",
- href="https://discord.gg/T5WSbC2YtQ",
- color="rgb(107,99,246)",
- ),
- ),
- ),
- style=template_content_style,
- ),
- style=template_page_style,
- )
|