-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (32 loc) · 1.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
<!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>Counter App</title>
</head>
<body>
<!--Wrapper-->
<div id="wrapper" class="w-[100vw] h-[100vh] bg-[#344151] flex flex-col items-center justify-center gap-10">
<!--heading-->
<!--primary div-->
<div class="text-[#0398d4] font-medium text-[20px]">Increment and Decrement</div>
<!--secondary Div-->
<div class="bg-white flex text-[25px] text-[#344151] rounded-sm gap-12 p-3 px-5">
<!--negative button-->
<button onclick="decrement()" class="border-r-2 border-[#bfbfbf] pr-5">
<i class="fa-solid fa-minus"></i>
</button>
<div id="counter" class="font-bold">0</div>
<!--Positive button-->
<button onclick="increment()" class="border-l-2 border-[#bfbfbf] pl-5">
<i class="fa-solid fa-plus"></i>
</button>
</div>
</div>
<script src="https://kit.fontawesome.com/58a810656e.js" crossorigin="anonymous"></script>
<script src="script.js"></script>
</body>
</html>