Spaces:
Running
Running
Add 2 files
Browse filesFiles changed (2)
- README.md+7-5
- index.html+332-19
12345678910---title: Titleemoji: 🏃colorFrom: purplecolorTo: indigosdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference123456789101112---title: titleemoji: 🐳colorFrom: bluecolorTo: bluesdk: staticpinned: falsetags:- deepsite---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
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>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Simple Kanban Desk</title><script src="https://cdn.tailwindcss.com"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"><style>.kanban-column {min-height: 400px;transition: all 0.3s ease;}.kanban-card {transition: all 0.3s ease;cursor: grab;}.kanban-card:active {cursor: grabbing;}.kanban-card.dragging {opacity: 0.5;transform: scale(1.05);box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);}.kanban-column.highlight {background-color: rgba(219, 234, 254, 0.5);transform: scale(1.02);}.add-card-btn {transition: all 0.2s ease;}.add-card-btn:hover {transform: scale(1.05);}</style></head><body class="bg-gray-50 min-h-screen p-4"><div class="max-w-7xl mx-auto"><header class="mb-8 text-center"><h1 class="text-3xl font-bold text-indigo-700 mb-2">Simple Kanban Desk</h1><p class="text-gray-600">Drag and drop cards between columns to organize your tasks</p></header><div class="grid grid-cols-1 md:grid-cols-3 gap-6"><!-- Backlog Column --><div class="kanban-column bg-white rounded-lg shadow-md p-4" data-column="backlog"><div class="flex justify-between items-center mb-4"><h2 class="text-lg font-semibold text-gray-800"><i class="fas fa-inbox mr-2 text-indigo-500"></i>Backlog</h2><span class="bg-indigo-100 text-indigo-800 text-xs font-medium px-2.5 py-0.5 rounded-full">3</span></div><div class="space-y-3" id="backlog-cards"><div class="kanban-card bg-indigo-50 border-l-4 border-indigo-500 rounded p-3" draggable="true" data-card-id="1"><div class="flex justify-between items-start"><h3 class="font-medium text-gray-800">Design homepage mockup</h3><button class="text-gray-400 hover:text-gray-600"><i class="fas fa-ellipsis-v"></i></button></div><p class="text-sm text-gray-600 mt-1">Create wireframes for the new homepage layout</p><div class="flex items-center mt-2 text-xs text-gray-500"><span class="mr-3"><i class="far fa-calendar mr-1"></i>Jun 15</span><span><i class="far fa-user mr-1"></i>You</span></div></div><div class="kanban-card bg-indigo-50 border-l-4 border-indigo-500 rounded p-3" draggable="true" data-card-id="2"><div class="flex justify-between items-start"><h3 class="font-medium text-gray-800">Research competitors</h3><button class="text-gray-400 hover:text-gray-600"><i class="fas fa-ellipsis-v"></i></button></div><p class="text-sm text-gray-600 mt-1">Analyze top 5 competitors' features</p><div class="flex items-center mt-2 text-xs text-gray-500"><span class="mr-3"><i class="far fa-calendar mr-1"></i>Jun 18</span><span><i class="far fa-user mr-1"></i>Team</span></div></div></div><button class="add-card-btn mt-4 w-full py-2 bg-indigo-100 hover:bg-indigo-200 text-indigo-700 rounded-lg flex items-center justify-center"><i class="fas fa-plus mr-2"></i> Add Card</button></div><!-- In Progress Column --><div class="kanban-column bg-white rounded-lg shadow-md p-4" data-column="in-progress"><div class="flex justify-between items-center mb-4"><h2 class="text-lg font-semibold text-gray-800"><i class="fas fa-spinner mr-2 text-yellow-500"></i>In Progress</h2><span class="bg-yellow-100 text-yellow-800 text-xs font-medium px-2.5 py-0.5 rounded-full">2</span></div><div class="space-y-3" id="in-progress-cards"><div class="kanban-card bg-yellow-50 border-l-4 border-yellow-500 rounded p-3" draggable="true" data-card-id="3"><div class="flex justify-between items-start"><h3 class="font-medium text-gray-800">Implement auth system</h3><button class="text-gray-400 hover:text-gray-600"><i class="fas fa-ellipsis-v"></i></button></div><p class="text-sm text-gray-600 mt-1">JWT authentication for API endpoints</p><div class="flex items-center mt-2 text-xs text-gray-500"><span class="mr-3"><i class="far fa-calendar mr-1"></i>Jun 10</span><span><i class="far fa-user mr-1"></i>Dev</span></div></div></div><button class="add-card-btn mt-4 w-full py-2 bg-yellow-100 hover:bg-yellow-200 text-yellow-700 rounded-lg flex items-center justify-center"><i class="fas fa-plus mr-2"></i> Add Card</button></div><!-- Done Column --><div class="kanban-column bg-white rounded-lg shadow-md p-4" data-column="done"><div class="flex justify-between items-center mb-4"><h2 class="text-lg font-semibold text-gray-800"><i class="fas fa-check-circle mr-2 text-green-500"></i>Done</h2><span class="bg-green-100 text-green-800 text-xs font-medium px-2.5 py-0.5 rounded-full">1</span></div><div class="space-y-3" id="done-cards"><div class="kanban-card bg-green-50 border-l-4 border-green-500 rounded p-3" draggable="true" data-card-id="4"><div class="flex justify-between items-start"><h3 class="font-medium text-gray-800">Project setup</h3><button class="text-gray-400 hover:text-gray-600"><i class="fas fa-ellipsis-v"></i></button></div><p class="text-sm text-gray-600 mt-1">Initialize repo and basic structure</p><div class="flex items-center mt-2 text-xs text-gray-500"><span class="mr-3"><i class="far fa-calendar mr-1"></i>Jun 5</span><span><i class="far fa-user mr-1"></i>You</span></div></div></div><button class="add-card-btn mt-4 w-full py-2 bg-green-100 hover:bg-green-200 text-green-700 rounded-lg flex items-center justify-center"><i class="fas fa-plus mr-2"></i> Add Card</button></div></div></div><!-- Add Card Modal --><div id="add-card-modal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden"><div class="bg-white rounded-lg p-6 w-full max-w-md"><div class="flex justify-between items-center mb-4"><h3 class="text-lg font-semibold">Add New Card</h3><button id="close-modal" class="text-gray-500 hover:text-gray-700"><i class="fas fa-times"></i></button></div><form id="card-form"><div class="mb-4"><label for="card-title" class="block text-sm font-medium text-gray-700 mb-1">Title</label><input type="text" id="card-title" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500" required></div><div class="mb-4"><label for="card-description" class="block text-sm font-medium text-gray-700 mb-1">Description</label><textarea id="card-description" rows="3" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-indigo-500"></textarea></div><div class="flex justify-end space-x-3"><button type="button" id="cancel-card" class="px-4 py-2 text-sm font-medium text-gray-700 bg-gray-100 rounded-md hover:bg-gray-200">Cancel</button><button type="submit" class="px-4 py-2 text-sm font-medium text-white bg-indigo-600 rounded-md hover:bg-indigo-700">Add Card</button></div></form></div></div><script>document.addEventListener('DOMContentLoaded', function() {// Drag and drop functionalityconst cards = document.querySelectorAll('.kanban-card');const columns = document.querySelectorAll('.kanban-column');let draggedCard = null;// Add event listeners for cardscards.forEach(card => {card.addEventListener('dragstart', dragStart);card.addEventListener('dragend', dragEnd);});// Add event listeners for columnscolumns.forEach(column => {column.addEventListener('dragover', dragOver);column.addEventListener('dragenter', dragEnter);column.addEventListener('dragleave', dragLeave);column.addEventListener('drop', dragDrop);});// Add card buttonsconst addCardButtons = document.querySelectorAll('.add-card-btn');const modal = document.getElementById('add-card-modal');const closeModal = document.getElementById('close-modal');const cancelCard = document.getElementById('cancel-card');const cardForm = document.getElementById('card-form');let currentColumn = null;addCardButtons.forEach(button => {button.addEventListener('click', function() {currentColumn = this.closest('.kanban-column');modal.classList.remove('hidden');});});closeModal.addEventListener('click', function() {modal.classList.add('hidden');});cancelCard.addEventListener('click', function() {modal.classList.add('hidden');});cardForm.addEventListener('submit', function(e) {e.preventDefault();const title = document.getElementById('card-title').value;const description = document.getElementById('card-description').value;if (title.trim() === '') return;const cardId = Date.now(); // Unique ID for the cardconst cardHtml = `<div class="kanban-card ${getColumnColorClass(currentColumn)} border-l-4 rounded p-3" draggable="true" data-card-id="${cardId}"><div class="flex justify-between items-start"><h3 class="font-medium text-gray-800">${title}</h3><button class="text-gray-400 hover:text-gray-600"><i class="fas fa-ellipsis-v"></i></button></div>${description ? `<p class="text-sm text-gray-600 mt-1">${description}</p>` : ''}<div class="flex items-center mt-2 text-xs text-gray-500"><span class="mr-3"><i class="far fa-calendar mr-1"></i>Today</span><span><i class="far fa-user mr-1"></i>You</span></div></div>`;const cardsContainer = currentColumn.querySelector('div.space-y-3');cardsContainer.insertAdjacentHTML('beforeend', cardHtml);// Add event listeners to the new cardconst newCard = cardsContainer.lastElementChild;newCard.addEventListener('dragstart', dragStart);newCard.addEventListener('dragend', dragEnd);// Update countupdateColumnCount(currentColumn);// Reset form and close modalcardForm.reset();modal.classList.add('hidden');});// Helper functionsfunction getColumnColorClass(column) {if (column.dataset.column === 'backlog') return 'bg-indigo-50';if (column.dataset.column === 'in-progress') return 'bg-yellow-50';if (column.dataset.column === 'done') return 'bg-green-50';return 'bg-gray-50';}function updateColumnCount(column) {const count = column.querySelector('div.space-y-3').children.length;column.querySelector('span').textContent = count;}// Drag and drop functionsfunction dragStart() {draggedCard = this;setTimeout(() => {this.classList.add('dragging');}, 0);}function dragEnd() {this.classList.remove('dragging');draggedCard = null;}function dragOver(e) {e.preventDefault();}function dragEnter(e) {e.preventDefault();this.classList.add('highlight');}function dragLeave() {this.classList.remove('highlight');}function dragDrop() {this.classList.remove('highlight');if (draggedCard) {const cardsContainer = this.querySelector('div.space-y-3');cardsContainer.appendChild(draggedCard);// Update counts for both source and target columnsconst sourceColumn = document.querySelector('.kanban-card.dragging').closest('.kanban-column');updateColumnCount(sourceColumn);updateColumnCount(this);// Change card color based on columnconst columnType = this.dataset.column;if (columnType === 'backlog') {draggedCard.classList.remove('bg-yellow-50', 'bg-green-50');draggedCard.classList.add('bg-indigo-50');draggedCard.querySelector('.border-l-4').classList.remove('border-yellow-500', 'border-green-500');draggedCard.querySelector('.border-l-4').classList.add('border-indigo-500');} else if (columnType === 'in-progress') {draggedCard.classList.remove('bg-indigo-50', 'bg-green-50');draggedCard.classList.add('bg-yellow-50');draggedCard.querySelector('.border-l-4').classList.remove('border-indigo-500', 'border-green-500');draggedCard.querySelector('.border-l-4').classList.add('border-yellow-500');} else if (columnType === 'done') {draggedCard.classList.remove('bg-indigo-50', 'bg-yellow-50');draggedCard.classList.add('bg-green-50');draggedCard.querySelector('.border-l-4').classList.remove('border-indigo-500', 'border-yellow-500');draggedCard.querySelector('.border-l-4').classList.add('border-green-500');}}}});</script><p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - <a href="https://enzostvs-deepsite.hf.space?remix=filipp2003456/title" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body></html>
README.md+7-5
index.html+332-19