Skip to content

Commit 2cce71f

Browse files
committed
Change styles to look better
1 parent eff9f69 commit 2cce71f

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "typescript-app",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",
77
"build": "vue-cli-service build",
88
"lint": "vue-cli-service lint"
99
},
1010
"dependencies": {
11+
"@vue/cli": "^5.0.8",
1112
"core-js": "^3.8.3",
1213
"vue": "^3.4.15",
1314
"vue-ellipse-progress": "^2.1.2",

src/App.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<template>
22
<img alt="Vue logo" src="./assets/logo.png" />
33
<div>
4+
<h1>Todo List Application using Vue, TypeScript and Vuex</h1>
5+
<p>
6+
This is a task list application using Vue, TypeScript and Vuex with SCSS
7+
styles. It supports gamification like levels and experience points (XP).
8+
</p>
49
<NewTodo />
510
<TodoList />
611
</div>

src/components/TodoList.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
h3 {
2-
margin: 40px 0 0;
2+
margin: 10px 0 0;
33
}
44

55
ul {
@@ -9,7 +9,7 @@ ul {
99
}
1010

1111
li {
12-
margin: 0 10px;
12+
margin: 5px 10px; //add line spacing between tasks
1313
}
1414

1515
a {
@@ -18,4 +18,4 @@ a {
1818
.overdue {
1919
color: red;
2020
font-weight: bold;
21-
}
21+
}

src/components/TodoList.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
<template>
22
<div class="todo-app">
3-
<h1>Todo List</h1>
43
<p>Level: {{ levels }}</p>
5-
<br />
64
<p>XP: {{ xps }}</p>
7-
<br />
85
<!--show circular progress bar filled with level progress--><ve-progress
96
:progress="progresses"
107
>Level {{ levels }}</ve-progress
118
>
9+
<h3>Task list</h3>
1210
<ul class="todos">
1311
<!--repeat for each tasks-->
1412
<li v-for="todo in todos" :key="todo.newId" class="todo">

0 commit comments

Comments
 (0)