-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (59 loc) · 2.01 KB
/
index.html
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<link rel="stylesheet" href="./style.css" class="rel">
<title>Tip calculator</title>
</head>
<body>
<div class="header">
</div>
<div class="mainContainer">
<div class="topSection">
<div class="label">
<label for="input">Bill</label>
</div>
<div class="inputContainer">
<input type="number" placeholder="0.0" id="input">
</div>
<div class="label">
<label for="customTip">Select Tip %</label>
</div>
<div class="btnContainer">
<button class="btn">5%</button>
<button class="btn">10%</button>
<button class="btn active">15%</button>
<button class="btn">25%</button>
<button class="btn">50%</button>
<input type="number" placeholder="Custom" id="customTip" />
</div>
<div class="label">
<label for="people">Number of People</label>
<p id="error"></p>
</div>
<div class="peopleWrapper">
<input type="number" placeholder="1" id="people">
</div>
</div>
<div class="bottomSection">
<div class="Amount">
<div class="desc">
<p>Tip Amount <br/> <span>/ person</span></p>
<div class="tipValue">$ 5</div>
</div>
<div class="desc">
<p>Total <br/> <span>/ person</span></p>
<div class="tipValue">$ 200</div>
</div>
</div>
<button class="reset">RESET</button>
</div>
</div>
<script src="./index.js"></script>
</body>
</html>