Update readme path for templates (#2060)

This commit is contained in:
Nikhil Rao 2023-10-27 14:07:38 -07:00 committed by GitHub
parent 8ad9f3a96e
commit 5e444a7b7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -45,7 +45,7 @@ For example, to edit this page you can modify `{your_app}/pages/index.py`.
See the [pages docs](https://reflex.dev/docs/components/pages/) for more information on pages.
In this template, instead of using `rx.add_page` or the `@rx.page` decorator,
we use the `@template` decorator from `{your_app}/pages/template.py`.
we use the `@template` decorator from `{your_app}/templates/template.py`.
To add a new page:

View File

@ -13,10 +13,7 @@ hover_accent_bg = {"_hover": {"bg": accent_color}}
content_width_vw = "90vw"
sidebar_width = "20em"
template_page_style = {
"padding_top": "5em",
"padding_x": "2em",
}
template_page_style = {"padding_top": "5em", "padding_x": ["auto", "2em"]}
template_content_style = {
"width": "100%",