Spaces:
Sleeping
Sleeping
Update testnavbar.py
Browse files- testnavbar.py +12 -10
testnavbar.py
CHANGED
|
@@ -98,25 +98,27 @@ from the gallery you can:
|
|
| 98 |
"""
|
| 99 |
|
| 100 |
@rt
|
| 101 |
-
def product_detail(product_name:str):
|
| 102 |
-
return
|
| 103 |
-
|
| 104 |
-
Grid(
|
| 105 |
Div(
|
| 106 |
H1(product_name),
|
| 107 |
# render_md is a helper that renders markdown into HTML using frankenui styles.
|
| 108 |
-
render_md(example_product_description.format(product_name=product_name))
|
|
|
|
| 109 |
Div(
|
| 110 |
H3("Order Form"),
|
| 111 |
# Form automatically has a class of 'space-y-3' for a margin between each child.
|
| 112 |
-
Form(
|
| 113 |
-
# LabelInput is a
|
| 114 |
-
LabelInput("Name", id='name'),
|
| 115 |
LabelInput("Email", id='email'),
|
| 116 |
LabelInput("Quantity", id='quantity'),
|
| 117 |
-
Div(PaymentMethod,CreateAccount, TeamCard, cls='space-y-4'),
|
| 118 |
# ButtonT.primary because this is the primary action of the page!
|
| 119 |
-
Button("Submit", cls=ButtonT.primary)
|
|
|
|
| 120 |
|
| 121 |
),
|
| 122 |
# Grid has defaults and args for cols at different breakpoints, but you can pass in
|
|
|
|
| 98 |
"""
|
| 99 |
|
| 100 |
@rt
|
| 101 |
+
def product_detail(product_name: str):
|
| 102 |
+
return (
|
| 103 |
+
Title("Product Detail"),
|
| 104 |
+
Grid(
|
| 105 |
Div(
|
| 106 |
H1(product_name),
|
| 107 |
# render_md is a helper that renders markdown into HTML using frankenui styles.
|
| 108 |
+
render_md(example_product_description.format(product_name=product_name))
|
| 109 |
+
),
|
| 110 |
Div(
|
| 111 |
H3("Order Form"),
|
| 112 |
# Form automatically has a class of 'space-y-3' for a margin between each child.
|
| 113 |
+
Form(
|
| 114 |
+
# LabelInput is a convenience wrapper for a label and input that links them.
|
| 115 |
+
LabelInput("Name", id='name'),
|
| 116 |
LabelInput("Email", id='email'),
|
| 117 |
LabelInput("Quantity", id='quantity'),
|
| 118 |
+
Div(PaymentMethod, CreateAccount, TeamCard, cls='space-y-4'),
|
| 119 |
# ButtonT.primary because this is the primary action of the page!
|
| 120 |
+
Button("Submit", cls=ButtonT.primary)
|
| 121 |
+
)
|
| 122 |
|
| 123 |
),
|
| 124 |
# Grid has defaults and args for cols at different breakpoints, but you can pass in
|