Skip to content

Commit 1bd0fc3

Browse files
committed
feat(ui): update ui of taskview section
-also add hover effect for 'add new project btn'
1 parent 306129b commit 1bd0fc3

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

src/assets/styles.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
--medium-priority: #ffe5b4;
88
--low-priority: #90ee90;
99
--button-color: rgba(57, 46, 46, 0.1);
10+
--button-color-hover: rgba(57, 46, 46, 0.219);
1011
}
1112
/* reset */
1213
*,
@@ -126,6 +127,9 @@ body {
126127
background-color: var(--button-color);
127128
margin-left: 5px;
128129
}
130+
.button-add-project:hover{
131+
background-color: var(--button-color-hover);
132+
}
129133

130134
.add-project-popup {
131135
margin: 10px 5px 10px;
@@ -153,6 +157,18 @@ body {
153157
/* taskview */
154158
.content .taskview {
155159
flex: 4;
160+
padding: 1.2rem;
161+
}
162+
.tasks-wrapper, .new-todo-btn-wrapper{
163+
padding-left: 10px;
164+
}
165+
.new-todo-btn{
166+
width: 100%;
167+
margin-top: 5px;
168+
background-color: var(--button-color);
169+
}
170+
.new-todo-btn:hover{
171+
background-color: var(--button-color-hover);
156172
}
157173
/* The Modal (hidden by default) */
158174
.modal {

src/scripts/Modules/UI.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ export default class UI {
126126

127127
// Create the "Create New ToDo" button
128128
let createNewTodoBtn = document.createElement("div");
129-
createNewTodoBtn.innerHTML = `<button class="new-todo-btn">Create New ToDo item</button>`;
129+
createNewTodoBtn.classList.add("new-todo-btn-wrapper");
130+
createNewTodoBtn.innerHTML = `<button class="new-todo-btn">Add New Task</button>`;
130131
taskviewSection.appendChild(createNewTodoBtn);
131132

132133
// Open the modal when "Create New ToDo" button is clicked

0 commit comments

Comments
 (0)