-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
165 lines (161 loc) · 7.96 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<title>Example page of hierarchy-list</title>
<link rel="stylesheet" href="./src/style.css" />
</head>
<body>
<header class="sticky top-0 max-w-full left-0 z-20">
<nav class="bg-white border-b border-gray-200">
<div
class="flex flex-wrap items-center justify-between mx-auto p-4"
>
<a
href="https://github.com/protibimbok/"
class="flex items-center"
>
<span
class="self-center text-2xl font-semibold whitespace-nowrap"
>Protibimbok</span
>
</a>
<div class="flex md:order-2">
<button
type="button"
class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2 text-center mr-3 md:mr-0"
>
Get started
</button>
<button
data-collapse-toggle="navbar-sticky"
type="button"
class="inline-flex items-center p-2 text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200"
aria-controls="navbar-sticky"
aria-expanded="false"
>
<span class="sr-only">Open main menu</span>
<svg
class="w-6 h-6"
aria-hidden="true"
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
clip-rule="evenodd"
></path>
</svg>
</button>
</div>
<div
class="items-center justify-between hidden w-full md:flex md:w-auto md:order-1"
id="navbar-sticky"
>
<ul
class="flex flex-col p-4 md:p-0 mt-4 font-medium border border-gray-100 rounded-lg bg-gray-50 md:flex-row md:space-x-8 md:mt-0 md:border-0 md:bg-white md:"
>
<li>
<a
href="#"
class="block py-2 pl-3 pr-4 text-white bg-blue-700 rounded md:bg-transparent md:text-blue-700 md:p-0"
aria-current="page"
>Docs</a
>
</li>
<li>
<a
href="https://github.com/protibimbok/hierarchy-list"
class="block py-2 pl-3 pr-4 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:hover:text-blue-700 md:p-0"
>Repository</a
>
</li>
<li>
<a
href="#"
class="block py-2 pl-3 pr-4 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:hover:text-blue-700 md:p-0"
>About</a
>
</li>
<li>
<a
href="#"
class="block py-2 pl-3 pr-4 text-gray-900 rounded hover:bg-gray-100 md:hover:bg-transparent md:hover:text-blue-700 md:p-0"
>Contact</a
>
</li>
</ul>
</div>
</div>
</nav>
</header>
<div class="w-full flex flex-col justify-center items-center p-4">
<div class="w-full max-w-6xl md:grid gap-4 grid-cols-2">
<div class="shadow-lg rounded-md min-w-[300px] border-t">
<div class="flex px-4 py-2.5 items-center border-b">
<h3 class="flex-grow">List 1</h3>
<button type="button" class="bg-blue-500 text-white rounded-md px-4 py-2.5 hover:bg-blue-600" id="add-item">Add</button>
</div>
<ul class="phl-list border m-4" id="app1"></ul>
</div>
<div class="shadow-lg rounded-lg border p-4">
<div class="mb-2">
<label
for="flat-1"
class="block mb-2 text-sm font-medium text-gray-900"
>Flat 1</label
>
<pre
id="flat-1"
class="block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 overflow-auto max-h-96 min-h-[100px]"
></pre>
</div>
<div class="mt-2">
<label
for="tree-1"
class="block mb-2 text-sm font-medium text-gray-900"
>Tree 1</label
>
<pre
id="tree-1"
class="block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 overflow-auto max-h-96 min-h-[100px]"
></pre>
</div>
</div>
<ul
class="shadow-lg rounded-md min-w-[300px] phl-list border"
id="app2"
></ul>
<div class="shadow-lg rounded-lg border p-4">
<div class="mb-2">
<label
for="flat-2"
class="block mb-2 text-sm font-medium text-gray-900"
>Flat 2</label
>
<pre
id="flat-2"
class="block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 overflow-auto max-h-96 min-h-[100px]"
></pre>
</div>
<div class="mt-2">
<label
for="tree-2"
class="block mb-2 text-sm font-medium text-gray-900"
>Tree 2</label
>
<pre
id="tree-2"
class="block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 overflow-auto max-h-96 min-h-[100px]"
></pre>
</div>
</div>
</div>
</div>
<script type="module" src="/example/main.ts"></script>
</body>
</html>