-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
91 lines (88 loc) · 3.57 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Todo List</title>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="app">
<div class="container-fluid">
<div class="row">
<div class="col-md-12 text-center mt-5">
<h2>To-do List Built with VueJs</h2>
</div>
<div class="col-md-4 mt-5">
<div class="card mb-5 ">
<div class="card-body elevate shadow">
<h4 class="mb-3">Add Task List</h4>
<div class="alert alert-danger" role="alert" v-show="hasError">{{error}}</div>
<form class="form" v-on:submit.prevent="addTask">
<div class="form-group">
<label for="title">Task Title</label>
<input id="title" type="text" name="task" v-model="title" class="form-control" placeholder="Title">
</div>
<div class="form-group">
<label for="title">Task Details</label>
<textarea type="text" name="task" v-model="message" class="form-control" placeholder="Task Details" rows="5"></textarea>
</div>
<div class="form-group">
<button class="btn btn-success col-md-12" type="submit"><i class="fa fa-plus mr-1"></i>Add Task</button>
</div>
</form>
</div>
</div>
</div>
<div class="col-md-4 mt-5">
<div class="card mb-5 ">
<div class="card-body elevate shadow">
<h5 class="mb-3">Pending Tasks</h5>
<div class=" mt-3">
<ul class="list-group">
<li class="list-group-item mt-1 border rounded"
is="todo-item"
v-for="(task,index) in tasks"
:task="task"
:key="task.id"
:index="index"
@delete="deleteTask"
@complete="completeTask"
>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="col-md-4 mt-5">
<div class="card mb-5 ">
<div class="card-body elevate shadow">
<h5 class="mb-3">Completed Tasks</h5>
<div class=" mt-3">
<ul class="list-group">
<li class="list-group-item mt-1 border rounded"
is="todo-item"
v-for="(task,index) in doneTasks"
:task="task"
:key="task.id"
:index="index"
@delete="deleteDoneTask"
>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js"></script>
<script type="text/javascript" src="app.js"></script>
</body>
</html>