-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (24 loc) · 1.14 KB
/
index.html
File metadata and controls
26 lines (24 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather Forecast App</title>
<link href="dist/styles.css" rel="stylesheet">
</head>
<body class="bg-gray-100">
<h1 class=" text-3xl md:text-5xl font-bold text-white p-6 bg-blue-400 flex items-center justify-center">Weather Forecast</h1>
<div class="container mx-auto p-4">
<div class="flex flex-wrap mb-4">
<input id="city-input" class="border p-2 w-full md:w-1/2" type="text" placeholder="Enter city name">
<button id="search-btn" class="bg-blue-500 text-white p-2 mt-2 md:mt-0 md:ml-2">Search</button>
<button id="current-location-btn" class="bg-green-500 text-white p-2 mt-2 md:mt-0 md:ml-2">Current Location</button>
</div>
<div id="weather-data" class="hidden flex flex-row p-8 bg-white rounded shadow-md justify-between items-center">
</div>
<div id="forecast-data" class="hidden flex flex-col md:flex-row items-center justify-center md:justify-between mt-4 p-4 bg-white rounded shadow-md ">
</div>
</div>
<script src="app.js"></script>
</body>
</html>