-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
41 lines (41 loc) · 2.29 KB
/
index.html
File metadata and controls
41 lines (41 loc) · 2.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Task List</title>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-gray-100 min-h-screen flex items-center justify-center">
<div class="bg-white p-6 rounded-lg shadow-lg w-full max-w-md">
<h1 class="text-2xl font-bold mb-4 text-center">Task List</h1>
<form id="task-form" class="mb-4 flex items-center" method="post" action="upload_task.php">
<input type="text" id="task-input" name="name" placeholder="Add a new task" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 mr-2">
<button type="submit" id="sendButton" class="bg-blue-500 text-white px-4 py-2 rounded-lg hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500">Send</button>
</form>
<ul id="task-list" class="space-y-2">
<li class="flex items-center bg-gray-100 p-3 rounded-lg shadow-sm">
<input type="checkbox" id="task-1" class="mr-2">
<label for="task-1" class="flex-1">Complete the project report</label>
</li>
<li class="flex items-center bg-gray-100 p-3 rounded-lg shadow-sm">
<input type="checkbox" id="task-2" class="mr-2">
<label for="task-2" class="flex-1">Buy groceries</label>
</li>
<li class="flex items-center bg-gray-100 p-3 rounded-lg shadow-sm">
<input type="checkbox" id="task-3" class="mr-2">
<label for="task-3" class="flex-1">Prepare presentation for Monday meeting</label>
</li>
<li class="flex items-center bg-gray-100 p-3 rounded-lg shadow-sm">
<input type="checkbox" id="task-4" class="mr-2">
<label for="task-4" class="flex-1">Clean the house</label>
</li>
<li class="flex items-center bg-gray-100 p-3 rounded-lg shadow-sm">
<input type="checkbox" id="task-5" class="mr-2">
<label for="task-5" class="flex-1">Finish reading the book</label>
</li>
</ul>
</div>
<script src="js/script.js"></script>
</body>
</html>