Spaces:
Sleeping
Sleeping
File size: 808 Bytes
157e563 9d20627 157e563 9d20627 157e563 9d20627 157e563 9d20627 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import streamlit as st
from utils.wolvesville import Wolvesville
from utils.models import ProfileIcons
from typing import List
api = Wolvesville()
css_example = """
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
"""
st.write(css_example, unsafe_allow_html=True)
icons: List[ProfileIcons] = api.getProfileIcons()
for item in icons:
rarity = item.rarity.title()
HTML = f'<p><i class="fas fa-{item.name} fa-2xl"></i> {rarity}</p>'
st.write(HTML, unsafe_allow_html=True)
st.divider()
|