The user wants me to build a humanitarian health deployment command center. This is a complex data visualization/management interface that would coordinate:
- Credentialing - verifying and managing healthcare worker credentials
- Supply caches - tracking medical supplies and equipment
- Post-deployment care - managing care after deployments end
I'll create a sophisticated dashboard with:
- A 3D globe or map showing deployment locations
- Real-time statistics and metrics
- Interactive panels for different functions
- Animated elements for visual engagement
- A professional, high-tech command center aesthetic
Design approach:
- Dark theme with high contrast (command center feel)
- Accent colors: cyan/teal for health, orange for alerts, green for positive status
- Multiple animated elements including particles, data streams, glowing effects
- Interactive hover states and click responses
- Responsive layout with clear visual hierarchy
Key sections:
- Header with system status and time
- Main map/globe visualization (Three.js)
- Active deployments panel
- Credentialing status dashboard
- Supply cache tracker
- Post-deployment care metrics
- Real-time activity feed
Let me build this with Three.js for a 3D globe showing deployment locations with animated connections and markers.
Humanitarian Health Deployment Command Center
I'll create a comprehensive command center interface with:
- 3D Globe showing active deployment zones with animated markers
- Credentialing Panel tracking medical staff verification status
- Supply Cache Tracker with real-time inventory levels
- Post-Deployment Care metrics and patient follow-up systems
- Live Activity Feed with real-time updates
The design uses a dark command center aesthetic with cyan/teal for health data, amber for alerts, and green for positive status indicators.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Humanitarian Health Command Center</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg-primary: #0a0e14;
--bg-secondary: #121820;
--bg-tertiary: #1a2230;
--accent-cyan: #00d4aa;
--accent-blue: #0088cc;
--accent-amber: #ff9f1c;
--accent-red: #ff4757;
--accent-green: #2ed573;
--text-primary: #e8eaed;
--text-secondary: #8a94a6;
--border-color: #2a3444;
}
body {
font-family: 'Segoe UI', system-ui, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
overflow-x: hidden;
}
/* Animated Background Grid */
.bg-grid {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image:
linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
background-size: 50px 50px;
pointer-events: none;
z-index: 0;
}
/* Header */
.header {
background: linear-gradient(180deg, var(--bg-secondary), transparent);
padding: 15px 30px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--border-color);
position: relative;
z-index: 10;
}
.logo {
display: flex;
align-items: center;
gap: 15px;
}
.logo-icon {
width: 45px;
height: 45px;
background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
0%, 100% { box-shadow: 0 0 15px rgba(0, 212, 170, 0.4); }
50% { box-shadow: 0 0 30px rgba(0, 212, 170, 0.7); }
}
.logo-icon svg {
width: 28px;
height: 28px;
fill: white;
}
.logo-text h1 {
font-size: 1.3rem;
font-weight: 600;
letter-spacing: 1px;
}
.logo-text span {
font-size: 0.75rem;
color: var(--text-secondary);
letter-spacing: 2px;
text-transform: uppercase;
}
.header-status {
display: flex;
gap: 25px;
align-items: center;
}
.status-item {
text-align: center;
}
.status-value {
font-size: 1.4rem;
font-weight: 700;
color: var(--accent-cyan);
}
.status-label {
font-size: 0.7rem;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 1px;
}
.system-time {
background: var(--bg-tertiary);
padding: 10px 20px;
border-radius: 8px;
border: 1px solid var(--border-color);
}
.system-time .time {
font-size: 1.2rem;
font-weight: 600;
font-family: 'Courier New', monospace;
color: var(--accent-cyan);
}
.system-time .date {
font-size: 0.7rem;
color: var(--text-secondary);
}
/* Main Layout */
.main-container {
display: grid;
grid-template-columns: 1fr 380px;
gap: 20px;
padding: 20px;
position: relative;
z-index: 1;
}
/* Globe Section */
.globe-section {
background: var(--bg-secondary);
border-radius: 15px;
border: 1px solid var(--border-color);
overflow: hidden;
position: relative;
}
.globe-header {
padding: 15px 20px;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}
.globe-header h2 {
font-size: 0.9rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
display: flex;
align-items: center;
gap: 10px;
}
.live-indicator {
width: 8px;
height: 8px;
background: var(--accent-green);
border-radius: 50%;
animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0.3; }
}
.globe-filters {
display: flex;
gap: 8px;
}
.filter-btn {
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
color: var(--text-secondary);
padding: 6px 12px;
border-radius: 5px;
font-size: 0.75rem;
cursor: pointer;
transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
background: var(--accent-cyan);
color: var(--bg-primary);
border-color: var(--accent-cyan);
}
#globe-container {
height: 450px;
position: relative;
}
.globe-stats {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1px;
background: var(--border-color);
border-top: 1px solid var(--border-color);
}
.globe-stat {
background: var(--bg-secondary);
padding: 15px;
text-align: center;
transition: background 0.3s ease;
}
.globe-stat:hover {
background: var(--bg-tertiary);
}
.globe-stat-value {
font-size: 1.5rem;
font-weight: 700;
}
.globe-stat-value.cyan { color: var(--accent-cyan); }
.globe-stat-value.amber { color: var(--accent-amber); }
.globe-stat-value.green { color: var(--accent-green); }
.globe-stat-value.blue { color: var(--accent-blue); }
.globe-stat-label {
font-size: 0.7rem;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 1px;
margin-top: 5px;
}
/* Right Panel */
.right-panel {
display: flex;
flex-direction: column;
gap: 15px;
}
/* Panel Cards */
.panel-card {
background: var(--bg-secondary);
border-radius: 12px;
border: 1px solid var(--border-color);
overflow: hidden;
}
.panel-header {
padding: 12px 15px;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}
.panel-title {
font-size: 0.85rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
display: flex;
align-items: center;
gap: 8px;
}
.panel-title svg {
width: 18px;
height: 18px;
fill: var(--accent-cyan);
}
.panel-badge {
background: var(--accent-amber);
color: var(--bg-primary);
padding: 3px 8px;
border-radius: 10px;
font-size: 0.7rem;
font-weight: 600;
}
.panel-badge.green { background: var(--accent-green); }
.panel-badge.red { background: var(--accent-red); }
.panel-content {
padding: 15px;
}
/* Credentialing Section */
.cred-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
background: var(--bg-tertiary);
border-radius: 8px;
margin-bottom: 8px;
cursor: pointer;
transition: all 0.3s ease;
border: 1px solid transparent;
}
.cred-item:hover {
border-color: var(--accent-cyan);
transform: translateX(5px);
}
.cred-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 0.9rem;
}
.cred-info {
flex: 1;
}
.cred-name {
font-size: 0.85rem;
font-weight: 600;
}
.cred-role {
font-size: 0.7rem;
color: var(--text-secondary);
}
.cred-status {
padding: 4px 10px;
border-radius: 12px;
font-size: 0.65rem;
font-weight: 600;
text-transform: uppercase;
}
.cred-status.verified {
background: rgba(46, 213, 115, 0.2);
color: var(--accent-green);
}
.cred-status.pending {
background: rgba(255, 159, 28, 0.2);
color: var(--accent-amber);
}
.cred-status.expired {
background: rgba(255, 71, 87, 0.2);
color: var(--accent-red);
}
/* Supply Cache */
.supply-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.supply-item {
background: var(--bg-tertiary);
padding: 12px;
border-radius: 8px;
transition: all 0.3s ease;
cursor: pointer;
}
.supply-item:hover {
background: var(--bg-primary);
transform: scale(1.02);
}
.supply-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.supply-name {
font-size: 0.75rem;
font-weight: 600;
}
.supply-level {
font-size: 0.7rem;
font-weight: 700;
}
.supply-level.high { color: var(--accent-green); }
.supply-level.medium { color: var(--accent-amber); }
.supply-level.low { color: var(--accent-red); }
.supply-bar {
height: 4px;
background: var(--bg-primary);
border-radius: 2px;
overflow: hidden;
}
.supply-fill {
height: 100%;
border-radius: 2px;
transition: width 1s ease;
}
.supply-fill.high { background: var(--accent-green); }
.supply-fill.medium { background: var(--accent-amber); }
.supply-fill.low { background: var(--accent-red); }
.supply-count {
font-size: 0.65rem;
color: var(--text-secondary);
margin-top: 5px;
}
/* Post-Deployment Care */
.care-metrics {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
margin-bottom: 15px;
}
.care-metric {
text-align: center;
padding: 10px;
background: var(--bg-tertiary);
border-radius: 8px;
}
.care-metric-value {
font-size: 1.2rem;
font-weight: 700;
}
.care-metric-label {
font-size: 0.6rem;
color: var(--text-secondary);
text-transform: uppercase;
margin-top: 3px;
}
.followup-list {
max-height: 150px;
overflow-y: auto;
}
.followup-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px;
border-radius: 6px;
margin-bottom: 5px;
transition: background 0.3s ease;
cursor: pointer;
}
.followup-item:hover {
background: var(--bg-tertiary);
}
.followup-priority {
width: 4px;
height: 30px;
border-radius: 2px;
}
.followup-priority.high { background: var(--accent-red); }
.followup-priority.medium { background: var(--accent-amber); }
.followup-priority.low { background: var(--accent-green); }
.followup-info {
flex: 1;
}
.followup-name {
font-size: 0.8rem;
}
.followup-date {
font-size: 0.65rem;
color: var(--text-secondary);
}
.followup-type {
font-size: 0.6rem;
padding: 3px 6px;
background: var(--bg-primary);
border-radius: 4px;
color: var(--text-secondary);
}
/* Activity Feed */
.activity-feed {
flex: 1;
min-height: 200px;
}
.activity-list {
max-height: 180px;
overflow-y: auto;
}
.activity-item {
display: flex;
gap: 12px;
padding: 10px;
border-bottom: 1px solid var(--border-color);
animation: slideIn 0.5s ease;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateX(-20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.activity-icon {
width: 32px;
height: 32px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.9rem;
}
.activity-icon.deploy { background: rgba(0, 136, 204, 0.2); color: var(--accent-blue); }
.activity-icon.supply { background: rgba(0, 212, 170, 0.2); color: var(--accent-cyan); }
.activity-icon.alert { background: rgba(255, 159, 28, 0.2); color: var(--accent-amber); }
.activity-icon.care { background: rgba(46, 213, 115, 0.2); color: var(--accent-green); }
.activity-content {
flex: 1;
}
.activity-text {
font-size: 0.8rem;
line-height: 1.4;
}
.activity-time {
font-size: 0.65rem;
color: var(--text-secondary);
margin-top: 3px;
}
/* Bottom Section */
.bottom-section {
grid-column: 1 / -1;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
/* Deployment Cards */
.deployment-card {
background: var(--bg-secondary);
border-radius: 12px;
border: 1px solid var(--border-color);
padding: 20px;
transition: all 0.3s ease;
cursor: pointer;
}
.deployment-card:hover {
border-color: var(--accent-cyan);
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0, 212, 170, 0.1);
}
.deployment-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 15px;
}
.deployment-location {
font-size: 1rem;
font-weight: 600;
}
.deployment-country {
font-size: 0.75rem;
color: var(--text-secondary);
}
.deployment-status {
padding: 5px 12px;
border-radius: 15px;
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
}
.deployment-status.active {
background: rgba(46, 213, 115, 0.2);
color: var(--accent-green);
}
.deployment-status.staging {
background: rgba(0, 136, 204, 0.2);
color: var(--accent-blue);
}
.deployment-status.critical {
background: rgba(255, 71, 87, 0.2);
color: var(--accent-red);
}
.deployment-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15px;
}
.deployment-stat {
text-align: center;
}
.deployment-stat-value {
font-size: 1.3rem;
font-weight: 700;
color: var(--accent-cyan);
}
.deployment-stat-label {
font-size: 0.65rem;
color: var(--text-secondary);
text-transform: uppercase;
}
.deployment-progress {
margin-top: 15px;
}
.progress-label {
display: flex;
justify-content: space-between;
font-size: 0.7rem;
margin-bottom: 5px;
}
.progress-bar {
height: 6px;
background: var(--bg-tertiary);
border-radius: 3px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
border-radius: 3px;
transition: width 1s ease;
}
/* Scrollbar */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: var(--bg-tertiary);
}
::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--accent-cyan);
}
/* Location Marker Tooltip */
.location-tooltip {
position: absolute;
background: var(--bg-secondary);
border: 1px solid var(--accent-cyan);
border-radius: 8px;
padding: 10px 15px;
pointer-events: none;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 100;
min-width: 150px;
}
.location-tooltip.visible {
opacity: 1;
}
.location-tooltip h4 {
font-size: 0.85rem;
margin-bottom: 5px;
}
.location-tooltip p {
font-size: 0.7rem;
color: var(--text-secondary);
}
/* Alert Banner */
.alert-banner {
background: linear-gradient(90deg, rgba(255, 71, 87, 0.2), rgba(255, 159, 28, 0.2));
border: 1px solid var(--accent-red);
border-radius: 8px;
padding: 12px 20px;
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 15px;
animation: alertPulse 2s ease-in-out infinite;
}
@keyframes alertPulse {
0%, 100% { border-color: var(--accent-red); }
50% { border-color: var(--accent-amber); }
}
.alert-icon {
font-size: 1.5rem;
}
.alert-content {
flex: 1;
}
.alert-title {
font-size: 0.85rem;
font-weight: 600;
}
.alert-desc {
font-size: 0.7rem;
color: var(--text-secondary);
}
.alert-action {
background: var(--accent-red);
color: white;
border: none;
padding: 8px 16px;
border-radius: 5px;
font-size: 0.75rem;
cursor: pointer;
transition: all 0.3s ease;
}
.alert-action:hover {
background: #ff6b7a;
transform: scale(1.05);
}
/* Quick Actions */
.quick-actions {
display: flex;
gap: 8px;
padding: 15px;
background: var(--bg-secondary);
border-radius: 12px;
border: 1px solid var(--border-color);
margin-bottom: 15px;
}
.action-btn {
flex: 1;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
color: var(--text-primary);
padding: 12px 8px;
border-radius: 8px;
font-size: 0.7rem;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
}
.action-btn svg {
width: 20px;
height: 20px;
fill: var(--accent-cyan);
}
.action-btn:hover {
background: var(--accent-cyan);
color: var(--bg-primary);
border-color: var(--accent-cyan);
}
.action-btn:hover svg {
fill: var(--bg-primary);
}
</style>
</head>
<body>
<div class="bg-grid"></div>
<header class="header">
<div class="logo">
<div class="logo-icon">
<svg viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/></svg>
</div>
<div class="logo-text">
<h1>HEALTH COMMAND CENTER</h1>
<span>Humanitarian Deployment System</span>
</div>
</div>
<div class="header-status">
<div class="status-item">
<div class="status-value" id="active-personnel">847</div>
<div class="status-label">Active Personnel</div>
</div>
<div class="status-item">
<div class="status-value" style="color: var(--accent-green);">12</div>
<div class="status-label">Active Missions</div>
</div>
<div class="status-item">
<div class="status-value" style="color: var(--accent-amber);">23</div>
<div class="status-label">Pending Review</div>
</div>
</div>
<div class="system-time">
<div class="time" id="system-time">00:00:00</div>
<div class="date" id="system-date">Loading...</div>
</div>
</header>
<main class="main-container">
<div class="globe-section">
<div class="globe-header">
<h2><span class="live-indicator"></span> Global Deployment Map</h2>
<div class="globe-filters">
<button class="filter-btn active" data-filter="all">All</button>
<button class="filter-btn" data-filter="active">Active</button>
<button class="filter-btn" data-filter="staging">Staging</button>
<button class="filter-btn" data-filter="critical">Critical</button>
</div>
</div>
<div id="globe-container"></div>
<div class="globe-stats">
<div class="globe-stat">
<div class="globe-stat-value cyan" id="stat-deployments">12</div>
<div class="globe-stat-label">Active Deployments</div>
</div>
<div class="globe-stat">
<div class="globe-stat-value green">2,847</div>
<div class="globe-stat-label">Patients Served</div>
</div>
<div class="globe-stat">
<div class="globe-stat-value amber">156</div>
<div class="globe-stat-label">Supplies Delivered</div>
</div>
<div class="globe-stat">
<div class="globe-stat-value blue">98.7%</div>
<div class="globe-stat-label">System Uptime</div>
</div>
</div>
</div>
<div class="right-panel">
<div class="alert-banner">
<div class="alert-icon">⚠</div>
<div class="alert-content">
<div class="alert-title">Supply Alert: Yemen Region</div>
<div class="alert-desc">Medical supply cache at 15% - Immediate resupply required</div>
</div>
<button class="alert-action">Dispatch</button>
</div>
<div class="quick-actions">
<button class="action-btn">
<svg viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>
New Mission
</button>
<button class="action-btn">
<svg viewBox="0 0 24 24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>
Add Staff
</button>
<button class="action-btn">
<svg viewBox="0 0 24 24"><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/></svg>
Reports
</button>
<button class="action-btn">
<svg viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>
Approve
</button>
</div>
<div class="panel-card">
<div class="panel-header">
<div class="panel-title">
<svg viewBox="0 0 24 24"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>
Credentialing
</div>
<span class="panel-badge">5 Pending</span>
</div>
<div class="panel-content">
<div class="cred-item">
<div class="cred-avatar">DR</div>
<div class="cred-info">
<div class="cred-name">Dr. David Rodriguez</div>
<div class="cred-role">Emergency Medicine</div>
</div>
<span class="cred-status verified">Verified</span>
</div>
<div class="cred-item">
<div class="cred-avatar">SK</div>
<div class="cred-info">
<div class="cred-name">Sarah Kim, RN</div>
<div class="cred-role">Trauma Nurse</div>
</div>
<span class="cred-status pending">Pending</span>
</div>
<div class="cred-item">
<div class="cred-avatar">MA</div>
<div class="cred-info">
<div class="cred-name">Dr. Michael Ahmed</div>
<div class="cred-role">Pediatrician</div>
</div>
<span class="cred-status verified">Verified</span>
</div>
<div class="cred-item">
<div class="cred-avatar">JL</div>
<div class="cred-info">
<div class="cred-name">Jennifer Lee, PA</div>
<div class="cred-role">Physician Assistant</div>
</div>
<span class="cred-status expired">Expired</span>
</div>
</div>
</div>
<div class="panel-card">
<div class="panel-header">
<div class="panel-title">
<svg viewBox="0 0 24 24"><path d="M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2.5H17V9.5h2.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"/></svg>
Supply Caches
</div>
<span class="panel-badge red">2 Critical</span>
</div>
<div class="panel-content">
<div class="supply-grid">
<div class="supply-item">
<div class="supply-header">
<span class="supply-name">Blood Units</span>
<span class="supply-level high">87%</span>
</div>
<div class="supply-bar">
<div class="supply-fill high" style="width: 87%"></div>
</div>
<div class="supply-count">2,340 units available</div>
</div>
<div class="supply-item">
<div class="supply-header">
<span class="supply-name">Antibiotics</span>
<span class="supply-level medium">45%</span>
</div>
<div class="supply-bar">
<div class="supply-fill medium" style="width: 45%"></div>
</div>
<div class="supply-count">12,500 doses</div>
</div>
<div class="supply-item">
<div class="supply-header">
<span class="supply-name">Vaccines</span>
<span class="supply-level low">15%</span>
</div>
<div class="supply-bar">
<div class="supply-fill low" style="width: 15%"></div>
</div>
<div class="supply-count">3,200 doses</div>
</div>
<div class="supply-item">
<div class="supply-header">
<span class="supply-name">Equipment</span>
<span class="supply-level high">92%</span>
</div>
<div class="supply-bar">
<div class="supply-fill high" style="width: 92%"></div>
</div>
<div class="supply-count">847 kits ready</div>
</div>
</div>
</div>
</div>
<div class="panel-card activity-feed">
<div class="panel-header">
<div class="panel-title">
<svg viewBox="0 0 24 24"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"/></svg>
Activity Feed
</div>
</div>
<div class="panel-content">
<div class="activity-list" id="activity-list">
<!-- Activities will be added here -->
</div>
</div>
</div>
</div>
<section class="bottom-section">
<div class="deployment-card">
<div class="deployment-header">
<div>
<div class="deployment-location">Port-au-Prince</div>
<div class="deployment-country">Haiti</div>
</div>
<span class="deployment-status active">Active</span>
</div>
<div class="deployment-stats">
<div class="deployment-stat">
<div class="deployment-stat-value">124</div>
<div class="deployment-stat-label">Staff</div>
</div>
<div class="deployment-stat">
<div class="deployment-stat-value">847</div>
<div class="deployment-stat-label">Patients</div>
</div>
<div class="deployment-stat">
<div class="deployment-stat-value">23</div>
<div class="deployment-stat-label">Days</div>
</div>
</div>
<div class="deployment-progress">
<div class="progress-label">
<span>Mission Progress</span>
<span>68%</span>
</div>
<div class="progress-bar">
<div class="progress-fill" style="width: 68%"></div>
</div>
</div>
</div>
<div class="deployment-card">
<div class="deployment-header">
<div>
<div class="deployment-location">Gaza City</div>
<div class="deployment-country">Palestine</div>
</div>
<span class="deployment-status critical">Critical</span>
</div>
<div class="deployment-stats">
<div class="deployment-stat">
<div class="deployment-stat-value">256</div>
<div class="deployment-stat-label">Staff</div>
</div>
<div class="deployment-stat">
<div class="deployment-stat-value">2,340</div>
<div class="deployment-stat-label">Patients</div>
</div>
<div class="deployment-stat">
<div class="deployment-stat-value">45</div>
<div class="deployment-stat-label">Days</div>
</div>
</div>
<div class="deployment-progress">
<div class="progress-label">
<span>Mission Progress</span>
<span>34%</span>
</div>
<div class="progress-bar">
<div class="progress-fill" style="width: 34%"></div>
</div>
</div>
</div>
<div class="deployment-card">
<div class="deployment-header">
<div>
<div class="deployment-location">Sana'a</div>
<div class="deployment-country">Yemen</div>
</div>
<span class="deployment-status staging">Staging</span>
</div>
<div class="deployment-stats">
<div class="deployment-stat">
<div class="deployment-stat-value">89</div>
<div class="deployment-stat-label">Staff</div>
</div>
<div class="deployment-stat">
<div class="deployment-stat-value">0</div>
<div class="deployment-stat-label">Patients</div>
</div>
<div class="deployment-stat">
<div class="deployment-stat-value">0</div>
<div class="deployment-stat-label">Days</div>
</div>
</div>
<div class="deployment-progress">
<div class="progress-label">
<span>Staging Progress</span>
<span>82%</span>
</div>
<div class="progress-bar">
<div class="progress-fill" style="width: 82%"></div>
</div>
</div>
</div>
</section>
<div class="panel-card" style="grid-column: 1 / -1;">
<div class="panel-header">
<div class="panel-title">
<svg viewBox="0 0 24 24"><path d="M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z"/></svg>
Post-Deployment Care Center
</div>
<span class="panel-badge green">156 Active</span>
</div>
<div class="panel-content">
<div class="care-metrics">
<div class="care-metric">
<div class="care-metric-value" style="color: var(--accent-green);">94%</div>
<div class="care-metric-label">Follow-up Rate</div>
</div>
<div class="care-metric">
<div class="care-metric-value" style="color: var(--accent-cyan);">312</div>
<div class="care-metric-label">Telehealth Sessions</div>
</div>
<div class="care-metric">
<div class="care-metric-value" style="color: var(--accent-amber);">47</div>
<div class="care-metric-label">Pending Referrals</div>
</div>
</div>
<div class="followup-list" id="followup-list">
<!-- Follow-ups will be added here -->
</div>
</div>
</div>
</main>
<div class="location-tooltip" id="tooltip">
<h4 id="tooltip-title">Location</h4>
<p id="tooltip-desc">Description</p>
</div>
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.160.0/build/three.module.js",
"three/addons/": "https://unpkg.com/three@0.160.0/examples/jsm/"
}
}
</script>
<script type="module">
import * as THREE from 'three';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
// Deployment data
const deployments = [
{ name: 'Port-au-Prince', country: 'Haiti', lat: 18.5944, lng: -72.3074, status: 'active', staff: 124 },
{ name: 'Gaza City', country: 'Palestine', lat: 31.3893, lng: 34.3419, status: 'critical', staff: 256 },
{ name: 'Sana\'a', country: 'Yemen', lat: 15.3694, lng: 44.1910, status: 'staging', staff: 89 },
{ name: 'Mogadishu', country: 'Somalia', lat: 2.0469, lng: 45.3182, status: 'active', staff: 78 },
{ name: 'Dhaka', country: 'Bangladesh', lat: 23.8103, lng: 90.4125, status: 'active', staff: 156 },
{ name: 'Kolkata', country: 'India', lat: 22.5726, lng: 88.3639, status: 'active', staff: 92 },
{ name: 'Nairobi', country: 'Kenya', lat: -1.2921, lng: 36.8219, status: 'active', staff: 134 },
{ name: 'Lima', country: 'Peru', lat: -12.0464, lng: -77.0428, status: 'staging', staff: 67 },
{ name: 'Manila', country: 'Philippines', lat: 14.5995, lng: 120.9842, status: 'active', staff: 201 },
{ name: 'Kyiv', country: 'Ukraine', lat: 50.4501, lng: 30.5234, status: 'critical', staff: 189 },
{ name: 'Beirut', country: 'Lebanon', lat: 33.8938, lng: 35.5018, status: 'active', staff: 112 },
{ name: 'Kathmandu', country: 'Nepal', lat: 27.7172, lng: 85.3240, status: 'staging', staff: 54 }
];
// Activity data
const activities = [
{ type: 'deploy', text: 'New medical team deployed to Gaza City', time: '2 min ago' },
{ type: 'supply', text: 'Supply cache replenished in Haiti - 2,400 units', time: '15 min ago' },
{ type: 'alert', text: 'Critical supply shortage detected in Yemen', time: '32 min ago' },
{ type: 'care', text: 'Post-deployment checkup completed for Dr. Martinez', time: '1 hour ago' },
{ type: 'deploy', text: 'Emergency response team activated for Sudan', time: '2 hours ago' }
];
// Follow-up data
const followups = [
{ name: 'Dr. Emily Chen', date: 'Today, 2:30 PM', type: 'Telehealth', priority: 'high' },
{ name: 'Mark Johnson, RN', date: 'Today, 4:00 PM', type: 'Debrief', priority: 'medium' },
{ name: 'Dr. Ahmed Hassan', date: 'Tomorrow, 9:00 AM', type: 'Follow-up', priority: 'low' },
{ name: 'Sarah Williams, PA', date: 'Tomorrow, 11:30 AM', type: 'Evaluation', priority: 'medium' }
];
// Three.js Globe Setup
const container = document.getElementById('globe-container');
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(45, container.clientWidth / container.clientHeight, 0.1, 1000);
camera.position.z = 3;
const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });
renderer.setSize(container.clientWidth, container.clientHeight);
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
container.appendChild(renderer.domElement);
const controls = new OrbitControls(camera, renderer.domElement);
controls.enableDamping = true;
controls.dampingFactor = 0.05;
controls.enableZoom = true;
controls.minDistance = 1.5;
controls.maxDistance = 5;
controls.autoRotate = true;
controls.autoRotateSpeed = 0.5;
// Earth sphere with custom shader
const earthGeometry = new THREE.SphereGeometry(1, 64, 64);
const earthMaterial = new THREE.ShaderMaterial({
uniforms: {
uTime: { value: 0 },
uColor1: { value: new THREE.Color(0x0a1628) },
uColor2: { value: new THREE.Color(0x1a3a5c) },
uGlow: { value: new THREE.Color(0x00d4aa) }
},
vertexShader: `
varying vec2 vUv;
varying vec3 vNormal;
varying vec3 vPosition;
void main() {
vUv = uv;
vNormal = normalize(normalMatrix * normal);
vPosition = position;
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
}
`,
fragmentShader: `
uniform float uTime;
uniform vec3 uColor1;
uniform vec3 uColor2;
uniform vec3 uGlow;
varying vec2 vUv;
varying vec3 vNormal;
varying vec3 vPosition;
float random(vec2 st) {
return fract(sin(dot(st.xy, vec2(12.9898, 78.233))) * 43758.5453123);
}
void main() {
float fresnel = pow(1.0 - dot(vNormal, vec3(0.0, 0.0, 1.0)), 2.0);
vec3 baseColor = mix(uColor1, uColor2, vUv.y + sin(vUv.x * 20.0 + uTime) * 0.05);
// Grid pattern
float grid = 0.0;
float gridSpacing = 0.1;
vec2 gridUv = fract(vUv / gridSpacing);
grid += step(0.95, gridUv.x) + step(0.95, gridUv.y);
grid = clamp(grid, 0.0, 1.0) * 0.3;
// Continental noise
float noise = random(floor(vUv * 30.0)) * 0.15;
vec3 finalColor = baseColor + vec3(grid) * uGlow + vec3(noise);
finalColor += fresnel * uGlow * 0.5;
gl_FragColor = vec4(finalColor, 1.0);
}
`
});
const earth = new THREE.Mesh(earthGeometry, earthMaterial);
scene.add(earth);
// Atmosphere glow
const atmosphereGeometry = new THREE.SphereGeometry(1.15, 64, 64);
const atmosphereMaterial = new THREE.ShaderMaterial({
uniforms: {
uGlow: { value: new THREE.Color(0x00d4aa) }
},
vertexShader: `
varying vec3 vNormal;
void main() {
vNormal = normalize(normalMatrix * normal);
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
}
`,
fragmentShader: `
uniform vec3 uGlow;
varying vec3 vNormal;
void main() {
float intensity = pow(0.7 - dot(vNormal, vec3(0.0, 0.0, 1.0)), 2.0);
gl_FragColor = vec4(uGlow, intensity * 0.4);
}
`,
blending: THREE.AdditiveBlending,
side: THREE.BackSide,
transparent: true
});
const atmosphere = new THREE.Mesh(atmosphereGeometry, atmosphereMaterial);
scene.add(atmosphere);
// Convert lat/lng to 3D position
function latLngToVector3(lat, lng, radius) {
const phi = (90 - lat) * (Math.PI / 180);
const theta = (lng + 180) * (Math.PI / 180);
const x = -radius * Math.sin(phi) * Math.cos(theta);
const y = radius * Math.cos(phi);
const z = radius * Math.sin(phi) * Math.sin(theta);
return new THREE.Vector3(x, y, z);
}
// Create markers for deployments
const markers = [];
const markerGroup = new THREE.Group();
deployments.forEach((dep, index) => {
const position = latLngToVector3(dep.lat, dep.lng, 1.02);
// Marker point
const markerGeometry = new THREE.SphereGeometry(0.025, 16, 16);
let markerColor;
switch(dep.status) {
case 'active': markerColor = 0x2ed573; break;
case 'critical': markerColor = 0xff4757; break;
case 'staging': markerColor = 0x0088cc; break;
default: markerColor = 0x00d4aa;
}
const markerMaterial = new THREE.MeshBasicMaterial({
color: markerColor,
transparent: true,
opacity: 0.9
});
const marker = new THREE.Mesh(markerGeometry, markerMaterial);
marker.position.copy(position);
marker.userData = dep;
markers.push(marker);
markerGroup.add(marker);
// Pulse ring
const ringGeometry = new THREE.RingGeometry(0.03, 0.04, 32);
const ringMaterial = new THREE.MeshBasicMaterial({
color: markerColor,
transparent: true,
opacity: 0.6,
side: THREE.DoubleSide
});
const ring = new THREE.Mesh(ringGeometry, ringMaterial);
ring.position.copy(position);
ring.lookAt(new THREE.Vector3(0, 0, 0));
ring.userData = { phase: Math.random() * Math.PI * 2, baseScale: 1 };
markerGroup.add(ring);
marker.userData.ring = ring;
// Connection line to center (for effect)
const lineGeometry = new THREE.BufferGeometry().setFromPoints([
position.clone().multiplyScalar(0.98),
position
]);
const lineMaterial = new THREE.LineBasicMaterial({
color: markerColor,
transparent: true,
opacity: 0.3
});
const line = new THREE.Line(lineGeometry, lineMaterial);
markerGroup.add(line);
});
scene.add(markerGroup);
// Lighting
const ambientLight = new THREE.AmbientLight(0xffffff, 0.3);
scene.add(ambientLight);
const directionalLight = new THREE.DirectionalLight(0xffffff, 0.8);
directionalLight.position.set(5, 3, 5);
scene.add(directionalLight);
// Animation loop
let time = 0;
function animate() {
requestAnimationFrame(animate);
time += 0.01;
earthMaterial.uniforms.uTime.value = time;
// Animate markers
markers.forEach((marker, i) => {
if (marker.userData.ring) {
const ring = marker.userData.ring;
const pulse = Math.sin(time * 2 + ring.userData.phase) * 0.5 + 0.5;
ring.scale.setScalar(1 + pulse * 0.5);
ring.material.opacity = 0.6 * (1 - pulse * 0.5);
}
});
controls.update();
renderer.render(scene, camera);
}
animate();
// Resize handler
window.addEventListener('resize', () => {
camera.aspect = container.clientWidth / container.clientHeight;
camera.updateProjectionMatrix();
renderer.setSize(container.clientWidth, container.clientHeight);
});
// Raycaster for marker interaction
const raycaster = new THREE.Raycaster();
const mouse = new THREE.Vector2();
const tooltip = document.getElementById('tooltip');
const tooltipTitle = document.getElementById('tooltip-title');
const tooltipDesc = document.getElementById('tooltip-desc');
container.addEventListener('mousemove', (event) => {
const rect = container.getBoundingClientRect();
mouse.x = ((event.clientX - rect.left) / rect.width) * 2 - 1;
mouse.y = -((event.clientY - rect.top) / rect.height) * 2 + 1;
raycaster.setFromCamera(mouse, camera);
const intersects = raycaster.intersectObjects(markers);
if (intersects.length > 0) {
const data = intersects[0].object.userData;
tooltipTitle.textContent = data.name;
tooltipDesc.textContent = `${data.country} | ${data.staff} staff | ${data.status}`;
tooltip.style.left = (event.clientX - rect.left + 15) + 'px';
tooltip.style.top = (event.clientY - rect.top - 15) + 'px';
tooltip.classList.add('visible');
} else {
tooltip.classList.remove('visible');
}
});
// Filter buttons
document.querySelectorAll('.filter-btn').forEach(btn => {
btn.addEventListener('click', () => {
document.querySelectorAll('.filter-btn').forEach(b => b.classList.remove('active'));
btn.classList.add('active');
const filter = btn.dataset.filter;
markers.forEach(marker => {
if (filter === 'all' || marker.userData.status === filter) {
marker.visible = true;
if (marker.userData.ring) marker.userData.ring.visible = true;
} else {
marker.visible = false;
if (marker.userData.ring) marker.userData.ring.visible = false;
}
});
});
});
// Update time
function updateTime() {
const now = new Date();
document.getElementById('system-time').textContent = now.toLocaleTimeString('en-US', { hour12: false });
document.getElementById('system-date').textContent = now.toLocaleDateString('en-US', { weekday: 'short', month: 'short', day: 'numeric', year: 'numeric' });
}
updateTime();
setInterval(updateTime, 1000);
// Populate activity feed
const activityList = document.getElementById('activity-list');
activities.forEach(activity => {
const item = document.createElement('div');
item.className = 'activity-item';
item.innerHTML = `
<div class="activity-icon ${activity.type}">${getActivityIcon(activity.type)}</div>
<div class="activity-content">
<div class="activity-text">${activity.text}</div>
<div class="activity-time">${activity.time}</div>
</div>
`;
activityList.appendChild(item);
});
function getActivityIcon(type) {
switch(type) {
case 'deploy': return '✈';
case 'supply': return '📦';
case 'alert': return '⚠';
case 'care': return '♥';
default: return '●';
}
}
// Populate follow-ups
const followupList = document.getElementById('followup-list');
followups.forEach(followup => {
const item = document.createElement('div');
item.className = 'followup-item';
item.innerHTML = `
<div class="followup-priority ${followup.priority}"></div>
<div class="followup-info">
<div class="followup-name">${followup.name}</div>
<div class="followup-date">${followup.date}</div>
</div>
<span class="followup-type">${followup.type}</span>
`;
followupList.appendChild(item);
});
// Simulate real-time updates
function addRandomActivity() {
const newActivities = [
{ type: 'deploy', text: 'Field hospital operational in new sector', time: 'Just now' },
{ type: 'supply', text: 'Medical equipment delivered to Haiti', time: 'Just now' },
{ type: 'care', text: 'Patient discharge approved - follow-up scheduled', time: 'Just now' },
{ type: 'alert', text: 'Weather alert: Storm approaching Manila region', time: 'Just now' },
{ type: 'deploy', text: 'Staff rotation completed in Nairobi', time: 'Just now' }
];
const randomActivity = newActivities[Math.floor(Math.random() * newActivities.length)];
const item = document.createElement('div');
item.className = 'activity-item';
item.innerHTML = `
<div class="activity-icon ${randomActivity.type}">${getActivityIcon(randomActivity.type)}</div>
<div class="activity-content">
<div class="activity-text">${randomActivity.text}</div>
<div class="activity-time">${randomActivity.time}</div>
</div>
`;
activityList.insertBefore(item, activityList.firstChild);
// Keep only last 10 items
while (activityList.children.length > 10) {
activityList.removeChild(activityList.lastChild);
}
}
setInterval(addRandomActivity, 8000);
// Animate counters
function animateValue(element, start, end, duration) {
let startTimestamp = null;
const step = (timestamp) => {
if (!startTimestamp) startTimestamp = timestamp;
const progress = Math.min((timestamp - startTimestamp) / duration, 1);
const value = Math.floor(progress * (end - start) + start);
element.textContent = value;
if (progress < 1) {
window.requestAnimationFrame(step);
}
};
window.requestAnimationFrame(step);
}
// Initial animations
setTimeout(() => {
animateValue(document.getElementById('active-personnel'), 0, 847, 2000);
}, 500);
// Supply item hover effects
document.querySelectorAll('.supply-item').forEach(item => {
item.addEventListener('mouseenter', () => {
item.style.boxShadow = '0 0 20px rgba(0, 212, 170, 0.2)';
});
item.addEventListener('mouseleave', () => {
item.style.boxShadow = 'none';
});
});
// Deployment card click handlers
document.querySelectorAll('.deployment-card').forEach(card => {
card.addEventListener('click', () => {
card.style.transform = 'translateY(-8px) scale(1.02)';
setTimeout(() => {
card.style.transform = '';
}, 200);
});
});
</script>
</body>
</html>
Key Features
3D Interactive Globe
- Custom shader-based Earth with grid overlay and atmospheric glow
- Animated markers showing deployment locations with status-based colors
- Pulse animations on markers indicating activity
- Hover tooltips with deployment details
- Filter buttons to show Active/Staging/Critical deployments
Credentialing Panel
- Staff verification status tracking
- Visual indicators for Verified/Pending/Expired credentials
- Hover animations for interaction
Supply Cache Tracker
- Real-time inventory levels with visual progress bars
- Color-coded status (green/amber/red)
- Critical alerts for low supplies
Post-Deployment Care Center
- Follow-up rate metrics
- Telehealth session tracking
- Priority-based patient follow-up queue
Real-time Updates
- Live activity feed with auto-updating entries
- Animated counter for active personnel
- System clock with current time
Visual Design
- Dark command center aesthetic
- Cyan/teal primary accent for health data
- Amber for warnings, red for critical alerts
- Animated grid background
- Glowing effects and smooth transitions