Spaces:
Sleeping
Sleeping
Create templates/index.html
Browse files- templates/index.html +37 -0
templates/index.html
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>Weather Forecast Dashboard</title>
|
7 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
8 |
+
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
|
9 |
+
</head>
|
10 |
+
<body>
|
11 |
+
<div class="container">
|
12 |
+
<header>
|
13 |
+
<h1>Weather Forecast Dashboard</h1>
|
14 |
+
<p>Get real-time updates and predictions for your location.</p>
|
15 |
+
</header>
|
16 |
+
|
17 |
+
<section class="input-section">
|
18 |
+
<input type="text" id="city-input" placeholder="Enter city (e.g., New York)" value="New York">
|
19 |
+
<select id="forecast-days">
|
20 |
+
<option value="5">5 Days</option>
|
21 |
+
<option value="10">10 Days</option>
|
22 |
+
</select>
|
23 |
+
<button onclick="fetchWeather()">Get Weather</button>
|
24 |
+
</section>
|
25 |
+
|
26 |
+
<section id="weather-summary" class="weather-summary"></section>
|
27 |
+
|
28 |
+
<section class="charts">
|
29 |
+
<div id="temperature-graph" class="chart"></div>
|
30 |
+
<div id="precipitation-graph" class="chart"></div>
|
31 |
+
<div id="wind-graph" class="chart"></div>
|
32 |
+
</section>
|
33 |
+
</div>
|
34 |
+
|
35 |
+
<script src="{{ url_for('static', filename='script.js') }}"></script>
|
36 |
+
</body>
|
37 |
+
</html>
|