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%")