-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (38 loc) · 1.22 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Task Tracker!</title>
<link
href="https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles.css" />
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script src="app.js" defer></script>
</head>
<body>
<header>
<h1>Task Trackerrr</h1>
</header>
<section id="user-goals">
<h2>My Tasks</h2>
<input type="text" v-model="goalInput" @keyup.enter="addGoal" />
<button @click="addGoal">Add Task</button>
<p v-if="goals.length === 0">
No tasks have been added yet - please start adding some!
</p>
<ul v-else>
<li
v-for="(goal, idx) in goals"
:key="idx"
@click="removeGoal(idx)"
>
{{goal}}
</li>
</ul>
</section>
</body>
</html>