-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (72 loc) · 2.61 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<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=Outfit:wght@400;700&family=Space+Mono:wght@400;700&display=swap"
rel="stylesheet" />
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
mono: ['Space Mono', 'mono'],
},
},
},
};
</script>
<title>1RM</title>
</head>
<body>
<div
class="flex flex-col items-center md:justify-center h-screen bg-gradient-to-b from-blue-300 to-blue-600">
<div
class="flex flex-col bg-white mt-4 rounded-2xl max-w-[360px] max-h-[660px] p-8 space-y-8 shadow-2xl">
<h1 class="text-3xl text-center font-mono">One Rep Max Calculator</h1>
<form
onsubmit="return result()"
onreset="return resetText()"
class="flex flex-col space-y-4">
<label for="weight" class="text-2xl text-center font-mono"
>Weight</label
>
<input
type="number"
pattern="[0-9]*"
id="weight"
name="weight"
maxlength="3"
required
class="border border-slate-500 text-center w-1/2 mx-auto" />
<br />
<label for="reps" class="text-2xl text-center font-mono">Reps</label>
<input
type="number"
pattern="[0-9]*"
id="reps"
name="reps"
maxlength="2"
required
class="border border-slate-500 text-center w-1/2 mx-auto" />
<br />
<input
type="submit"
value="Calculate"
class="text-xl items-center border rounded-2xl bg-blue-300 p-2 hover:bg-blue-400 duration-300 font-mono hover:text-white w-4/5 mx-auto shadow-xl hover:scale-105" /><br />
<input
type="reset"
class="text-xl border rounded-2xl bg-blue-300 p-2 hover:bg-blue-400 duration-300 font-mono hover:text-white w-4/5 mx-auto shadow-xl hover:scale-105" />
</form>
<h4 class="text-2xl text-center font-mono">Your 1RM is:</h4>
<h5 id="output" class="text-4xl text-center pb-4 mb-4 font-mono"></h5>
</div>
</div>
<script src="main.js"></script>
</body>
</html>