-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
140 lines (138 loc) · 4.38 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
<!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" />
<!-- Primary Meta Tags -->
<title>Tip Calculator App</title>
<meta name="title" content="Tip Calculator App" />
<meta
name="description"
content="Calculate all your shopping tips for free, just enter the amount and we will do the rest "
/>
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />
<meta property="og:url" content="https:jerontipcalculator.netlify.app" />
<meta property="og:title" content="Tip Calculator App" />
<meta
property="og:description"
content="Calculate all your shopping tips for free, just enter the amount and we will do the rest "
/>
<meta
property="og:image"
content="https://github.com/jeronasiedu/tipCalculator/blob/main/images/screenshot5.png?raw=true"
/>
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta
property="twitter:url"
content="https:jerontipcalculator.netlify.app"
/>
<meta property="twitter:title" content="Tip Calculator App" />
<meta
property="twitter:description"
content="Calculate all your shopping tips for free, just enter the amount and we will do the rest "
/>
<meta
property="twitter:image"
content="https://github.com/jeronasiedu/tipCalculator/blob/main/images/screenshot5.png?raw=true"
/>
<meta name="theme-color" content="hsl(172, 67%, 45%)" />
</head>
<body>
<h1>Tip calculator</h1>
<main class="container">
<div class="calculator">
<div style="position: relative">
<label for="bill">Bill</label>
<input
type="number"
name=""
id="bill"
class="standard billInput"
min="1"
placeholder="0"
required
/>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon"
>
<line x1="12" y1="1" x2="12" y2="23"></line>
<path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>
</svg>
</div>
<div class="options">
<button class="btn" data-percent="5">5%</button>
<button class="btn" data-percent="10">10%</button>
<button class="btn" data-percent="15">15%</button>
<button class="btn" data-percent="25">25%</button>
<button class="btn" data-percent="50">50%</button>
<input type="number" name="" placeholder="Custom" class="custom" />
</div>
<div>
<label for="people">Number of People </label>
<input
type="number"
name=""
id="people"
class="standard"
min="1"
required
placeholder="1"
/>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="icon"
>
<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
<circle cx="8.5" cy="7" r="4"></circle>
<line x1="20" y1="8" x2="20" y2="14"></line>
<line x1="23" y1="11" x2="17" y2="11"></line>
</svg>
</div>
</div>
<div class="results-container">
<div class="results-item">
<div>
<p>Tip Amount</p>
<small>/ Person</small>
</div>
<span id="tip">$0.00</span>
</div>
<div class="results-item">
<div>
<p>Total</p>
<small>/ Person</small>
</div>
<span id="total">$0.00</span>
</div>
<button class="reset">Reset</button>
</div>
</main>
<script src="script.js"></script>
</body>
</html>