Spaces:
Sleeping
Sleeping
Abhinav
commited on
feat: UI improvements
Browse files
app.py
CHANGED
@@ -6,6 +6,19 @@ from typing import List
|
|
6 |
api = Wolvesville()
|
7 |
|
8 |
roles: List[Role] = api.getRoleRoleIcons()
|
|
|
|
|
|
|
9 |
for role in roles[:5]:
|
10 |
st.markdown(f"<img src=\"{role.image.url}\" style=\"height: 100px; width:100px;\"/>", unsafe_allow_html=True)
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
api = Wolvesville()
|
7 |
|
8 |
roles: List[Role] = api.getRoleRoleIcons()
|
9 |
+
|
10 |
+
st.title("Roles")
|
11 |
+
|
12 |
for role in roles[:5]:
|
13 |
st.markdown(f"<img src=\"{role.image.url}\" style=\"height: 100px; width:100px;\"/>", unsafe_allow_html=True)
|
14 |
+
|
15 |
+
st.subheader(role.name)
|
16 |
+
st.text(role.aura)
|
17 |
+
st.text(role.description)
|
18 |
+
|
19 |
+
if role.icons != []:
|
20 |
+
with st.expander("See role icons"):
|
21 |
+
for icon in role.icons:
|
22 |
+
st.markdown(f"<img src=\"{icon}\" style=\"height: 100px; width:100px;\"/>", unsafe_allow_html=True)
|
23 |
+
|
24 |
+
st.divider()
|