reflex/reflex/.templates/apps/base/code/pages/index.py
2023-10-26 17:59:14 -07:00

19 lines
416 B
Python

"""The home page of the app."""
from code import styles
from code.templates import template
import reflex as rx
@template(route="/", title="Home", image="/logo.svg")
def index() -> rx.Component:
"""The home page.
Returns:
The UI for the home page.
"""
with open("README.md") as readme:
content = readme.read()
return rx.markdown(content, component_map=styles.markdown_style)