-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
92 lines (82 loc) · 3.37 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
<!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/madebylanray-logo.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;500;700">
<link rel="stylesheet" href="styles.css">
<title>Tip Calculator App</title>
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<style>
.attribution { font-size: 14px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }
</style>
</head>
<body>
<div class="body-container">
<div class="app-title-container">
<!-- <p>BILL</p> -->
<h1>SPLI</h1>
<h1>TTER</h1>
</div>
<div class="main-container">
<div class="top-container">
<p class="title">Bill</p>
<div class="container bill-container">
<div class="bill-input-container">
<img class ="input-icon" src="images/icon-dollar.svg" alt="Dollar sign">
<input class="bill-input" type="number" placeholder="0"/>
</div>
</div>
<p class="title">Select Tip %</p>
<div class="container tip-button-container">
<button onclick="submit(this, 5)" class="fivePercent left button tip-button">5%</button>
<button onclick="submit(this,10)" class="tenPercent right button tip-button">10%</button>
<button onclick="submit(this, 15)" class="fifteenPercent left button tip-button">15%</button>
<button onclick="submit(this, 25)" class="twentyFivePercent button tip-button">25%</button>
<button onclick="submit(this, 50)" class="fiftyPercent left right button tip-button">50%</button>
<input onclick="submit(this, this.value)" class="customPercent tip-button custom-input" type="number" placeholder="Custom"/>
</div>
<div class="container num-of-people-container">
<div class="num-of-people-title">
<p class="title">Number of people</p>
<p class="cant-be-zero">Can't be zero</p>
</div>
<div class="num-of-people-input-container">
<img class="input-icon" src="images/icon-person.svg" alt="Dollar sign">
<input class="num-of-people" type="number" placeholder="0"/>
</div>
</div>
</div>
<div class="form-results-container">
<div class="info">
<div class="tip-amount">
<div class="results-title">
<p>Tip Amount</p>
<p>/ person</p>
</div>
<div>
<p class="results tip-amount-result-display">$0.00</p>
</div>
</div>
<div class="total">
<div class="results-title">
<p>Total</p>
<p>/ person</p>
</div>
<div>
<p class="results total-result-display">$0.00</p>
</div>
</div>
</div>
<button class="reset-button">RESET</button>
</div>
</div>
<div class="attribution">
Coded by <a href="https://www.github.com/Lanrayy" target="_blank"> Lanre Sodeinde | madebylanray </a>
</div>
</div>
<script src="scripts/script.js"></script>
</body>
</html>