Spaces:
Running
Running
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Projects - Quantals Collect</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> /* Custom styles */ .project-card { transition: all 0.2s ease; } .project-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); } .priority-dot { width: 8px; height: 8px; border-radius: 50%; } .priority-high { background-color: #ef4444; } .priority-medium { background-color: #f59e0b; } .priority-low { background-color: #10b981; } .status-badge { padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; } .status-active { background-color: #dcfce7; color: #166534; } .status-paused { background-color: #fef3c7; color: #92400e; } .status-completed { background-color: #dbeafe; color: #1e40af; } .status-archived { background-color: #f3f4f6; color: #374151; } .create-project-btn { position: fixed; bottom: 2rem; right: 2rem; z-index: 50; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); } .modal { transition: opacity 0.25s ease; } .modal-backdrop { background-color: rgba(0, 0, 0, 0.5); transition: opacity 0.25s ease; } .tag { transition: all 0.2s ease; } .tag:hover { transform: scale(1.05); } .drag-drop-zone { border: 2px dashed #e5e7eb; transition: all 0.2s ease; } .drag-drop-zone.dragover { border-color: #3b82f6; background-color: #eff6ff; } /* Table styles */ .table-container { overflow-x: auto; } .table-view th { position: sticky; top: 0; background-color: #f9fafb; z-index: 10; } .table-view tr:hover { background-color: #f3f4f6; } </style> </head> <body class="bg-gray-50 font-sans"> <div class="flex h-screen overflow-hidden"> <!-- Sidebar --> <div class="sidebar bg-indigo-800 text-white w-64 flex flex-col"> <div class="p-4 flex items-center space-x-3 border-b border-indigo-700"> <div class="bg-white p-2 rounded-lg"> <i class="fas fa-microscope text-indigo-800 text-xl"></i> </div> <h1 class="text-xl font-bold">Quantals Collect</h1> </div> <nav class="flex-1 p-4 space-y-2"> <a href="dashboard.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white"> <i class="fas fa-home"></i> <span>Dashboard</span> </a> <a href="projects.html" class="flex items-center space-x-3 p-2 rounded-lg bg-indigo-700 text-white"> <i class="fas fa-project-diagram"></i> <span>Projects</span> </a> <a href="participants.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white"> <i class="fas fa-users"></i> <span>Participants</span> </a> <a href="interviews.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white"> <i class="fas fa-microphone"></i> <span>Interviews</span> </a> <a href="notes.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white"> <i class="fas fa-sticky-note"></i> <span>Notes</span> </a> <a href="analysis.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white"> <i class="fas fa-chart-pie"></i> <span>Analysis</span> </a> </nav> <div class="p-4 border-t border-indigo-700"> <a href="settings.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white"> <i class="fas fa-cog"></i> <span>Settings</span> </a> </div> </div> <!-- Main Content --> <div class="flex-1 flex flex-col overflow-hidden"> <!-- Header --> <header class="bg-white shadow-sm p-4"> <div class="flex justify-between items-center"> <div class="flex items-center space-x-4"> <nav class="text-sm"> <ol class="list-none p-0 inline-flex"> <li class="flex items-center"> <a href="dashboard.html" class="text-gray-500 hover:text-gray-700">Dashboard</a> <i class="fas fa-chevron-right text-gray-400 mx-2"></i> </li> <li class="text-gray-700">Projects</li> </ol> </nav> </div> <div class="flex items-center space-x-4"> <button id="viewToggle" class="p-2 rounded-lg hover:bg-gray-100"> <i class="fas fa-th-large text-gray-600"></i> </button> <div class="relative"> <input type="text" placeholder="Search projects..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i> </div> </div> </div> </header> <!-- Main Content Area --> <main class="flex-1 overflow-y-auto p-6"> <div class="max-w-7xl mx-auto"> <!-- Filters --> <div class="mb-6 flex flex-wrap gap-4"> <select class="px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> <option value="">All Status</option> <option value="active">Active</option> <option value="paused">Paused</option> <option value="completed">Completed</option> <option value="archived">Archived</option> </select> <select class="px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> <option value="">All Methodologies</option> <option value="qualitative">Qualitative</option> <option value="quantitative">Quantitative</option> <option value="mixed">Mixed Methods</option> </select> <select class="px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> <option value="">All Team Members</option> <option value="1">John Doe</option> <option value="2">Jane Smith</option> </select> </div> <!-- Grid View --> <div id="gridView" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <!-- Project Card --> <div class="project-card bg-white rounded-lg shadow-sm p-6"> <div class="flex justify-between items-start mb-4"> <div class="flex items-center space-x-2"> <div class="priority-dot priority-high"></div> <h3 class="text-lg font-semibold text-gray-800">Urban Sustainability Study</h3> </div> <div class="flex items-center space-x-2"> <span class="status-badge status-active">Active</span> <button class="p-2 hover:bg-gray-100 rounded-lg"> <i class="fas fa-ellipsis-v text-gray-600"></i> </button> </div> </div> <div class="space-y-4"> <div> <p class="text-sm text-gray-600">Research Questions:</p> <p class="text-sm text-gray-800 line-clamp-2">How do urban residents perceive and interact with green spaces? What factors influence their usage patterns?</p> </div> <div class="flex items-center justify-between"> <div class="flex items-center space-x-2"> <span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">Qualitative</span> <span class="px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full">#Sustainability</span> </div> <div class="flex items-center space-x-2"> <i class="fas fa-users text-gray-400"></i> <span class="text-sm text-gray-600">3 members</span> </div> </div> <div> <div class="flex justify-between text-sm text-gray-600 mb-1"> <span>Progress</span> <span>45%</span> </div> <div class="h-2 bg-gray-200 rounded-full"> <div class="h-2 bg-indigo-600 rounded-full" style="width: 45%"></div> </div> </div> </div> </div> <!-- More Project Cards... --> </div> <!-- Table View (Hidden by default) --> <div id="tableView" class="hidden"> <div class="table-container"> <table class="table-view w-full"> <thead> <tr class="text-left"> <th class="p-4">Project</th> <th class="p-4">Status</th> <th class="p-4">Methodology</th> <th class="p-4">Progress</th> <th class="p-4">Team</th> <th class="p-4">Actions</th> </tr> </thead> <tbody> <tr> <td class="p-4"> <div class="flex items-center space-x-2"> <div class="priority-dot priority-high"></div> <span class="font-medium">Urban Sustainability Study</span> </div> </td> <td class="p-4"> <span class="status-badge status-active">Active</span> </td> <td class="p-4"> <span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">Qualitative</span> </td> <td class="p-4"> <div class="w-32"> <div class="h-2 bg-gray-200 rounded-full"> <div class="h-2 bg-indigo-600 rounded-full" style="width: 45%"></div> </div> </div> </td> <td class="p-4"> <div class="flex -space-x-2"> <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center"> <span class="text-xs font-medium text-indigo-800">JD</span> </div> <div class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center"> <span class="text-xs font-medium text-green-800">JS</span> </div> </div> </td> <td class="p-4"> <button class="p-2 hover:bg-gray-100 rounded-lg"> <i class="fas fa-ellipsis-v text-gray-600"></i> </button> </td> </tr> </tbody> </table> </div> </div> </div> </main> </div> </div> <!-- Create Project Button --> <button class="create-project-btn p-4 bg-indigo-600 text-white rounded-full hover:bg-indigo-700 transition-colors"> <i class="fas fa-plus mr-2"></i> Create Project </button> <!-- Create Project Modal --> <div id="createProjectModal" class="modal hidden fixed inset-0 z-50"> <div class="modal-backdrop absolute inset-0"></div> <div class="relative min-h-screen flex items-center justify-center p-4"> <div class="bg-white rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto"> <div class="p-6 border-b border-gray-200"> <div class="flex justify-between items-center"> <h3 class="text-xl font-semibold text-gray-800">Create New Project</h3> <button class="p-2 hover:bg-gray-100 rounded-lg"> <i class="fas fa-times text-gray-600"></i> </button> </div> </div> <div class="p-6"> <form class="space-y-6"> <!-- Basic Info --> <div> <h4 class="text-lg font-medium text-gray-800 mb-4">Basic Information</h4> <div class="space-y-4"> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Project Title</label> <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" required> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Description</label> <textarea class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" rows="4"></textarea> </div> <div class="grid grid-cols-2 gap-4"> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Start Date</label> <input type="date" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">End Date</label> <input type="date" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> </div> </div> </div> </div> <!-- Research Design --> <div> <h4 class="text-lg font-medium text-gray-800 mb-4">Research Design</h4> <div class="space-y-4"> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Methodology</label> <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> <option value="qualitative">Qualitative</option> <option value="quantitative">Quantitative</option> <option value="mixed">Mixed Methods</option> </select> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Research Questions</label> <div class="space-y-2"> <div class="flex items-center space-x-2"> <input type="text" class="flex-1 px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Enter research question"> <button class="p-2 text-gray-600 hover:text-gray-800"> <i class="fas fa-plus"></i> </button> </div> </div> </div> <div class="flex items-center"> <input type="checkbox" id="ethicsApproval" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> <label for="ethicsApproval" class="ml-2 block text-sm text-gray-700">Ethics approval required</label> </div> </div> </div> <!-- Team Assignment --> <div> <h4 class="text-lg font-medium text-gray-800 mb-4">Team Assignment</h4> <div class="space-y-4"> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Search Team Members</label> <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Search by name or email"> </div> <div class="space-y-2"> <div class="flex items-center justify-between p-2 bg-gray-50 rounded-lg"> <div class="flex items-center space-x-2"> <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center"> <span class="text-xs font-medium text-indigo-800">JD</span> </div> <span class="text-sm">John Doe</span> </div> <select class="px-3 py-1 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> <option value="owner">Owner</option> <option value="editor">Editor</option> <option value="viewer">Viewer</option> </select> </div> </div> </div> </div> <!-- Document Upload --> <div> <h4 class="text-lg font-medium text-gray-800 mb-4">Documents</h4> <div class="drag-drop-zone p-8 text-center rounded-lg"> <i class="fas fa-cloud-upload-alt text-4xl text-gray-400 mb-2"></i> <p class="text-gray-600">Drag and drop files here or click to browse</p> <p class="text-sm text-gray-500 mt-1">Supports PDF, DOCX (max 10MB)</p> </div> </div> </form> </div> <div class="p-6 border-t border-gray-200 flex justify-end space-x-4"> <button class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50">Cancel</button> <button class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">Create Project</button> </div> </div> </div> </div> <script> // View Toggle const viewToggle = document.getElementById('viewToggle'); const gridView = document.getElementById('gridView'); const tableView = document.getElementById('tableView'); let isGridView = true; viewToggle.addEventListener('click', () => { isGridView = !isGridView; gridView.classList.toggle('hidden'); tableView.classList.toggle('hidden'); viewToggle.querySelector('i').classList.toggle('fa-th-large'); viewToggle.querySelector('i').classList.toggle('fa-list'); }); // Create Project Modal const createProjectBtn = document.querySelector('.create-project-btn'); const createProjectModal = document.getElementById('createProjectModal'); const modalBackdrop = createProjectModal.querySelector('.modal-backdrop'); createProjectBtn.addEventListener('click', () => { createProjectModal.classList.remove('hidden'); document.body.style.overflow = 'hidden'; }); function closeModal() { createProjectModal.classList.add('hidden'); document.body.style.overflow = ''; } modalBackdrop.addEventListener('click', closeModal); createProjectModal.querySelector('.fa-times').closest('button').addEventListener('click', closeModal); // Drag and Drop const dragDropZone = document.querySelector('.drag-drop-zone'); ['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => { dragDropZone.addEventListener(eventName, preventDefaults, false); }); function preventDefaults(e) { e.preventDefault(); e.stopPropagation(); } ['dragenter', 'dragover'].forEach(eventName => { dragDropZone.addEventListener(eventName, highlight, false); }); ['dragleave', 'drop'].forEach(eventName => { dragDropZone.addEventListener(eventName, unhighlight, false); }); function highlight(e) { dragDropZone.classList.add('dragover'); } function unhighlight(e) { dragDropZone.classList.remove('dragover'); } dragDropZone.addEventListener('drop', handleDrop, false); function handleDrop(e) { const dt = e.dataTransfer; const files = dt.files; handleFiles(files); } function handleFiles(files) { // Handle file upload logic here console.log('Files to upload:', files); } // Auto-save functionality let saveTimeout; const form = document.querySelector('form'); form.addEventListener('input', () => { clearTimeout(saveTimeout); saveTimeout = setTimeout(() => { // Simulate auto-save console.log('Auto-saving...'); }, 1500); }); // Initialize tooltips and other UI components document.addEventListener('DOMContentLoaded', () => { // Add any initialization code here }); </script> </body> </html> - Initial Deployment
Browse files- index.html +367 -355
- prompts.txt +1 -0
index.html
CHANGED
|
@@ -3,68 +3,82 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
<style>
|
| 10 |
/* Custom styles */
|
| 11 |
-
.
|
| 12 |
-
|
| 13 |
-
position: absolute;
|
| 14 |
-
left: 0;
|
| 15 |
-
top: 0;
|
| 16 |
-
bottom: 0;
|
| 17 |
-
width: 2px;
|
| 18 |
-
background: #e5e7eb;
|
| 19 |
}
|
| 20 |
-
.
|
| 21 |
-
|
|
|
|
| 22 |
}
|
| 23 |
-
.
|
| 24 |
-
|
|
|
|
|
|
|
| 25 |
}
|
| 26 |
-
.
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
}
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
}
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
animation: loading 1.5s infinite;
|
| 38 |
}
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
}
|
| 43 |
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
| 47 |
-
transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.4, 1.1);
|
| 48 |
}
|
| 49 |
-
.
|
| 50 |
-
|
| 51 |
}
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
}
|
| 57 |
-
.
|
| 58 |
-
|
|
|
|
| 59 |
}
|
| 60 |
-
|
| 61 |
-
|
|
|
|
|
|
|
| 62 |
}
|
| 63 |
-
.
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
|
|
|
| 68 |
}
|
| 69 |
</style>
|
| 70 |
</head>
|
|
@@ -80,11 +94,11 @@
|
|
| 80 |
</div>
|
| 81 |
|
| 82 |
<nav class="flex-1 p-4 space-y-2">
|
| 83 |
-
<a href="dashboard.html" class="flex items-center space-x-3 p-2 rounded-lg bg-indigo-700 text-white">
|
| 84 |
<i class="fas fa-home"></i>
|
| 85 |
<span>Dashboard</span>
|
| 86 |
</a>
|
| 87 |
-
<a href="projects.html" class="flex items-center space-x-3 p-2 rounded-lg
|
| 88 |
<i class="fas fa-project-diagram"></i>
|
| 89 |
<span>Projects</span>
|
| 90 |
</a>
|
|
@@ -117,23 +131,27 @@
|
|
| 117 |
<!-- Main Content -->
|
| 118 |
<div class="flex-1 flex flex-col overflow-hidden">
|
| 119 |
<!-- Header -->
|
| 120 |
-
<header class="bg-white shadow-sm p-4
|
| 121 |
-
<div class="flex
|
| 122 |
-
<
|
| 123 |
-
|
| 124 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
</div>
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
<
|
| 130 |
-
<
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center">
|
| 134 |
-
<span class="text-xs font-medium text-indigo-800">RS</span>
|
| 135 |
</div>
|
| 136 |
-
<span class="text-sm">Research Team</span>
|
| 137 |
</div>
|
| 138 |
</div>
|
| 139 |
</header>
|
|
@@ -141,356 +159,350 @@
|
|
| 141 |
<!-- Main Content Area -->
|
| 142 |
<main class="flex-1 overflow-y-auto p-6">
|
| 143 |
<div class="max-w-7xl mx-auto">
|
| 144 |
-
<!--
|
| 145 |
-
<div class="
|
| 146 |
-
<
|
| 147 |
-
<
|
| 148 |
-
<
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
<
|
| 152 |
-
|
| 153 |
-
<
|
| 154 |
-
|
| 155 |
-
<
|
| 156 |
-
<
|
| 157 |
-
|
| 158 |
-
<
|
| 159 |
-
|
| 160 |
-
<
|
| 161 |
-
|
|
|
|
|
|
|
| 162 |
</div>
|
| 163 |
|
| 164 |
-
<!--
|
| 165 |
-
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-
|
| 166 |
-
<!--
|
| 167 |
-
<div class="
|
| 168 |
-
<div class="flex items-
|
| 169 |
-
<div>
|
| 170 |
-
<
|
| 171 |
-
<h3 class="
|
| 172 |
-
</div>
|
| 173 |
-
<div class="p-3 bg-blue-100 rounded-lg">
|
| 174 |
-
<i class="fas fa-project-diagram text-blue-600"></i>
|
| 175 |
-
</div>
|
| 176 |
-
</div>
|
| 177 |
-
<a href="projects.html" class="text-sm text-blue-600 hover:text-blue-700 mt-2 inline-block">View all projects →</a>
|
| 178 |
-
</div>
|
| 179 |
-
|
| 180 |
-
<!-- Total Participants -->
|
| 181 |
-
<div class="summary-card bg-white rounded-lg shadow-sm p-4">
|
| 182 |
-
<div class="flex items-center justify-between">
|
| 183 |
-
<div>
|
| 184 |
-
<p class="text-sm text-gray-600">Total Participants</p>
|
| 185 |
-
<h3 class="summary-number text-2xl font-semibold text-gray-800" data-value="48">0</h3>
|
| 186 |
</div>
|
| 187 |
-
<div class="
|
| 188 |
-
<
|
|
|
|
|
|
|
|
|
|
| 189 |
</div>
|
| 190 |
</div>
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
<!-- Active Interviews -->
|
| 195 |
-
<div class="summary-card bg-white rounded-lg shadow-sm p-4">
|
| 196 |
-
<div class="flex items-center justify-between">
|
| 197 |
<div>
|
| 198 |
-
<p class="text-sm text-gray-600">
|
| 199 |
-
<
|
| 200 |
</div>
|
| 201 |
-
|
| 202 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 203 |
</div>
|
| 204 |
-
|
| 205 |
-
<a href="interviews.html" class="text-sm text-blue-600 hover:text-blue-700 mt-2 inline-block">View active interviews →</a>
|
| 206 |
-
</div>
|
| 207 |
-
|
| 208 |
-
<!-- Storage Usage -->
|
| 209 |
-
<div class="summary-card bg-white rounded-lg shadow-sm p-4">
|
| 210 |
-
<div class="flex items-center justify-between">
|
| 211 |
<div>
|
| 212 |
-
<
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
<
|
|
|
|
|
|
|
| 217 |
</div>
|
| 218 |
</div>
|
| 219 |
-
<div class="mt-2 h-2 bg-gray-200 rounded-full overflow-hidden">
|
| 220 |
-
<div class="storage-meter h-full rounded-full"></div>
|
| 221 |
-
</div>
|
| 222 |
</div>
|
| 223 |
|
| 224 |
-
<!--
|
| 225 |
-
<div class="summary-card bg-white rounded-lg shadow-sm p-4">
|
| 226 |
-
<div class="flex items-center justify-between">
|
| 227 |
-
<div>
|
| 228 |
-
<p class="text-sm text-gray-600">Last Sync</p>
|
| 229 |
-
<h3 class="summary-number text-2xl font-semibold text-gray-800" data-value="2">0</h3>
|
| 230 |
-
</div>
|
| 231 |
-
<div class="p-3 bg-green-100 rounded-lg">
|
| 232 |
-
<i class="fas fa-sync text-green-600"></i>
|
| 233 |
-
</div>
|
| 234 |
-
</div>
|
| 235 |
-
<p class="text-sm text-green-600 mt-2">All systems synced</p>
|
| 236 |
-
</div>
|
| 237 |
</div>
|
| 238 |
|
| 239 |
-
<!--
|
| 240 |
-
<div
|
| 241 |
-
<
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
<
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
</
|
| 259 |
-
<span class="text-xs text-gray-500">10:30 AM</span>
|
| 260 |
</div>
|
| 261 |
-
</
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
<
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
|
|
|
| 271 |
</div>
|
| 272 |
-
<span class="text-xs text-gray-500">9:45 AM</span>
|
| 273 |
</div>
|
| 274 |
-
</
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
<h4 class="font-medium text-purple-800">System Sync</h4>
|
| 283 |
-
<p class="text-sm text-gray-600">All data synchronized successfully</p>
|
| 284 |
</div>
|
| 285 |
-
<span class="text-xs text-gray-500">9:30 AM</span>
|
| 286 |
</div>
|
| 287 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 288 |
</div>
|
| 289 |
</div>
|
| 290 |
</div>
|
| 291 |
</div>
|
| 292 |
|
| 293 |
-
<!--
|
| 294 |
-
<div
|
| 295 |
-
<
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 299 |
</div>
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
<
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
<
|
| 306 |
-
<
|
| 307 |
-
|
| 308 |
-
<p class="text-sm text-gray-500">Urban Sustainability Study</p>
|
| 309 |
-
</div>
|
| 310 |
-
<span class="text-sm font-medium text-red-600">2:00 PM</span>
|
| 311 |
-
</div>
|
| 312 |
-
</div>
|
| 313 |
-
|
| 314 |
-
<div class="p-4 bg-yellow-50 rounded-lg border border-yellow-100">
|
| 315 |
-
<div class="flex justify-between items-start">
|
| 316 |
-
<div>
|
| 317 |
-
<h4 class="font-medium text-yellow-800">Project Deadline</h4>
|
| 318 |
-
<p class="text-sm text-gray-600">Phase 1 Report Due</p>
|
| 319 |
-
<p class="text-sm text-gray-500">Urban Sustainability Study</p>
|
| 320 |
-
</div>
|
| 321 |
-
<span class="text-sm font-medium text-yellow-600">4:00 PM</span>
|
| 322 |
</div>
|
| 323 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 324 |
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 331 |
</div>
|
| 332 |
-
<span class="text-sm
|
| 333 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 334 |
</div>
|
| 335 |
</div>
|
| 336 |
</div>
|
| 337 |
</div>
|
| 338 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 339 |
</div>
|
| 340 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 341 |
</div>
|
| 342 |
</div>
|
| 343 |
|
| 344 |
<script>
|
| 345 |
-
//
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 354 |
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
setTimeout(() => {
|
| 365 |
-
card.classList.remove('loading-skeleton');
|
| 366 |
-
}, 1000);
|
| 367 |
-
});
|
| 368 |
-
}
|
| 369 |
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
const usage = 75; // This would come from an API in a real app
|
| 374 |
-
meter.style.background = `linear-gradient(90deg, #3b82f6 0%, #3b82f6 ${usage}%, #e5e7eb ${usage}%, #e5e7eb 100%)`;
|
| 375 |
}
|
| 376 |
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
simulateLoading();
|
| 380 |
-
updateStorageMeter();
|
| 381 |
-
});
|
| 382 |
|
| 383 |
-
//
|
| 384 |
-
document.
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
ripple.classList.add('absolute', 'bg-white', 'rounded-full', 'animate-ping');
|
| 389 |
-
this.appendChild(ripple);
|
| 390 |
-
setTimeout(() => ripple.remove(), 1000);
|
| 391 |
-
});
|
| 392 |
});
|
| 393 |
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
this.element = element;
|
| 398 |
-
this.targetValue = targetValue;
|
| 399 |
-
this.duration = duration;
|
| 400 |
-
this.currentValue = 0;
|
| 401 |
-
this.startTime = null;
|
| 402 |
-
this.isAnimating = false;
|
| 403 |
-
this.debounceTimeout = null;
|
| 404 |
-
}
|
| 405 |
-
|
| 406 |
-
formatNumber(num) {
|
| 407 |
-
if (num >= 1000) {
|
| 408 |
-
return (num / 1000).toFixed(1) + 'k';
|
| 409 |
-
}
|
| 410 |
-
return Math.round(num).toString();
|
| 411 |
-
}
|
| 412 |
-
|
| 413 |
-
animate() {
|
| 414 |
-
if (this.isAnimating) return;
|
| 415 |
-
if (this.debounceTimeout) clearTimeout(this.debounceTimeout);
|
| 416 |
-
|
| 417 |
-
this.debounceTimeout = setTimeout(() => {
|
| 418 |
-
this.isAnimating = true;
|
| 419 |
-
this.startTime = performance.now();
|
| 420 |
-
this.element.classList.add('animate');
|
| 421 |
-
this.element.closest('.summary-card').classList.add('highlight');
|
| 422 |
-
|
| 423 |
-
const animate = (currentTime) => {
|
| 424 |
-
const elapsed = currentTime - this.startTime;
|
| 425 |
-
const progress = Math.min(elapsed / this.duration, 1);
|
| 426 |
-
|
| 427 |
-
// Cubic bezier easing
|
| 428 |
-
const easeOut = t => 1 - Math.pow(1 - t, 3);
|
| 429 |
-
const easedProgress = easeOut(progress);
|
| 430 |
-
|
| 431 |
-
this.currentValue = this.targetValue * easedProgress;
|
| 432 |
-
this.element.textContent = this.formatNumber(this.currentValue);
|
| 433 |
-
|
| 434 |
-
if (progress < 1) {
|
| 435 |
-
requestAnimationFrame(animate);
|
| 436 |
-
} else {
|
| 437 |
-
this.isAnimating = false;
|
| 438 |
-
this.element.classList.remove('animate');
|
| 439 |
-
this.element.closest('.summary-card').classList.remove('highlight');
|
| 440 |
-
}
|
| 441 |
-
};
|
| 442 |
-
|
| 443 |
-
requestAnimationFrame(animate);
|
| 444 |
-
}, 100);
|
| 445 |
-
}
|
| 446 |
-
|
| 447 |
-
setValue(value, animate = true) {
|
| 448 |
-
this.targetValue = value;
|
| 449 |
-
if (animate) {
|
| 450 |
-
this.animate();
|
| 451 |
-
} else {
|
| 452 |
-
this.element.textContent = this.formatNumber(value);
|
| 453 |
-
}
|
| 454 |
-
}
|
| 455 |
-
|
| 456 |
-
showError() {
|
| 457 |
-
this.element.innerHTML = `
|
| 458 |
-
<span class="error-value">
|
| 459 |
-
<i class="fas fa-exclamation-circle"></i>
|
| 460 |
-
--
|
| 461 |
-
</span>
|
| 462 |
-
`;
|
| 463 |
-
}
|
| 464 |
}
|
| 465 |
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
document.querySelectorAll('.summary-number').forEach(element => {
|
| 469 |
-
const targetValue = parseInt(element.dataset.value);
|
| 470 |
-
if (!isNaN(targetValue)) {
|
| 471 |
-
counters.set(element, new AnimatedCounter(element, targetValue));
|
| 472 |
-
}
|
| 473 |
});
|
| 474 |
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
counters.forEach(counter => counter.animate());
|
| 478 |
});
|
| 479 |
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
const randomValue = Math.floor(Math.random() * 100);
|
| 483 |
-
const randomCounter = Array.from(counters.values())[Math.floor(Math.random() * counters.size)];
|
| 484 |
-
randomCounter.setValue(randomValue);
|
| 485 |
}
|
| 486 |
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 490 |
});
|
| 491 |
|
| 492 |
-
//
|
| 493 |
-
|
|
|
|
|
|
|
| 494 |
</script>
|
| 495 |
<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://deepsite.hf.co/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://deepsite.hf.co" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://deepsite.hf.co?remix=dataquantals/quantals-collect" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 496 |
</html>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Projects - Quantals Collect</title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
<style>
|
| 10 |
/* Custom styles */
|
| 11 |
+
.project-card {
|
| 12 |
+
transition: all 0.2s ease;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
}
|
| 14 |
+
.project-card:hover {
|
| 15 |
+
transform: translateY(-2px);
|
| 16 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
| 17 |
}
|
| 18 |
+
.priority-dot {
|
| 19 |
+
width: 8px;
|
| 20 |
+
height: 8px;
|
| 21 |
+
border-radius: 50%;
|
| 22 |
}
|
| 23 |
+
.priority-high { background-color: #ef4444; }
|
| 24 |
+
.priority-medium { background-color: #f59e0b; }
|
| 25 |
+
.priority-low { background-color: #10b981; }
|
| 26 |
+
|
| 27 |
+
.status-badge {
|
| 28 |
+
padding: 0.25rem 0.75rem;
|
| 29 |
+
border-radius: 9999px;
|
| 30 |
+
font-size: 0.75rem;
|
| 31 |
+
font-weight: 500;
|
| 32 |
}
|
| 33 |
+
.status-active { background-color: #dcfce7; color: #166534; }
|
| 34 |
+
.status-paused { background-color: #fef3c7; color: #92400e; }
|
| 35 |
+
.status-completed { background-color: #dbeafe; color: #1e40af; }
|
| 36 |
+
.status-archived { background-color: #f3f4f6; color: #374151; }
|
| 37 |
+
|
| 38 |
+
.create-project-btn {
|
| 39 |
+
position: fixed;
|
| 40 |
+
bottom: 2rem;
|
| 41 |
+
right: 2rem;
|
| 42 |
+
z-index: 50;
|
| 43 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
| 44 |
}
|
| 45 |
+
|
| 46 |
+
.modal {
|
| 47 |
+
transition: opacity 0.25s ease;
|
|
|
|
| 48 |
}
|
| 49 |
+
.modal-backdrop {
|
| 50 |
+
background-color: rgba(0, 0, 0, 0.5);
|
| 51 |
+
transition: opacity 0.25s ease;
|
| 52 |
}
|
| 53 |
|
| 54 |
+
.tag {
|
| 55 |
+
transition: all 0.2s ease;
|
|
|
|
|
|
|
| 56 |
}
|
| 57 |
+
.tag:hover {
|
| 58 |
+
transform: scale(1.05);
|
| 59 |
}
|
| 60 |
+
|
| 61 |
+
.drag-drop-zone {
|
| 62 |
+
border: 2px dashed #e5e7eb;
|
| 63 |
+
transition: all 0.2s ease;
|
| 64 |
}
|
| 65 |
+
.drag-drop-zone.dragover {
|
| 66 |
+
border-color: #3b82f6;
|
| 67 |
+
background-color: #eff6ff;
|
| 68 |
}
|
| 69 |
+
|
| 70 |
+
/* Table styles */
|
| 71 |
+
.table-container {
|
| 72 |
+
overflow-x: auto;
|
| 73 |
}
|
| 74 |
+
.table-view th {
|
| 75 |
+
position: sticky;
|
| 76 |
+
top: 0;
|
| 77 |
+
background-color: #f9fafb;
|
| 78 |
+
z-index: 10;
|
| 79 |
+
}
|
| 80 |
+
.table-view tr:hover {
|
| 81 |
+
background-color: #f3f4f6;
|
| 82 |
}
|
| 83 |
</style>
|
| 84 |
</head>
|
|
|
|
| 94 |
</div>
|
| 95 |
|
| 96 |
<nav class="flex-1 p-4 space-y-2">
|
| 97 |
+
<a href="dashboard.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
|
| 98 |
<i class="fas fa-home"></i>
|
| 99 |
<span>Dashboard</span>
|
| 100 |
</a>
|
| 101 |
+
<a href="projects.html" class="flex items-center space-x-3 p-2 rounded-lg bg-indigo-700 text-white">
|
| 102 |
<i class="fas fa-project-diagram"></i>
|
| 103 |
<span>Projects</span>
|
| 104 |
</a>
|
|
|
|
| 131 |
<!-- Main Content -->
|
| 132 |
<div class="flex-1 flex flex-col overflow-hidden">
|
| 133 |
<!-- Header -->
|
| 134 |
+
<header class="bg-white shadow-sm p-4">
|
| 135 |
+
<div class="flex justify-between items-center">
|
| 136 |
+
<div class="flex items-center space-x-4">
|
| 137 |
+
<nav class="text-sm">
|
| 138 |
+
<ol class="list-none p-0 inline-flex">
|
| 139 |
+
<li class="flex items-center">
|
| 140 |
+
<a href="dashboard.html" class="text-gray-500 hover:text-gray-700">Dashboard</a>
|
| 141 |
+
<i class="fas fa-chevron-right text-gray-400 mx-2"></i>
|
| 142 |
+
</li>
|
| 143 |
+
<li class="text-gray-700">Projects</li>
|
| 144 |
+
</ol>
|
| 145 |
+
</nav>
|
| 146 |
</div>
|
| 147 |
+
<div class="flex items-center space-x-4">
|
| 148 |
+
<button id="viewToggle" class="p-2 rounded-lg hover:bg-gray-100">
|
| 149 |
+
<i class="fas fa-th-large text-gray-600"></i>
|
| 150 |
+
</button>
|
| 151 |
+
<div class="relative">
|
| 152 |
+
<input type="text" placeholder="Search projects..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 153 |
+
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
|
|
|
|
|
|
|
| 154 |
</div>
|
|
|
|
| 155 |
</div>
|
| 156 |
</div>
|
| 157 |
</header>
|
|
|
|
| 159 |
<!-- Main Content Area -->
|
| 160 |
<main class="flex-1 overflow-y-auto p-6">
|
| 161 |
<div class="max-w-7xl mx-auto">
|
| 162 |
+
<!-- Filters -->
|
| 163 |
+
<div class="mb-6 flex flex-wrap gap-4">
|
| 164 |
+
<select class="px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 165 |
+
<option value="">All Status</option>
|
| 166 |
+
<option value="active">Active</option>
|
| 167 |
+
<option value="paused">Paused</option>
|
| 168 |
+
<option value="completed">Completed</option>
|
| 169 |
+
<option value="archived">Archived</option>
|
| 170 |
+
</select>
|
| 171 |
+
<select class="px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 172 |
+
<option value="">All Methodologies</option>
|
| 173 |
+
<option value="qualitative">Qualitative</option>
|
| 174 |
+
<option value="quantitative">Quantitative</option>
|
| 175 |
+
<option value="mixed">Mixed Methods</option>
|
| 176 |
+
</select>
|
| 177 |
+
<select class="px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 178 |
+
<option value="">All Team Members</option>
|
| 179 |
+
<option value="1">John Doe</option>
|
| 180 |
+
<option value="2">Jane Smith</option>
|
| 181 |
+
</select>
|
| 182 |
</div>
|
| 183 |
|
| 184 |
+
<!-- Grid View -->
|
| 185 |
+
<div id="gridView" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
| 186 |
+
<!-- Project Card -->
|
| 187 |
+
<div class="project-card bg-white rounded-lg shadow-sm p-6">
|
| 188 |
+
<div class="flex justify-between items-start mb-4">
|
| 189 |
+
<div class="flex items-center space-x-2">
|
| 190 |
+
<div class="priority-dot priority-high"></div>
|
| 191 |
+
<h3 class="text-lg font-semibold text-gray-800">Urban Sustainability Study</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 192 |
</div>
|
| 193 |
+
<div class="flex items-center space-x-2">
|
| 194 |
+
<span class="status-badge status-active">Active</span>
|
| 195 |
+
<button class="p-2 hover:bg-gray-100 rounded-lg">
|
| 196 |
+
<i class="fas fa-ellipsis-v text-gray-600"></i>
|
| 197 |
+
</button>
|
| 198 |
</div>
|
| 199 |
</div>
|
| 200 |
+
|
| 201 |
+
<div class="space-y-4">
|
|
|
|
|
|
|
|
|
|
|
|
|
| 202 |
<div>
|
| 203 |
+
<p class="text-sm text-gray-600">Research Questions:</p>
|
| 204 |
+
<p class="text-sm text-gray-800 line-clamp-2">How do urban residents perceive and interact with green spaces? What factors influence their usage patterns?</p>
|
| 205 |
</div>
|
| 206 |
+
|
| 207 |
+
<div class="flex items-center justify-between">
|
| 208 |
+
<div class="flex items-center space-x-2">
|
| 209 |
+
<span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">Qualitative</span>
|
| 210 |
+
<span class="px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full">#Sustainability</span>
|
| 211 |
+
</div>
|
| 212 |
+
<div class="flex items-center space-x-2">
|
| 213 |
+
<i class="fas fa-users text-gray-400"></i>
|
| 214 |
+
<span class="text-sm text-gray-600">3 members</span>
|
| 215 |
+
</div>
|
| 216 |
</div>
|
| 217 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 218 |
<div>
|
| 219 |
+
<div class="flex justify-between text-sm text-gray-600 mb-1">
|
| 220 |
+
<span>Progress</span>
|
| 221 |
+
<span>45%</span>
|
| 222 |
+
</div>
|
| 223 |
+
<div class="h-2 bg-gray-200 rounded-full">
|
| 224 |
+
<div class="h-2 bg-indigo-600 rounded-full" style="width: 45%"></div>
|
| 225 |
+
</div>
|
| 226 |
</div>
|
| 227 |
</div>
|
|
|
|
|
|
|
|
|
|
| 228 |
</div>
|
| 229 |
|
| 230 |
+
<!-- More Project Cards... -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 231 |
</div>
|
| 232 |
|
| 233 |
+
<!-- Table View (Hidden by default) -->
|
| 234 |
+
<div id="tableView" class="hidden">
|
| 235 |
+
<div class="table-container">
|
| 236 |
+
<table class="table-view w-full">
|
| 237 |
+
<thead>
|
| 238 |
+
<tr class="text-left">
|
| 239 |
+
<th class="p-4">Project</th>
|
| 240 |
+
<th class="p-4">Status</th>
|
| 241 |
+
<th class="p-4">Methodology</th>
|
| 242 |
+
<th class="p-4">Progress</th>
|
| 243 |
+
<th class="p-4">Team</th>
|
| 244 |
+
<th class="p-4">Actions</th>
|
| 245 |
+
</tr>
|
| 246 |
+
</thead>
|
| 247 |
+
<tbody>
|
| 248 |
+
<tr>
|
| 249 |
+
<td class="p-4">
|
| 250 |
+
<div class="flex items-center space-x-2">
|
| 251 |
+
<div class="priority-dot priority-high"></div>
|
| 252 |
+
<span class="font-medium">Urban Sustainability Study</span>
|
|
|
|
| 253 |
</div>
|
| 254 |
+
</td>
|
| 255 |
+
<td class="p-4">
|
| 256 |
+
<span class="status-badge status-active">Active</span>
|
| 257 |
+
</td>
|
| 258 |
+
<td class="p-4">
|
| 259 |
+
<span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">Qualitative</span>
|
| 260 |
+
</td>
|
| 261 |
+
<td class="p-4">
|
| 262 |
+
<div class="w-32">
|
| 263 |
+
<div class="h-2 bg-gray-200 rounded-full">
|
| 264 |
+
<div class="h-2 bg-indigo-600 rounded-full" style="width: 45%"></div>
|
| 265 |
</div>
|
|
|
|
| 266 |
</div>
|
| 267 |
+
</td>
|
| 268 |
+
<td class="p-4">
|
| 269 |
+
<div class="flex -space-x-2">
|
| 270 |
+
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center">
|
| 271 |
+
<span class="text-xs font-medium text-indigo-800">JD</span>
|
| 272 |
+
</div>
|
| 273 |
+
<div class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center">
|
| 274 |
+
<span class="text-xs font-medium text-green-800">JS</span>
|
|
|
|
|
|
|
| 275 |
</div>
|
|
|
|
| 276 |
</div>
|
| 277 |
+
</td>
|
| 278 |
+
<td class="p-4">
|
| 279 |
+
<button class="p-2 hover:bg-gray-100 rounded-lg">
|
| 280 |
+
<i class="fas fa-ellipsis-v text-gray-600"></i>
|
| 281 |
+
</button>
|
| 282 |
+
</td>
|
| 283 |
+
</tr>
|
| 284 |
+
</tbody>
|
| 285 |
+
</table>
|
| 286 |
+
</div>
|
| 287 |
+
</div>
|
| 288 |
+
</div>
|
| 289 |
+
</main>
|
| 290 |
+
</div>
|
| 291 |
+
</div>
|
| 292 |
+
|
| 293 |
+
<!-- Create Project Button -->
|
| 294 |
+
<button class="create-project-btn p-4 bg-indigo-600 text-white rounded-full hover:bg-indigo-700 transition-colors">
|
| 295 |
+
<i class="fas fa-plus mr-2"></i>
|
| 296 |
+
Create Project
|
| 297 |
+
</button>
|
| 298 |
+
|
| 299 |
+
<!-- Create Project Modal -->
|
| 300 |
+
<div id="createProjectModal" class="modal hidden fixed inset-0 z-50">
|
| 301 |
+
<div class="modal-backdrop absolute inset-0"></div>
|
| 302 |
+
<div class="relative min-h-screen flex items-center justify-center p-4">
|
| 303 |
+
<div class="bg-white rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto">
|
| 304 |
+
<div class="p-6 border-b border-gray-200">
|
| 305 |
+
<div class="flex justify-between items-center">
|
| 306 |
+
<h3 class="text-xl font-semibold text-gray-800">Create New Project</h3>
|
| 307 |
+
<button class="p-2 hover:bg-gray-100 rounded-lg">
|
| 308 |
+
<i class="fas fa-times text-gray-600"></i>
|
| 309 |
+
</button>
|
| 310 |
+
</div>
|
| 311 |
+
</div>
|
| 312 |
+
|
| 313 |
+
<div class="p-6">
|
| 314 |
+
<form class="space-y-6">
|
| 315 |
+
<!-- Basic Info -->
|
| 316 |
+
<div>
|
| 317 |
+
<h4 class="text-lg font-medium text-gray-800 mb-4">Basic Information</h4>
|
| 318 |
+
<div class="space-y-4">
|
| 319 |
+
<div>
|
| 320 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Project Title</label>
|
| 321 |
+
<input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" required>
|
| 322 |
+
</div>
|
| 323 |
+
<div>
|
| 324 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Description</label>
|
| 325 |
+
<textarea class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" rows="4"></textarea>
|
| 326 |
+
</div>
|
| 327 |
+
<div class="grid grid-cols-2 gap-4">
|
| 328 |
+
<div>
|
| 329 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Start Date</label>
|
| 330 |
+
<input type="date" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 331 |
+
</div>
|
| 332 |
+
<div>
|
| 333 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">End Date</label>
|
| 334 |
+
<input type="date" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 335 |
</div>
|
| 336 |
</div>
|
| 337 |
</div>
|
| 338 |
</div>
|
| 339 |
|
| 340 |
+
<!-- Research Design -->
|
| 341 |
+
<div>
|
| 342 |
+
<h4 class="text-lg font-medium text-gray-800 mb-4">Research Design</h4>
|
| 343 |
+
<div class="space-y-4">
|
| 344 |
+
<div>
|
| 345 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Methodology</label>
|
| 346 |
+
<select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 347 |
+
<option value="qualitative">Qualitative</option>
|
| 348 |
+
<option value="quantitative">Quantitative</option>
|
| 349 |
+
<option value="mixed">Mixed Methods</option>
|
| 350 |
+
</select>
|
| 351 |
</div>
|
| 352 |
+
<div>
|
| 353 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Research Questions</label>
|
| 354 |
+
<div class="space-y-2">
|
| 355 |
+
<div class="flex items-center space-x-2">
|
| 356 |
+
<input type="text" class="flex-1 px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Enter research question">
|
| 357 |
+
<button class="p-2 text-gray-600 hover:text-gray-800">
|
| 358 |
+
<i class="fas fa-plus"></i>
|
| 359 |
+
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 360 |
</div>
|
| 361 |
</div>
|
| 362 |
+
</div>
|
| 363 |
+
<div class="flex items-center">
|
| 364 |
+
<input type="checkbox" id="ethicsApproval" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 365 |
+
<label for="ethicsApproval" class="ml-2 block text-sm text-gray-700">Ethics approval required</label>
|
| 366 |
+
</div>
|
| 367 |
+
</div>
|
| 368 |
+
</div>
|
| 369 |
|
| 370 |
+
<!-- Team Assignment -->
|
| 371 |
+
<div>
|
| 372 |
+
<h4 class="text-lg font-medium text-gray-800 mb-4">Team Assignment</h4>
|
| 373 |
+
<div class="space-y-4">
|
| 374 |
+
<div>
|
| 375 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Search Team Members</label>
|
| 376 |
+
<input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Search by name or email">
|
| 377 |
+
</div>
|
| 378 |
+
<div class="space-y-2">
|
| 379 |
+
<div class="flex items-center justify-between p-2 bg-gray-50 rounded-lg">
|
| 380 |
+
<div class="flex items-center space-x-2">
|
| 381 |
+
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center">
|
| 382 |
+
<span class="text-xs font-medium text-indigo-800">JD</span>
|
| 383 |
</div>
|
| 384 |
+
<span class="text-sm">John Doe</span>
|
| 385 |
</div>
|
| 386 |
+
<select class="px-3 py-1 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 387 |
+
<option value="owner">Owner</option>
|
| 388 |
+
<option value="editor">Editor</option>
|
| 389 |
+
<option value="viewer">Viewer</option>
|
| 390 |
+
</select>
|
| 391 |
</div>
|
| 392 |
</div>
|
| 393 |
</div>
|
| 394 |
</div>
|
| 395 |
+
|
| 396 |
+
<!-- Document Upload -->
|
| 397 |
+
<div>
|
| 398 |
+
<h4 class="text-lg font-medium text-gray-800 mb-4">Documents</h4>
|
| 399 |
+
<div class="drag-drop-zone p-8 text-center rounded-lg">
|
| 400 |
+
<i class="fas fa-cloud-upload-alt text-4xl text-gray-400 mb-2"></i>
|
| 401 |
+
<p class="text-gray-600">Drag and drop files here or click to browse</p>
|
| 402 |
+
<p class="text-sm text-gray-500 mt-1">Supports PDF, DOCX (max 10MB)</p>
|
| 403 |
+
</div>
|
| 404 |
+
</div>
|
| 405 |
+
</form>
|
| 406 |
</div>
|
| 407 |
+
|
| 408 |
+
<div class="p-6 border-t border-gray-200 flex justify-end space-x-4">
|
| 409 |
+
<button class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50">Cancel</button>
|
| 410 |
+
<button class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">Create Project</button>
|
| 411 |
+
</div>
|
| 412 |
+
</div>
|
| 413 |
</div>
|
| 414 |
</div>
|
| 415 |
|
| 416 |
<script>
|
| 417 |
+
// View Toggle
|
| 418 |
+
const viewToggle = document.getElementById('viewToggle');
|
| 419 |
+
const gridView = document.getElementById('gridView');
|
| 420 |
+
const tableView = document.getElementById('tableView');
|
| 421 |
+
let isGridView = true;
|
| 422 |
+
|
| 423 |
+
viewToggle.addEventListener('click', () => {
|
| 424 |
+
isGridView = !isGridView;
|
| 425 |
+
gridView.classList.toggle('hidden');
|
| 426 |
+
tableView.classList.toggle('hidden');
|
| 427 |
+
viewToggle.querySelector('i').classList.toggle('fa-th-large');
|
| 428 |
+
viewToggle.querySelector('i').classList.toggle('fa-list');
|
| 429 |
+
});
|
| 430 |
|
| 431 |
+
// Create Project Modal
|
| 432 |
+
const createProjectBtn = document.querySelector('.create-project-btn');
|
| 433 |
+
const createProjectModal = document.getElementById('createProjectModal');
|
| 434 |
+
const modalBackdrop = createProjectModal.querySelector('.modal-backdrop');
|
| 435 |
+
|
| 436 |
+
createProjectBtn.addEventListener('click', () => {
|
| 437 |
+
createProjectModal.classList.remove('hidden');
|
| 438 |
+
document.body.style.overflow = 'hidden';
|
| 439 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 440 |
|
| 441 |
+
function closeModal() {
|
| 442 |
+
createProjectModal.classList.add('hidden');
|
| 443 |
+
document.body.style.overflow = '';
|
|
|
|
|
|
|
| 444 |
}
|
| 445 |
|
| 446 |
+
modalBackdrop.addEventListener('click', closeModal);
|
| 447 |
+
createProjectModal.querySelector('.fa-times').closest('button').addEventListener('click', closeModal);
|
|
|
|
|
|
|
|
|
|
| 448 |
|
| 449 |
+
// Drag and Drop
|
| 450 |
+
const dragDropZone = document.querySelector('.drag-drop-zone');
|
| 451 |
+
|
| 452 |
+
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
|
| 453 |
+
dragDropZone.addEventListener(eventName, preventDefaults, false);
|
|
|
|
|
|
|
|
|
|
|
|
|
| 454 |
});
|
| 455 |
|
| 456 |
+
function preventDefaults(e) {
|
| 457 |
+
e.preventDefault();
|
| 458 |
+
e.stopPropagation();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 459 |
}
|
| 460 |
|
| 461 |
+
['dragenter', 'dragover'].forEach(eventName => {
|
| 462 |
+
dragDropZone.addEventListener(eventName, highlight, false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 463 |
});
|
| 464 |
|
| 465 |
+
['dragleave', 'drop'].forEach(eventName => {
|
| 466 |
+
dragDropZone.addEventListener(eventName, unhighlight, false);
|
|
|
|
| 467 |
});
|
| 468 |
|
| 469 |
+
function highlight(e) {
|
| 470 |
+
dragDropZone.classList.add('dragover');
|
|
|
|
|
|
|
|
|
|
| 471 |
}
|
| 472 |
|
| 473 |
+
function unhighlight(e) {
|
| 474 |
+
dragDropZone.classList.remove('dragover');
|
| 475 |
+
}
|
| 476 |
+
|
| 477 |
+
dragDropZone.addEventListener('drop', handleDrop, false);
|
| 478 |
+
|
| 479 |
+
function handleDrop(e) {
|
| 480 |
+
const dt = e.dataTransfer;
|
| 481 |
+
const files = dt.files;
|
| 482 |
+
handleFiles(files);
|
| 483 |
+
}
|
| 484 |
+
|
| 485 |
+
function handleFiles(files) {
|
| 486 |
+
// Handle file upload logic here
|
| 487 |
+
console.log('Files to upload:', files);
|
| 488 |
+
}
|
| 489 |
+
|
| 490 |
+
// Auto-save functionality
|
| 491 |
+
let saveTimeout;
|
| 492 |
+
const form = document.querySelector('form');
|
| 493 |
+
|
| 494 |
+
form.addEventListener('input', () => {
|
| 495 |
+
clearTimeout(saveTimeout);
|
| 496 |
+
saveTimeout = setTimeout(() => {
|
| 497 |
+
// Simulate auto-save
|
| 498 |
+
console.log('Auto-saving...');
|
| 499 |
+
}, 1500);
|
| 500 |
});
|
| 501 |
|
| 502 |
+
// Initialize tooltips and other UI components
|
| 503 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 504 |
+
// Add any initialization code here
|
| 505 |
+
});
|
| 506 |
</script>
|
| 507 |
<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://deepsite.hf.co/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://deepsite.hf.co" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://deepsite.hf.co?remix=dataquantals/quantals-collect" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 508 |
</html>
|
prompts.txt
CHANGED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Projects - Quantals Collect</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> /* Custom styles */ .project-card { transition: all 0.2s ease; } .project-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); } .priority-dot { width: 8px; height: 8px; border-radius: 50%; } .priority-high { background-color: #ef4444; } .priority-medium { background-color: #f59e0b; } .priority-low { background-color: #10b981; } .status-badge { padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; } .status-active { background-color: #dcfce7; color: #166534; } .status-paused { background-color: #fef3c7; color: #92400e; } .status-completed { background-color: #dbeafe; color: #1e40af; } .status-archived { background-color: #f3f4f6; color: #374151; } .create-project-btn { position: fixed; bottom: 2rem; right: 2rem; z-index: 50; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); } .modal { transition: opacity 0.25s ease; } .modal-backdrop { background-color: rgba(0, 0, 0, 0.5); transition: opacity 0.25s ease; } .tag { transition: all 0.2s ease; } .tag:hover { transform: scale(1.05); } .drag-drop-zone { border: 2px dashed #e5e7eb; transition: all 0.2s ease; } .drag-drop-zone.dragover { border-color: #3b82f6; background-color: #eff6ff; } /* Table styles */ .table-container { overflow-x: auto; } .table-view th { position: sticky; top: 0; background-color: #f9fafb; z-index: 10; } .table-view tr:hover { background-color: #f3f4f6; } </style> </head> <body class="bg-gray-50 font-sans"> <div class="flex h-screen overflow-hidden"> <!-- Sidebar --> <div class="sidebar bg-indigo-800 text-white w-64 flex flex-col"> <div class="p-4 flex items-center space-x-3 border-b border-indigo-700"> <div class="bg-white p-2 rounded-lg"> <i class="fas fa-microscope text-indigo-800 text-xl"></i> </div> <h1 class="text-xl font-bold">Quantals Collect</h1> </div> <nav class="flex-1 p-4 space-y-2"> <a href="dashboard.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white"> <i class="fas fa-home"></i> <span>Dashboard</span> </a> <a href="projects.html" class="flex items-center space-x-3 p-2 rounded-lg bg-indigo-700 text-white"> <i class="fas fa-project-diagram"></i> <span>Projects</span> </a> <a href="participants.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white"> <i class="fas fa-users"></i> <span>Participants</span> </a> <a href="interviews.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white"> <i class="fas fa-microphone"></i> <span>Interviews</span> </a> <a href="notes.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white"> <i class="fas fa-sticky-note"></i> <span>Notes</span> </a> <a href="analysis.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white"> <i class="fas fa-chart-pie"></i> <span>Analysis</span> </a> </nav> <div class="p-4 border-t border-indigo-700"> <a href="settings.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white"> <i class="fas fa-cog"></i> <span>Settings</span> </a> </div> </div> <!-- Main Content --> <div class="flex-1 flex flex-col overflow-hidden"> <!-- Header --> <header class="bg-white shadow-sm p-4"> <div class="flex justify-between items-center"> <div class="flex items-center space-x-4"> <nav class="text-sm"> <ol class="list-none p-0 inline-flex"> <li class="flex items-center"> <a href="dashboard.html" class="text-gray-500 hover:text-gray-700">Dashboard</a> <i class="fas fa-chevron-right text-gray-400 mx-2"></i> </li> <li class="text-gray-700">Projects</li> </ol> </nav> </div> <div class="flex items-center space-x-4"> <button id="viewToggle" class="p-2 rounded-lg hover:bg-gray-100"> <i class="fas fa-th-large text-gray-600"></i> </button> <div class="relative"> <input type="text" placeholder="Search projects..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i> </div> </div> </div> </header> <!-- Main Content Area --> <main class="flex-1 overflow-y-auto p-6"> <div class="max-w-7xl mx-auto"> <!-- Filters --> <div class="mb-6 flex flex-wrap gap-4"> <select class="px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> <option value="">All Status</option> <option value="active">Active</option> <option value="paused">Paused</option> <option value="completed">Completed</option> <option value="archived">Archived</option> </select> <select class="px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> <option value="">All Methodologies</option> <option value="qualitative">Qualitative</option> <option value="quantitative">Quantitative</option> <option value="mixed">Mixed Methods</option> </select> <select class="px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> <option value="">All Team Members</option> <option value="1">John Doe</option> <option value="2">Jane Smith</option> </select> </div> <!-- Grid View --> <div id="gridView" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <!-- Project Card --> <div class="project-card bg-white rounded-lg shadow-sm p-6"> <div class="flex justify-between items-start mb-4"> <div class="flex items-center space-x-2"> <div class="priority-dot priority-high"></div> <h3 class="text-lg font-semibold text-gray-800">Urban Sustainability Study</h3> </div> <div class="flex items-center space-x-2"> <span class="status-badge status-active">Active</span> <button class="p-2 hover:bg-gray-100 rounded-lg"> <i class="fas fa-ellipsis-v text-gray-600"></i> </button> </div> </div> <div class="space-y-4"> <div> <p class="text-sm text-gray-600">Research Questions:</p> <p class="text-sm text-gray-800 line-clamp-2">How do urban residents perceive and interact with green spaces? What factors influence their usage patterns?</p> </div> <div class="flex items-center justify-between"> <div class="flex items-center space-x-2"> <span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">Qualitative</span> <span class="px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full">#Sustainability</span> </div> <div class="flex items-center space-x-2"> <i class="fas fa-users text-gray-400"></i> <span class="text-sm text-gray-600">3 members</span> </div> </div> <div> <div class="flex justify-between text-sm text-gray-600 mb-1"> <span>Progress</span> <span>45%</span> </div> <div class="h-2 bg-gray-200 rounded-full"> <div class="h-2 bg-indigo-600 rounded-full" style="width: 45%"></div> </div> </div> </div> </div> <!-- More Project Cards... --> </div> <!-- Table View (Hidden by default) --> <div id="tableView" class="hidden"> <div class="table-container"> <table class="table-view w-full"> <thead> <tr class="text-left"> <th class="p-4">Project</th> <th class="p-4">Status</th> <th class="p-4">Methodology</th> <th class="p-4">Progress</th> <th class="p-4">Team</th> <th class="p-4">Actions</th> </tr> </thead> <tbody> <tr> <td class="p-4"> <div class="flex items-center space-x-2"> <div class="priority-dot priority-high"></div> <span class="font-medium">Urban Sustainability Study</span> </div> </td> <td class="p-4"> <span class="status-badge status-active">Active</span> </td> <td class="p-4"> <span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">Qualitative</span> </td> <td class="p-4"> <div class="w-32"> <div class="h-2 bg-gray-200 rounded-full"> <div class="h-2 bg-indigo-600 rounded-full" style="width: 45%"></div> </div> </div> </td> <td class="p-4"> <div class="flex -space-x-2"> <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center"> <span class="text-xs font-medium text-indigo-800">JD</span> </div> <div class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center"> <span class="text-xs font-medium text-green-800">JS</span> </div> </div> </td> <td class="p-4"> <button class="p-2 hover:bg-gray-100 rounded-lg"> <i class="fas fa-ellipsis-v text-gray-600"></i> </button> </td> </tr> </tbody> </table> </div> </div> </div> </main> </div> </div> <!-- Create Project Button --> <button class="create-project-btn p-4 bg-indigo-600 text-white rounded-full hover:bg-indigo-700 transition-colors"> <i class="fas fa-plus mr-2"></i> Create Project </button> <!-- Create Project Modal --> <div id="createProjectModal" class="modal hidden fixed inset-0 z-50"> <div class="modal-backdrop absolute inset-0"></div> <div class="relative min-h-screen flex items-center justify-center p-4"> <div class="bg-white rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto"> <div class="p-6 border-b border-gray-200"> <div class="flex justify-between items-center"> <h3 class="text-xl font-semibold text-gray-800">Create New Project</h3> <button class="p-2 hover:bg-gray-100 rounded-lg"> <i class="fas fa-times text-gray-600"></i> </button> </div> </div> <div class="p-6"> <form class="space-y-6"> <!-- Basic Info --> <div> <h4 class="text-lg font-medium text-gray-800 mb-4">Basic Information</h4> <div class="space-y-4"> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Project Title</label> <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" required> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Description</label> <textarea class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" rows="4"></textarea> </div> <div class="grid grid-cols-2 gap-4"> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Start Date</label> <input type="date" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">End Date</label> <input type="date" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> </div> </div> </div> </div> <!-- Research Design --> <div> <h4 class="text-lg font-medium text-gray-800 mb-4">Research Design</h4> <div class="space-y-4"> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Methodology</label> <select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> <option value="qualitative">Qualitative</option> <option value="quantitative">Quantitative</option> <option value="mixed">Mixed Methods</option> </select> </div> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Research Questions</label> <div class="space-y-2"> <div class="flex items-center space-x-2"> <input type="text" class="flex-1 px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Enter research question"> <button class="p-2 text-gray-600 hover:text-gray-800"> <i class="fas fa-plus"></i> </button> </div> </div> </div> <div class="flex items-center"> <input type="checkbox" id="ethicsApproval" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"> <label for="ethicsApproval" class="ml-2 block text-sm text-gray-700">Ethics approval required</label> </div> </div> </div> <!-- Team Assignment --> <div> <h4 class="text-lg font-medium text-gray-800 mb-4">Team Assignment</h4> <div class="space-y-4"> <div> <label class="block text-sm font-medium text-gray-700 mb-1">Search Team Members</label> <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Search by name or email"> </div> <div class="space-y-2"> <div class="flex items-center justify-between p-2 bg-gray-50 rounded-lg"> <div class="flex items-center space-x-2"> <div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center"> <span class="text-xs font-medium text-indigo-800">JD</span> </div> <span class="text-sm">John Doe</span> </div> <select class="px-3 py-1 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500"> <option value="owner">Owner</option> <option value="editor">Editor</option> <option value="viewer">Viewer</option> </select> </div> </div> </div> </div> <!-- Document Upload --> <div> <h4 class="text-lg font-medium text-gray-800 mb-4">Documents</h4> <div class="drag-drop-zone p-8 text-center rounded-lg"> <i class="fas fa-cloud-upload-alt text-4xl text-gray-400 mb-2"></i> <p class="text-gray-600">Drag and drop files here or click to browse</p> <p class="text-sm text-gray-500 mt-1">Supports PDF, DOCX (max 10MB)</p> </div> </div> </form> </div> <div class="p-6 border-t border-gray-200 flex justify-end space-x-4"> <button class="px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50">Cancel</button> <button class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">Create Project</button> </div> </div> </div> </div> <script> // View Toggle const viewToggle = document.getElementById('viewToggle'); const gridView = document.getElementById('gridView'); const tableView = document.getElementById('tableView'); let isGridView = true; viewToggle.addEventListener('click', () => { isGridView = !isGridView; gridView.classList.toggle('hidden'); tableView.classList.toggle('hidden'); viewToggle.querySelector('i').classList.toggle('fa-th-large'); viewToggle.querySelector('i').classList.toggle('fa-list'); }); // Create Project Modal const createProjectBtn = document.querySelector('.create-project-btn'); const createProjectModal = document.getElementById('createProjectModal'); const modalBackdrop = createProjectModal.querySelector('.modal-backdrop'); createProjectBtn.addEventListener('click', () => { createProjectModal.classList.remove('hidden'); document.body.style.overflow = 'hidden'; }); function closeModal() { createProjectModal.classList.add('hidden'); document.body.style.overflow = ''; } modalBackdrop.addEventListener('click', closeModal); createProjectModal.querySelector('.fa-times').closest('button').addEventListener('click', closeModal); // Drag and Drop const dragDropZone = document.querySelector('.drag-drop-zone'); ['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => { dragDropZone.addEventListener(eventName, preventDefaults, false); }); function preventDefaults(e) { e.preventDefault(); e.stopPropagation(); } ['dragenter', 'dragover'].forEach(eventName => { dragDropZone.addEventListener(eventName, highlight, false); }); ['dragleave', 'drop'].forEach(eventName => { dragDropZone.addEventListener(eventName, unhighlight, false); }); function highlight(e) { dragDropZone.classList.add('dragover'); } function unhighlight(e) { dragDropZone.classList.remove('dragover'); } dragDropZone.addEventListener('drop', handleDrop, false); function handleDrop(e) { const dt = e.dataTransfer; const files = dt.files; handleFiles(files); } function handleFiles(files) { // Handle file upload logic here console.log('Files to upload:', files); } // Auto-save functionality let saveTimeout; const form = document.querySelector('form'); form.addEventListener('input', () => { clearTimeout(saveTimeout); saveTimeout = setTimeout(() => { // Simulate auto-save console.log('Auto-saving...'); }, 1500); }); // Initialize tooltips and other UI components document.addEventListener('DOMContentLoaded', () => { // Add any initialization code here }); </script> </body> </html>
|