-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.html
More file actions
146 lines (131 loc) · 6.94 KB
/
Copy pathhome.html
File metadata and controls
146 lines (131 loc) · 6.94 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Home Page - AgriHawk</title>
<link rel="icon" href="Images/Logo.PNG" type="image/png">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
'c1': '#ADC178',
'c2': '#9BB068',
'c3': "#6c584c",
'c3-transparent': "rgba(108, 88, 76, 0.75)",
'c4': "#DACABD",
'c5': "#876F60"
}
}
}
}
</script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Inter', sans-serif;
}
main {
background-image: URL("Images/Farm1.png");
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 50vh;
flex-grow: 1;
}
.text-shadow-md {
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
</style>
</head>
<body class="flex flex-col min-h-screen">
<header class="bg-c3 text-white p-4 flex items-center justify-between relative z-10">
<div class="flex items-center space-x-2">
<button id="menuToggle" class="text-white text-2xl focus:outline-none">
☰
</button>
<div class="flex items-center space-x-4">
<a href="index.html" class="flex items-center space-x-2">
<img src="{{ url_for('static', filename='Images/Logo.PNG') }}" alt="AgriHawk Logo" class="h-8 w-auto">
<span class="text-white text-2xl font-bold">AgriHawk</span>
</a>
</div>
</div>
</header>
<nav id="sideMenu" class="fixed c3-0 left-0 h-full w-64 bg-c5 p-4 z-20
transform -translate-x-full transition-transform duration-300 ease-in-out">
<div class="flex justify-end mb-4">
<button id="closeMenu" class="text-white text-2xl focus:outline-none">×</button>
</div>
<ul class="space-y-4">
<li><a href="{{ url_for('home') }}" class="block text-white hover:text-c4">Home Page</a></li>
<li><a href="{{ url_for('livestream') }}" class="block text-white hover:text-c4">Livestream</a></li>
<li><a href="{{ url_for('history') }}" class="block text-white hover:text-c4">History</a></li>
<li><a href="{{ url_for('farms') }}" class="block text-white hover:text-c4">List of Farms</a></li>
<li><a href="{{ url_for('about') }}" class="block text-white hover:text-c4">About Us</a></li>
</ul>
</nav>
<main class="flex-grow flex flex-col items-center justify-center bg-c4 p-4">
<section class="text-c3 py-12 px-6 w-full mt-8 rounded-lg">
<div class="max-w-4xl mx-auto text-center">
<h2 class="text-5xl text-c2 font-extrabold mb-8 text-shadow-md">How AgriHawk Works</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="flex flex-col items-center p-6 bg-white rounded-lg shadow-md transition-transform duration-300 hover:scale-105">
<svg class="w-16 h-16 text-c1 mb-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 19l9 2-9-18-9 18 9-2zm0 0v-8"></path>
</svg>
<h3 class="text-xl font-semibold mb-2">Autonomous Flight</h3>
<p class="text-sm leading-relaxed">Drones navigate cornfields autonomously, covering vast areas efficiently and precisely.</p>
</div>
<div class="flex flex-col items-center p-6 bg-white rounded-lg shadow-md transition-transform duration-300 hover:scale-105">
<svg class="w-16 h-16 text-c1 mb-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 17L9 20l-1 1h8l-1-1-1.25-3M15 10V5l-3-3-3 3v5M4.5 7.5L3 6m15 0l-1.5 1.5M10.5 10.5L9 12m6-1.5l1.5 1.5M12 12a2 2 0 110-4 2 2 0 010 4z"></path>
</svg>
<h3 class="text-xl font-semibold mb-2">AI-Powered Detection</h3>
<p class="text-sm leading-relaxed">YOLOv11-SAHI algorithms analyze images for accurate pest identification and counting.</p>
</div>
<div class="flex flex-col items-center p-6 bg-white rounded-lg shadow-md transition-transform duration-300 hover:scale-105">
<svg class="w-16 h-16 text-c1 mb-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"></path>
</svg>
<h3 class="text-xl font-semibold mb-2">Crop Health Insights</h3>
<p class="text-sm leading-relaxed">Monitors plant health using VARI index, providing insights for timely interventions.</p>
</div>
</div>
</div>
</section>
<section class="bg-c3-transparent text-c4 py-12 px-6 w-full mt-8">
<div class="max-w-4xl mx-auto">
<h2 class="text-2xl font-bold mb-6">About AgriHawk</h2>
<p class="text-lg leading-relaxed mb-4">This study proposes an automated drone system using computer vision and the YOLOv11 algorithm for crop monitoring of sweet corn (Zea mays) fields. The system assesses pest population density, focusing on common corn pests, and monitors plant health via VARI. YOLOv11 enables effective object detection for calculation of pest densities. The research examines the system's design, specifications, and performance in a practical agricultural setting, aiming to enhance pest management and support sustainable integrated pest management.</p>
</div>
</section>
</main>
<script>
const menuToggle = document.getElementById('menuToggle');
const sideMenu = document.getElementById('sideMenu');
const closeMenu = document.getElementById('closeMenu');
function openMenu() {
sideMenu.classList.remove('-translate-x-full');
sideMenu.classList.add('translate-x-0');
}
function closeMenuFunc() {
sideMenu.classList.remove('translate-x-0');
sideMenu.classList.add('-translate-x-full');
}
menuToggle.addEventListener('click', openMenu);
closeMenu.addEventListener('click', closeMenuFunc);
document.addEventListener('click', function(event) {
if (!sideMenu.contains(event.target) && !menuToggle.contains(event.target)) {
closeMenuFunc();
}
});
</script>
</body>
</html>