-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
87 lines (87 loc) · 2.81 KB
/
Copy pathindex.html
File metadata and controls
87 lines (87 loc) · 2.81 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" sizes="32x32" href="./images/logo.svg" />
<link rel="stylesheet" href="style.css" />
<title>SPLITTER - Tip Calculator</title>
</head>
<body>
<main>
<div class="splitter-logo">
<img src="./images/logo.svg" alt="splitter logo" />
</div>
<div class="container">
<div class="tip-detail">
<div class="bill-amount">
<label for="bill">Bill</label>
<div class="bill-input">
<input id="bill" type="number" min="0" placeholder="0" />
</div>
</div>
<div class="tip-percent-section">
<label for="tip-percent">Select Tip %</label>
<div class="tip-grid">
<button class="btn" value="5">5%</button>
<button class="btn" value="10">10%</button>
<button class="btn" value="15">15%</button>
<button class="btn" value="25">25%</button>
<button class="btn" value="50">50%</button>
<input id="tip-percent" type="number" placeholder="Custom" />
</div>
</div>
<div class="people-count">
<label for="people">Number of People</label>
<small id="error"></small>
<div class="people-count-section">
<input
id="people"
type="number"
min="0"
step="1"
placeholder="0"
/>
</div>
</div>
</div>
<div class="tip-section">
<div class="tip-amount-section">
<div>
<strong>Tip Amount</strong>
<p><small>/ person</small></p>
</div>
<div class="tip-amount-display">
<h1 id="tip-amount">₹0.00</h1>
</div>
</div>
<div class="total-tip-section">
<div>
<strong>Total</strong>
<p><small>/ person</small></p>
</div>
<div class="tip-total-display">
<h1 id="total-tip-amount">₹0.00</h1>
</div>
</div>
<div class="reset-section">
<button class="reset">RESET</button>
</div>
</div>
</div>
<footer>
<div class="attribution">
Challenge by
<a href="https://www.frontendmentor.io/home" target="_blank"
>Frontend Mentor.</a
>
Made with 🧡 by
<a href="https://github.com/kaizokuopamya" target="_blank"
>kaizokuopamya</a
>
</div>
</footer>
</main>
<script src="./index.js"></script>
</body>
</html>