-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
120 lines (110 loc) · 4.41 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>To-do app from umutdev.xyz</title>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12/dist/vue.js"></script>
<link rel="stylesheet" href="https://unpkg.com/buefy/dist/buefy.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="app">
<div class="container">
<div class="columns">
<div class="column is-two-thirds">
<div class="add-todo box">
<div class="title is-3 has-text-centered">
Add TO-DO
</div>
<div class="level">
<div class="level-item">
<input placeholder="Add todo.." type="text" @keypress.enter="addTodo" v-model="inputValue" ref="todoInput" class="add-todo input">
</div>
<div class="level-right">
<center>
<button class="button addTodo" v-on:click="addTodo">
<img src="https://img.icons8.com/plumpy/24/000000/forward.png"/>
</button>
</center>
</div>
</div>
<article class="message is-danger" v-for="error in errors">
<div class="message-body">
{{ error }}
</div>
</article>
</div>
<div class="box currenTodo" v-for="todo in todos">
<div class="level">
<div class="level-item">
<div class="todo-text">
{{ todo }}
</div>
</div>
<div class="level-right">
<button name="archiveButton" v-on:click="archiveTodo(todo)" class="button archive">
<img src="https://img.icons8.com/plumpy/24/000000/archive-folder.png"/>
</button>
<button name="doneButton" v-on:click="doneTodo(todo)" class="button done">
<img src="https://img.icons8.com/plumpy/24/000000/checkmark.png"/>
</button>
</div>
</div>
</div>
</div>
<div class="column">
<div class="box doneTodos">
<div class="title is-4 has-text-centered">
Todos, Done
</div>
<div class="box doneTodo" v-for="doneTodo in doneTodos">
<div class="level">
<div class="level-item">
<div class="doneTodo-text">
{{ doneTodo }}
</div>
</div>
<div class="level-right">
<button name="deleteButton" v-on:click="deleteDoneTodo(doneTodo)" class="button trash">
<img src="https://img.icons8.com/plumpy/24/000000/delete-sign.png"/>
</button>
</div>
</div>
</div>
</div>
<div class="box archivedTodos">
<div class="title is-4 has-text-centered">
Todos, Archived
</div>
<div class="box archivedTodo" v-for="archivedTodo in archivedTodos">
<div class="level">
<div class="level-item">
<div class="archivedTodo-text">
{{ archivedTodo }}
</div>
</div>
<div class="level-right">
<button name="deleteButton" v-on:click="deleteArchivedTodo(archivedTodo)" class="button trash">
<img src="https://img.icons8.com/plumpy/24/000000/delete-sign.png"/>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="box madeBy is-hidden-touch">
<div class="title is-4 has-text-centered">
Made by <a href="https://umutdev.xyz" target="_blank">umutdev.xyz</a>
</div>
</div>
</div>
<script src="app.js"></script>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/buefy/dist/buefy.min.js"></script>
<script src="https://unpkg.com/buefy/dist/components/table"></script>
<script src="https://unpkg.com/buefy/dist/components/input"></script>
</body>
</html>