Spaces:
Running
Running
Act as a senior SaaS UI/UX designer. Redesign this analytics dashboard to feel modern, clean, and client-ready. Use a minimalist layout with strong visual hierarchy, generous whitespace, rounded cards, subtle shadows, and a neutral background. Emphasize key KPIs with large typography, soft accent colors, and light icons. Use a modern sans-serif font such as Inter or DM Sans. The design should feel premium, calm, and easy to scan, similar to high-end marketing dashboards.
Browse filesFiles changed (4)
- components/header.js+21-15
- components/metric-card.js+59-19
- index.html+10-29
- style.css+113-17
1234567891011121314151617181920212223242526272829303132333435class CustomHeader extends HTMLElement {connectedCallback() {this.attachShadow({ mode: 'open' });this.shadowRoot.innerHTML = `<style>.header {background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);color: white;box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);}.logo {font-weight: 700;letter-spacing: -0.025em;}.nav-link {transition: all 0.2s ease;}.nav-link:hover {opacity: 0.8;}</style><header class="header"><div class="container mx-auto px-4 py-4"><div class="flex items-center justify-between"><div class="flex items-center space-x-4"><div class="logo text-xl font-bold">Vet Evolve</div></div></div></div></header>`;}}customElements.define('custom-header', CustomHeader);1234567891011121314151617181920212223242526272829303132333435363738394041class CustomHeader extends HTMLElement {connectedCallback() {this.attachShadow({ mode: 'open' });this.shadowRoot.innerHTML = `<style>.header {background: white;color: var(--gray-800);box-shadow: 0 1px 3px rgba(0,0,0,0.05);border-bottom: 1px solid var(--gray-100);}.container {max-width: 1440px;margin: 0 auto;padding: 0 2rem;}.logo {font-weight: 700;font-size: 1.25rem;color: var(--gray-900);letter-spacing: -0.025em;}.nav {display: flex;align-items: center;height: 4rem;}</style><header class="header"><div class="container"><div class="nav"><div class="logo">Vet Evolve Analytics</div></div></div></header>`;}}customElements.define('custom-header', CustomHeader);
1231 unmodified line56789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354551 unmodified line57585960class MetricCard extends HTMLElement {connectedCallback() {this.attachShadow({ mode: 'open' });1 unmodified line<style>.card {background: white;border-radius: 0.75rem;box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);transition: transform 0.2s ease, box-shadow 0.2s ease;}.card:hover {transform: translateY(-2px);box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);}.icon-container {width: 2.5rem;height: 2.5rem;border-radius: 0.5rem;display: flex;align-items: center;justify-content: center;}.progress-bar {height: 0.5rem;border-radius: 0.25rem;background-color: #E5E7EB;}.progress-fill {height: 100%;border-radius: 0.25rem;}</style><div class="card p-6"><div class="flex justify-between items-start mb-4"><div><h3 class="text-sm font-medium text-gray-500"><slot name="title">Metric</slot></h3><p class="mt-1 text-2xl font-semibold text-gray-900"><slot name="value">0</slot></p></div><div class="icon-container" style="background-color: var(--icon-bg, #EFF6FF); color: var(--icon-color, #3B82F6);"><slot name="icon"><i data-feather="activity"></i></slot></div></div><div class="mt-6"><div class="flex items-center justify-between mb-2"><span class="text-sm font-medium text-gray-500"><slot name="progress-label">Progress</slot></span><span class="text-sm font-semibold" style="color: var(--progress-color, #10B981);"><slot name="progress-value">0%</slot></span></div><div class="progress-bar"><div class="progress-fill" style="width: var(--progress-width, 0%); background-color: var(--progress-color, #10B981);"></div></div></div></div>1 unmodified line}}customElements.define('metric-card', MetricCard);12341 unmodified line678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394951 unmodified line979899100class MetricCard extends HTMLElement {connectedCallback() {this.attachShadow({ mode: 'open' });1 unmodified line<style>.card {background: white;border-radius: 1rem;padding: 1.5rem;box-shadow: 0 1px 3px rgba(0,0,0,0.05);transition: all 0.2s ease;}.card:hover {box-shadow: 0 4px 6px rgba(0,0,0,0.05);transform: translateY(-2px);}.metric-header {display: flex;justify-content: space-between;align-items: flex-start;margin-bottom: 1rem;}.metric-value {font-size: 2.5rem;font-weight: 700;color: var(--gray-900);margin: 0.5rem 0;}.metric-label {font-size: 0.875rem;color: var(--gray-500);text-transform: uppercase;letter-spacing: 0.05em;}.icon-container {width: 3rem;height: 3rem;border-radius: 0.75rem;display: flex;align-items: center;justify-content: center;background-color: var(--gray-100);color: var(--primary);}.progress-container {margin-top: 1.5rem;}.progress-header {display: flex;justify-content: space-between;margin-bottom: 0.5rem;}.progress-label {font-size: 0.875rem;color: var(--gray-500);}.progress-value {font-size: 0.875rem;font-weight: 600;}.progress-bar {height: 0.5rem;border-radius: 0.25rem;background-color: var(--gray-200);overflow: hidden;}.progress-fill {height: 100%;border-radius: 0.25rem;background-color: var(--primary);}</style><div class="card"><div class="metric-header"><div><div class="metric-label"><slot name="title">Metric</slot></div><div class="metric-value"><slot name="value">0</slot></div></div><div class="icon-container"><slot name="icon"><i data-feather="activity"></i></slot></div></div><div class="progress-container"><div class="progress-header"><span class="progress-label"><slot name="progress-label">Progress</slot></span><span class="progress-value"><slot name="progress-value">0%</slot></span></div><div class="progress-bar"><div class="progress-fill" style="width: var(--progress-width, 0%); background-color: var(--progress-color, var(--primary));"></div></div></div></div>1 unmodified line}}customElements.define('metric-card', MetricCard);
10 unmodified lines1112131415161718192021222324252627282930313233343536373839404142434445464748495051525310 unmodified lines<script src="components/metric-card.js"></script><script src="components/header.js"></script></head><body class="bg-gray-50 min-h-screen"><custom-header></custom-header><main class="container mx-auto px-4 py-8"><div class="flex items-center mb-8"><h1 class="text-3xl font-bold text-gray-800 text-center w-full">Vet Evolve Performance Metrics</h1></div><div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"><!-- Metric cards will be inserted here by JavaScript --></div><div class="mt-12 bg-white rounded-xl shadow-md overflow-hidden"><div class="px-6 py-4 border-b border-gray-200"><h2 class="text-xl font-semibold text-gray-800">Detailed Performance Data</h2></div><div class="overflow-x-auto"><table class="min-w-full divide-y divide-gray-200"><thead class="bg-gray-50"><tr><th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Location</th><th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Metric</th><th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">October Baseline</th><th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Current (Nov-Dec)</th><th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Trend</th></tr></thead><tbody class="bg-white divide-y divide-gray-200" id="data-table"><!-- Table data will be inserted here by JavaScript --></tbody></table></div></div></main><script src="script.js"></script><script>feather.replace();</script><script src="https://huggingface.co/deepsite/deepsite-badge.js"></script></body></html>10 unmodified lines11121314151617181920212223242526272829303132333410 unmodified lines<script src="components/metric-card.js"></script><script src="components/header.js"></script></head><body><custom-header></custom-header><main class="container"><div class="space-y-6 py-8"><h1 class="text-2xl font-bold text-gray-900">Performance Dashboard</h1><div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"><!-- Metric cards will be inserted here by JavaScript --></div><div class="space-y-6"><!-- Tables will be inserted here by JavaScript --></div></div></main><script src="script.js"></script><script>feather.replace();</script></body></html>
12345678910111213141516171819202122232425262728293031323334@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');body {font-family: 'Inter', sans-serif;}.trend-improved {color: #10B981;}.trend-stable {color: #F59E0B;}.trend-worsened {color: #EF4444;}.shadow-card {box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);}.animate-pulse {animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;}@keyframes pulse {0%, 100% {opacity: 1;}50% {opacity: 0.5;}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');:root {--primary: #4F46E5;--primary-light: #6366F1;--success: #10B981;--warning: #F59E0B;--danger: #EF4444;--gray-50: #F9FAFB;--gray-100: #F3F4F6;--gray-200: #E5E7EB;--gray-300: #D1D5DB;--gray-400: #9CA3AF;--gray-500: #6B7280;--gray-600: #4B5563;--gray-700: #374151;--gray-800: #1F2937;--gray-900: #111827;}body {font-family: 'DM Sans', sans-serif;background-color: var(--gray-50);color: var(--gray-800);line-height: 1.5;}.container {max-width: 1440px;margin: 0 auto;padding: 0 2rem;}.card {background: white;border-radius: 1rem;padding: 1.5rem;box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);transition: all 0.2s ease;}.card:hover {box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.1);transform: translateY(-2px);}.metric-value {font-size: 2.5rem;font-weight: 700;color: var(--gray-900);margin: 0.5rem 0;}.metric-label {font-size: 0.875rem;color: var(--gray-500);text-transform: uppercase;letter-spacing: 0.05em;}.trend-improved {color: var(--success);}.trend-stable {color: var(--warning);}.trend-worsened {color: var(--danger);}.table-container {background: white;border-radius: 1rem;overflow: hidden;box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);}.table-header {padding: 1rem 1.5rem;border-bottom: 1px solid var(--gray-100);}.table-header h2 {font-size: 1.25rem;font-weight: 600;color: var(--gray-800);}.table-row {transition: background-color 0.2s ease;}.table-row:hover {background-color: var(--gray-50);}.icon-container {width: 3rem;height: 3rem;border-radius: 0.75rem;display: flex;align-items: center;justify-content: center;background-color: var(--gray-100);color: var(--primary);}.progress-bar {height: 0.5rem;border-radius: 0.25rem;background-color: var(--gray-200);overflow: hidden;}.progress-fill {height: 100%;border-radius: 0.25rem;background-color: var(--primary);}.space-y-6 > * + * {margin-top: 1.5rem;}.text-muted {color: var(--gray-500);}
components/header.js+21-15
components/metric-card.js+59-19
index.html+10-29
style.css+113-17