AMUseBot/src/utils/footer.py
2023-04-03 21:06:41 +03:00

48 lines
1.5 KiB
Python

from pathlib import Path
import streamlit as st
from src.utils.helpers import render_svg
def show_info(icon: Path) -> None:
st.markdown(f"<div style='text-align: justify;'>{st.session_state.locale.responsibility_denial}</div>",
unsafe_allow_html=True)
st.markdown("---")
st.markdown(f"""
### :page_with_curl: {st.session_state.locale.footer_title}
- {render_svg(icon)} [{st.session_state.locale.footer_chat}](https://t.me/talks_ai)
- {render_svg(icon)} [{st.session_state.locale.footer_channel}](https://t.me/talks_aii)
""", unsafe_allow_html=True)
def show_donates() -> None:
st.markdown(f"""
### :moneybag: {st.session_state.locale.donates}
**Crypto:**
- USD Tether (USDT TRC20):
```
TMQ5RiyQ7bv3XjB6Wf6JbPHVrGkhBKtmfA
```
- Toncoin (TON):
```
UQDbnx17N2iOmxfQF0k55QScDMB0MHL9rsq-iGB93RMqDhIH
```
**{st.session_state.locale.donates2}:**
- [Buy Me A Coffee](https://www.buymeacoffee.com/aitalks)
- [ko-fi](https://ko-fi.com/ai_talks)
- [PayPal](https://www.paypal.com/paypalme/aitalks)
""")
st.markdown(f"""
**{st.session_state.locale.donates1}:**
- [CloudTips (Tinkoff)](https://pay.cloudtips.ru/p/eafa15b2)
""")
_, img_col, _ = st.columns(3)
with img_col:
st.image("assets/qr/tink.png", width=200)
st.markdown("---")
st.markdown(f"<div style='text-align: justify;'>{st.session_state.locale.donates_info}</div>",
unsafe_allow_html=True)