import streamlit as st from utils.wolvesville import Wolvesville from utils.models import Emoji, EmojiCollection from typing import List api = Wolvesville() collections: List[EmojiCollection] = api.getEmojiAsCollections() emojis: List[Emoji] = api.getEmojis() st.header("Emojis") for emoji in emojis[:5]: st.subheader(emoji.name.title()) st.markdown(emoji.rarity.title()) st.markdown( f'', unsafe_allow_html=True, ) st.markdown(f"Event: {emoji.event.title() if emoji.event else 'None'}") st.header("Emoji Collections") for item in collections[:5]: st.markdown( f'', unsafe_allow_html=True, ) st.markdown( f'', unsafe_allow_html=True, ) if item.emojis != []: with st.expander("See role icons"): for emoji in item.emojis[:5]: st.subheader(emoji.name.title()) st.markdown(emoji.rarity.title()) st.markdown( f'', unsafe_allow_html=True, ) eventName = emoji.event.title() if emoji.event else "None" eventName = " ".join(eventName.split("_")) st.markdown(f"Event: {eventName}") st.divider()