Update readme path for templates (#2060)
This commit is contained in:
parent
8ad9f3a96e
commit
5e444a7b7b
@ -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.
|
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,
|
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:
|
To add a new page:
|
||||||
|
|
||||||
|
@ -13,10 +13,7 @@ hover_accent_bg = {"_hover": {"bg": accent_color}}
|
|||||||
content_width_vw = "90vw"
|
content_width_vw = "90vw"
|
||||||
sidebar_width = "20em"
|
sidebar_width = "20em"
|
||||||
|
|
||||||
template_page_style = {
|
template_page_style = {"padding_top": "5em", "padding_x": ["auto", "2em"]}
|
||||||
"padding_top": "5em",
|
|
||||||
"padding_x": "2em",
|
|
||||||
}
|
|
||||||
|
|
||||||
template_content_style = {
|
template_content_style = {
|
||||||
"width": "100%",
|
"width": "100%",
|
||||||
|
Loading…
Reference in New Issue
Block a user