create a web application for my team, they can create task for devOps team. DeVOps team member take the task ownership and mark it in progress, and then once done mark it is done
Browse filesFiles changed (4)
- README.md+8-5
- index.html+233-19
- script.jsAdded+65
- style.css+22-19
12345678910---title: Devops Taskmaster Proemoji: 🐨colorFrom: bluecolorTo: purplesdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference12345678910111213---title: DevOps TaskMaster Pro 🚀colorFrom: graycolorTo: redemoji: 🐳sdk: staticpinned: falsetags:- deepsite-v3---# Welcome to your new DeepSite project!This project was created with [DeepSite](https://huggingface.co/deepsite).
12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233<!DOCTYPE html><html lang="en" class="light"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>DevOps TaskMaster Pro</title><link rel="stylesheet" href="style.css"><script src="https://cdn.tailwindcss.com"></script><script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script><script src="https://unpkg.com/feather-icons"></script><script>tailwind.config = {theme: {extend: {colors: {primary: {50: '#f0f9ff',100: '#e0f2fe',200: '#bae6fd',300: '#7dd3fc',400: '#38bdf8',500: '#0ea5e9',600: '#0284c7',700: '#0369a1',800: '#075985',900: '#0c4a6e',},secondary: {50: '#f0fdfa',100: '#ccfbf1',200: '#99f6e4',300: '#5eead4',400: '#2dd4bf',500: '#14b8a6',600: '#0d9488',700: '#0f766e',800: '#115e59',900: '#134e4a',}}}}}</script></head><body class="bg-gray-50 dark:bg-gray-900 min-h-screen transition-colors duration-200"><custom-navbar></custom-navbar><main class="container mx-auto px-4 py-8"><div class="flex justify-between items-center mb-8"><h1 class="text-3xl font-bold text-gray-900 dark:text-white">DevOps Task Board</h1><button id="theme-toggle" class="p-2 rounded-full bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200"><i data-feather="moon" class="hidden dark:block"></i><i data-feather="sun" class="dark:hidden"></i></button></div><div class="grid grid-cols-1 md:grid-cols-3 gap-6"><!-- Backlog Column --><div class="bg-gray-100 dark:bg-gray-800 rounded-lg p-4 shadow"><div class="flex justify-between items-center mb-4"><h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Backlog</h2><span class="bg-primary-500 text-white text-sm font-medium px-2.5 py-0.5 rounded-full">3</span></div><div class="space-y-4"><div class="task-card" data-status="backlog" data-id="1"><div class="flex justify-between items-start"><h3 class="font-medium text-gray-900 dark:text-white">Configure CI/CD Pipeline</h3><button class="task-action-btn" data-action="assign"><i data-feather="user-plus" class="w-4 h-4"></i></button></div><p class="text-sm text-gray-600 dark:text-gray-400 mt-2">Set up automated deployment for frontend</p><div class="mt-3 flex justify-between items-center"><span class="text-xs px-2 py-1 bg-secondary-100 dark:bg-secondary-900 text-secondary-800 dark:text-secondary-200 rounded-full">Deployment</span><span class="text-xs text-gray-500">Created: 2 days ago</span></div></div><div class="task-card" data-status="backlog" data-id="2"><div class="flex justify-between items-start"><h3 class="font-medium text-gray-900 dark:text-white">Database Backup Strategy</h3><button class="task-action-btn" data-action="assign"><i data-feather="user-plus" class="w-4 h-4"></i></button></div><p class="text-sm text-gray-600 dark:text-gray-400 mt-2">Implement automated daily backups</p><div class="mt-3 flex justify-between items-center"><span class="text-xs px-2 py-1 bg-secondary-100 dark:bg-secondary-900 text-secondary-800 dark:text-secondary-200 rounded-full">Database</span><span class="text-xs text-gray-500">Created: 1 day ago</span></div></div><div class="task-card" data-status="backlog" data-id="3"><div class="flex justify-between items-start"><h3 class="font-medium text-gray-900 dark:text-white">Monitoring Setup</h3><button class="task-action-btn" data-action="assign"><i data-feather="user-plus" class="w-4 h-4"></i></button></div><p class="text-sm text-gray-600 dark:text-gray-400 mt-2">Configure Prometheus and Grafana</p><div class="mt-3 flex justify-between items-center"><span class="text-xs px-2 py-1 bg-secondary-100 dark:bg-secondary-900 text-secondary-800 dark:text-secondary-200 rounded-full">Monitoring</span><span class="text-xs text-gray-500">Created: 5 hours ago</span></div></div></div><button id="add-task-btn" class="mt-4 w-full py-2 px-4 bg-primary-600 hover:bg-primary-700 text-white rounded-lg flex items-center justify-center gap-2"><i data-feather="plus" class="w-4 h-4"></i>Add Task</button></div><!-- In Progress Column --><div class="bg-gray-100 dark:bg-gray-800 rounded-lg p-4 shadow"><div class="flex justify-between items-center mb-4"><h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">In Progress</h2><span class="bg-primary-500 text-white text-sm font-medium px-2.5 py-0.5 rounded-full">1</span></div><div class="space-y-4"><div class="task-card" data-status="in-progress" data-id="4"><div class="flex justify-between items-start"><h3 class="font-medium text-gray-900 dark:text-white">Kubernetes Cluster Setup</h3><div class="flex gap-2"><button class="task-action-btn" data-action="complete"><i data-feather="check" class="w-4 h-4"></i></button><button class="task-action-btn" data-action="unassign"><i data-feather="user-minus" class="w-4 h-4"></i></button></div></div><p class="text-sm text-gray-600 dark:text-gray-400 mt-2">Configure production cluster with 3 nodes</p><div class="mt-3 flex justify-between items-center"><span class="text-xs px-2 py-1 bg-secondary-100 dark:bg-secondary-900 text-secondary-800 dark:text-secondary-200 rounded-full">Infrastructure</span><div class="flex items-center gap-1"><img src="http://static.photos/technology/200x200/5" class="w-6 h-6 rounded-full" alt="Assignee"><span class="text-xs text-gray-500">Assigned to Alex</span></div></div></div></div></div><!-- Done Column --><div class="bg-gray-100 dark:bg-gray-800 rounded-lg p-4 shadow"><div class="flex justify-between items-center mb-4"><h2 class="text-xl font-semibold text-gray-800 dark:text-gray-200">Done</h2><span class="bg-primary-500 text-white text-sm font-medium px-2.5 py-0.5 rounded-full">2</span></div><div class="space-y-4"><div class="task-card" data-status="done" data-id="5"><div class="flex justify-between items-start"><h3 class="font-medium text-gray-900 dark:text-white">Dockerize Application</h3><button class="task-action-btn" data-action="reopen"><i data-feather="refresh-cw" class="w-4 h-4"></i></button></div><p class="text-sm text-gray-600 dark:text-gray-400 mt-2">Create Dockerfiles for all services</p><div class="mt-3 flex justify-between items-center"><span class="text-xs px-2 py-1 bg-secondary-100 dark:bg-secondary-900 text-secondary-800 dark:text-secondary-200 rounded-full">Containerization</span><div class="flex items-center gap-1"><img src="http://static.photos/technology/200x200/7" class="w-6 h-6 rounded-full" alt="Assignee"><span class="text-xs text-gray-500">Completed by Sam</span></div></div></div><div class="task-card" data-status="done" data-id="6"><div class="flex justify-between items-start"><h3 class="font-medium text-gray-900 dark:text-white">Security Hardening</h3><button class="task-action-btn" data-action="reopen"><i data-feather="refresh-cw" class="w-4 h-4"></i></button></div><p class="text-sm text-gray-600 dark:text-gray-400 mt-2">Implement firewall rules and SSH security</p><div class="mt-3 flex justify-between items-center"><span class="text-xs px-2 py-1 bg-secondary-100 dark:bg-secondary-900 text-secondary-800 dark:text-secondary-200 rounded-full">Security</span><div class="flex items-center gap-1"><img src="http://static.photos/technology/200x200/8" class="w-6 h-6 rounded-full" alt="Assignee"><span class="text-xs text-gray-500">Completed by Jordan</span></div></div></div></div></div></div></main><!-- Add Task Modal --><div id="add-task-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden"><div class="bg-white dark:bg-gray-800 rounded-lg p-6 w-full max-w-md"><div class="flex justify-between items-center mb-4"><h3 class="text-xl font-semibold text-gray-900 dark:text-white">Add New Task</h3><button id="close-modal-btn" class="text-gray-400 hover:text-gray-500 dark:hover:text-gray-300"><i data-feather="x" class="w-6 h-6"></i></button></div><form id="task-form" class="space-y-4"><div><label for="task-title" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">Title</label><input type="text" id="task-title" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:text-white" required></div><div><label for="task-description" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">Description</label><textarea id="task-description" rows="3" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:text-white"></textarea></div><div><label for="task-category" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">Category</label><select id="task-category" class="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm focus:outline-none focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:text-white"><option value="Deployment">Deployment</option><option value="Database">Database</option><option value="Monitoring">Monitoring</option><option value="Infrastructure">Infrastructure</option><option value="Containerization">Containerization</option><option value="Security">Security</option></select></div><div class="flex justify-end gap-3"><button type="button" id="cancel-task-btn" class="px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md text-sm font-medium text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700">Cancel</button><button type="submit" class="px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary-600 hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500">Add Task</button></div></form></div></div><script src="components/navbar.js"></script><script src="script.js"></script><script>feather.replace();</script><script src="https://huggingface.co/deepsite/deepsite-badge.js"></script></body></html>
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465document.addEventListener('DOMContentLoaded', function() { // Theme toggle functionality const themeToggle = document.getElementById('theme-toggle'); const html = document.documentElement; // Check for saved theme preference or use preferred color scheme const savedTheme = localStorage.getItem('theme') || (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'); html.classList.add(savedTheme); themeToggle.addEventListener('click', () => { html.classList.toggle('dark'); const theme = html.classList.contains('dark') ? 'dark' : 'light'; localStorage.setItem('theme', theme); });
// Task modal functionality const addTaskBtn = document.getElementById('add-task-btn'); const addTaskModal = document.getElementById('add-task-modal'); const closeModalBtn = document.getElementById('close-modal-btn'); const cancelTaskBtn = document.getElementById('cancel-task-btn'); const taskForm = document.getElementById('task-form');
addTaskBtn.addEventListener('click', () => { addTaskModal.classList.remove('hidden'); });
[closeModalBtn, cancelTaskBtn].forEach(btn => { btn.addEventListener('click', () => { addTaskModal.classList.add('hidden'); taskForm.reset(); }); });
taskForm.addEventListener('submit', (e) => { e.preventDefault(); const title = document.getElementById('task-title').value; const description = document.getElementById('task-description').value; const category = document.getElementById('task-category').value; // In a real app, you would send this to your backend console.log('New task:', { title, description, category }); // Close modal and reset form addTaskModal.classList.add('hidden'); taskForm.reset(); // Show success message alert('Task added to backlog!'); });
// Task action handlers document.querySelectorAll('.task-action-btn').forEach(btn => { btn.addEventListener('click', function() { const action = this.getAttribute('data-action'); const taskCard = this.closest('.task-card'); const taskId = taskCard.getAttribute('data-id'); switch(action) { case 'assign': // In a real app, you would show a modal to select assignee alert(`Assigning task ${taskId} to a team member`); break; case 'unassign': alert(`Unassigning12345678910111213141516171819202122232425262728body {padding: 2rem;font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;}h1 {font-size: 16px;margin-top: 0;}p {color: rgb(107, 114, 128);font-size: 15px;margin-bottom: 10px;margin-top: 5px;}.card {max-width: 620px;margin: 0 auto;padding: 16px;border: 1px solid lightgray;border-radius: 16px;}.card p:last-child {margin-bottom: 0;}12345678910111213141516171819202122232425262728293031.task-card {@apply bg-white dark:bg-gray-700 p-4 rounded-lg shadow-sm border-l-4 border-primary-500 cursor-move transition-all duration-200 hover:shadow-md;}.task-action-btn {@apply p-1 rounded-full text-gray-500 hover:text-primary-600 dark:hover:text-primary-400 hover:bg-gray-100 dark:hover:bg-gray-600 transition-colors;}/* Drag and drop styling */.task-card.dragging {@apply opacity-50 border-2 border-dashed border-primary-500;}.column.drop-target {@apply bg-primary-50 dark:bg-primary-900/20;}/* Animation for task movement */@keyframes fadeIn {from { opacity: 0; transform: translateY(10px); }to { opacity: 1; transform: translateY(0); }}.task-card {animation: fadeIn 0.3s ease-out;}/* Dark mode toggle transition */.dark-mode-transition * {@apply transition-colors duration-200;}
README.md+8-5
index.html+233-19
script.jsAdded+65
style.css+22-19