Commit
·
203076f
1
Parent(s):
11b0091
more color styling
Browse files- .streamlit/config.toml +2 -2
- __pycache__/app.cpython-311.pyc +0 -0
- index.py +14 -5
.streamlit/config.toml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
[theme]
|
| 2 |
base="light"
|
| 3 |
-
primaryColor="#
|
| 4 |
-
secondaryBackgroundColor="#
|
| 5 |
textColor="#000000"
|
|
|
|
| 1 |
[theme]
|
| 2 |
base="light"
|
| 3 |
+
primaryColor="#d2fbd1"
|
| 4 |
+
secondaryBackgroundColor="#aad4a3"
|
| 5 |
textColor="#000000"
|
__pycache__/app.cpython-311.pyc
CHANGED
|
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
|
|
|
index.py
CHANGED
|
@@ -13,12 +13,21 @@ def main():
|
|
| 13 |
|
| 14 |
st.sidebar.header('Ingredients & Nutrition')
|
| 15 |
|
|
|
|
|
|
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
button_clicked = st.sidebar.button('Done')
|
| 23 |
if button_clicked:
|
| 24 |
displayRecipes()
|
|
|
|
| 13 |
|
| 14 |
st.sidebar.header('Ingredients & Nutrition')
|
| 15 |
|
| 16 |
+
# List of items
|
| 17 |
+
items = ['Item 1', 'Item 2', 'Item 3']
|
| 18 |
|
| 19 |
+
# Define content for each item
|
| 20 |
+
content = {
|
| 21 |
+
'Item 1': "This is the content for Item 1",
|
| 22 |
+
'Item 2': "This is the content for Item 2",
|
| 23 |
+
'Item 3': "This is the content for Item 3"
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
# Display expanders for each item
|
| 27 |
+
for item in items:
|
| 28 |
+
with st.sidebar.expander(item):
|
| 29 |
+
st.write(content[item])
|
| 30 |
+
|
| 31 |
button_clicked = st.sidebar.button('Done')
|
| 32 |
if button_clicked:
|
| 33 |
displayRecipes()
|