-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharticle2.php
More file actions
328 lines (291 loc) · 13.6 KB
/
article2.php
File metadata and controls
328 lines (291 loc) · 13.6 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
<?php
include 'connect.php';
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>FarmConnect - Blog</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
<!-- Favicon -->
<link href="img/favicon.ico" rel="icon">
<!-- Google Web Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600&family=Inter:wght@700;800&display=swap" rel="stylesheet">
<!-- Icon Font Stylesheet -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css" rel="stylesheet">
<!-- Libraries Stylesheet -->
<link href="lib/animate/animate.min.css" rel="stylesheet">
<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div class="container-xxl bg-white p-0">
<?php
if(!isset($_SESSION['role'])){
?>
<!-- Navbar Start -->
<nav class="navbar navbar-expand-lg bg-white navbar-light shadow sticky-top p-0">
<a href="Index.php" class="navbar-brand d-flex align-items-center text-center py-0 px-4 px-lg-5">
<h1>FarmConnect</h1>
</a>
<button type="button" class="navbar-toggler me-4" data-bs-toggle="collapse" data-bs-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<div class="navbar-nav ms-auto p-4 p-lg-0">
<a href="Index.php" class="nav-item nav-link">Home</a>
<div class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown">Products</a>
<div class="dropdown-menu rounded-0 m-0">
<a href="product-list-vegetable.php" class="dropdown-item">Vegetable</a>
<a href="product-list-fruit.php" class="dropdown-item">Fruit</a>
<a href="product-list-grain.php" class="dropdown-item">Grain</a>
<a href="product-list-legume.php" class="dropdown-item">Legume</a>
<a href="product-list-egg.php" class="dropdown-item">Egg</a>
<a href="product-list-meatOrFish.php" class="dropdown-item">Meat or Fish</a>
<a href="product-list-dairy.php" class="dropdown-item">Dairy</a>
<a href="product-list-other.php" class="dropdown-item">Other</a>
</div>
</div>
<a href="job-list.php" class="nav-item nav-link">Jobs</a>
<a href="Farmers.php" class="nav-item nav-link">Farmers</a>
<a href="Weather.php" class="nav-item nav-link">Weather</a>
<a href="Blog.php" class="nav-item nav-link active">Blog</a>
<a href="About.php" class="nav-item nav-link">About</a>
<a href="Contact.php" class="nav-item nav-link">Contact</a>
<a href="./LoginAs.html" class="nav-item nav-link">Login</a>
</div>
<a href="SignUpRoles.html" class="btn btn-primary rounded-0 py-4 px-lg-5 d-lg-block">SIGN UP<i class="fa fa-arrow-right ms-3"></i></a>
</div>
</nav>
<!-- Navbar End -->
<?php
}
else{
?>
<!-- Navbar Start -->
<nav class="navbar navbar-expand-lg bg-white navbar-light shadow sticky-top p-0">
<a href="Homepage.php" class="navbar-brand d-flex align-items-center text-center py-0 px-4 px-lg-5">
<h1>FarmConnect</h1>
</a>
<button type="button" class="navbar-toggler me-4" data-bs-toggle="collapse" data-bs-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<div class="navbar-nav ms-auto p-4 p-lg-0">
<a href="Homepage.php" class="nav-item nav-link">Home</a>
<div class="nav-item dropdown">
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown">Products</a>
<div class="dropdown-menu rounded-0 m-0">
<a href="product-list-vegetable.php" class="dropdown-item">Vegetable</a>
<a href="product-list-fruit.php" class="dropdown-item">Fruit</a>
<a href="product-list-grain.php" class="dropdown-item">Grain</a>
<a href="product-list-legume.php" class="dropdown-item">Legume</a>
<a href="product-list-egg.php" class="dropdown-item">Egg</a>
<a href="product-list-meatOrFish.php" class="dropdown-item">Meat or Fish</a>
<a href="product-list-dairy.php" class="dropdown-item">Dairy</a>
<a href="product-list-other.php" class="dropdown-item">Other</a>
</div>
</div>
<a href="job-list.php" class="nav-item nav-link">Jobs</a>
<a href="Cart.php" class="nav-item nav-link">Cart</a>
<a href="Farmers.php" class="nav-item nav-link">Farmers</a>
<a href="Weather.php" class="nav-item nav-link">Weather</a>
<a href="Blog.php" class="nav-item nav-link active">Blog</a>
<a href="About.php" class="nav-item nav-link">About</a>
<a href="Contact.php" class="nav-item nav-link">Contact</a>
</div>
<a href="Profile.php" class="btn btn-primary rounded-0 py-4 px-lg-5 d-lg-block">Profile<i class="fa fa-arrow-right ms-3"></i></a>
</div>
</nav>
<!-- Navbar End -->
<?php
}
?>
<!-- Blog Post 2: Improving Soil Health -->
<div class="blog-post">
<img src="img/sustainable1.jpeg" alt="Improving Soil Health">
<h1>Improving Soil Health for Better Yields</h1>
<p>
Soil health is the foundation of successful agriculture. Healthy soil leads to higher yields and reduces dependency on chemical fertilizers. Here are key strategies for enhancing soil health:
</p>
<ol>
<li>
<strong>Organic Matter Addition:</strong> Adding compost, manure, and plant residues enriches the soil with nutrients, improves its structure, and enhances water retention.
</li>
<li>
<strong>Soil Testing and Balanced Fertilization:</strong> Soil testing provides insights into nutrient levels, helping farmers apply fertilizers appropriately.
</li>
<li>
<strong>Use of Biofertilizers and Biopesticides:</strong> These eco-friendly alternatives enhance soil fertility and reduce the need for synthetic chemicals.
</li>
<li>
<strong>Erosion Control Measures:</strong> Techniques like planting cover crops and practicing contour farming prevent topsoil loss and stabilize the soil.
</li>
<li>
<strong>Water Management:</strong> Efficient irrigation methods, such as drip irrigation, optimize water use and prevent waterlogging or salinization.
</li>
<li>
<strong>Promoting Beneficial Microorganisms:</strong> Encouraging soil microbes enhances nutrient cycling and organic matter decomposition.
</li>
<li>
<strong>Carbon Sequestration Practices:</strong> Techniques like applying biochar and maintaining vegetation cover capture atmospheric carbon, improving soil quality.
</li>
<li>
<strong>Avoiding Soil Compaction:</strong> Minimizing heavy machinery use and maintaining ground cover prevents soil compression and preserves its structure.
</li>
</ol>
<p>
By implementing these strategies, farmers can significantly improve soil health, leading to sustainable agriculture and better environmental outcomes.
</p>
</div>
<!-- Footer Start -->
<div class="container-fluid bg-dark text-white-50 footer pt-5 mt-5 wow fadeIn" data-wow-delay="0.1s">
<div class="container py-5">
<div class="row g-5" style="display: flex; align-items: start; justify-content: center;">
<div class="col-lg-3 col-md-6">
<h5 class="text-white mb-4">Quick Links</h5>
<a class="btn btn-link text-white-50" href="About.php">About Us</a>
<a class="btn btn-link text-white-50" href="Contact.php">Contact Us</a>
</div>
<div class="col-lg-3 col-md-6">
<h5 class="text-white mb-4">Contact</h5>
<p class="mb-2"><i class="fa fa-map-marker-alt me-3"></i>Babcock, Ilishan-Remo, Ogun State, Nigeria</p>
<p class="mb-2"><i class="fa fa-phone-alt me-3"></i>(+234-9073372467)</p>
<p class="mb-2"><i class="fa fa-envelope me-3"></i>yjesse@gmail.com</p>
</div>
</div>
</div>
<div class="container">
<div class="copyright">
<div class="row">
<div class="col-md-6 text-center text-md-start mb-3 mb-md-0">
© <a href="#">FarmConnect</a>, All Right Reserved.
</div>
</div>
</div>
</div>
</div>
<!-- Footer End -->
<!-- Back to Top -->
<a href="#" class="btn btn-lg btn-primary btn-lg-square back-to-top"><i class="bi bi-arrow-up"></i></a>
</div>
<!-- JavaScript Libraries -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="lib/wow/wow.min.js"></script>
<script src="lib/easing/easing.min.js"></script>
<script src="lib/waypoints/waypoints.min.js"></script>
<script src="lib/owlcarousel/owl.carousel.min.js"></script>
<!-- Template Javascript -->
<script src="js/main.js"></script>
</body>
</html>
<style>
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background: #f4f4f4;
overflow-x: hidden;
}
/* Parallax Background Section */
.parallax {
background-image: url('farmland-background.jpg');
height: 230px;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.blog-section {
max-width: 1100px;
margin: -200px auto 50px; /* Overlap with parallax */
padding: 20px;
}
.blog-post {
padding: 2rem 4rem;
}
.blog-title {
text-align: center;
font-size: 40px;
font-weight: bold;
color: #2d3436;
margin-bottom: 50px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.blog-card {
display: flex;
align-items: center;
background: linear-gradient(135deg, #ffffff, #e8f5e9);
margin-bottom: 30px;
border-radius: 12px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
overflow: hidden;
transform: scale(1);
transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.blog-card:hover {
transform: scale(1.05);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.blog-image {
flex: 1;
max-width: 40%;
height: 250px;
object-fit: cover;
filter: brightness(90%);
transition: filter 0.4s;
}
.blog-card:hover .blog-image {
filter: brightness(100%);
}
.blog-content {
flex: 2;
padding: 20px 30px;
animation: fadeIn 1s ease-in-out;
}
.blog-content h3 {
font-size: 26px;
color: #27ae60;
margin-bottom: 10px;
}
.blog-content p {
font-size: 16px;
color: #636e72;
line-height: 1.6;
margin-bottom: 20px;
}
.read-more {
text-decoration: none;
color: white;
background-color: #27ae60;
padding: 10px 20px;
border-radius: 5px;
font-size: 16px;
transition: background-color 0.4s, transform 0.4s;
}
.read-more:hover {
background-color: #218c53;
transform: scale(1.1);
color: white !important;
}
/* Fade-in Animation */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
</style>