Spaces:
Running
Running
the calendar should allow me to select a date to see more info on the task and based on what date i select to the task i select the dates in between must be high lighted if 15 days gap selected to the selected task date on the calendar it should high light green if 10 days orange if 5 red so between these number the colors are defind as well when i click on a date of the task a small pop up so i can read it out. for report page active it and place a block (comment) on the task if any thing have been an issue for the seeting page active it with option to click on that help and change what ever needs to be
Browse files- calendar.html +75 -4
- components/navbar.js +3 -3
- reports.html +108 -0
- script.js +15 -4
- settings.html +118 -0
- style.css +10 -0
calendar.html
CHANGED
|
@@ -18,9 +18,23 @@
|
|
| 18 |
</div>
|
| 19 |
</main>
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
<custom-footer></custom-footer>
|
| 22 |
|
| 23 |
-
<script src="
|
|
|
|
| 24 |
<script src="components/footer.js"></script>
|
| 25 |
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@5.11.3/main.min.js"></script>
|
| 26 |
<script>
|
|
@@ -38,15 +52,72 @@
|
|
| 38 |
start: task.dueDate || task.createdAt,
|
| 39 |
extendedProps: {
|
| 40 |
description: task.description,
|
| 41 |
-
priority: task.priority
|
|
|
|
| 42 |
},
|
| 43 |
backgroundColor:
|
| 44 |
task.priority === 'high' ? '#ef4444' :
|
| 45 |
task.priority === 'medium' ? '#f59e0b' :
|
| 46 |
'#10b981',
|
| 47 |
borderColor: 'transparent'
|
| 48 |
-
})) || []
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
calendar.render();
|
| 51 |
});
|
| 52 |
</script>
|
|
|
|
| 18 |
</div>
|
| 19 |
</main>
|
| 20 |
|
| 21 |
+
<!-- Task Info Modal -->
|
| 22 |
+
<div class="modal fade" id="taskInfoModal" tabindex="-1" aria-hidden="true">
|
| 23 |
+
<div class="modal-dialog modal-dialog-centered">
|
| 24 |
+
<div class="modal-content">
|
| 25 |
+
<div class="modal-header">
|
| 26 |
+
<h5 class="modal-title">Task Details</h5>
|
| 27 |
+
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
| 28 |
+
</div>
|
| 29 |
+
<div class="modal-body" id="taskInfoContent"></div>
|
| 30 |
+
</div>
|
| 31 |
+
</div>
|
| 32 |
+
</div>
|
| 33 |
+
|
| 34 |
<custom-footer></custom-footer>
|
| 35 |
|
| 36 |
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
| 37 |
+
<script src="components/navbar.js"></script>
|
| 38 |
<script src="components/footer.js"></script>
|
| 39 |
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@5.11.3/main.min.js"></script>
|
| 40 |
<script>
|
|
|
|
| 52 |
start: task.dueDate || task.createdAt,
|
| 53 |
extendedProps: {
|
| 54 |
description: task.description,
|
| 55 |
+
priority: task.priority,
|
| 56 |
+
comments: task.comments || []
|
| 57 |
},
|
| 58 |
backgroundColor:
|
| 59 |
task.priority === 'high' ? '#ef4444' :
|
| 60 |
task.priority === 'medium' ? '#f59e0b' :
|
| 61 |
'#10b981',
|
| 62 |
borderColor: 'transparent'
|
| 63 |
+
})) || [],
|
| 64 |
+
dateClick: function(info) {
|
| 65 |
+
const clickedDate = info.date;
|
| 66 |
+
const tasks = JSON.parse(localStorage.getItem('tasks')) || [];
|
| 67 |
+
const tasksOnDate = tasks.filter(task => {
|
| 68 |
+
const taskDate = task.dueDate ? new Date(task.dueDate) : new Date(task.createdAt);
|
| 69 |
+
return taskDate.toDateString() === clickedDate.toDateString();
|
| 70 |
+
});
|
| 71 |
+
|
| 72 |
+
if (tasksOnDate.length > 0) {
|
| 73 |
+
let content = `<div class="p-4 max-w-xs">`;
|
| 74 |
+
tasksOnDate.forEach(task => {
|
| 75 |
+
const daysDiff = Math.floor((new Date(task.dueDate) - clickedDate) / (1000 * 60 * 60 * 24));
|
| 76 |
+
let highlightColor = '';
|
| 77 |
+
if (daysDiff <= 5) highlightColor = 'bg-red-100';
|
| 78 |
+
else if (daysDiff <= 10) highlightColor = 'bg-orange-100';
|
| 79 |
+
else if (daysDiff <= 15) highlightColor = 'bg-green-100';
|
| 80 |
+
|
| 81 |
+
content += `
|
| 82 |
+
<div class="mb-4 p-3 rounded-lg ${highlightColor}">
|
| 83 |
+
<h3 class="font-bold">${task.title}</h3>
|
| 84 |
+
<p class="text-sm">${task.description || 'No description'}</p>
|
| 85 |
+
${task.comments?.length ? `<div class="mt-2 p-2 bg-gray-100 rounded">
|
| 86 |
+
<p class="text-xs font-medium">Comments:</p>
|
| 87 |
+
${task.comments.map(c => `<p class="text-xs">- ${c}</p>`).join('')}
|
| 88 |
+
</div>` : ''}
|
| 89 |
+
</div>
|
| 90 |
+
`;
|
| 91 |
+
});
|
| 92 |
+
content += `</div>`;
|
| 93 |
+
|
| 94 |
+
new window.bootstrap.Modal(
|
| 95 |
+
document.getElementById('taskInfoModal'),
|
| 96 |
+
{ backdrop: true, keyboard: true }
|
| 97 |
+
).show();
|
| 98 |
+
document.getElementById('taskInfoContent').innerHTML = content;
|
| 99 |
+
}
|
| 100 |
+
},
|
| 101 |
+
dayCellClassNames: function(arg) {
|
| 102 |
+
const tasks = JSON.parse(localStorage.getItem('tasks')) || [];
|
| 103 |
+
const today = new Date(arg.date);
|
| 104 |
+
let classes = [];
|
| 105 |
+
|
| 106 |
+
tasks.forEach(task => {
|
| 107 |
+
if (!task.dueDate) return;
|
| 108 |
+
const taskDate = new Date(task.dueDate);
|
| 109 |
+
const daysDiff = Math.floor((taskDate - today) / (1000 * 60 * 60 * 24));
|
| 110 |
+
|
| 111 |
+
if (daysDiff >= 0 && daysDiff <= 15) {
|
| 112 |
+
if (daysDiff <= 5) classes.push('bg-red-50');
|
| 113 |
+
else if (daysDiff <= 10) classes.push('bg-orange-50');
|
| 114 |
+
else if (daysDiff <= 15) classes.push('bg-green-50');
|
| 115 |
+
}
|
| 116 |
+
});
|
| 117 |
+
|
| 118 |
+
return classes;
|
| 119 |
+
}
|
| 120 |
+
});
|
| 121 |
calendar.render();
|
| 122 |
});
|
| 123 |
</script>
|
components/navbar.js
CHANGED
|
@@ -79,9 +79,9 @@ class CustomNavbar extends HTMLElement {
|
|
| 79 |
<ul class="nav-links">
|
| 80 |
<li><a href="/">Tasks</a></li>
|
| 81 |
<li><a href="/calendar.html" class="active">Calendar</a></li>
|
| 82 |
-
<li><a href="
|
| 83 |
-
|
| 84 |
-
|
| 85 |
<div class="user-avatar">
|
| 86 |
<i data-feather="user"></i>
|
| 87 |
</div>
|
|
|
|
| 79 |
<ul class="nav-links">
|
| 80 |
<li><a href="/">Tasks</a></li>
|
| 81 |
<li><a href="/calendar.html" class="active">Calendar</a></li>
|
| 82 |
+
<li><a href="/reports.html">Reports</a></li>
|
| 83 |
+
<li><a href="/settings.html">Settings</a></li>
|
| 84 |
+
</ul>
|
| 85 |
<div class="user-avatar">
|
| 86 |
<i data-feather="user"></i>
|
| 87 |
</div>
|
reports.html
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Reports | TaskMaster Pro</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
| 10 |
+
</head>
|
| 11 |
+
<body class="bg-gray-50 min-h-screen flex flex-col">
|
| 12 |
+
<custom-navbar></custom-navbar>
|
| 13 |
+
|
| 14 |
+
<main class="flex-1 container mx-auto px-4 py-8">
|
| 15 |
+
<div class="max-w-6xl mx-auto">
|
| 16 |
+
<h1 class="text-3xl font-bold text-gray-800 mb-8">Task Reports</h1>
|
| 17 |
+
|
| 18 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 mb-8">
|
| 19 |
+
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
|
| 20 |
+
<h2 class="text-xl font-semibold mb-4">Task Completion Rate</h2>
|
| 21 |
+
<canvas id="completionChart"></canvas>
|
| 22 |
+
</div>
|
| 23 |
+
<div class="bg-white p-6 rounded-xl shadow-sm border border-gray-100">
|
| 24 |
+
<h2 class="text-xl font-semibold mb-4">Priority Distribution</h2>
|
| 25 |
+
<canvas id="priorityChart"></canvas>
|
| 26 |
+
</div>
|
| 27 |
+
</div>
|
| 28 |
+
|
| 29 |
+
<div class="bg-white rounded-xl shadow-sm border border-gray-100 p-6">
|
| 30 |
+
<h2 class="text-xl font-semibold mb-4">Task Comments</h2>
|
| 31 |
+
<div id="commentsContainer" class="space-y-4">
|
| 32 |
+
<!-- Comments will be loaded here -->
|
| 33 |
+
</div>
|
| 34 |
+
</div>
|
| 35 |
+
</div>
|
| 36 |
+
</main>
|
| 37 |
+
|
| 38 |
+
<custom-footer></custom-footer>
|
| 39 |
+
|
| 40 |
+
<script src="components/navbar.js"></script>
|
| 41 |
+
<script src="components/footer.js"></script>
|
| 42 |
+
<script>
|
| 43 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 44 |
+
const tasks = JSON.parse(localStorage.getItem('tasks')) || [];
|
| 45 |
+
|
| 46 |
+
// Completion chart
|
| 47 |
+
const completed = tasks.filter(t => t.status === 'completed').length;
|
| 48 |
+
const pending = tasks.filter(t => t.status !== 'completed').length;
|
| 49 |
+
|
| 50 |
+
new Chart(document.getElementById('completionChart'), {
|
| 51 |
+
type: 'doughnut',
|
| 52 |
+
data: {
|
| 53 |
+
labels: ['Completed', 'Pending'],
|
| 54 |
+
datasets: [{
|
| 55 |
+
data: [completed, pending],
|
| 56 |
+
backgroundColor: ['#10b981', '#f59e0b'],
|
| 57 |
+
}]
|
| 58 |
+
}
|
| 59 |
+
});
|
| 60 |
+
|
| 61 |
+
// Priority chart
|
| 62 |
+
const high = tasks.filter(t => t.priority === 'high').length;
|
| 63 |
+
const medium = tasks.filter(t => t.priority === 'medium').length;
|
| 64 |
+
const low = tasks.filter(t => t.priority === 'low').length;
|
| 65 |
+
|
| 66 |
+
new Chart(document.getElementById('priorityChart'), {
|
| 67 |
+
type: 'bar',
|
| 68 |
+
data: {
|
| 69 |
+
labels: ['High', 'Medium', 'Low'],
|
| 70 |
+
datasets: [{
|
| 71 |
+
label: 'Tasks by Priority',
|
| 72 |
+
data: [high, medium, low],
|
| 73 |
+
backgroundColor: ['#ef4444', '#f59e0b', '#10b981'],
|
| 74 |
+
}]
|
| 75 |
+
}
|
| 76 |
+
});
|
| 77 |
+
|
| 78 |
+
// Load comments
|
| 79 |
+
const commentsContainer = document.getElementById('commentsContainer');
|
| 80 |
+
const tasksWithComments = tasks.filter(t => t.comments && t.comments.length > 0);
|
| 81 |
+
|
| 82 |
+
if (tasksWithComments.length === 0) {
|
| 83 |
+
commentsContainer.innerHTML = `
|
| 84 |
+
<div class="text-center text-gray-500 py-8">
|
| 85 |
+
<i data-feather="message-square" class="w-12 h-12 mx-auto mb-2"></i>
|
| 86 |
+
<p>No comments found on any tasks.</p>
|
| 87 |
+
</div>
|
| 88 |
+
`;
|
| 89 |
+
} else {
|
| 90 |
+
commentsContainer.innerHTML = tasksWithComments.map(task => `
|
| 91 |
+
<div class="border-b border-gray-100 pb-4 last:border-0">
|
| 92 |
+
<h3 class="font-medium">${task.title}</h3>
|
| 93 |
+
<div class="mt-2 space-y-2">
|
| 94 |
+
${task.comments.map(c => `
|
| 95 |
+
<div class="bg-gray-50 p-3 rounded-lg">
|
| 96 |
+
<p class="text-sm">${c}</p>
|
| 97 |
+
</div>
|
| 98 |
+
`).join('')}
|
| 99 |
+
</div>
|
| 100 |
+
</div>
|
| 101 |
+
`).join('');
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
feather.replace();
|
| 105 |
+
});
|
| 106 |
+
</script>
|
| 107 |
+
</body>
|
| 108 |
+
</html>
|
script.js
CHANGED
|
@@ -74,8 +74,9 @@ class TaskManager {
|
|
| 74 |
priority,
|
| 75 |
dueDate,
|
| 76 |
status: 'pending',
|
| 77 |
-
createdAt: new Date().toISOString()
|
| 78 |
-
|
|
|
|
| 79 |
|
| 80 |
if (taskId) {
|
| 81 |
// Update existing task
|
|
@@ -93,7 +94,6 @@ class TaskManager {
|
|
| 93 |
this.renderTasks();
|
| 94 |
this.updateSummary();
|
| 95 |
}
|
| 96 |
-
|
| 97 |
deleteTask(taskId) {
|
| 98 |
if (confirm('Are you sure you want to delete this task?')) {
|
| 99 |
this.tasks = this.tasks.filter(task => task.id !== taskId);
|
|
@@ -103,7 +103,18 @@ class TaskManager {
|
|
| 103 |
}
|
| 104 |
}
|
| 105 |
|
| 106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
const task = this.tasks.find(t => t.id === taskId);
|
| 108 |
if (task) {
|
| 109 |
task.status = newStatus;
|
|
|
|
| 74 |
priority,
|
| 75 |
dueDate,
|
| 76 |
status: 'pending',
|
| 77 |
+
createdAt: new Date().toISOString(),
|
| 78 |
+
comments: []
|
| 79 |
+
};
|
| 80 |
|
| 81 |
if (taskId) {
|
| 82 |
// Update existing task
|
|
|
|
| 94 |
this.renderTasks();
|
| 95 |
this.updateSummary();
|
| 96 |
}
|
|
|
|
| 97 |
deleteTask(taskId) {
|
| 98 |
if (confirm('Are you sure you want to delete this task?')) {
|
| 99 |
this.tasks = this.tasks.filter(task => task.id !== taskId);
|
|
|
|
| 103 |
}
|
| 104 |
}
|
| 105 |
|
| 106 |
+
addComment(taskId, comment) {
|
| 107 |
+
const task = this.tasks.find(t => t.id === taskId);
|
| 108 |
+
if (task) {
|
| 109 |
+
if (!task.comments) task.comments = [];
|
| 110 |
+
task.comments.push(comment);
|
| 111 |
+
this.saveToLocalStorage();
|
| 112 |
+
this.renderTasks();
|
| 113 |
+
return true;
|
| 114 |
+
}
|
| 115 |
+
return false;
|
| 116 |
+
}
|
| 117 |
+
updateTaskStatus(taskId, newStatus) {
|
| 118 |
const task = this.tasks.find(t => t.id === taskId);
|
| 119 |
if (task) {
|
| 120 |
task.status = newStatus;
|
settings.html
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Settings | TaskMaster Pro</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
</head>
|
| 10 |
+
<body class="bg-gray-50 min-h-screen flex flex-col">
|
| 11 |
+
<custom-navbar></custom-navbar>
|
| 12 |
+
|
| 13 |
+
<main class="flex-1 container mx-auto px-4 py-8">
|
| 14 |
+
<div class="max-w-6xl mx-auto">
|
| 15 |
+
<h1 class="text-3xl font-bold text-gray-800 mb-8">Settings</h1>
|
| 16 |
+
|
| 17 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
| 18 |
+
<div class="md:col-span-2">
|
| 19 |
+
<div class="bg-white rounded-xl shadow-sm border border-gray-100 p-6">
|
| 20 |
+
<h2 class="text-xl font-semibold mb-4">General Settings</h2>
|
| 21 |
+
|
| 22 |
+
<div class="space-y-4">
|
| 23 |
+
<div>
|
| 24 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Theme Color</label>
|
| 25 |
+
<select class="w-full px-3 py-2 border border-gray-300 rounded-md">
|
| 26 |
+
<option>Purple</option>
|
| 27 |
+
<option>Blue</option>
|
| 28 |
+
<option>Green</option>
|
| 29 |
+
<option>Red</option>
|
| 30 |
+
</select>
|
| 31 |
+
</div>
|
| 32 |
+
|
| 33 |
+
<div>
|
| 34 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Default Priority</label>
|
| 35 |
+
<select class="w-full px-3 py-2 border border-gray-300 rounded-md">
|
| 36 |
+
<option>Medium</option>
|
| 37 |
+
<option>High</option>
|
| 38 |
+
<option>Low</option>
|
| 39 |
+
</select>
|
| 40 |
+
</div>
|
| 41 |
+
|
| 42 |
+
<div>
|
| 43 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Notification Settings</label>
|
| 44 |
+
<div class="space-y-2">
|
| 45 |
+
<div class="flex items-center">
|
| 46 |
+
<input type="checkbox" id="emailNotifications" class="mr-2">
|
| 47 |
+
<label for="emailNotifications">Email Notifications</label>
|
| 48 |
+
</div>
|
| 49 |
+
<div class="flex items-center">
|
| 50 |
+
<input type="checkbox" id="browserNotifications" class="mr-2" checked>
|
| 51 |
+
<label for="browserNotifications">Browser Notifications</label>
|
| 52 |
+
</div>
|
| 53 |
+
</div>
|
| 54 |
+
</div>
|
| 55 |
+
</div>
|
| 56 |
+
</div>
|
| 57 |
+
</div>
|
| 58 |
+
|
| 59 |
+
<div>
|
| 60 |
+
<div class="bg-white rounded-xl shadow-sm border border-gray-100 p-6">
|
| 61 |
+
<h2 class="text-xl font-semibold mb-4">Help & Support</h2>
|
| 62 |
+
|
| 63 |
+
<div class="space-y-4">
|
| 64 |
+
<a href="#" class="block p-3 hover:bg-gray-50 rounded-lg transition">
|
| 65 |
+
<h3 class="font-medium flex items-center gap-2">
|
| 66 |
+
<i data-feather="book" class="w-4 h-4"></i>
|
| 67 |
+
Documentation
|
| 68 |
+
</h3>
|
| 69 |
+
</a>
|
| 70 |
+
|
| 71 |
+
<a href="#" class="block p-3 hover:bg-gray-50 rounded-lg transition">
|
| 72 |
+
<h3 class="font-medium flex items-center gap-2">
|
| 73 |
+
<i data-feather="mail" class="w-4 h-4"></i>
|
| 74 |
+
Contact Support
|
| 75 |
+
</h3>
|
| 76 |
+
</a>
|
| 77 |
+
|
| 78 |
+
<a href="#" class="block p-3 hover:bg-gray-50 rounded-lg transition">
|
| 79 |
+
<h3 class="font-medium flex items-center gap-2">
|
| 80 |
+
<i data-feather="info" class="w-4 h-4"></i>
|
| 81 |
+
About TaskMaster
|
| 82 |
+
</h3>
|
| 83 |
+
</a>
|
| 84 |
+
</div>
|
| 85 |
+
</div>
|
| 86 |
+
|
| 87 |
+
<div class="bg-white rounded-xl shadow-sm border border-gray-100 p-6 mt-6">
|
| 88 |
+
<h2 class="text-xl font-semibold mb-4">Data Management</h2>
|
| 89 |
+
|
| 90 |
+
<div class="space-y-3">
|
| 91 |
+
<button class="w-full py-2 px-4 bg-gray-100 hover:bg-gray-200 rounded-lg text-left flex items-center gap-2">
|
| 92 |
+
<i data-feather="download" class="w-4 h-4"></i>
|
| 93 |
+
Export Tasks
|
| 94 |
+
</button>
|
| 95 |
+
|
| 96 |
+
<button class="w-full py-2 px-4 bg-gray-100 hover:bg-gray-200 rounded-lg text-left flex items-center gap-2">
|
| 97 |
+
<i data-feather="upload" class="w-4 h-4"></i>
|
| 98 |
+
Import Tasks
|
| 99 |
+
</button>
|
| 100 |
+
|
| 101 |
+
<button class="w-full py-2 px-4 bg-red-50 hover:bg-red-100 text-red-600 rounded-lg text-left flex items-center gap-2">
|
| 102 |
+
<i data-feather="trash-2" class="w-4 h-4"></i>
|
| 103 |
+
Clear All Data
|
| 104 |
+
</button>
|
| 105 |
+
</div>
|
| 106 |
+
</div>
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
</div>
|
| 110 |
+
</main>
|
| 111 |
+
|
| 112 |
+
<custom-footer></custom-footer>
|
| 113 |
+
|
| 114 |
+
<script src="components/navbar.js"></script>
|
| 115 |
+
<script src="components/footer.js"></script>
|
| 116 |
+
<script src="script.js"></script>
|
| 117 |
+
</body>
|
| 118 |
+
</html>
|
style.css
CHANGED
|
@@ -60,6 +60,16 @@ body {
|
|
| 60 |
.task-card {
|
| 61 |
animation: fadeIn 0.3s ease forwards;
|
| 62 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
/* Responsive adjustments */
|
| 65 |
@media (max-width: 640px) {
|
|
|
|
| 60 |
.task-card {
|
| 61 |
animation: fadeIn 0.3s ease forwards;
|
| 62 |
}
|
| 63 |
+
/* Calendar highlight styles */
|
| 64 |
+
.bg-red-50 {
|
| 65 |
+
background-color: rgba(239, 68, 68, 0.1);
|
| 66 |
+
}
|
| 67 |
+
.bg-orange-50 {
|
| 68 |
+
background-color: rgba(245, 158, 11, 0.1);
|
| 69 |
+
}
|
| 70 |
+
.bg-green-50 {
|
| 71 |
+
background-color: rgba(16, 185, 129, 0.1);
|
| 72 |
+
}
|
| 73 |
|
| 74 |
/* Responsive adjustments */
|
| 75 |
@media (max-width: 640px) {
|