mindmood-sentinel / data-collection.html
hercules007's picture
### 🧠 Project Overview
ab56791 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MindMood Sentinel | Data Collection</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<style>
.upload-box {
transition: all 0.3s ease;
}
.upload-box:hover {
transform: translateY(-3px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.tab-button.active {
border-bottom: 3px solid #6366f1;
color: #6366f1;
}
</style>
</head>
<body class="bg-gray-50">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar (same as dashboard) -->
<div class="hidden md:flex md:flex-shrink-0">
<div class="flex flex-col w-64 bg-indigo-700 text-white">
<!-- Sidebar content from dashboard -->
</div>
</div>
<!-- Main content -->
<div class="flex-1 overflow-auto">
<!-- Top navigation (same as dashboard) -->
<div class="h-16 flex items-center justify-between px-6 border-b bg-white">
<!-- Top nav content from dashboard -->
</div>
<!-- Data collection content -->
<div class="p-6">
<div class="flex items-center justify-between mb-8">
<h2 class="text-2xl font-bold text-gray-800">Data Collection</h2>
<div class="flex items-center space-x-2">
<button class="text-sm bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700 transition-colors flex items-center gap-2">
<i data-feather="save" class="w-4 h-4"></i>
Save All
</button>
</div>
</div>
<!-- Tabs -->
<div class="border-b border-gray-200 mb-8">
<nav class="-mb-px flex space-x-8">
<button class="tab-button active py-4 px-1 border-b-2 font-medium text-sm whitespace-nowrap">
<i data-feather="camera" class="w-4 h-4 mr-2 inline"></i>
Facial Data
</button>
<button class="tab-button py-4 px-1 border-b-2 font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap">
<i data-feather="mic" class="w-4 h-4 mr-2 inline"></i>
Voice Data
</button>
<button class="tab-button py-4 px-1 border-b-2 font-medium text-sm text-gray-500 hover:text-gray-700 hover:border-gray-300 whitespace-nowrap">
<i data-feather="edit" class="w-4 h-4 mr-2 inline"></i>
Text Data
</button>
</nav>
</div>
<!-- Facial data collection -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Upload image -->
<div class="bg-white rounded-xl shadow-md p-6 upload-box">
<div class="flex items-center justify-between mb-4">
<h3 class="font-medium text-gray-800">Upload Image</h3>
<button class="text-indigo-600 hover:text-indigo-800">
<i data-feather="help-circle" class="w-5 h-5"></i>
</button>
</div>
<div class="border-2 border-dashed border-gray-300 rounded-lg p-6 text-center cursor-pointer hover:border-indigo-300 transition-colors bg-gray-50">
<div class="mx-auto w-16 h-16 bg-indigo-100 rounded-full flex items-center justify-center mb-4">
<i data-feather="upload" class="w-6 h-6 text-indigo-600"></i>
</div>
<p class="text-sm text-gray-600 mb-2">Drag & drop an image here</p>
<p class="text-xs text-gray-500 mb-4">or</p>
<button class="text-sm bg-indigo-600 text-white px-4 py-2 rounded-lg hover:bg-indigo-700 transition-colors">
Browse Files
</button>
</div>
<p class="text-xs text-gray-500 mt-4">For best results, use a clear, well-lit frontal photo.</p>
</div>
<!-- Take photo -->
<div class="bg-white rounded-xl shadow-md p-6 upload-box">
<div class="flex items-center justify-between mb-4">
<h3 class="font-medium text-gray-800">Take Photo</h3>
<button class="text-indigo-600 hover:text-indigo-800">
<i data-feather="help-circle" class="w-5 h-5"></i>
</button>
</div>
<div class="bg-gray-200 rounded-lg aspect-video flex items-center justify-center mb-4 overflow-hidden">
<div class="text-center">
<i data-feather="camera" class="w-12 h-12 text-gray-400 mx-auto mb-2"></i>
<p class="text-sm text-gray-600">Camera feed will appear here</p>
</div>
</div>
<button class="w-full bg-indigo-600 text-white py-2 rounded-lg hover:bg-indigo-700 transition-colors">
Start Camera
</button>
</div>
<!-- Recent uploads -->
<div class="bg-white rounded-xl shadow-md p-6">
<h3 class="font-medium text-gray-800 mb-4">Recent Uploads</h3>
<div class="space-y-4">
<div class="flex items-center">
<div class="w-12 h-12 bg-gray-200 rounded-lg overflow-hidden mr-3">
<img src="http://static.photos/people/200x200/1" alt="Uploaded image" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<h4 class="text-sm font-medium text-gray-700">Today, 10:30 AM</h4>
<p class="text-xs text-gray-500">Detected: Neutral</p>
</div>
<button class="text-gray-400 hover:text-indigo-600">
<i data-feather="more-vertical" class="w-4 h-4"></i>
</button>
</div>
<div class="flex items-center">
<div class="w-12 h-12 bg-gray-200 rounded-lg overflow-hidden mr-3">
<img src="http://static.photos/people/200x200/2" alt="Uploaded image" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<h4 class="text-sm font-medium text-gray-700">Yesterday, 3:15 PM</h4>
<p class="text-xs text-gray-500">Detected: Happy</p>
</div>
<button class="text-gray-400 hover:text-indigo-600">
<i data-feather="more-vertical" class="w-4 h-4"></i>
</button>
</div>
<div class="flex items-center">
<div class="w-12 h-12 bg-gray-200 rounded-lg overflow-hidden mr-3">
<img src="http://static.photos/people/200x200/3" alt="Uploaded image" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<h4 class="text-sm font-medium text-gray-700">Yesterday, 9:45 AM</h4>
<p class="text-xs text-gray-500">Detected: Sad</p>
</div>
<button class="text-gray-400 hover:text-indigo-600">
<i data-feather="more-vertical" class="w-4 h-4"></i>
</button>
</div>
</div>
<button class="w-full mt-4 text-indigo-600 text-sm font-medium hover:text-indigo-800 transition-colors flex items-center justify-center gap-1">
<i data-feather="eye" class="w-4 h-4"></i>
View All
</button>
</div>
</div>
<!-- Emotion detection preview -->
<div class="mt-8 bg-white rounded-xl shadow-md p-6">
<h3 class="font-medium text-gray-800 mb-4">Emotion Detection Preview</h3>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<div class="bg-gray-50 rounded-lg p-4">
<div class="aspect-square bg-gray-200 rounded-lg overflow-hidden mb-4">
<img src="http://static.photos/people/200x200/4" alt="Sample face" class="w-full h-full object-cover">
</div>
<h4 class="text-center font-medium text-gray-800 mb-2">Original Image</h4>
</div>
<div class="bg-gray-50 rounded-lg p-4">
<div class="aspect-square bg-gray-200 rounded-lg overflow-hidden mb-4 relative">
<img src="http://static.photos/people/200x200/4" alt="Analyzed face" class="w-full h-full object-cover">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center bg-white bg-opacity-90 p-4 rounded-lg shadow-lg">
<div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-2">
<i data-feather="smile" class="w-6 h-6 text-green-600"></i>
</div>
<h4 class="font-medium text-gray-800">Happy</h4>
<p class="text-xs text-gray-600">Confidence: 87%</p>
</div>
</div>
</div>
<h4 class="text-center font-medium text-gray-800 mb-2">Emotion Analysis</h4>
</div>
</div>
<div class="mt-6 grid grid-cols-2 md:grid-cols-7 gap-2">
<div class="bg-indigo-50 rounded-lg p-3 text-center">
<div class="w-10 h-10 bg-indigo-100 rounded-full flex items-center justify-center mx-auto mb-2">
<i data-feather="smile" class="w-5 h-5 text-indigo-600"></i>
</div>
<p class="text-xs font-medium text-indigo-700">Happy</p>
<p class="text-xs text-gray-500">87%</p>
</div>
<div class="bg-gray-50 rounded-lg p-3 text-center">
<div class="w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-2">
<i data-feather="meh" class="w-5 h-5 text-gray-600"></i>
</div>
<p class="text-xs font-medium text-gray-700">Neutral</p>
<p class="text-xs text-gray-500">8%</p>
</div>
<div class="bg-gray-50 rounded-lg p-3 text-center">
<div class="w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-2">
<i data-feather="frown" class="w-5 h-5 text-gray-600"></i>
</div>
<p class="text-xs font-medium text-gray-700">Sad</p>
<p class="text-xs text-gray-500">2%</p>
</div>
<div class="bg-gray-50 rounded-lg p-3 text-center">
<div class="w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-2">
<i data-feather="alert-octagon" class="w-5 h-5 text-gray-600"></i>
</div>
<p class="text-xs font-medium text-gray-700">Angry</p>
<p class="text-xs text-gray-500">1%</p>
</div>
<div class="bg-gray-50 rounded-lg p-3 text-center">
<div class="w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-2">
<i data-feather="eye-off" class="w-5 h-5 text-gray-600"></i>
</div>
<p class="text-xs font-medium text-gray-700">Fear</p>
<p class="text-xs text-gray-500">1%</p>
</div>
<div class="bg-gray-50 rounded-lg p-3 text-center">
<div class="w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-2">
<i data-feather="x" class="w-5 h-5 text-gray-600"></i>
</div>
<p class="text-xs font-medium text-gray-700">Disgust</p>
<p class="text-xs text-gray-500">0%</p>
</div>
<div class="bg-gray-50 rounded-lg p-3 text-center">
<div class="w-10 h-10 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-2">
<i data-feather="alert-circle" class="w-5 h-5 text-gray-600"></i>
</div>
<p class="text-xs font-medium text-gray-700">Surprise</p>
<p class="text-xs text-gray-500">1%</p>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// Initialize feather icons
feather.replace();
// Tab switching functionality
const tabButtons = document.querySelectorAll('.tab-button');
tabButtons.forEach(button => {
button.addEventListener('click', () => {
tabButtons.forEach(btn => btn.classList.remove('active', 'text-indigo-600', 'border-indigo-500'));
tabButtons.forEach(btn => btn.classList.add('text-gray-500', 'border-transparent', 'hover:text-gray-700', 'hover:border-gray-300'));
button.classList.add('active', 'text-indigo-600', 'border-indigo-500');
button.classList.remove('text-gray-500', 'border-transparent', 'hover:text-gray-700', 'hover:border-gray-300');
});
});
</script>
</body>
</html>