import { DeesElement, customElement, html, css, property, cssManager } from '@design.estate/dees-element'; @customElement('view-dashboard') export class ViewDashboard extends DeesElement { public static demo = () => html``; @property() accessor title: string = 'Dashboard'; @property({ type: Number }) accessor notificationCount: number = 3; public static styles = [ cssManager.defaultStyles, css` :host { display: block; min-height: 100%; background: ${cssManager.bdTheme('#f5f5f5', '#0a0a0a')}; color: ${cssManager.bdTheme('#1a1a1a', '#e5e5e5')}; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; } .dashboard { display: grid; grid-template-columns: 240px 1fr; grid-template-rows: 60px 1fr; min-height: 100vh; } .header { grid-column: 1 / -1; background: ${cssManager.bdTheme('#fff', '#111')}; border-bottom: 1px solid ${cssManager.bdTheme('#e5e5e5', '#222')}; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; } .header h1 { font-size: 18px; font-weight: 600; margin: 0; } .header-actions { display: flex; align-items: center; gap: 16px; } .notification-badge { position: relative; padding: 8px; cursor: pointer; } .notification-badge::after { content: attr(data-count); position: absolute; top: 2px; right: 2px; background: #ef4444; color: white; font-size: 10px; padding: 2px 6px; border-radius: 10px; font-weight: 600; } .sidebar { background: ${cssManager.bdTheme('#fff', '#0f0f0f')}; border-right: 1px solid ${cssManager.bdTheme('#e5e5e5', '#1a1a1a')}; padding: 16px 0; } .nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: ${cssManager.bdTheme('#666', '#999')}; cursor: pointer; transition: all 0.15s ease; } .nav-item:hover { background: ${cssManager.bdTheme('#f5f5f5', '#1a1a1a')}; color: ${cssManager.bdTheme('#1a1a1a', '#fff')}; } .nav-item.active { background: ${cssManager.bdTheme('rgba(59, 130, 246, 0.1)', 'rgba(59, 130, 246, 0.15)')}; color: #3b82f6; border-right: 3px solid #3b82f6; } .content { padding: 24px; overflow-y: auto; } .content-header { margin-bottom: 24px; } .content-header h2 { font-size: 24px; font-weight: 600; margin: 0 0 8px 0; } .content-header p { color: ${cssManager.bdTheme('#666', '#888')}; margin: 0; } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; } .stat-card { background: ${cssManager.bdTheme('#fff', '#111')}; border: 1px solid ${cssManager.bdTheme('#e5e5e5', '#222')}; border-radius: 8px; padding: 20px; } .stat-card .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: ${cssManager.bdTheme('#666', '#888')}; margin-bottom: 8px; } .stat-card .value { font-size: 28px; font-weight: 700; } .stat-card .change { font-size: 12px; color: #22c55e; margin-top: 4px; } .stat-card .change.negative { color: #ef4444; } .recent-activity { background: ${cssManager.bdTheme('#fff', '#111')}; border: 1px solid ${cssManager.bdTheme('#e5e5e5', '#222')}; border-radius: 8px; padding: 20px; } .recent-activity h3 { font-size: 16px; font-weight: 600; margin: 0 0 16px 0; } .activity-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid ${cssManager.bdTheme('#f0f0f0', '#1a1a1a')}; } .activity-item:last-child { border-bottom: none; } .activity-icon { width: 36px; height: 36px; border-radius: 8px; background: ${cssManager.bdTheme('#f5f5f5', '#1a1a1a')}; display: flex; align-items: center; justify-content: center; font-size: 14px; } .activity-content { flex: 1; } .activity-content .title { font-weight: 500; margin-bottom: 2px; } .activity-content .time { font-size: 12px; color: ${cssManager.bdTheme('#888', '#666')}; } `, ]; public render() { return html`

${this.title}

Notifications
User

Overview

Welcome back! Here's what's happening with your projects.

Total Revenue
$45,231
+20.1% from last month
Active Users
2,350
+180 new users
Pending Tasks
12
-3 from yesterday
Completion Rate
94.2%
+2.4% this week

Recent Activity

+
New project created
2 minutes ago
U
User settings updated
1 hour ago
D
Deployment completed
3 hours ago
`; } }