-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
261 lines (242 loc) · 7.97 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="./images/favicon_io/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon_io/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="./images/favicon_io/favicon-16x16.png"
/>
<link rel="manifest" href="./images/favicon_io/site.webmanifest" />
<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=Rubik:wght@300;400;500&family=Space+Mono:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script defer src="js/script.js"></script>
<title>Splitter App</title>
</head>
<body>
<div class="container">
<img
src="./images/logo.svg"
alt=""
aria-hidden="true"
class="calc__logo"
/>
<main class="calc">
<div class="calc__input-container">
<form action="#" class="calc__form calc__form--bill">
<div class="calc__form-texts">
<label for="bill" class="calc__heading">Bill</label>
<p class="calc__error-text js-error-text"></p>
</div>
<input
type="text"
name="bill"
placeholder="0"
maxlength="7"
autocomplete="off"
id="bill"
class="calc__input js-input"
required
/>
</form>
<div class="calc__tips">
<div class="calc__form-texts">
<p class="calc__heading">Select Tip %</p>
</div>
<ul class="calc__list">
<li class="calc__item">
<button class="calc__btn js-btn" type="button" value="5">
5%
</button>
</li>
<li class="calc__item">
<button class="calc__btn js-btn" type="button" value="10">
10%
</button>
</li>
<li class="calc__item">
<button class="calc__btn js-btn" type="button" value="15">
15%
</button>
</li>
<li class="calc__item">
<button class="calc__btn js-btn" type="button" value="25">
25%
</button>
</li>
<li class="calc__item">
<button class="calc__btn js-btn" type="button" value="50">
50%
</button>
</li>
<li>
<form action="#" class="calc__form">
<input
type="text"
name="custom"
placeholder="Custom"
autocomplete="off"
id="custom"
class="
calc__input calc__input--custom
js-input js-input--custom
"
required
/>
</form>
</li>
</ul>
</div>
<form action="#" class="calc__form calc__form--nop">
<div class="calc__form-texts">
<label for="nop" class="calc__heading"> Number of People </label>
<p class="calc__error-text js-error-text"></p>
</div>
<input
type="text"
name="number of people"
placeholder="0"
maxlength="3"
autocomplete="off"
id="nop"
class="calc__input js-input"
required
/>
</form>
</div>
<div class="calc__output-container">
<div class="calc__output-headings">
<div class="calc__wrapper">
<div class="calc__amount-headings">
<p class="calc__heading calc__heading--tip">Tip Amount</p>
<p class="calc__heading calc__heading--person">/ person</p>
</div>
<p class="calc__number js-number">$0.00</p>
</div>
<div class="calc__wrapper">
<div class="calc__amount-headings">
<p class="calc__heading calc__heading--tip">Total</p>
<p class="calc__heading calc__heading--person">/ person</p>
</div>
<p class="calc__number js-number">$0.00</p>
</div>
</div>
<button
type="reset"
value="Reset"
class="calc__reset js-reset"
disabled
>
Reset
</button>
</div>
<p class="input-aria-live sr-only" aria-live="polite"></p>
</main>
</div>
<div class="modal__bg js-modal">
<div class="modal js-modal">
<button
type="button"
class="modal__close-btn js-close"
aria-label="close"
>
<img
src="./images/icon-close-modal.svg"
alt=""
aria-hidden="true"
class="modal__close-img"
/>
</button>
<h2 class="modal__heading modal__heading--secondary">
How to add the app to home screen
</h2>
<div class="modal__wrapper">
<h3 class="modal__heading modal__heading--tertiary">iOS</h3>
<ol class="modal__list">
<li class="modal__item">
Tap the Share button on the bottom of the page. It looks like a
square with an arrow pointing out of the top.
</li>
<li class="modal__item">
In the list of options that appear, scroll down and tap on Add to
Home Screen. The Add to Home Screen dialog box will appear.
</li>
<li class="modal__item">
Choose a name for the website shortcut on your home screen.
</li>
<li class="modal__item">
Click Add when you're done. Safari will close automatically, and
you will be taken to where the icon is located on your iPhone’s or
iPad's home screen.
</li>
<li class="modal__item">
Now just tap the new "app" or shortcut on your home screen, and it
will open the website in its own navigation window, independent of
what you have open in Safari.
</li>
</ol>
</div>
<div class="modal__wrapper">
<h3 class="modal__heading modal__heading--tertiary">Android</h3>
<ol class="modal__list">
<li class="modal__item">
Tap the menu icon (3 dots in upper right-hand corner) and tap Add
to home screen.
</li>
<li class="modal__item">
Choose a name for the website shortcut, then Chrome will add it to
your home screen.
</li>
</ol>
</div>
</div>
</div>
<footer class="attribution">
<div class="attribution__wrapper">
Challenge by
<a
class="attribution__link"
href="https://www.frontendmentor.io?ref=challenge"
target="_blank"
>Frontend Mentor</a
>. Coded by
<a
class="attribution__link"
href="https://github.com/kens-visuals"
target="_blank"
>Kens-Visuals</a
>.
</div>
<button
type="button"
class="attribution__helper js-helper"
aria-label="helper"
>
<img
src="./images/icon-help.svg"
alt=""
aria-hidden="true"
class="attribution__ionicon js-icon"
/>
</button>
</footer>
</body>
</html>