-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
32 lines (29 loc) · 1.72 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
<!DOCTYPE html>
<html>
<head>
<title>TailwindCSS Counter</title>
<meta charset="UTF-8" />
<link href="./src/styles.css" rel="stylesheet">
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
</head>
<body>
<a href="https://github.com/brendan-c/Tailwindcss-Counter" class="m-8 float-right opacity-50 hover:opacity-100"><img src="./src/GitHub-Mark-32px.png" alt="GitHub Repository"></a>
<div class="container w-32 m-auto">
<div class="vertical-center">
<div class="custom-number-input h-10 w-32">
<label for="custom-input-number" class="w-full text-gray-700 text-sm font-semibold">Counter Input
</label>
<div class="flex flex-row h-10 w-full rounded-lg relative bg-transparent mt-1">
<button data-action="decrement" class=" bg-gray-300 text-gray-600 hover:text-gray-700 hover:bg-gray-400 h-full w-20 rounded-l cursor-pointer outline-none">
<span class="m-auto text-2xl font-thin">−</span>
</button>
<input type="number" class="outline-none focus:outline-none text-center w-full bg-gray-300 font-semibold text-md hover:text-black focus:text-black md:text-basecursor-default flex items-center text-gray-700 outline-none" name="custom-input-number" value="0"></input>
<button data-action="increment" class="bg-gray-300 text-gray-600 hover:text-gray-700 hover:bg-gray-400 h-full w-20 rounded-r cursor-pointer">
<span class="m-auto text-2xl font-thin">+</span>
</button>
</div>
</div>
</div>
<script src="src/script.js"></script>
</body>
</html>