Rajkhanke007 commited on
Commit
0863e4f
·
verified ·
1 Parent(s): 9a3cd95

Upload index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +119 -0
templates/index.html ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Bird Movement and Migration Analysis</title>
7
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css">
8
+ <style>
9
+ /* General Styles */
10
+ body {
11
+ background: linear-gradient(135deg, #d9fdd3, #a3e4b3);
12
+ font-family: 'Arial', sans-serif;
13
+ color: #2e7d32;
14
+ margin: 0;
15
+ padding: 0;
16
+ }
17
+
18
+ .container {
19
+ margin: 50px auto;
20
+ padding: 40px;
21
+ background: white;
22
+ border-radius: 15px;
23
+ box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
24
+ max-width: 1200px; /* Increased width */
25
+ border: 3px solid #4caf50;
26
+ margin-bottom: 70px; /* Added extra bottom margin */
27
+ }
28
+
29
+ h1 {
30
+ font-size: 2.8rem;
31
+ font-weight: bold;
32
+ color: #2e7d32;
33
+ margin-bottom: 10px;
34
+ }
35
+
36
+ p {
37
+ font-size: 1.2rem;
38
+ color: #4caf50;
39
+ }
40
+
41
+ /* Form Styles */
42
+ form select {
43
+ width: 50%;
44
+ margin: 0 auto;
45
+ font-size: 1rem;
46
+ padding: 10px;
47
+ border: 2px solid #4caf50;
48
+ border-radius: 5px;
49
+ color: #2e7d32;
50
+ }
51
+
52
+ form select:focus {
53
+ outline: none;
54
+ border: 2px solid #2e7d32;
55
+ box-shadow: 0 0 8px rgba(46, 125, 50, 0.5);
56
+ }
57
+
58
+ form button {
59
+ background: #2e7d32;
60
+ color: white;
61
+ border: none;
62
+ padding: 12px 20px;
63
+ font-size: 1rem;
64
+ border-radius: 5px;
65
+ transition: all 0.3s ease;
66
+ }
67
+
68
+ form button:hover {
69
+ background: #4caf50;
70
+ box-shadow: 0 3px 8px rgba(76, 175, 80, 0.5);
71
+ }
72
+
73
+ /* Migration Map Display */
74
+ img {
75
+ margin-top: 20px;
76
+ border: 3px solid #2e7d32;
77
+ border-radius: 8px;
78
+ max-width: 150%;
79
+ height: auto;
80
+ }
81
+
82
+ h3 {
83
+ margin-top: 30px;
84
+ color: #2e7d32;
85
+ font-size: 1.8rem;
86
+ }
87
+ </style>
88
+ </head>
89
+ <body>
90
+ <div class="container text-center">
91
+ <h1>Bird Movement and Migration Analysis</h1>
92
+ <p>Select a bird species from the dropdown to view its migration map.</p>
93
+
94
+ <!-- Bird Selection Form -->
95
+ <form method="POST">
96
+ <div class="mb-4">
97
+ <select class="form-select" name="bird" required>
98
+ <option value="" disabled selected>Select a bird</option>
99
+ {% for bird in birds %}
100
+ <option value="{{ bird }}">{{ bird.replace('_', ' ') }}</option>
101
+ {% endfor %}
102
+ </select>
103
+ </div>
104
+ <button type="submit" class="btn">View Migration Map</button>
105
+ </form>
106
+
107
+ <!-- Display GIF if a bird is selected -->
108
+ {% if gif_url %}
109
+ <div>
110
+ <h3>Migration Map for {{ selected_bird.replace('_', ' ') }}</h3>
111
+ <img src="{{ gif_url }}" alt="Migration Map">
112
+ </div>
113
+ {% endif %}
114
+ </div>
115
+
116
+ <!-- Bootstrap JS -->
117
+ <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"></script>
118
+ </body>
119
+ </html>