-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
127 lines (102 loc) · 5.45 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!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/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:wght@400;700&display=swap" rel="stylesheet">
<title>SnowFox and Frontend Mentor | Tip calculator app</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="./style/style.css" type="text/css">
</head>
<body class="">
<main class="container-sm main h-100">
<section id="sectionContainer" class="align-bottom">
<h1>Spli<br />tter</h1>
<form class="row row-cols-lg-2 p-5 p-lg-5">
<div class="maincolDiv col-lg-6 p-lg-5 ">
<div class="billContainer row row-cols-2m-0 p-1">
<label class="labels m-0 p-1 mb-3 col-12" for="bill">Bill</label>
<div class="inputAndDollarSignContainer m-0 p-0">
<input class="p-2 m-0 col-12 " type="number" id="bill" name="bill" placeholder="0" min="0" step="0.1"
autofocus>
<img class="icons dollarIcon" src="./images/icon-dollar.svg" alt="">
</div>
</div>
<p class="labels mb-3 mt-5">Select Tip %</p>
<div class="tipButtons">
<div class="tipSecondContainer row row-cols-2 row-cols-lg-3 g-4 g-lg-3">
<div class="col">
<input class="tipInputPercentage" name="tips" type="radio" id="five" value="5" checked>
<label class="labels p-2 tips container-fluid" for="five">5%
</label>
</div>
<div class="col">
<input class="tipInputPercentage" name="tips" type="radio" id="ten" value="10">
<label class="labels p-2 tips container-fluid" for="ten">10%
</label>
</div>
<div class="col">
<input class="tipInputPercentage" name="tips" type="radio" id="fifteen" value="15">
<label class="labels p-2 tips container-fluid" for="fifteen">15%
</label>
</div>
<div class="col">
<input class="tipInputPercentage" name="tips" type="radio" id="twentyfive" value="25">
<label class="labels p-2 tips container-fluid" for="twentyfive">25%
</label>
</div>
<div class="col">
<input class="tipInputPercentage" name="tips" type="radio" id="fifty" value="50">
<label class="labels p-2 tips container-fluid" for="fifty">50%
</label>
</div>
<div class="col">
<input class="tipInputPercentage customInputTip labels p-2 tips container-fluid"
class="customInputTip p-2 labels tips container-fluid" name="tips" type="number" id="customTip"
placeholder="Custom">
</div>
</div>
</div>
<div class="peopleIconAndNumberOfPeopleContainer m-0 p-0">
<label for="numOfPeople" class="labels mb-3 mt-5">Number of People</label>
<input class="p-2 col-12" type="number" id="numOfPeople" placeholder="1" min="1">
<img class="icons dollarIcon" src="./images/icon-person.svg" alt="">
</div>
</div>
<div class="results p-4 row row-cols-1 justify-content-center m-0 col-lg-6 mt-5 mt-lg-0 p-lg-5">
<div class="indResutContainer p-2 mb-5 justify-content-between align-items-center col-12 row row-cols-2 mt-4">
<label class="labels resultLabels col-sm-7 col-md-4 " aria-disabled="true" for="totalTip">
Tip Amount<br />
<sub>/ person</sub>
</label>
<input id="totalTip" class="col-sm-4 col-md-8" type="text" value="$0.00" min="0" disabled>
</div>
<div class="indResutContainer p-2 mb-0 justify-content-between align-items-center col-12 row row-cols-2 ">
<label class="labels resultLabels col-sm-7 col-md-3 " aria-disabled="true" for="totalPerPerson">
Total<br />
<sub>/ person</sub>
</label>
<input id="totalPerPerson" class="col-sm-4 col-md-9" type="text" value="$0.00" min="0" disabled>
</div>
<button type="reset" id="reset" class="resetBtn align-self-end btn mt-5 p-2 w-100">Reset</button>
</div>
</form>
</section>
</main>
<footer class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="https://www.frontendmentor.io/profile/ISnowFoxI">SnowFox</a>.
</footer>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF"
crossorigin="anonymous"></script>
<script src="./script.js"></script>
</body>
</html>