-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (95 loc) · 4.3 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
<!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" />
<script src="https://cdn.tailwindcss.com"></script>
<title>Calculator</title>
</head>
<body class="flex justify-center bg-blue-100">
<div
id="container"
class="flex flex-col items-center mt-12 w-full max-w-[380px] h-[580px] bg-white mx-4 shadow-2xl rounded-xl">
<div
id="display"
class="h-[100px] w-[378px] text-6xl text-right pt-6 font-mono overflow-hidden text-white bg-black rounded-t-xl pr-4"></div>
<div class="buttons w-full grid grid-cols-4 grid-rows-5 grid-flow-row">
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center font-mono bg-blue-300 hover:bg-blue-400 duration-500 h-24">
C
</div>
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center font-mono bg-blue-300 hover:bg-blue-400 duration-500 h-24">
/
</div>
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center font-mono bg-blue-300 hover:bg-blue-400 duration-500 h-24">
*
</div>
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center font-mono bg-blue-300 hover:bg-blue-400 duration-500 h-24">
←
</div>
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center font-mono hover:bg-slate-200 duration-500 h-24">
7
</div>
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center font-mono hover:bg-slate-200 duration-500 h-24">
8
</div>
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center font-mono hover:bg-slate-200 duration-500 h-24">
9
</div>
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center font-mono bg-blue-300 hover:bg-blue-400 duration-500 h-24">
-
</div>
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center font-mono hover:bg-slate-200 duration-500 h-24">
4
</div>
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center font-mono hover:bg-slate-200 duration-500 h-24">
5
</div>
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center font-mono hover:bg-slate-200 duration-500 h-24">
6
</div>
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center font-mono bg-blue-300 hover:bg-blue-400 duration-500 h-24">
+
</div>
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center font-mono hover:bg-slate-200 duration-500 h-24">
1
</div>
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center font-mono hover:bg-slate-200 duration-500 h-24">
2
</div>
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center font-mono hover:bg-slate-200 duration-500 h-24">
3
</div>
<div
id="equal"
class="flex items-center justify-center button text-2xl p-4 bg-orange-400 rounded-br-xl border border-slate text-center font-mono hover:bg-orange-500 duration-500 row-span-2">
=
</div>
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center rounded-bl-xl font-mono hover:bg-slate-200 duration-500 h-24 col-span-2">
0
</div>
<div
class="flex items-center justify-center button text-2xl p-4 border border-slate text-center font-mono hover:bg-slate-200 duration-500 h-24">
.
</div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>