-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
100 lines (100 loc) · 3.88 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
<!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="stylesheet" href="./style.css">
<title>Frontend Mentor | Tip calculator app</title>
</head>
<body class="page">
<header class="page__header">
<img class="page__logo" src="./images/logo.svg" alt="Splitter logo" width="87" height="53">
</header>
<main class="page__main">
<h1 class="visually-hidden">Frontend Mentor | Tip calculator app</h1>
<section class="calculator">
<h2 class="visually-hidden">Calculator</h2>
<form class="calculator__form" action="#" method="post" novalidate>
<fieldset class="calculator__field calculator__field--bill">
<label class="calculator__label" for="bill-amount-input">
Bill
</label>
<input
class="calculator__input"
id="bill-amount-input"
name="bill-amount-input"
type="number"
inputmode="decimal"
placeholder="0"
>
</fieldset>
<fieldset class="calculator__field">
<legend class="calculator__label">
Select Tip %
</legend>
<ul class="calculator__list">
<li>
<input class="calculator__radio" id="tip-amount-5" name="tip-amount" type="radio" value="5">
<label class="calculator__radio-label" for="tip-amount-5">5%</label>
</li>
<li>
<input class="calculator__radio" id="tip-amount-10" name="tip-amount" type="radio" value="10">
<label class="calculator__radio-label" for="tip-amount-10">10%</label>
</li>
<li>
<input class="calculator__radio" id="tip-amount-15" name="tip-amount" type="radio" value="15">
<label class="calculator__radio-label" for="tip-amount-15">15%</label>
</li>
<li>
<input class="calculator__radio" id="tip-amount-25" name="tip-amount" type="radio" value="25">
<label class="calculator__radio-label" for="tip-amount-25">25%</label>
</li>
<li>
<input class="calculator__radio" id="tip-amount-50" name="tip-amount" type="radio" value="50">
<label class="calculator__radio-label" for="tip-amount-50">50%</label>
</li>
<li>
<input
class="calculator__input calculator__input--sm"
id="tip-amount-custom"
name="tip-amount-custom"
type="number"
inputmode="decimal"
placeholder="Custom"
>
</li>
</ul>
</fieldset>
<fieldset class="calculator__field calculator__field--people">
<label class="calculator__label" for="people-amount-input">
Number of People
</label>
<input
class="calculator__input"
id="people-amount-input"
name="people-amount-input"
type="number"
inputmode="decimal"
placeholder="0"
>
</fieldset>
<div class="calculator__result result">
<p class="result__item result__item--tip">
<span class="result__title">Tip amount</span>
<span class="result__unit">/ person</span>
<span class="result__amount">$0.00</span>
</p>
<p class="result__item result__item--total">
<span class="result__title">Total</span>
<span class="result__unit">/ person</span>
<span class="result__amount">$0.00</span>
</p>
<button class="result__button" type="reset">Reset</button>
</div>
</form>
</section>
</main>
<script src="./script.js"></script>
</body>
</html>