Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +50 -44
templates/index.html
CHANGED
|
@@ -1,44 +1,50 @@
|
|
| 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 Dashboard</title>
|
| 7 |
-
<link rel="stylesheet" href="/static/css/style.css">
|
| 8 |
-
</head>
|
| 9 |
-
<body>
|
| 10 |
-
<div class="container">
|
| 11 |
-
<header>
|
| 12 |
-
<h1>Weather Dashboard</h1>
|
| 13 |
-
</header>
|
| 14 |
-
<main>
|
| 15 |
-
<div class="content">
|
| 16 |
-
<section class="search-section">
|
| 17 |
-
<input type="text" id="city-input" placeholder="E.g., New York, London, Tokyo">
|
| 18 |
-
<button id="search-button">Search</button>
|
| 19 |
-
<p>or</p>
|
| 20 |
-
<button id="location-button">Use Current Location</button>
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
</
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
<!--
|
| 30 |
-
</div>
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
</
|
| 44 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 Dashboard</title>
|
| 7 |
+
<link rel="stylesheet" href="/static/css/style.css">
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<div class="container">
|
| 11 |
+
<header>
|
| 12 |
+
<h1>Weather Dashboard</h1>
|
| 13 |
+
</header>
|
| 14 |
+
<main>
|
| 15 |
+
<div class="content">
|
| 16 |
+
<section class="search-section">
|
| 17 |
+
<input type="text" id="city-input" placeholder="E.g., New York, London, Tokyo">
|
| 18 |
+
<button id="search-button">Search</button>
|
| 19 |
+
<p>or</p>
|
| 20 |
+
<button id="location-button">Use Current Location</button>
|
| 21 |
+
<div id="city-history">
|
| 22 |
+
<strong>City History:</strong>
|
| 23 |
+
<!-- City history will be displayed here -->
|
| 24 |
+
</div>
|
| 25 |
+
<button id="clear-history-button" style="display: none;" >Clear History</button>
|
| 26 |
+
</section>
|
| 27 |
+
<section class="weather-section">
|
| 28 |
+
<div class="current-weather" id="current-weather">
|
| 29 |
+
<!-- Current weather data will be displayed here -->
|
| 30 |
+
</div>
|
| 31 |
+
<h2>4-Day Forecast</h2>
|
| 32 |
+
<div class="forecast" id="forecast">
|
| 33 |
+
<!-- <h2>4-Day Forecast</h2> -->
|
| 34 |
+
<!-- Forecast data will be displayed here -->
|
| 35 |
+
</div>
|
| 36 |
+
<button id="load-more-btn" onclick="loadMoreForecast()" style="display: none;">Load More</button>
|
| 37 |
+
</section>
|
| 38 |
+
</div>
|
| 39 |
+
<section class="subscribe-section">
|
| 40 |
+
<h2>Subscribe to Daily Weather Updates</h2>
|
| 41 |
+
<form id="subscribe-form">
|
| 42 |
+
<input type="email" id="email-input" placeholder="Enter your email">
|
| 43 |
+
<button type="submit">Subscribe</button>
|
| 44 |
+
</form>
|
| 45 |
+
</section>
|
| 46 |
+
</main>
|
| 47 |
+
</div>
|
| 48 |
+
<script src="/static/js/script.js"></script>
|
| 49 |
+
</body>
|
| 50 |
+
</html>
|