-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (68 loc) · 2.53 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
<!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="stylesheet" href="style.css">
<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;500;700&display=swap" rel="stylesheet">
<title>Frontend Mentor | Tip calculator app</title>
<!-- Feel free to remove these styles or customize in your own stylesheet 👍 -->
<style>
.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }
</style>
</head>
<body>
<div class="container">
<header>
<h1>SPLI<br>TTER</h1>
</header>
<main>
<div class="container-buttonStuff">
<p class="heading">Bill</p>
<input id= 'bill-amount' type="text">
<p>select tip %</p>
<div class="container-buttons">
<div class="btn btn-5">5%</div>
<div class="btn btn-10">10%</div>
<div class="btn btn-15">15%</div>
<div class="btn btn-20 btn-highlight">20%</div>
<div class="btn btn-25">25%</div>
<input type="text" placeholder="custom" class="btn-custom">
</div> <!--buttons-->
<p class="heading">Number of people</p>
<input id="people-amount" type="text" value=1>
</div>
<div class="container-result">
<div class="per-person-tip-result result-grp">
<div class="per-person-tip-text">
<p>Tip Amount</p>
<p>/ person</p>
</div>
<div>
<p id="per-person-tip-total"></p>
</div>
</div> <!--per-person-result-->
<div class="per-person-total-result result-grp">
<div class="per-person-total-text">
<p>Total</p>
<p>/ person</p>
</div>
<div>
<p id="per-person-total-amount"></p>
</div>
</div> <!--per-person-total-result-->
<div class="btn btn-reset">Reset</div>
</div> <!--container-result-->
</main>
</div>
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://github.com/gpend">Greg Pendleton</a>.
</div>
<script src="script.js"></script>
</body>
</html>