Download src/components/link.py from xMAUx/DS-ACMUD: direct link, hf CLI and curl.
- Browser
- Download file 753 Bytes
-
https://huggingface.co/spaces/xMAUx/DS-ACMUD/resolve/main/src/components/link.py
- Command line
-
hf download hf://spaces/xMAUx/DS-ACMUD/src/components/link.py
-
curl -L -o link.py https://huggingface.co/spaces/xMAUx/DS-ACMUD/resolve/main/src/components/link.py
753 Bytes
| import streamlit as st | |
| def CLink_icon(text:str, href:str, icon:str): | |
| st.write(f""" | |
| <div class="st-emotion-cache-ogrf2x e11mkfd22"> | |
| <a href="{href}" style="text-decoration:none; color:white;"> | |
| <i class="{icon}" style="margin-right: 10px"></i> | |
| <span> | |
| {text} | |
| <span/> | |
| </a> | |
| <div/> | |
| """, unsafe_allow_html=True) | |
| def CLink(text:str, href:str, icon:str): | |
| st.write(f""" | |
| <div style="padding:1em;"> | |
| <a href="{href}" style="text-decoration:none; color:white;" ><img src="{icon}" width="20px" style="margin-right: 10px" />{text}</a> | |
| <div/> | |
| """, unsafe_allow_html=True) |