Build a credentialing transparency dashboard: competencies, artifacts, and verification…
- User
Build a credentialing transparency dashboard: competencies, artifacts, and verification APIs.
Assistant
The user wants a credentialing transparency dashboard with:
- Competencies - skills, qualifications, abilities
- Artifacts - evidence, documents, proofs
- Verification APIs - methods to verify credentials
This should be a single HTML file with:
- Dynamic, interactive elements
- Good design (not template-y)
- At least 3 dynamic elements
- No emoji in titles/buttons
- Good contrast
- 3D or animated effects
Let me design a sophisticated dashboard with:
- A 3D rotating credential card or badge system
- Animated particle background representing "data flows"
- Interactive competency progress rings
- Artifact gallery with hover effects
- API verification simulation with loading states
- Data visualization for credentials
Design concept: Dark theme with cyan/teal accents, technical/professional feel
- Use Three.js for a 3D background with floating geometric shapes
- Animated competency rings
- Interactive cards with depth
- Verification status animations
Let me build this properly with:
- Clean dark UI with high contrast
- Animated elements throughout
- Interactive verification simulation
- Good information hierarchy
Credentialing Transparency Dashboard
A professional dashboard for managing competencies, artifacts, and verification APIs with dynamic visualizations and interactive elements.
Design approach:
- Dark, technical aesthetic with cyan accents for a professional credentialing feel
- 3D animated background with floating geometric nodes representing verification network
- Animated competency progress rings
- Interactive artifact gallery with verification status
- Live API verification simulation with real-time feedback
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Credentialing Transparency Dashboard</title> <script src="https://cdn.tailwindcss.com"></script> <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet"> <style> :root { --bg: #0a0e14; --bg-secondary: #12171f; --fg: #e6edf3; --muted: #6b7a8f; --accent: #00d4aa; --accent-dim: rgba(0, 212, 170, 0.15); --card: #161c24; --border: #2a3544; --warning: #f0b429; --error: #ef4444; --success: #00d4aa; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Space Grotesk', sans-serif; background: var(--bg); color: var(--fg); min-height: 100vh; overflow-x: hidden; } .mono { font-family: 'JetBrains Mono', monospace; } #bg-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; } .main-content { position: relative; z-index: 1; } /* Progress Ring */ .progress-ring { transform: rotate(-90deg); } .progress-ring-circle { transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1); } /* Card hover effects */ .credential-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; } .credential-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 20px 40px rgba(0, 212, 170, 0.1); } /* API pulse animation */ @keyframes pulse-ring { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } } .api-status-pulse { animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; } /* Verification animation */ @keyframes verify-scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } } .verifying::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: verify-scan 1.5s ease-in-out infinite; } /* Stagger entrance */ @keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } } .animate-in { animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; } /* Tab indicator */ .tab-indicator { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } /* Scrollbar */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: var(--bg-secondary); } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--muted); } /* Focus states */ button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* Reduced motion */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } } .grid-pattern { background-image: linear-gradient(rgba(42, 53, 68, 0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(42, 53, 68, 0.3) 1px, transparent 1px); background-size: 40px 40px; } </style> </head> <body class="grid-pattern"> <canvas id="bg-canvas"></canvas> <div class="main-content min-h-screen"> <!-- Header --> <header class="border-b border-[var(--border)] bg-[var(--bg)]/80 backdrop-blur-xl sticky top-0 z-50"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> <div class="flex items-center justify-between h-16"> <div class="flex items-center gap-3"> <div class="w-10 h-10 rounded-lg bg-gradient-to-br from-[var(--accent)] to-teal-600 flex items-center justify-center"> <svg class="w-6 h-6 text-[var(--bg)]" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/> </svg> </div> <div> <h1 class="text-lg font-semibold tracking-tight">CredentialVault</h1> <p class="text-xs text-[var(--muted)]">Transparency Dashboard</p> </div> </div> <div class="flex items-center gap-4"> <div class="hidden sm:flex items-center gap-2 px-3 py-1.5 rounded-full bg-[var(--accent-dim)] border border-[var(--accent)]/30"> <span class="w-2 h-2 rounded-full bg-[var(--accent)] animate-pulse"></span> <span class="text-sm text-[var(--accent)] mono">System Online</span> </div> <button id="theme-toggle" class="p-2 rounded-lg hover:bg-[var(--card)] transition-colors" aria-label="Toggle theme"> <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"/> </svg> </button> </div> </div> </div> </header> <!-- Main Grid --> <main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> <!-- Stats Row --> <div class="grid grid-cols-2 lg:grid-cols-4 gap-4 mb-8"> <div class="animate-in bg-[var(--card)] rounded-xl p-5 border border-[var(--border)]" style="animation-delay: 0.1s"> <div class="flex items-center justify-between mb-3"> <span class="text-[var(--muted)] text-sm">Total Credentials</span> <svg class="w-5 h-5 text-[var(--accent)]" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/> </svg> </div> <p class="text-3xl font-bold mono" id="stat-credentials">0</p> <p class="text-xs text-[var(--success)] mt-1">+12 this month</p> </div> <div class="animate-in bg-[var(--card)] rounded-xl p-5 border border-[var(--border)]" style="animation-delay: 0.15s"> <div class="flex items-center justify-between mb-3"> <span class="text-[var(--muted)] text-sm">Verified</span> <svg class="w-5 h-5 text-[var(--success)]" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/> </svg> </div> <p class="text-3xl font-bold mono" id="stat-verified">0</p> <p class="text-xs text-[var(--muted)] mt-1">98.2% pass rate</p> </div> <div class="animate-in bg-[var(--card)] rounded-xl p-5 border border-[var(--border)]" style="animation-delay: 0.2s"> <div class="flex items-center justify-between mb-3"> <span class="text-[var(--muted)] text-sm">API Calls</span> <svg class="w-5 h-5 text-[var(--warning)]" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"/> </svg> </div> <p class="text-3xl font-bold mono" id="stat-calls">0</p> <p class="text-xs text-[var(--muted)] mt-1">Last 24 hours</p> </div> <div class="animate-in bg-[var(--card)] rounded-xl p-5 border border-[var(--border)]" style="animation-delay: 0.25s"> <div class="flex items-center justify-between mb-3"> <span class="text-[var(--muted)] text-sm">Trust Score</span> <svg class="w-5 h-5 text-[var(--accent)]" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/> </svg> </div> <p class="text-3xl font-bold mono" id="stat-trust">0</p> <p class="text-xs text-[var(--success)] mt-1">Excellent</p> </div> </div> <!-- Tab Navigation --> <div class="animate-in mb-6" style="animation-delay: 0.3s"> <div class="flex gap-1 p-1 bg-[var(--card)] rounded-lg border border-[var(--border)] inline-flex relative"> <div class="tab-indicator absolute h-[calc(100%-8px)] bg-[var(--accent)]/20 rounded-md top-1 transition-all" id="tab-indicator"></div> <button class="tab-btn px-5 py-2 rounded-md text-sm font-medium relative z-10 transition-colors" data-tab="competencies"> Competencies </button> <button class="tab-btn px-5 py-2 rounded-md text-sm font-medium relative z-10 transition-colors text-[var(--muted)]" data-tab="artifacts"> Artifacts </button> <button class="tab-btn px-5 py-2 rounded-md text-sm font-medium relative z-10 transition-colors text-[var(--muted)]" data-tab="apis"> Verification APIs </button> </div> </div> <!-- Tab Content --> <div class="tab-contents"> <!-- Competencies Tab --> <section id="competencies-content" class="tab-content"> <div class="grid lg:grid-cols-3 gap-6"> <!-- Competency Rings --> <div class="lg:col-span-2"> <div class="animate-in bg-[var(--card)] rounded-xl border border-[var(--border)] p-6" style="animation-delay: 0.35s"> <h2 class="text-lg font-semibold mb-6">Competency Progress</h2> <div class="grid grid-cols-2 sm:grid-cols-3 gap-6" id="competency-rings"> <!-- Rings injected by JS --> </div> </div> </div> <!-- Competency List --> <div class="animate-in bg-[var(--card)] rounded-xl border border-[var(--border)] p-6" style="animation-delay: 0.4s"> <h2 class="text-lg font-semibold mb-4">Recent Achievements</h2> <div class="space-y-3" id="achievements-list"> <!-- Achievements injected by JS --> </div> </div> </div> <!-- Competency Details Grid --> <div class="mt-6 grid sm:grid-cols-2 lg:grid-cols-3 gap-4" id="competency-cards"> <!-- Cards injected by JS --> </div> </section> <!-- Artifacts Tab --> <section id="artifacts-content" class="tab-content hidden"> <div class="grid lg:grid-cols-4 gap-4 mb-6"> <div class="lg:col-span-4 flex flex-wrap gap-3"> <button class="artifact-filter active px-4 py-2 rounded-lg bg-[var(--accent)] text-[var(--bg)] text-sm font-medium transition-all" data-filter="all">All</button> <button class="artifact-filter px-4 py-2 rounded-lg bg-[var(--card)] border border-[var(--border)] text-sm font-medium transition-all hover:border-[var(--accent)]" data-filter="certificate">Certificates</button> <button class="artifact-filter px-4 py-2 rounded-lg bg-[var(--card)] border border-[var(--border)] text-sm font-medium transition-all hover:border-[var(--accent)]" data-filter="transcript">Transcripts</button> <button class="artifact-filter px-4 py-2 rounded-lg bg-[var(--card)] border border-[var(--border)] text-sm font-medium transition-all hover:border-[var(--accent)]" data-filter="portfolio">Portfolio</button> <button class="artifact-filter px-4 py-2 rounded-lg bg-[var(--card)] border border-[var(--border)] text-sm font-medium transition-all hover:border-[var(--accent)]" data-filter="badge">Badges</button> </div> </div> <div class="grid sm:grid-cols-2 lg:grid-cols-3 gap-4" id="artifacts-grid"> <!-- Artifacts injected by JS --> </div> </section> <!-- APIs Tab --> <section id="apis-content" class="tab-content hidden"> <div class="grid lg:grid-cols-3 gap-6"> <!-- API List --> <div class="lg:col-span-2"> <div class="space-y-4" id="api-list"> <!-- APIs injected by JS --> </div> </div> <!-- API Tester --> <div class="animate-in bg-[var(--card)] rounded-xl border border-[var(--border)] p-6 h-fit sticky top-24" style="animation-delay: 0.35s"> <h2 class="text-lg font-semibold mb-4">API Tester</h2> <div class="space-y-4"> <div> <label class="block text-sm text-[var(--muted)] mb-2">Credential ID</label> <input type="text" id="test-credential-id" value="CR-2024-7842" class="w-full px-4 py-2.5 rounded-lg bg-[var(--bg)] border border-[var(--border)] text-sm mono focus:border-[var(--accent)] focus:outline-none transition-colors"> </div> <div> <label class="block text-sm text-[var(--muted)] mb-2">API Endpoint</label> <select id="test-endpoint" class="w-full px-4 py-2.5 rounded-lg bg-[var(--bg)] border border-[var(--border)] text-sm focus:border-[var(--accent)] focus:outline-none transition-colors"> <option value="verify">POST /verify</option> <option value="status">GET /status</option> <option value="revoke">POST /revoke</option> </select> </div> <button id="run-test-btn" class="w-full py-3 rounded-lg bg-[var(--accent)] text-[var(--bg)] font-medium hover:bg-[var(--accent)]/90 transition-colors flex items-center justify-center gap-2"> <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"/> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/> </svg> Run Verification </button> <!-- Response --> <div id="api-response" class="hidden"> <label class="block text-sm text-[var(--muted)] mb-2">Response</label> <div class="p-4 rounded-lg bg-[var(--bg)] border border-[var(--border)] mono text-xs overflow-auto max-h-48"> <pre id="response-body" class="text-[var(--fg)]"></pre> </div> </div> </div> </div> </div> </section> </div> </main> </div> <script> // ===================== // DATA // ===================== const competencies = [ { id: 1, name: 'Cloud Architecture', level: 92, category: 'Technical', verified: true }, { id: 2, name: 'Machine Learning', level: 78, category: 'Technical', verified: true }, { id: 3, name: 'Security Compliance', level: 95, category: 'Compliance', verified: true }, { id: 4, name: 'Data Engineering', level: 84, category: 'Technical', verified: false }, { id: 5, name: 'Project Management', level: 88, category: 'Management', verified: true }, { id: 6, name: 'DevOps Practices', level: 91, category: 'Technical', verified: true }, ]; const achievements = [ { title: 'AWS Solutions Architect', date: '2024-01-15', type: 'certification' }, { title: 'Kubernetes Administrator', date: '2024-01-10', type: 'certification' }, { title: 'Security+ Renewal', date: '2024-01-05', type: 'renewal' }, { title: 'Terraform Associate', date: '2023-12-20', type: 'certification' }, ]; const artifacts = [ { id: 'ART-001', name: 'AWS Solutions Architect Pro', type: 'certificate', issuer: 'Amazon Web Services', date: '2024-01-15', verified: true, hash: '0x8f4a2...3b91' }, { id: 'ART-002', name: 'CKA Certification', type: 'certificate', issuer: 'CNCF', date: '2024-01-10', verified: true, hash: '0x2c7e1...9d42' }, { id: 'ART-003', name: 'University Transcript', type: 'transcript', issuer: 'MIT', date: '2023-06-01', verified: true, hash: '0x1a3b5...7c82' }, { id: 'ART-004', name: 'Project Portfolio', type: 'portfolio', issuer: 'Self', date: '2024-01-01', verified: false, hash: null }, { id: 'ART-005', name: 'Security Fundamentals', type: 'badge', issuer: 'CompTIA', date: '2024-01-05', verified: true, hash: '0x9d2f8...1e54' }, { id: 'ART-006', name: 'Terraform Associate', type: 'certificate', issuer: 'HashiCorp', date: '2023-12-20', verified: true, hash: '0x4e8c3...6a27' }, ]; const apis = [ { name: 'Credential Verification', endpoint: '/api/v1/verify', method: 'POST', description: 'Verify the authenticity and validity of a credential', status: 'operational', latency: 45, calls24h: 12847 }, { name: 'Status Check', endpoint: '/api/v1/status', method: 'GET', description: 'Check the current status of a credential', status: 'operational', latency: 23, calls24h: 34291 }, { name: 'Batch Verification', endpoint: '/api/v1/verify/batch', method: 'POST', description: 'Verify multiple credentials in a single request', status: 'degraded', latency: 312, calls24h: 1847 }, { name: 'Revoke Credential', endpoint: '/api/v1/revoke', method: 'POST', description: 'Revoke a previously issued credential', status: 'operational', latency: 67, calls24h: 892 }, { name: 'Issuer Registry', endpoint: '/api/v1/issuers', method: 'GET', description: 'Query trusted credential issuers', status: 'operational', latency: 18, calls24h: 8234 }, ]; // ===================== // 3D BACKGROUND // ===================== const canvas = document.getElementById('bg-canvas'); const ctx = canvas.getContext('2d'); let nodes = []; let mouseX = 0; let mouseY = 0; let animationId = null; function resizeCanvas() { canvas.width = window.innerWidth; canvas.height = window.innerHeight; initNodes(); } function initNodes() { nodes = []; const nodeCount = Math.floor((canvas.width * canvas.height) / 25000); for (let i = 0; i < nodeCount; i++) { nodes.push({ x: Math.random() * canvas.width, y: Math.random() * canvas.height, vx: (Math.random() - 0.5) * 0.3, vy: (Math.random() - 0.5) * 0.3, radius: Math.random() * 2 + 1, alpha: Math.random() * 0.5 + 0.2 }); } } function drawBackground() { ctx.clearRect(0, 0, canvas.width, canvas.height); // Draw connections ctx.strokeStyle = 'rgba(0, 212, 170, 0.1)'; ctx.lineWidth = 1; for (let i = 0; i < nodes.length; i++) { for (let j = i + 1; j < nodes.length; j++) { const dx = nodes[i].x - nodes[j].x; const dy = nodes[i].y - nodes[j].y; const dist = Math.sqrt(dx * dx + dy * dy); if (dist < 150) { ctx.beginPath(); ctx.moveTo(nodes[i].x, nodes[i].y); ctx.lineTo(nodes[j].x, nodes[j].y); ctx.globalAlpha = (1 - dist / 150) * 0.3; ctx.stroke(); } } } // Draw nodes for (const node of nodes) { // Mouse influence const dx = mouseX - node.x; const dy = mouseY - node.y; const dist = Math.sqrt(dx * dx + dy * dy); if (dist < 200) { node.vx += dx * 0.00005; node.vy += dy * 0.00005; } // Update position node.x += node.vx; node.y += node.vy; // Bounce off edges if (node.x < 0 || node.x > canvas.width) node.vx *= -1; if (node.y < 0 || node.y > canvas.height) node.vy *= -1; // Keep in bounds node.x = Math.max(0, Math.min(canvas.width, node.x)); node.y = Math.max(0, Math.min(canvas.height, node.y)); // Draw node ctx.beginPath(); const safeRadius = Math.max(0.5, node.radius); ctx.arc(node.x, node.y, safeRadius, 0, Math.PI * 2); ctx.fillStyle = `rgba(0, 212, 170, ${node.alpha})`; ctx.globalAlpha = 1; ctx.fill(); } animationId = requestAnimationFrame(drawBackground); } // Check for reduced motion preference const prefersReducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches; if (!prefersReducedMotion) { resizeCanvas(); drawBackground(); window.addEventListener('resize', resizeCanvas); document.addEventListener('mousemove', (e) => { mouseX = e.clientX; mouseY = e.clientY; }); } // ===================== // ANIMATED STATS // ===================== function animateNumber(element, target, duration = 1500) { const start = 0; const startTime = performance.now(); function update(currentTime) { const elapsed = currentTime - startTime; const progress = Math.min(elapsed / duration, 1); const eased = 1 - Math.pow(1 - progress, 3); const current = Math.floor(start + (target - start) * eased); element.textContent = current.toLocaleString(); if (progress < 1) { requestAnimationFrame(update); } } requestAnimationFrame(update); } // Initialize stats setTimeout(() => { animateNumber(document.getElementById('stat-credentials'), 247); animateNumber(document.getElementById('stat-verified'), 243); animateNumber(document.getElementById('stat-calls'), 58217); animateNumber(document.getElementById('stat-trust'), 97); }, 500); // ===================== // COMPETENCY RINGS // ===================== function createCompetencyRing(competency) { const radius = 40; const circumference = 2 * Math.PI * radius; const offset = circumference - (competency.level / 100) * circumference; return ` <div class="flex flex-col items-center"> <div class="relative"> <svg class="progress-ring w-24 h-24"> <circle cx="48" cy="48" r="${radius}" stroke="var(--border)" stroke-width="6" fill="none" /> <circle class="progress-ring-circle" cx="48" cy="48" r="${radius}" stroke="${competency.verified ? 'var(--accent)' : 'var(--warning)'}" stroke-width="6" fill="none" stroke-linecap="round" stroke-dasharray="${circumference}" stroke-dashoffset="${circumference}" data-target="${offset}" /> </svg> <div class="absolute inset-0 flex items-center justify-center"> <span class="text-lg font-bold mono">${competency.level}</span> </div> </div> <p class="mt-2 text-sm font-medium text-center">${competency.name}</p> <p class="text-xs text-[var(--muted)]">${competency.category}</p> </div> `; } function animateRings() { const rings = document.querySelectorAll('.progress-ring-circle'); rings.forEach((ring, i) => { setTimeout(() => { ring.style.strokeDashoffset = ring.dataset.target; }, i * 100); }); } document.getElementById('competency-rings').innerHTML = competencies.map(createCompetencyRing).join(''); setTimeout(animateRings, 800); // ===================== // ACHIEVEMENTS LIST // ===================== function createAchievementItem(achievement) { const icon = achievement.type === 'certification' ? `<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"/></svg>` : `<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"/></svg>`; return ` <div class="flex items-center gap-3 p-3 rounded-lg bg-[var(--bg)] border border-[var(--border)] hover:border-[var(--accent)]/50 transition-colors cursor-pointer"> <div class="w-10 h-10 rounded-lg bg-[var(--accent-dim)] flex items-center justify-center text-[var(--accent)]"> ${icon} </div> <div class="flex-1 min-w-0"> <p class="text-sm font-medium truncate">${achievement.title}</p> <p class="text-xs text-[var(--muted)]">${new Date(achievement.date).toLocaleDateString()}</p> </div> </div> `; } document.getElementById('achievements-list').innerHTML = achievements.map(createAchievementItem).join(''); // ===================== // COMPETENCY CARDS // ===================== function createCompetencyCard(competency) { return ` <div class="credential-card animate-in bg-[var(--card)] rounded-xl border border-[var(--border)] p-5 cursor-pointer" style="animation-delay: ${0.45 + competency.id * 0.05}s"> <div class="flex items-start justify-between mb-4"> <div class="w-10 h-10 rounded-lg ${competency.verified ? 'bg-[var(--accent-dim)]' : 'bg-[var(--warning)]/20'} flex items-center justify-center"> ${competency.verified ? '<svg class="w-5 h-5 text-[var(--accent)]" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/></svg>' : '<svg class="w-5 h-5 text-[var(--warning)]" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>' } </div> <span class="px-2 py-1 text-xs rounded-md ${competency.verified ? 'bg-[var(--accent)]/20 text-[var(--accent)]' : 'bg-[var(--warning)]/20 text-[var(--warning)]'}"> ${competency.verified ? 'Verified' : 'Pending'} </span> </div> <h3 class="font-semibold mb-1">${competency.name}</h3> <p class="text-sm text-[var(--muted)] mb-4">${competency.category}</p> <div class="h-2 rounded-full bg-[var(--bg)] overflow-hidden"> <div class="h-full rounded-full transition-all duration-1000 ${competency.verified ? 'bg-[var(--accent)]' : 'bg-[var(--warning)]'}" style="width: 0%" data-width="${competency.level}%"></div> </div> <p class="text-xs text-[var(--muted)] mt-2 text-right mono">${competency.level}% proficiency</p> </div> `; } document.getElementById('competency-cards').innerHTML = competencies.map(createCompetencyCard).join(''); // Animate progress bars setTimeout(() => { document.querySelectorAll('[data-width]').forEach(bar => { bar.style.width = bar.dataset.width; }); }, 1000); // ===================== // ARTIFACTS // ===================== let currentFilter = 'all'; function getArtifactIcon(type) { const icons = { certificate: '<svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/></svg>', transcript: '<svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"/></svg>', portfolio: '<svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"/></svg>', badge: '<svg class="w-8 h-8" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"/></svg>' }; return icons[type] || icons.certificate; } function createArtifactCard(artifact) { return ` <div class="credential-card animate-in bg-[var(--card)] rounded-xl border border-[var(--border)] overflow-hidden cursor-pointer" data-type="${artifact.type}"> <div class="p-5"> <div class="flex items-start justify-between mb-4"> <div class="w-14 h-14 rounded-xl bg-gradient-to-br from-[var(--accent)]/20 to-teal-600/10 flex items-center justify-center text-[var(--accent)]"> ${getArtifactIcon(artifact.type)} </div> ${artifact.verified ? '<span class="flex items-center gap-1.5 text-xs text-[var(--success)]"><span class="w-1.5 h-1.5 rounded-full bg-[var(--success)]"></span>Verified</span>' : '<span class="flex items-center gap-1.5 text-xs text-[var(--warning)]"><span class="w-1.5 h-1.5 rounded-full bg-[var(--warning)]"></span>Pending</span>' } </div> <h3 class="font-semibold mb-1">${artifact.name}</h3> <p class="text-sm text-[var(--muted)] mb-3">${artifact.issuer}</p> <div class="flex items-center justify-between text-xs"> <span class="text-[var(--muted)]">${new Date(artifact.date).toLocaleDateString()}</span> ${artifact.hash ? `<span class="mono text-[var(--accent)]/70">${artifact.hash}</span>` : '<span class="text-[var(--muted)]">No hash</span>'} </div> </div> <div class="px-5 py-3 bg-[var(--bg)] border-t border-[var(--border)] flex items-center justify-between"> <span class="text-xs text-[var(--muted)] mono">${artifact.id}</span> <button class="text-xs text-[var(--accent)] hover:underline" onclick="event.stopPropagation(); verifyArtifact('${artifact.id}')"> ${artifact.verified ? 'View Details' : 'Verify Now'} </button> </div> </div> `; } function renderArtifacts(filter = 'all') { const filtered = filter === 'all' ? artifacts : artifacts.filter(a => a.type === filter); document.getElementById('artifacts-grid').innerHTML = filtered.map((a, i) => { const card = createArtifactCard(a); return card.replace('animate-in"', `animate-in" style="animation-delay: ${0.3 + i * 0.05}s`); }).join(''); } renderArtifacts(); // Artifact filter handlers document.querySelectorAll('.artifact-filter').forEach(btn => { btn.addEventListener('click', () => { document.querySelectorAll('.artifact-filter').forEach(b => { b.classList.remove('active', 'bg-[var(--accent)]', 'text-[var(--bg)]'); b.classList.add('bg-[var(--card)]'); }); btn.classList.add('active', 'bg-[var(--accent)]', 'text-[var(--bg)]'); btn.classList.remove('bg-[var(--card)]'); renderArtifacts(btn.dataset.filter); }); }); function verifyArtifact(id) { const card = document.querySelector(`[data-type] button[onclick*="${id}"]`)?.closest('.credential-card'); if (card) { card.classList.add('verifying', 'relative', 'overflow-hidden'); setTimeout(() => { card.classList.remove('verifying'); }, 2000); } } // ===================== // API LIST // ===================== function createApiCard(api, index) { const statusColors = { operational: { bg: 'bg-[var(--success)]/20', text: 'text-[var(--success)]', label: 'Operational' }, degraded: { bg: 'bg-[var(--warning)]/20', text: 'text-[var(--warning)]', label: 'Degraded' }, down: { bg: 'bg-[var(--error)]/20', text: 'text-[var(--error)]', label: 'Down' } }; const status = statusColors[api.status]; return ` <div class="credential-card animate-in bg-[var(--card)] rounded-xl border border-[var(--border)] p-5" style="animation-delay: ${0.3 + index * 0.05}s"> <div class="flex items-start justify-between mb-4"> <div class="flex items-center gap-3"> <div class="relative"> <span class="w-3 h-3 rounded-full ${status.bg.replace('/20', '')} block"></span> <span class="absolute inset-0 w-3 h-3 rounded-full ${status.bg.replace('/20', '')} api-status-pulse"></span> </div> <div> <h3 class="font-semibold">${api.name}</h3> <p class="text-sm text-[var(--muted)]">${api.description}</p> </div> </div> <span class="px-2.5 py-1 text-xs rounded-md ${status.bg} ${status.text}">${status.label}</span> </div> <div class="p-3 rounded-lg bg-[var(--bg)] border border-[var(--border)] mb-4"> <div class="flex items-center gap-2"> <span class="px-2 py-0.5 text-xs rounded ${api.method === 'GET' ? 'bg-green-500/20 text-green-400' : 'bg-blue-500/20 text-blue-400'} mono">${api.method}</span> <code class="text-sm mono text-[var(--muted)]">${api.endpoint}</code> </div> </div> <div class="grid grid-cols-2 gap-4 text-sm"> <div> <p class="text-[var(--muted)] text-xs mb-1">Avg Latency</p> <p class="font-medium mono">${api.latency}ms</p> </div> <div> <p class="text-[var(--muted)] text-xs mb-1">Calls (24h)</p> <p class="font-medium mono">${api.calls24h.toLocaleString()}</p> </div> </div> </div> `; } document.getElementById('api-list').innerHTML = apis.map((api, i) => createApiCard(api, i)).join(''); // ===================== // API TESTER // ===================== document.getElementById('run-test-btn').addEventListener('click', async function() { const btn = this; const credentialId = document.getElementById('test-credential-id').value; const endpoint = document.getElementById('test-endpoint').value; const responseDiv = document.getElementById('api-response'); const responseBody = document.getElementById('response-body'); btn.disabled = true; btn.innerHTML = ` <svg class="w-4 h-4 animate-spin" fill="none" viewBox="0 0 24 24"> <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle> <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path> </svg> Verifying... `; await new Promise(r => setTimeout(r, 1500)); const responses = { verify: { status: 200, data: { credential_id: credentialId, verified: true, verification_date: new Date().toISOString(), issuer: "CredentialVault Authority", signature_valid: true, not_revoked: true, trust_score: 97 } }, status: { status: 200, data: { credential_id: credentialId, status: "active", issued: "2024-01-15T10:30:00Z", expires: "2027-01-15T10:30:00Z", last_verified: new Date().toISOString() } }, revoke: { status: 200, data: { credential_id: credentialId, revoked: true, revocation_date: new Date().toISOString(), reason: "User requested" } } }; const response = responses[endpoint]; responseDiv.classList.remove('hidden'); responseBody.textContent = JSON.stringify(response, null, 2); btn.disabled = false; btn.innerHTML = ` <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"/> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/> </svg> Run Verification `; }); // ===================== // TAB NAVIGATION // ===================== const tabBtns = document.querySelectorAll('.tab-btn'); const tabContents = document.querySelectorAll('.tab-content'); const tabIndicator = document.getElementById('tab-indicator'); function updateTabIndicator(btn) { const rect = btn.getBoundingClientRect(); const parentRect = btn.parentElement.getBoundingClientRect(); tabIndicator.style.left = `${rect.left - parentRect.left}px`; tabIndicator.style.width = `${rect.width}px`; } tabBtns.forEach(btn => { btn.addEventListener('click', () => { const tab = btn.dataset.tab; // Update buttons tabBtns.forEach(b => b.classList.add('text-[var(--muted)]')); btn.classList.remove('text-[var(--muted)]'); // Update indicator updateTabIndicator(btn); // Update content tabContents.forEach(content => { content.classList.add('hidden'); }); document.getElementById(`${tab}-content`).classList.remove('hidden'); // Re-trigger animations for newly visible content const cards = document.querySelectorAll(`#${tab}-content .animate-in`); cards.forEach(card => { card.style.animation = 'none'; card.offsetHeight; // Trigger reflow card.style.animation = null; }); }); }); // Initialize tab indicator setTimeout(() => { const activeTab = document.querySelector('.tab-btn[data-tab="competencies"]'); updateTabIndicator(activeTab); }, 100); // ===================== // THEME TOGGLE // ===================== const themeToggle = document.getElementById('theme-toggle'); let isDark = true; themeToggle.addEventListener('click', () => { isDark = !isDark; document.documentElement.style.setProperty('--bg', isDark ? '#0a0e14' : '#f8fafc'); document.documentElement.style.setProperty('--bg-secondary', isDark ? '#12171f' : '#e2e8f0'); document.documentElement.style.setProperty('--fg', isDark ? '#e6edf3' : '#0f172a'); document.documentElement.style.setProperty('--muted', isDark ? '#6b7a8f' : '#64748b'); document.documentElement.style.setProperty('--card', isDark ? '#161c24' : '#ffffff'); document.documentElement.style.setProperty('--border', isDark ? '#2a3544' : '#e2e8f0'); }); // ===================== // KEYBOARD NAVIGATION // ===================== document.addEventListener('keydown', (e) => { if (e.key === 'Tab') { document.body.classList.add('keyboard-nav'); } }); document.addEventListener('mousedown', () => { document.body.classList.remove('keyboard-nav'); }); </script> </body> </html>Key Features
Competencies Section:
- Animated circular progress rings showing proficiency levels
- Color-coded verification status (green = verified, amber = pending)
- Category badges and detailed progress bars
- Recent achievements timeline
Artifacts Section:
- Filterable grid by type (certificates, transcripts, portfolios, badges)
- Hash-based verification status with blockchain-style identifiers
- Scan animation on verification trigger
- Rich metadata display
Verification APIs:
- Live API status monitoring with pulse animations
- Latency and call volume metrics
- Interactive API tester with simulated responses
- Method badges (GET/POST) and endpoint display
Dynamic Elements:
- Particle network background with mouse interaction
- Animated stat counters on load
- Progress ring animations with staggered delays
- Card hover effects with depth transforms
- Verification scan animation
- API status pulse effects
- Tab transitions with indicator animation
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.