|
1 | 1 | ```python exec |
2 | 2 | import reflex as rx |
3 | | -from pcweb.styles.styles import get_code_style |
4 | | -from pcweb.styles.colors import c_color |
5 | 3 | ``` |
6 | 4 |
|
7 | 5 | # Files |
@@ -33,24 +31,24 @@ rx.table.root( |
33 | 31 | rx.table.row( |
34 | 32 | rx.table.cell(rx.text("Location", font_weight="bold")), |
35 | 33 | rx.table.cell(rx.hstack( |
36 | | - rx.code("assets/", style=get_code_style("violet")), |
| 34 | + rx.code("assets/", style={"color": rx.color("violet", 11), "border_radius": "0.25rem", "border": f"1px solid {rx.color('violet', 5)}", "background": rx.color("violet", 3)}), |
37 | 35 | rx.text(" folder or next to Python files (shared assets)"), |
38 | 36 | spacing="2", |
39 | 37 | )), |
40 | 38 | rx.table.cell(rx.hstack( |
41 | | - rx.code("uploaded_files/", style=get_code_style("violet")), |
| 39 | + rx.code("uploaded_files/", style={"color": rx.color("violet", 11), "border_radius": "0.25rem", "border": f"1px solid {rx.color('violet', 5)}", "background": rx.color("violet", 3)}), |
42 | 40 | rx.text(" directory (configurable)"), |
43 | 41 | spacing="2", |
44 | 42 | )), |
45 | 43 | ), |
46 | 44 | rx.table.row( |
47 | 45 | rx.table.cell(rx.text("Access Method", font_weight="bold")), |
48 | 46 | rx.table.cell(rx.hstack( |
49 | | - rx.code("rx.asset()", style=get_code_style("violet")), |
| 47 | + rx.code("rx.asset()", style={"color": rx.color("violet", 11), "border_radius": "0.25rem", "border": f"1px solid {rx.color('violet', 5)}", "background": rx.color("violet", 3)}), |
50 | 48 | rx.text(" or direct path reference"), |
51 | 49 | spacing="2", |
52 | 50 | )), |
53 | | - rx.table.cell(rx.code("rx.get_upload_url()", style=get_code_style("violet"))), |
| 51 | + rx.table.cell(rx.code("rx.get_upload_url()", style={"color": rx.color("violet", 11), "border_radius": "0.25rem", "border": f"1px solid {rx.color('violet', 5)}", "background": rx.color("violet", 3)})), |
54 | 52 | ), |
55 | 53 | rx.table.row( |
56 | 54 | rx.table.cell(rx.text("When to Use", font_weight="bold")), |
|
0 commit comments