import streamlit as st
from utils.wolvesville import Wolvesville
from utils.models import Emoji, EmojiCollection
from utils.helper import getTitle
from typing import List
api = Wolvesville()
collections: List[EmojiCollection] = api.getEmojiAsCollections()
emojis: List[Emoji] = api.getEmojis()
st.markdown(getTitle("Emojis"), unsafe_allow_html=True)
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.markdown(getTitle("Emoji Collections"), unsafe_allow_html=True)
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]:
name = emoji.name.title()
name = " ".join(name.split("_"))
st.subheader(name)
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()