عايزو ييكون قادر علي ادا المهم الحقيقيه ومتكامل في كل الوظاف
Browse files- ai-lab.html +2 -1
- index.html +1 -0
- tasks.html +246 -0
ai-lab.html
CHANGED
|
@@ -56,7 +56,8 @@
|
|
| 56 |
<a href="about.html" class="text-white hover:text-primary-400 transition">About</a>
|
| 57 |
<a href="chat.html" class="text-white hover:text-primary-400 transition">Chat</a>
|
| 58 |
<a href="tech-stack.html" class="text-white hover:text-primary-400 transition">Tech Stack</a>
|
| 59 |
-
|
|
|
|
| 60 |
<button class="md:hidden text-white">
|
| 61 |
<i data-feather="menu"></i>
|
| 62 |
</button>
|
|
|
|
| 56 |
<a href="about.html" class="text-white hover:text-primary-400 transition">About</a>
|
| 57 |
<a href="chat.html" class="text-white hover:text-primary-400 transition">Chat</a>
|
| 58 |
<a href="tech-stack.html" class="text-white hover:text-primary-400 transition">Tech Stack</a>
|
| 59 |
+
<a href="tasks.html" class="text-white hover:text-primary-400 transition">Tasks</a>
|
| 60 |
+
</div>
|
| 61 |
<button class="md:hidden text-white">
|
| 62 |
<i data-feather="menu"></i>
|
| 63 |
</button>
|
index.html
CHANGED
|
@@ -81,6 +81,7 @@
|
|
| 81 |
<a href="about.html" class="text-white hover:text-primary-400 transition">About</a>
|
| 82 |
<a href="chat.html" class="text-white hover:text-primary-400 transition">Chat</a>
|
| 83 |
<a href="tech-stack.html" class="text-white hover:text-primary-400 transition">Tech Stack</a>
|
|
|
|
| 84 |
</div>
|
| 85 |
<button class="md:hidden text-white">
|
| 86 |
<i data-feather="menu"></i>
|
|
|
|
| 81 |
<a href="about.html" class="text-white hover:text-primary-400 transition">About</a>
|
| 82 |
<a href="chat.html" class="text-white hover:text-primary-400 transition">Chat</a>
|
| 83 |
<a href="tech-stack.html" class="text-white hover:text-primary-400 transition">Tech Stack</a>
|
| 84 |
+
<a href="tasks.html" class="text-white hover:text-primary-400 transition">Tasks</a>
|
| 85 |
</div>
|
| 86 |
<button class="md:hidden text-white">
|
| 87 |
<i data-feather="menu"></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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en" class="scroll-smooth">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Tasks | Cosmic Canvas</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
|
| 10 |
+
<style>
|
| 11 |
+
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
|
| 12 |
+
body {
|
| 13 |
+
font-family: 'Space Grotesk', sans-serif;
|
| 14 |
+
}
|
| 15 |
+
#vanta-bg {
|
| 16 |
+
position: absolute;
|
| 17 |
+
top: 0;
|
| 18 |
+
left: 0;
|
| 19 |
+
width: 100%;
|
| 20 |
+
height: 100%;
|
| 21 |
+
z-index: -1;
|
| 22 |
+
}
|
| 23 |
+
.gradient-text {
|
| 24 |
+
background: linear-gradient(90deg, #0ea5e9 0%, #8b5cf6 100%);
|
| 25 |
+
-webkit-background-clip: text;
|
| 26 |
+
background-clip: text;
|
| 27 |
+
color: transparent;
|
| 28 |
+
}
|
| 29 |
+
.task-completed {
|
| 30 |
+
text-decoration: line-through;
|
| 31 |
+
opacity: 0.7;
|
| 32 |
+
}
|
| 33 |
+
</style>
|
| 34 |
+
</head>
|
| 35 |
+
<body class="bg-gray-900 text-white min-h-screen">
|
| 36 |
+
<div id="vanta-bg"></div>
|
| 37 |
+
|
| 38 |
+
<nav class="fixed w-full z-50 bg-gray-900/80 backdrop-blur-md">
|
| 39 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 40 |
+
<div class="flex justify-between h-16 items-center">
|
| 41 |
+
<div class="flex items-center">
|
| 42 |
+
<span class="text-2xl font-bold gradient-text">Cosmic Canvas</span>
|
| 43 |
+
</div>
|
| 44 |
+
<div class="hidden md:flex space-x-8">
|
| 45 |
+
<a href="index.html" class="text-white hover:text-primary-400 transition">Home</a>
|
| 46 |
+
<a href="gallery.html" class="text-white hover:text-primary-400 transition">Gallery</a>
|
| 47 |
+
<a href="ai-lab.html" class="text-white hover:text-primary-400 transition">AI Lab</a>
|
| 48 |
+
<a href="about.html" class="text-white hover:text-primary-400 transition">About</a>
|
| 49 |
+
<a href="chat.html" class="text-white hover:text-primary-400 transition">Chat</a>
|
| 50 |
+
<a href="tech-stack.html" class="text-white hover:text-primary-400 transition">Tech Stack</a>
|
| 51 |
+
<a href="tasks.html" class="text-white hover:text-primary-400 transition font-bold">Tasks</a>
|
| 52 |
+
</div>
|
| 53 |
+
<button class="md:hidden text-white">
|
| 54 |
+
<i data-feather="menu"></i>
|
| 55 |
+
</button>
|
| 56 |
+
</div>
|
| 57 |
+
</div>
|
| 58 |
+
</nav>
|
| 59 |
+
|
| 60 |
+
<main class="pt-24 pb-16 px-4 sm:px-6 lg:px-8">
|
| 61 |
+
<section class="max-w-7xl mx-auto">
|
| 62 |
+
<h1 class="text-5xl md:text-7xl font-bold mb-6 text-center">
|
| 63 |
+
<span class="gradient-text">Task</span> Manager
|
| 64 |
+
</h1>
|
| 65 |
+
|
| 66 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8 mt-12">
|
| 67 |
+
<!-- Task Input -->
|
| 68 |
+
<div class="lg:col-span-3 bg-gray-800/50 backdrop-blur-md p-6 rounded-xl border border-gray-700">
|
| 69 |
+
<div class="flex items-center gap-4">
|
| 70 |
+
<input type="text" id="task-input" class="flex-1 bg-gray-700 text-white px-4 py-3 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500" placeholder="Add a new task...">
|
| 71 |
+
<button onclick="addTask()" class="bg-primary-600 hover:bg-primary-700 text-white px-6 py-3 rounded-lg flex items-center gap-2">
|
| 72 |
+
<i data-feather="plus"></i> Add
|
| 73 |
+
</button>
|
| 74 |
+
</div>
|
| 75 |
+
<div class="flex gap-4 mt-4">
|
| 76 |
+
<select id="task-priority" class="bg-gray-700 text-white px-4 py-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500">
|
| 77 |
+
<option value="low">Low Priority</option>
|
| 78 |
+
<option value="medium" selected>Medium Priority</option>
|
| 79 |
+
<option value="high">High Priority</option>
|
| 80 |
+
</select>
|
| 81 |
+
<input type="date" id="task-due" class="bg-gray-700 text-white px-4 py-2 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500">
|
| 82 |
+
</div>
|
| 83 |
+
</div>
|
| 84 |
+
|
| 85 |
+
<!-- Task Lists -->
|
| 86 |
+
<div class="bg-gray-800/50 backdrop-blur-md p-6 rounded-xl border border-gray-700">
|
| 87 |
+
<h2 class="text-xl font-bold mb-4 flex items-center gap-2">
|
| 88 |
+
<i data-feather="list"></i>
|
| 89 |
+
<span>All Tasks</span>
|
| 90 |
+
<span id="task-count" class="ml-auto bg-primary-600 text-white text-sm px-2 py-1 rounded-full">0</span>
|
| 91 |
+
</h2>
|
| 92 |
+
<div class="space-y-2" id="task-list"></div>
|
| 93 |
+
</div>
|
| 94 |
+
|
| 95 |
+
<div class="bg-gray-800/50 backdrop-blur-md p-6 rounded-xl border border-gray-700">
|
| 96 |
+
<h2 class="text-xl font-bold mb-4 flex items-center gap-2">
|
| 97 |
+
<i data-feather="check-circle"></i>
|
| 98 |
+
<span>Completed</span>
|
| 99 |
+
<span id="completed-count" class="ml-auto bg-secondary-600 text-white text-sm px-2 py-1 rounded-full">0</span>
|
| 100 |
+
</h2>
|
| 101 |
+
<div class="space-y-2" id="completed-list"></div>
|
| 102 |
+
</div>
|
| 103 |
+
|
| 104 |
+
<div class="bg-gray-800/50 backdrop-blur-md p-6 rounded-xl border border-gray-700">
|
| 105 |
+
<h2 class="text-xl font-bold mb-4 flex items-center gap-2">
|
| 106 |
+
<i data-feather="alert-triangle"></i>
|
| 107 |
+
<span>High Priority</span>
|
| 108 |
+
<span id="high-priority-count" class="ml-auto bg-red-600 text-white text-sm px-2 py-1 rounded-full">0</span>
|
| 109 |
+
</h2>
|
| 110 |
+
<div class="space-y-2" id="priority-list"></div>
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
</section>
|
| 114 |
+
</main>
|
| 115 |
+
|
| 116 |
+
<script>
|
| 117 |
+
feather.replace();
|
| 118 |
+
|
| 119 |
+
// Initialize Vanta.js background
|
| 120 |
+
VANTA.GLOBE({
|
| 121 |
+
el: "#vanta-bg",
|
| 122 |
+
mouseControls: true,
|
| 123 |
+
touchControls: true,
|
| 124 |
+
gyroControls: false,
|
| 125 |
+
minHeight: 200.00,
|
| 126 |
+
minWidth: 200.00,
|
| 127 |
+
scale: 1.00,
|
| 128 |
+
scaleMobile: 1.00,
|
| 129 |
+
color: 0x3b82f6,
|
| 130 |
+
backgroundColor: 0x111827
|
| 131 |
+
});
|
| 132 |
+
|
| 133 |
+
// Task Manager Functionality
|
| 134 |
+
let tasks = JSON.parse(localStorage.getItem('tasks')) || [];
|
| 135 |
+
|
| 136 |
+
function renderTasks() {
|
| 137 |
+
const taskList = document.getElementById('task-list');
|
| 138 |
+
const completedList = document.getElementById('completed-list');
|
| 139 |
+
const priorityList = document.getElementById('priority-list');
|
| 140 |
+
|
| 141 |
+
taskList.innerHTML = '';
|
| 142 |
+
completedList.innerHTML = '';
|
| 143 |
+
priorityList.innerHTML = '';
|
| 144 |
+
|
| 145 |
+
let activeCount = 0;
|
| 146 |
+
let completedCount = 0;
|
| 147 |
+
let highPriorityCount = 0;
|
| 148 |
+
|
| 149 |
+
tasks.forEach((task, index) => {
|
| 150 |
+
const taskElement = document.createElement('div');
|
| 151 |
+
taskElement.className = `flex items-center gap-3 p-3 rounded-lg ${task.completed ? 'bg-gray-700/50 task-completed' : 'bg-gray-700'}`;
|
| 152 |
+
|
| 153 |
+
const checkbox = document.createElement('input');
|
| 154 |
+
checkbox.type = 'checkbox';
|
| 155 |
+
checkbox.checked = task.completed;
|
| 156 |
+
checkbox.className = 'rounded text-primary-600 focus:ring-primary-500';
|
| 157 |
+
checkbox.onchange = () => toggleTask(index);
|
| 158 |
+
|
| 159 |
+
const taskText = document.createElement('span');
|
| 160 |
+
taskText.className = 'flex-1';
|
| 161 |
+
taskText.textContent = task.text;
|
| 162 |
+
|
| 163 |
+
const priorityBadge = document.createElement('span');
|
| 164 |
+
priorityBadge.className = `text-xs px-2 py-1 rounded-full ${
|
| 165 |
+
task.priority === 'high' ? 'bg-red-600' :
|
| 166 |
+
task.priority === 'medium' ? 'bg-yellow-600' : 'bg-green-600'
|
| 167 |
+
}`;
|
| 168 |
+
priorityBadge.textContent = task.priority;
|
| 169 |
+
|
| 170 |
+
const deleteBtn = document.createElement('button');
|
| 171 |
+
deleteBtn.className = 'text-red-400 hover:text-red-300';
|
| 172 |
+
deleteBtn.innerHTML = '<i data-feather="trash-2" class="w-4 h-4"></i>';
|
| 173 |
+
deleteBtn.onclick = (e) => {
|
| 174 |
+
e.stopPropagation();
|
| 175 |
+
deleteTask(index);
|
| 176 |
+
};
|
| 177 |
+
|
| 178 |
+
taskElement.appendChild(checkbox);
|
| 179 |
+
taskElement.appendChild(taskText);
|
| 180 |
+
taskElement.appendChild(priorityBadge);
|
| 181 |
+
taskElement.appendChild(deleteBtn);
|
| 182 |
+
|
| 183 |
+
if (task.completed) {
|
| 184 |
+
completedList.appendChild(taskElement);
|
| 185 |
+
completedCount++;
|
| 186 |
+
} else {
|
| 187 |
+
taskList.appendChild(taskElement);
|
| 188 |
+
activeCount++;
|
| 189 |
+
|
| 190 |
+
if (task.priority === 'high') {
|
| 191 |
+
priorityList.appendChild(taskElement.cloneNode(true));
|
| 192 |
+
highPriorityCount++;
|
| 193 |
+
}
|
| 194 |
+
}
|
| 195 |
+
});
|
| 196 |
+
|
| 197 |
+
document.getElementById('task-count').textContent = activeCount;
|
| 198 |
+
document.getElementById('completed-count').textContent = completedCount;
|
| 199 |
+
document.getElementById('high-priority-count').textContent = highPriorityCount;
|
| 200 |
+
|
| 201 |
+
feather.replace();
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
function addTask() {
|
| 205 |
+
const input = document.getElementById('task-input');
|
| 206 |
+
const priority = document.getElementById('task-priority').value;
|
| 207 |
+
const dueDate = document.getElementById('task-due').value;
|
| 208 |
+
|
| 209 |
+
if (input.value.trim() === '') return;
|
| 210 |
+
|
| 211 |
+
tasks.push({
|
| 212 |
+
text: input.value.trim(),
|
| 213 |
+
priority,
|
| 214 |
+
dueDate: dueDate || null,
|
| 215 |
+
completed: false,
|
| 216 |
+
createdAt: new Date().toISOString()
|
| 217 |
+
});
|
| 218 |
+
|
| 219 |
+
input.value = '';
|
| 220 |
+
saveTasks();
|
| 221 |
+
renderTasks();
|
| 222 |
+
}
|
| 223 |
+
|
| 224 |
+
function toggleTask(index) {
|
| 225 |
+
tasks[index].completed = !tasks[index].completed;
|
| 226 |
+
saveTasks();
|
| 227 |
+
renderTasks();
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
function deleteTask(index) {
|
| 231 |
+
if (confirm('Are you sure you want to delete this task?')) {
|
| 232 |
+
tasks.splice(index, 1);
|
| 233 |
+
saveTasks();
|
| 234 |
+
renderTasks();
|
| 235 |
+
}
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
function saveTasks() {
|
| 239 |
+
localStorage.setItem('tasks', JSON.stringify(tasks));
|
| 240 |
+
}
|
| 241 |
+
|
| 242 |
+
// Initial render
|
| 243 |
+
renderTasks();
|
| 244 |
+
</script>
|
| 245 |
+
</body>
|
| 246 |
+
</html>
|