Spaces:
Runtime error
Runtime error
File size: 975 Bytes
0a30697 a508916 0a30697 a508916 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
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%")
|