import streamlit as st
from utils.wolvesville import Wolvesville
from utils.models import AvatarItems, AvatarItemSets
from typing import List
api = Wolvesville()
items: List[AvatarItems] = api.getItems()
itemSets : List[AvatarItemSets] = api.getItemAsSets()
st.title("Avatar Items")
for item in items[:5]:
st.markdown(
f'
',
unsafe_allow_html=True,
)
itemType = item.type.title()
st.subheader(itemType)
rarity = item.rarity.title()
st.markdown(rarity)
st.button(f"{item.costInGold} 🪙", key=item.id)
st.divider()
st.title("Item Collections")
for item in itemSets[:5]:
st.markdown(
f'
',
unsafe_allow_html=True,
)
if item.ids != []:
with st.expander("See item sets"):
for id in item.ids:
st.markdown(
f'
',
unsafe_allow_html=True,
)
st.divider()