Spaces:
Running
Running
import streamlit as st | |
def cloud_button(label, key): | |
button_html = f""" | |
<div style="text-align: center;"> | |
<div style="display: inline-block; background-color: #FF6347; border-radius: 50%; width: 100px; height: 100px;"></div> | |
<div style="margin-top: -100px;">{label}</div> | |
</div> | |
""" | |
st.markdown(button_html, unsafe_allow_html=True) | |
return st.button("", key=key, use_container_width=True) | |
if cloud_button("Click Me!", "button1"): | |
st.success("Button 1 clicked!") | |
if cloud_button("Another Button", "button2"): | |
st.success("Button 2 clicked!") | |