@@ -128,13 +128,9 @@ <h1 class="login-title">Farm Management Login</h1>
128128 </ form >
129129 </ div >
130130
131- < div class ="container " id ="notificationsContainer " style ="display: none; ">
132- < h1 > Notifications</ h1 >
133- < div class ="alert-divider "> </ div >
134- < h2 class ="section-title "> Alerts</ h2 >
135- < ul class ="alert-list ">
136- <!-- Alert items will be populated here -->
137- </ ul >
131+ < div class ="container " id ="Expert recommendations " style ="display: none; ">
132+ < h1 > Welcome to the Smart Farm Monitoring System</ h1 >
133+ < p > Monitor your farm conditions in real-time.</ p >
138134 </ div >
139135
140136 < script >
@@ -147,47 +143,7 @@ <h2 class="section-title">Alerts</h2>
147143
148144 if ( email && password ) {
149145 document . getElementById ( 'loginContainer' ) . style . display = 'none' ;
150- document . getElementById ( 'notificationsContainer' ) . style . display = 'block' ;
151- initializeNotifications ( ) ;
152- }
153- } ) ;
154-
155- function initializeNotifications ( ) {
156- const alerts = [
157- {
158- category : "Pest & Disease Outbreaks" ,
159- subtitle : "Diseases" ,
160- url : "pest-disease.html"
161- } ,
162- {
163- category : "Weather Alerts" ,
164- subtitle : "Extreme weather warning" ,
165- url : "weather-alerts.html"
166- } ,
167- {
168- category : "Equipment Maintenance" ,
169- subtitle : "Tractor service due" ,
170- url : "equipment.html"
171- }
172- ] ;
173-
174- const alertList = document . querySelector ( '.alert-list' ) ;
175-
176- // Create alert items with navigation
177- alerts . forEach ( alert => {
178- const li = document . createElement ( 'li' ) ;
179- li . className = 'alert-item' ;
180- li . innerHTML = `
181- <div class="alert-category">${ alert . category } </div>
182- <div class="alert-subtitle">${ alert . subtitle } </div>
183- ` ;
184-
185- li . addEventListener ( 'click' , ( ) => {
186- window . location . href = alert . url ;
187- } ) ;
188-
189- alertList . appendChild ( li ) ;
190- } ) ;
146+
191147
192148 // Add Dashboard navigation button
193149 const navButton = document . createElement ( 'button' ) ;
@@ -213,7 +169,6 @@ <h2 class="section-title">Alerts</h2>
213169 document . body . appendChild ( navButton ) ;
214170 }
215171
216- // ... (existing style injection remains unchanged) ...
217172 </ script >
218173</ body >
219174</ html >
0 commit comments