-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
201 lines (193 loc) · 5.48 KB
/
Copy pathindex.html
File metadata and controls
201 lines (193 loc) · 5.48 KB
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>treemind | yet another to-do list, with a twist</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/fav.svg" type="image/png" />
<link href="/src/style.css" rel="stylesheet" />
<style>
#cy {
width: 100%;
height: 600px;
border: 1px solid #ccc;
}
#tasks-list li {
background-color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem;
margin-bottom: 0.5rem;
border-radius: 0.375rem;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
0 1px 2px -1px rgba(0, 0, 0, 0.1);
list-style: none;
}
#done-list li {
background-color: #f8f9fa;
padding: 0.75rem;
margin-bottom: 0.5rem;
border-radius: 0.375rem;
list-style: none;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
0 1px 2px -1px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body class="bg-gray-100 p-8 font-sans">
<h2 class="text-3xl font-bold mb-6 text-center text-gray-700">
treemind
</h2>
<div class="flex justify-center mb-4">
<a
href="https://www.github.com/imshahab/treemind"
class="flex items-center justify-center w-10 h-10 bg-gray-200 rounded-full shadow-md mr-4"
aria-label="GitHub"
target="_blank"
rel="noopener noreferrer"
>
<img src="/github.svg" alt="GitHub" class="w-6 h-6" />
</a>
<a
href="https://en.wikipedia.org/wiki/Binary_search_tree"
class="flex items-center justify-center w-10 h-10 bg-gray-200 rounded-full shadow-md"
aria-label="Wikipedia"
target="_blank"
rel="noopener noreferrer"
>
<img src="/wikipedia.svg" alt="Wikipedia" class="w-6 h-6" />
</a>
<a
href="https://en.wikipedia.org/wiki/Heap_(data_structure)"
class="flex items-center justify-center w-10 h-10 bg-gray-200 rounded-full shadow-md ml-4"
aria-label="Wikipedia"
target="_blank"
rel="noopener noreferrer"
>
<img src="/wikipedia.svg" alt="Wikipedia" class="w-6 h-6" />
</a>
</div>
<p class="text-gray-600 mb-4 text-center">
treemind is yet another to-do list application, but this time with a
twist! The tasks are organized in tree structures, which helps
visualize the relationships between tasks.
</p>
<div
id="search-container"
class="mb-8 p-6 bg-white rounded-lg shadow-md"
>
<input
type="text"
id="search-input"
class="w-full p-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"
placeholder="Search..."
/>
<ul id="search-result" class="mt-3"></ul>
</div>
<div
id="tasks-container"
class="mb-8 p-6 bg-white rounded-lg shadow-md"
>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
<div>
<label
for="task-input"
class="block text-sm font-medium text-gray-700 mb-1"
>Task:</label
>
<input
type="text"
id="task-input"
placeholder="Enter a task"
class="w-full p-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"
/>
</div>
<div>
<label
for="task-deadline"
class="block text-sm font-medium text-gray-700 mb-1"
>Deadline:</label
>
<input
type="datetime-local"
id="task-deadline"
class="w-full p-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"
/>
</div>
<div>
<label
for="task-estimated-time"
class="block text-sm font-medium text-gray-700 mb-1"
>Estimated Time (hours):</label
>
<input
type="number"
min="1"
id="task-estimated-time"
placeholder="e.g. 3"
class="w-full p-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"
/>
</div>
</div>
<div class="flex items-center justify-end">
<button
id="add-task-btn"
class="bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded-md transition duration-150 ease-in-out"
>
Add Task
</button>
</div>
<h3 class="text-2xl font-semibold mt-6 mb-3 text-gray-700">
Tasks
</h3>
<ul id="tasks-list" class="space-y-2"></ul>
</div>
<div id="done-container" class="mb-8 p-6 bg-white rounded-lg shadow-md">
<h3 class="text-2xl font-semibold mb-3 text-gray-700">Done</h3>
<ul id="done-list" class="list-disc space-y-2 text-gray-500"></ul>
</div>
<div class="mb-8 p-6 bg-white rounded-lg shadow-md">
<h3 class="text-2xl font-semibold mb-3 text-gray-700">
Tree Views
</h3>
<div class="flex flex-col md:flex-row md:space-x-4">
<div id="heap" class="flex-1">
<h4 class="text-xl font-medium mb-2 text-gray-600">
Heap View
</h4>
<div id="cy"></div>
</div>
<div id="bst" class="flex-1 mt-4 md:mt-0">
<h4 class="text-xl font-medium mb-2 text-gray-600">
BST View
</h4>
<div id="cy"></div>
</div>
<div id="title-bst" class="flex-1 mt-4 md:mt-0">
<h4 class="text-xl font-medium mb-2 text-gray-600">
Title BST View
</h4>
<div id="cy"></div>
</div>
</div>
</div>
<div
id="tooltip"
style="
position: absolute;
padding: 8px 12px;
background: #222;
color: #fff;
border-radius: 8px;
font-size: 14px;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s;
z-index: 10;
"
></div>
<script type="module" src="./src/main.js"></script>
<script type="module" src="./src/search.js"></script>
</body>
</html>