awacke1 commited on
Commit
34b5998
ยท
1 Parent(s): a508916

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +54 -32
app.py CHANGED
@@ -1,36 +1,58 @@
1
  import streamlit as st
2
 
3
  st.set_page_config(page_title="8 Dimensions of Self Care", page_icon=":heart:")
4
-
5
- def mermaid(code: str) -> None:
6
- components.html(
7
- f"""
8
- <pre class="mermaid">
9
- {code}
10
- </pre>
11
-
12
- <script type="module">
13
- import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
14
- mermaid.initialize({{ startOnLoad: true }});
15
- </script>
16
- """
17
- )
18
-
19
-
20
  st.title("8 Dimensions of Self Care")
21
-
22
- mermaid_chart = '''
23
- graph TD
24
- A[๐ŸŒฑ Emotional, How we feel] --> B[๐Ÿ”ฎ Self Care]
25
- C[๐Ÿ™ Spiritual, Our beliefs] --> B
26
- D[๐Ÿ’ฐ Financial, How we manage money] --> B
27
- E[๐Ÿ’ก Cognitive, How we think] --> B
28
- F[๐ŸŽฏ Aptitudinal, Our abilities] --> B
29
- G[๐Ÿค Relational, Our connections] --> B
30
- H[๐ŸŒ Environmental, Our surroundings] --> B
31
- I[๐Ÿƒโ€โ™‚๏ธ Physical, Our bodies] --> B
32
- '''
33
-
34
-
35
- mermaid(mermaid_chart)
36
- #mermaid(mermaid_chart, width="100%")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
  st.set_page_config(page_title="8 Dimensions of Self Care", page_icon=":heart:")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  st.title("8 Dimensions of Self Care")
5
+ st.markdown("""
6
+
7
+ # Positive Reframing Strategies for Self Care
8
+
9
+ ## ๐ŸŒฑ Emotional - How we feel
10
+ 1. Practice gratitude
11
+ 2. Focus on the present moment
12
+ 3. Use positive affirmations
13
+ 4. Surround yourself with positivity
14
+
15
+ ## ๐Ÿ™ Spiritual - Our beliefs
16
+ 1. Engage in regular meditation or prayer
17
+ 2. Connect with nature
18
+ 3. Practice forgiveness and self-compassion
19
+ 4. Attend spiritual gatherings or join a spiritual community
20
+
21
+ ## ๐Ÿ’ฐ Financial - How we manage money
22
+ 1. Create a realistic budget
23
+ 2. Set achievable financial goals
24
+ 3. Prioritize paying off debts
25
+ 4. Invest in your future
26
+
27
+ ## ๐Ÿ’ก Cognitive - How we think
28
+ 1. Challenge negative thoughts
29
+ 2. Practice mindfulness
30
+ 3. Set achievable personal goals
31
+ 4. Engage in lifelong learning
32
+
33
+ ## ๐ŸŽฏ Aptitudinal - Our abilities
34
+ 1. Identify and develop your strengths
35
+ 2. Set realistic expectations
36
+ 3. Embrace failure as a learning opportunity
37
+ 4. Seek out opportunities for personal growth
38
+
39
+ ## ๐Ÿค Relational - Our connections
40
+ 1. Nurture positive relationships
41
+ 2. Communicate openly and honestly
42
+ 3. Practice empathy and active listening
43
+ 4. Set healthy boundaries
44
+
45
+ ## ๐ŸŒ Environmental - Our surroundings
46
+ 1. Create a calming and organized living space
47
+ 2. Spend time in nature
48
+ 3. Reduce exposure to environmental stressors
49
+ 4. Practice sustainable living
50
+
51
+ ## ๐Ÿƒโ€โ™‚๏ธ Physical - Our bodies
52
+ 1. Engage in regular physical activity
53
+ 2. Prioritize sleep and relaxation
54
+ 3. Maintain a balanced and nutritious diet
55
+ 4. Limit alcohol and drug consumption
56
+
57
+
58
+ """)