-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (28 loc) · 1.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Counter App</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
<!-- wrapper div -->
<div class="w-[100vw] h-[100vh] flex flex-col items-center justify-center bg-[#E6004A] gap-6">
<div class="text-white font-medium text-[20px]">Increment And Decrement</div>
<div class="bg-[cyan] flex text-[25px] text-[#00000] rounded ga p-7 p-2 px-5">
<!-- negative btn -->
<button onclick="decrement()" class="border-r-2 border-[#bfbfbf] pr-4">
<i class="fa-solid fa-minus"></i>
</button>
<div id="value" class="font-bold">0</div>
<!-- positive btn -->
<button onclick="increment()" class ="border-l-2 border-[#bfbfbf] pl-4">
<i class="fa-solid fa-plus"></i>
</button>
</div>
</div>
<script src="https://kit.fontawesome.com/4359719cce.js" crossorigin="anonymous"></script>
<script src="script.js"></script>
</body>
</html>