pranit144 commited on
Commit
33cd36a
·
verified ·
1 Parent(s): 26e03b1

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +89 -1
templates/index.html CHANGED
@@ -6,7 +6,95 @@
6
  <title>Agricultural Pests & Diseases in India</title>
7
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
8
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
9
- <link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  </head>
11
  <body>
12
  <div class="container">
 
6
  <title>Agricultural Pests & Diseases in India</title>
7
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
8
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
9
+ <style>
10
+ :root {
11
+ --primary-color: #38b000;
12
+ --secondary-color: #007bff;
13
+ --accent-color: #fb8500;
14
+ --light-bg: #f8f9fa;
15
+ --dark-text: #212529;
16
+ --pest-color: #dc3545;
17
+ --disease-color: #6f42c1;
18
+ }
19
+
20
+ body {
21
+ background-color: var(--light-bg);
22
+ padding: 20px;
23
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
24
+ }
25
+
26
+ .page-header {
27
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
28
+ color: white;
29
+ padding: 2rem 0;
30
+ border-radius: 10px;
31
+ margin-bottom: 2rem;
32
+ box-shadow: 0 4px 12px rgba(0,0,0,0.1);
33
+ }
34
+
35
+ .language-selector select {
36
+ background-color: rgba(255, 255, 255, 0.2);
37
+ color: white;
38
+ border: 1px solid rgba(255, 255, 255, 0.3);
39
+ }
40
+
41
+ .language-selector select option {
42
+ background-color: white;
43
+ color: var(--dark-text);
44
+ }
45
+
46
+ .filter-buttons { margin-bottom: 20px; }
47
+
48
+ .filter-btn {
49
+ margin-right: 10px;
50
+ border-radius: 20px;
51
+ font-weight: 500;
52
+ padding: 8px 16px;
53
+ transition: all 0.3s ease;
54
+ }
55
+
56
+ .filter-btn:hover { transform: translateY(-2px); }
57
+ .filter-btn.active { box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
58
+
59
+ .card { transition: all 0.3s ease; height: 100%; cursor: pointer; border-radius: 10px; border: none; box-shadow: 0 4px 8px rgba(0,0,0,0.05); overflow: hidden; }
60
+ .card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.15); }
61
+
62
+ .card-img-top { height: 200px; object-fit: cover; transition: all 0.5s ease; }
63
+ .card:hover .card-img-top { transform: scale(1.05); }
64
+
65
+ .card-body { padding: 1.5rem; }
66
+ .card-title { font-weight: 600; margin-bottom: 10px; }
67
+
68
+ .modal-body { max-height: 70vh; overflow-y: auto; }
69
+
70
+ .badge.pest { background-color: var(--pest-color); padding: 0.5em 0.8em; font-size: 0.8rem; }
71
+ .badge.disease { background-color: var(--disease-color); padding: 0.5em 0.8em; font-size: 0.8rem; }
72
+
73
+ .modal-content { border-radius: 15px; border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
74
+ .modal-header { border-bottom: 1px solid rgba(0,0,0,0.1); background-color: var(--light-bg); }
75
+ .modal-title { font-weight: 600; }
76
+
77
+ .section-title {
78
+ margin-top: 1.5rem;
79
+ margin-bottom: 0.75rem;
80
+ font-weight: 600;
81
+ color: var(--dark-text);
82
+ border-bottom: 2px solid var(--primary-color);
83
+ padding-bottom: 0.5rem;
84
+ display: inline-block;
85
+ }
86
+
87
+ #backToTop { position: fixed; bottom: 20px; right: 20px; display: none; background-color: var(--primary-color); color: white; border: none; border-radius: 50%; width: 50px; height: 50px; text-align: center; font-size: 20px; line-height: 50px; cursor: pointer; z-index: 99; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
88
+
89
+ .crop-badge { background-color: #17a2b8; color: white; font-size: 0.8rem; font-weight: normal; margin-right: 4px; }
90
+
91
+ .no-results { text-align: center; padding: 40px; font-size: 1.2rem; color: #6c757d; }
92
+
93
+ .spinner {
94
+ width: 40px; height: 40px; margin: 20px auto; border: 4px solid rgba(0,0,0,0.1); border-left-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite;
95
+ }
96
+ @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
97
+ </style>
98
  </head>
99
  <body>
100
  <div class="container">