๐Ÿ“ฆ microsoft / Web-Dev-For-Beginners

๐Ÿ“„ index.html ยท 45 lines
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
		<title>My Carbon Trigger</title>
		<link rel="stylesheet" href="./styles.css" />
	</head>

	<body class="container">
		<img alt="plants and people" src="images/plants-people.png" />
		<div>
			<h1>Welcome to Your Personal Carbon Trigger!</h1>
		</div>
		<form class="form-data" autocomplete="on">
			<div>
				<h2>New? Add your Information</h2>
			</div>
			<div>
				<label for="region">Region Name</label>
				<input type="text" id="region" required class="region-name" />
			</div>
			<div>
				<label for="api">Your API Key from tmrow</label>
				<input type="text" id="api" required class="api-key" />
			</div>
			<button class="search-btn">Submit</button>
		</form>
		<div class="result">
			<div class="loading">loading...</div>
			<div class="errors"></div>
			<div class="data"></div>
			<div class="result-container">
				<p><strong>Region: </strong><span class="my-region"></span></p>
				<p><strong>Carbon Usage: </strong><span class="carbon-usage"></span></p>
				<p><strong>Fossil Fuel Percentage: </strong><span class="fossil-fuel"></span></p>
			</div>
			<button class="clear-btn">Change region</button>
		</div>

		<script src="main.js"></script>
	</body>
</html>