awacke1's picture
Update app.py
a508916
raw
history blame
975 Bytes
import streamlit as st
st.set_page_config(page_title="8 Dimensions of Self Care", page_icon=":heart:")
def mermaid(code: str) -> None:
components.html(
f"""
<pre class="mermaid">
{code}
</pre>
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
mermaid.initialize({{ startOnLoad: true }});
</script>
"""
)
st.title("8 Dimensions of Self Care")
mermaid_chart = '''
graph TD
A[๐ŸŒฑ Emotional, How we feel] --> B[๐Ÿ”ฎ Self Care]
C[๐Ÿ™ Spiritual, Our beliefs] --> B
D[๐Ÿ’ฐ Financial, How we manage money] --> B
E[๐Ÿ’ก Cognitive, How we think] --> B
F[๐ŸŽฏ Aptitudinal, Our abilities] --> B
G[๐Ÿค Relational, Our connections] --> B
H[๐ŸŒ Environmental, Our surroundings] --> B
I[๐Ÿƒโ€โ™‚๏ธ Physical, Our bodies] --> B
'''
mermaid(mermaid_chart)
#mermaid(mermaid_chart, width="100%")