Spaces:
Runtime error
Runtime error
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%") | |