-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
133 lines (124 loc) · 4.14 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
128
129
130
131
132
133
<!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"
/>
<title>Frontend Mentor | Tip calculator app</title>
<!-- Feel free to remove these styles or customise in your own stylesheet 👍 -->
<link rel="stylesheet" href="styles/style.css" />
</head>
<body>
<header>
<img src="images/logo.svg" alt="Splitter app logo" />
</header>
<main class="calculator">
<div class="value_inputs">
<form class="bill_input" action="#">
<label for="ibill">Bill</label>
<input dir="rtl" type="number" name="bill" id="ibill" min="0" />
</form>
<div class="tip_selector">
<form action="#">
<span class="select_tip">Select Tip %</span>
<div class="tip_blocs">
<label class="percentage" for="fivePerc">
5%
<input type="radio" name="tipPercentage" id="fivePerc" />
</label>
<label class="percentage" for="tenPerc">
10%
<input type="radio" name="tipPercentage" id="tenPerc" />
</label>
<label class="percentage" for="fifteenPerc">
15%
<input type="radio" name="tipPercentage" id="fifteenPerc" />
</label>
<label class="percentage" for="twentyfivePerc">
25%
<input type="radio" name="tipPercentage" id="twentyfivePerc" />
</label>
<label class="percentage" for="fiftyPerc">
50%
<input type="radio" name="tipPercentage" id="fiftyPerc" />
</label>
<div class="custom percentage">
<label for="customPerc">
<span class="choose_custom">Custom</span>
<input type="radio" name="tipPercentage" id="customPerc" />
</label>
<label for="icustom">
<input
dir="rtl"
class="choose_custom_input"
type="number"
id="icustom"
min="0"
max="100"
/>
</label>
</div>
</div>
</form>
</div>
<form class="people_form" action="#">
<label class="numberPeople" for="inumPeople">
<span class="text">
Number of People
<span class="error_msg">Can't be zero</span>
</span>
<input
dir="rtl"
type="number"
name="num_people"
id="inumPeople"
min="0"
/>
</label>
</form>
</div>
<div class="results">
<div class="tip_person">
<span class="tip_amount">Tip Amount</span>
<span class="per_person">/ person</span>
<span class="tip_result">
<img
src="images/icon-dollar-color2.svg"
alt=""
aria-hidden="true"
/>
<span class="tip_result_value">0.00</span>
</span>
</div>
<div class="total_person">
<span class="total">Total</span>
<span class="per_person">/ person</span>
<span class="total_result">
<img
src="images/icon-dollar-color2.svg"
alt=""
aria-hidden="true"
/>
<span class="total_result_value">0.00</span>
</span>
</div>
<button class="reset">Reset</button>
</div>
</main>
<footer class="attribution">
Challenge by
<a href="https://www.frontendmentor.io?ref=challenge" target="_blank"
>Frontend Mentor</a
>. Coded by
<a href="https://github.com/felipetn1989" target="_blank">Felipe Thomé</a
>.
</footer>
<script src="scripts/script.js"></script>
</body>
</html>