-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (93 loc) · 2.72 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- displays site properly based on user's device -->
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<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&display=swap"
rel="stylesheet"
/>
<title>Frontend Mentor | Tip calculator app</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<h1 id="heading">
SPLI <br />
TTER
</h1>
<div id="parent">
<div id="input">
<div class="amount">
<p>Bill</p>
<input
type="number"
name="amount-input"
class="input amount-input input-1"
placeholder=""
/>
</div>
<div class="tip">
<p>Select Tip %</p>
<div class="tip-grid">
<div class="tip-option pre">5%</div>
<div class="tip-option pre">10%</div>
<div class="tip-option pre">15%</div>
<div class="tip-option pre">25%</div>
<div class="tip-option pre">50%</div>
<input
type="number"
name="custom-tip"
id="custom-tip"
class="input tip-option"
placeholder="Custom"
/>
</div>
</div>
<div class="number">
<div class="hidden-row">
<p>Number of People</p>
<p class="warning">Can't be zero</p>
</div>
<input
type="number"
class="input number-input input-1"
placeholder=""
/>
</div>
</div>
<div id="output">
<div class="display">
<div class="display-row">
<p>
Tip Amount <br />
<span class="display-row-subtitle">/ person</span>
</p>
<h1 class="tip-per-person">$0.00</h1>
</div>
<div class="display-row">
<p>
Total <br />
<span class="display-row-subtitle">/ person</span>
</p>
<h1 class="total-per-person">$0.00</h1>
</div>
</div>
<button class="reset">RESET</button>
</div>
</div>
<footer>
<p>Built by <a href="https://github.com/praneetk77">Praneet</a></p>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="index.js"></script>
</body>
</html>