-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
96 lines (84 loc) · 3.38 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
96
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>CRUD with Vanilla JS</title>
<link rel="stylesheet" href="styles/tailwind.min.css" />
<link rel="stylesheet" href="styles/styles.css" />
</head>
<body>
<div class="container mx-auto">
<div class="w-full max-w-xs">
<br />
<br />
<h1 style="font-size: 2rem;">CRUD with Vanilla JS</h1>
<br />
<form id="addProductForm" class="bg-white shadow-md rounded px-8 pt-6 pb-8 mb-4">
<h2 class="mb-4">Add New Product</h2>
<div class="mb-4">
<label class="block text-gray-700 text-sm font-bold mb-2" for="addProductTitle">
Title
</label>
<input
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
id="addProductTitle" name="addProductTitle" placeholder="Title of Product" />
</div>
<div class="mb-6">
<label class="block text-gray-700 text-sm font-bold mb-2" for="addProductPrice">
Price
</label>
<input
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 mb-3 leading-tight focus:outline-none focus:shadow-outline"
name="addProductPrice" id="addProductPrice" type="text" placeholder="Price..." />
</div>
<div class="flex items-center justify-between">
<button
class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline">
Add
</button>
<a type="reset" class="inline-block align-baseline font-bold text-sm text-blue-500 hover:text-blue-800"
href="javascript:document.getElementById('addProductForm').reset();">
Reset
</a>
</div>
</form>
</div>
<label class="md:w-2/3 block text-gray-600 font-bold">
<input class="mr-2 leading-tight" type="checkbox" id="existCheck" />
<span class="text-sm">
Just Exist Products
</span>
</label>
<br />
<br />
<div class="flex flex-wrap -mx-3 mb-6">
<div class="w-full md:w-1/2 px-3 mb-6 md:mb-0">
<label class="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2" for="grid-first-name">
Search
</label>
<input
class="shadow py-2 px-3 w-full text-gray-700 border rounded mb-3 leading-tight focus:outline-none focus:bg-white"
type="text" id="searchText" placeholder="Search Product..." />
</div>
<div class="w-full md:w-1/2 px-3">
<label class="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2" for="grid-last-name">
Sort
</label>
<select name="" id="sort"
class="shadow border rounded py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
id="grid-state">
<option value="byEdited">By Edited</option>
<option value="byCreated">By Created</option>
</select>
</div>
</div>
<h1 class="text-xl">Title of exist Products:</h1>
<br />
</div>
<script src="./scripts/moment.min.js"></script>
<script src="./scripts/functions.js"></script>
<script src="./scripts/uuid.js"></script>
<script src="./scripts/app.js"></script>
</body>
</html>