-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsustainability.py
45 lines (43 loc) · 1.53 KB
/
sustainability.py
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
38
39
40
41
42
43
44
45
import streamlit as st
def show_sustainability():
st.title("🌱 Sustainability Tips for Farming")
st.markdown("""
<style>
.main-title {
color: #2E8B57;
font-size: 2.5em;
text-align: center;
margin-bottom: 20px;
}
.sustainability-tips {
background-color: #000000;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.tip {
font-size: 1.2em;
margin: 10px 0;
color: #F5F5F5;
}
.tip-title {
color: #4682B4;
font-weight: bold;
}
</style>
<div class="main-title">Sustainable Farming Practices</div>
<div class="sustainability-tips">
<div class="tip">
<span class="tip-title">🌾 Crop Rotation:</span> Rotating crops helps maintain soil health and reduces the need for chemical fertilizers.
</div>
<div class="tip">
<span class="tip-title">💧 Water Management:</span> Use drip irrigation and rainwater harvesting to conserve water.
</div>
<div class="tip">
<span class="tip-title">🦠 Integrated Pest Management:</span> Combining biological, cultural, and mechanical control methods to manage pests sustainably.
</div>
<div class="tip">
<span class="tip-title">🌿 Organic Farming:</span> Avoid synthetic chemicals and fertilizers, opting for organic alternatives.
</div>
</div>
""", unsafe_allow_html=True)