100+ copy-paste UI components in plain HTML and CSS: no dependencies, no build step.

0 downloads

dbbasic-web-native/demo-dashboard-complete.html
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-web-native.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-web-native.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-web-native.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 Add canonical.html v1.0 - The single source of truth for usability standards fb6e650 1 year ago History
demo-dashboard-complete.html · 26.4 KB · 821 lines
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <title>Dashboard / Application UI - Complete Collection</title>
7 <style>
8 * {
9 margin: 0;
10 padding: 0;
11 box-sizing: border-box;
12 }
13
14 @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
15
16 body {
17 font-family: 'Inter', sans-serif;
18 -webkit-font-smoothing: antialiased;
19 -moz-osx-font-smoothing: grayscale;
20 background: #f9fafb;
21 color: #1a1a1a;
22 }
23
24 .section-divider {
25 background: linear-gradient(to right, #f8f9fa, #ffffff);
26 padding: 20px 48px;
27 border-bottom: 1px solid #e5e7eb;
28 font-size: 11px;
29 font-weight: 600;
30 color: #6b7280;
31 text-transform: uppercase;
32 letter-spacing: 1.5px;
33 position: sticky;
34 top: 0;
35 z-index: 100;
36 backdrop-filter: blur(10px);
37 }
38
39 .container {
40 max-width: 1600px;
41 margin: 0 auto;
42 padding: 40px 24px;
43 }
44
45 /* ========== DASHBOARD LAYOUT ========== */
46 .dashboard-layout {
47 display: grid;
48 grid-template-columns: 250px 1fr;
49 gap: 0;
50 min-height: 100vh;
51 background: #ffffff;
52 }
53
54 .sidebar {
55 background: #111827;
56 color: white;
57 padding: 24px;
58 position: sticky;
59 top: 0;
60 height: 100vh;
61 overflow-y: auto;
62 }
63
64 .logo {
65 font-size: 24px;
66 font-weight: 800;
67 margin-bottom: 40px;
68 background: linear-gradient(135deg, #7C3AED, #DB2777);
69 -webkit-background-clip: text;
70 -webkit-text-fill-color: transparent;
71 }
72
73 .nav-section {
74 margin-bottom: 32px;
75 }
76
77 .nav-label {
78 font-size: 11px;
79 font-weight: 700;
80 color: #6b7280;
81 text-transform: uppercase;
82 letter-spacing: 0.1em;
83 margin-bottom: 12px;
84 }
85
86 .nav-item {
87 display: flex;
88 align-items: center;
89 gap: 12px;
90 padding: 12px 16px;
91 border-radius: 8px;
92 color: #9ca3af;
93 text-decoration: none;
94 font-size: 14px;
95 font-weight: 500;
96 margin-bottom: 4px;
97 transition: all 0.2s;
98 cursor: pointer;
99 }
100
101 .nav-item:hover {
102 background: #1f2937;
103 color: white;
104 }
105
106 .nav-item.active {
107 background: linear-gradient(135deg, #7C3AED, #DB2777);
108 color: white;
109 }
110
111 .main-content {
112 background: #f9fafb;
113 padding: 32px;
114 overflow-x: auto;
115 }
116
117 /* ========== STATS CARDS ========== */
118 .stats-grid {
119 display: grid;
120 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
121 gap: 24px;
122 margin-bottom: 32px;
123 }
124
125 .stat-card {
126 background: white;
127 padding: 24px;
128 border-radius: 12px;
129 border: 1px solid #e5e7eb;
130 transition: all 0.3s;
131 }
132
133 .stat-card:hover {
134 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
135 transform: translateY(-2px);
136 }
137
138 .stat-header {
139 display: flex;
140 justify-content: space-between;
141 align-items: start;
142 margin-bottom: 16px;
143 }
144
145 .stat-label {
146 font-size: 14px;
147 color: #6b7280;
148 font-weight: 500;
149 }
150
151 .stat-icon {
152 width: 40px;
153 height: 40px;
154 border-radius: 8px;
155 display: flex;
156 align-items: center;
157 justify-content: center;
158 font-size: 20px;
159 }
160
161 .stat-value {
162 font-size: 32px;
163 font-weight: 800;
164 color: #111827;
165 margin-bottom: 8px;
166 }
167
168 .stat-change {
169 font-size: 14px;
170 font-weight: 600;
171 }
172
173 .stat-change.positive {
174 color: #10b981;
175 }
176
177 .stat-change.negative {
178 color: #ef4444;
179 }
180
181 /* ========== DATA TABLE ========== */
182 .card {
183 background: white;
184 border-radius: 12px;
185 border: 1px solid #e5e7eb;
186 margin-bottom: 32px;
187 }
188
189 .card-header {
190 padding: 24px;
191 border-bottom: 1px solid #e5e7eb;
192 display: flex;
193 justify-content: space-between;
194 align-items: center;
195 }
196
197 .card-title {
198 font-size: 18px;
199 font-weight: 700;
200 color: #111827;
201 }
202
203 .card-body {
204 padding: 0;
205 }
206
207 table {
208 width: 100%;
209 border-collapse: collapse;
210 }
211
212 thead {
213 background: #f9fafb;
214 border-bottom: 1px solid #e5e7eb;
215 }
216
217 th {
218 padding: 16px 24px;
219 text-align: left;
220 font-size: 12px;
221 font-weight: 700;
222 color: #6b7280;
223 text-transform: uppercase;
224 letter-spacing: 0.05em;
225 }
226
227 td {
228 padding: 16px 24px;
229 font-size: 14px;
230 color: #374151;
231 border-bottom: 1px solid #f3f4f6;
232 }
233
234 tbody tr:hover {
235 background: #f9fafb;
236 }
237
238 .badge {
239 display: inline-block;
240 padding: 4px 12px;
241 border-radius: 100px;
242 font-size: 12px;
243 font-weight: 600;
244 }
245
246 .badge-success {
247 background: #d1fae5;
248 color: #065f46;
249 }
250
251 .badge-warning {
252 background: #fef3c7;
253 color: #92400e;
254 }
255
256 .badge-error {
257 background: #fee2e2;
258 color: #991b1b;
259 }
260
261 .badge-info {
262 background: #dbeafe;
263 color: #1e40af;
264 }
265
266 /* ========== CHART PLACEHOLDER ========== */
267 .chart-container {
268 padding: 24px;
269 height: 300px;
270 background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
271 border-radius: 12px;
272 display: flex;
273 align-items: center;
274 justify-content: center;
275 color: white;
276 font-size: 48px;
277 }
278
279 /* ========== ACTIVITY FEED ========== */
280 .activity-feed {
281 padding: 24px;
282 }
283
284 .activity-item {
285 display: flex;
286 gap: 16px;
287 margin-bottom: 24px;
288 }
289
290 .activity-avatar {
291 width: 40px;
292 height: 40px;
293 border-radius: 50%;
294 background: linear-gradient(135deg, #7C3AED, #DB2777);
295 display: flex;
296 align-items: center;
297 justify-content: center;
298 color: white;
299 font-weight: 700;
300 flex-shrink: 0;
301 }
302
303 .activity-content {
304 flex: 1;
305 }
306
307 .activity-text {
308 font-size: 14px;
309 color: #374151;
310 margin-bottom: 4px;
311 }
312
313 .activity-time {
314 font-size: 12px;
315 color: #9ca3af;
316 }
317
318 /* ========== FORMS ========== */
319 .form-grid {
320 display: grid;
321 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
322 gap: 24px;
323 padding: 24px;
324 }
325
326 .form-group {
327 margin-bottom: 20px;
328 }
329
330 .form-label {
331 display: block;
332 font-size: 14px;
333 font-weight: 600;
334 color: #374151;
335 margin-bottom: 8px;
336 }
337
338 .form-input {
339 width: 100%;
340 padding: 12px 16px;
341 border: 2px solid #e5e7eb;
342 border-radius: 8px;
343 font-size: 14px;
344 transition: all 0.2s;
345 }
346
347 .form-input:focus {
348 outline: none;
349 border-color: #7C3AED;
350 box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
351 }
352
353 .form-select {
354 width: 100%;
355 padding: 12px 16px;
356 border: 2px solid #e5e7eb;
357 border-radius: 8px;
358 font-size: 14px;
359 cursor: pointer;
360 }
361
362 .btn {
363 padding: 12px 24px;
364 border-radius: 8px;
365 font-weight: 600;
366 font-size: 14px;
367 cursor: pointer;
368 transition: all 0.3s;
369 border: none;
370 text-decoration: none;
371 }
372
373 .btn-primary {
374 background: linear-gradient(135deg, #7C3AED, #DB2777);
375 color: white;
376 }
377
378 .btn-primary:hover {
379 transform: translateY(-2px);
380 box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
381 }
382
383 .btn-secondary {
384 background: #f3f4f6;
385 color: #374151;
386 }
387
388 /* ========== USER CARDS ========== */
389 .user-grid {
390 display: grid;
391 grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
392 gap: 24px;
393 padding: 24px;
394 }
395
396 .user-card {
397 background: white;
398 border-radius: 12px;
399 border: 1px solid #e5e7eb;
400 padding: 24px;
401 text-align: center;
402 transition: all 0.3s;
403 }
404
405 .user-card:hover {
406 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
407 transform: translateY(-4px);
408 }
409
410 .user-avatar-large {
411 width: 80px;
412 height: 80px;
413 border-radius: 50%;
414 background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
415 display: flex;
416 align-items: center;
417 justify-content: center;
418 color: white;
419 font-size: 32px;
420 font-weight: 700;
421 margin: 0 auto 16px;
422 }
423
424 .user-name {
425 font-size: 18px;
426 font-weight: 700;
427 color: #111827;
428 margin-bottom: 4px;
429 }
430
431 .user-role {
432 font-size: 14px;
433 color: #6b7280;
434 margin-bottom: 16px;
435 }
436
437 .user-stats {
438 display: grid;
439 grid-template-columns: 1fr 1fr;
440 gap: 16px;
441 margin-top: 16px;
442 padding-top: 16px;
443 border-top: 1px solid #e5e7eb;
444 }
445
446 .user-stat-value {
447 font-size: 20px;
448 font-weight: 800;
449 color: #111827;
450 }
451
452 .user-stat-label {
453 font-size: 12px;
454 color: #6b7280;
455 }
456
457 @media (max-width: 1024px) {
458 .dashboard-layout {
459 grid-template-columns: 1fr;
460 }
461
462 .sidebar {
463 position: static;
464 height: auto;
465 }
466 }
467 </style>
468</head>
469<body>
470 <!-- FULL DASHBOARD LAYOUT -->
471 <div class="section-divider">01 - Complete Dashboard Layout</div>
472 <div class="dashboard-layout">
473 <aside class="sidebar">
474 <div class="logo">Dashboard</div>
475
476 <nav class="nav-section">
477 <div class="nav-label">Main</div>
478 <a class="nav-item active">
479 <span>📊</span>
480 <span>Overview</span>
481 </a>
482 <a class="nav-item">
483 <span>📈</span>
484 <span>Analytics</span>
485 </a>
486 <a class="nav-item">
487 <span>💰</span>
488 <span>Revenue</span>
489 </a>
490 </nav>
491
492 <nav class="nav-section">
493 <div class="nav-label">Management</div>
494 <a class="nav-item">
495 <span>👥</span>
496 <span>Users</span>
497 </a>
498 <a class="nav-item">
499 <span>📦</span>
500 <span>Products</span>
501 </a>
502 <a class="nav-item">
503 <span>🛒</span>
504 <span>Orders</span>
505 </a>
506 </nav>
507
508 <nav class="nav-section">
509 <div class="nav-label">Settings</div>
510 <a class="nav-item">
511 <span>⚙️</span>
512 <span>Settings</span>
513 </a>
514 <a class="nav-item">
515 <span>🔔</span>
516 <span>Notifications</span>
517 </a>
518 </nav>
519 </aside>
520
521 <main class="main-content">
522 <h1 style="font-size: 32px; font-weight: 800; margin-bottom: 32px;">Dashboard Overview</h1>
523
524 <!-- STATS CARDS -->
525 <div class="stats-grid">
526 <div class="stat-card">
527 <div class="stat-header">
528 <div>
529 <div class="stat-label">Total Revenue</div>
530 <div class="stat-value">$45,231</div>
531 <div class="stat-change positive">↑ 12.5% from last month</div>
532 </div>
533 <div class="stat-icon" style="background: #dbeafe;">💰</div>
534 </div>
535 </div>
536
537 <div class="stat-card">
538 <div class="stat-header">
539 <div>
540 <div class="stat-label">Active Users</div>
541 <div class="stat-value">2,845</div>
542 <div class="stat-change positive">↑ 8.2% from last month</div>
543 </div>
544 <div class="stat-icon" style="background: #d1fae5;">👥</div>
545 </div>
546 </div>
547
548 <div class="stat-card">
549 <div class="stat-header">
550 <div>
551 <div class="stat-label">Orders</div>
552 <div class="stat-value">1,234</div>
553 <div class="stat-change negative">↓ 3.1% from last month</div>
554 </div>
555 <div class="stat-icon" style="background: #fef3c7;">📦</div>
556 </div>
557 </div>
558
559 <div class="stat-card">
560 <div class="stat-header">
561 <div>
562 <div class="stat-label">Conversion Rate</div>
563 <div class="stat-value">3.65%</div>
564 <div class="stat-change positive">↑ 0.3% from last month</div>
565 </div>
566 <div class="stat-icon" style="background: #fae8ff;">📈</div>
567 </div>
568 </div>
569 </div>
570
571 <!-- CHART -->
572 <div class="card">
573 <div class="card-header">
574 <div class="card-title">Revenue Over Time</div>
575 <button class="btn btn-secondary">Export</button>
576 </div>
577 <div class="card-body">
578 <div class="chart-container">📊 Chart Placeholder</div>
579 </div>
580 </div>
581
582 <!-- DATA TABLE -->
583 <div class="card">
584 <div class="card-header">
585 <div class="card-title">Recent Orders</div>
586 <button class="btn btn-secondary">View All</button>
587 </div>
588 <div class="card-body">
589 <table>
590 <thead>
591 <tr>
592 <th>Order ID</th>
593 <th>Customer</th>
594 <th>Product</th>
595 <th>Amount</th>
596 <th>Status</th>
597 <th>Date</th>
598 </tr>
599 </thead>
600 <tbody>
601 <tr>
602 <td>#ORD-001</td>
603 <td>John Smith</td>
604 <td>Premium T-Shirt</td>
605 <td>$29.00</td>
606 <td><span class="badge badge-success">Completed</span></td>
607 <td>2025-11-03</td>
608 </tr>
609 <tr>
610 <td>#ORD-002</td>
611 <td>Sarah Chen</td>
612 <td>Wireless Headphones</td>
613 <td>$199.00</td>
614 <td><span class="badge badge-warning">Processing</span></td>
615 <td>2025-11-03</td>
616 </tr>
617 <tr>
618 <td>#ORD-003</td>
619 <td>Mike Johnson</td>
620 <td>Running Shoes</td>
621 <td>$89.00</td>
622 <td><span class="badge badge-success">Completed</span></td>
623 <td>2025-11-02</td>
624 </tr>
625 <tr>
626 <td>#ORD-004</td>
627 <td>Emma Davis</td>
628 <td>Smart Watch</td>
629 <td>$299.00</td>
630 <td><span class="badge badge-info">Shipped</span></td>
631 <td>2025-11-02</td>
632 </tr>
633 <tr>
634 <td>#ORD-005</td>
635 <td>Alex Brown</td>
636 <td>Laptop Stand</td>
637 <td>$45.00</td>
638 <td><span class="badge badge-error">Cancelled</span></td>
639 <td>2025-11-01</td>
640 </tr>
641 </tbody>
642 </table>
643 </div>
644 </div>
645 </main>
646 </div>
647
648 <!-- ACTIVITY FEED -->
649 <div class="section-divider">02 - Activity Feed</div>
650 <div class="container">
651 <div class="card">
652 <div class="card-header">
653 <div class="card-title">Recent Activity</div>
654 </div>
655 <div class="activity-feed">
656 <div class="activity-item">
657 <div class="activity-avatar">JS</div>
658 <div class="activity-content">
659 <div class="activity-text"><strong>John Smith</strong> placed a new order #ORD-001</div>
660 <div class="activity-time">2 minutes ago</div>
661 </div>
662 </div>
663 <div class="activity-item">
664 <div class="activity-avatar">SC</div>
665 <div class="activity-content">
666 <div class="activity-text"><strong>Sarah Chen</strong> updated their profile</div>
667 <div class="activity-time">15 minutes ago</div>
668 </div>
669 </div>
670 <div class="activity-item">
671 <div class="activity-avatar">MJ</div>
672 <div class="activity-content">
673 <div class="activity-text"><strong>Mike Johnson</strong> left a 5-star review</div>
674 <div class="activity-time">1 hour ago</div>
675 </div>
676 </div>
677 <div class="activity-item">
678 <div class="activity-avatar">ED</div>
679 <div class="activity-content">
680 <div class="activity-text"><strong>Emma Davis</strong> subscribed to newsletter</div>
681 <div class="activity-time">3 hours ago</div>
682 </div>
683 </div>
684 </div>
685 </div>
686 </div>
687
688 <!-- FORMS -->
689 <div class="section-divider">03 - Form Components</div>
690 <div class="container">
691 <div class="card">
692 <div class="card-header">
693 <div class="card-title">User Information</div>
694 <button class="btn btn-primary">Save Changes</button>
695 </div>
696 <div class="form-grid">
697 <div class="form-group">
698 <label class="form-label">First Name</label>
699 <input type="text" class="form-input" placeholder="John" value="John">
700 </div>
701 <div class="form-group">
702 <label class="form-label">Last Name</label>
703 <input type="text" class="form-input" placeholder="Doe" value="Doe">
704 </div>
705 <div class="form-group">
706 <label class="form-label">Email Address</label>
707 <input type="email" class="form-input" placeholder="john@example.com" value="john@example.com">
708 </div>
709 <div class="form-group">
710 <label class="form-label">Role</label>
711 <select class="form-select">
712 <option>Admin</option>
713 <option>Manager</option>
714 <option>User</option>
715 </select>
716 </div>
717 <div class="form-group">
718 <label class="form-label">Phone Number</label>
719 <input type="tel" class="form-input" placeholder="+1 (555) 123-4567">
720 </div>
721 <div class="form-group">
722 <label class="form-label">Country</label>
723 <select class="form-select">
724 <option>United States</option>
725 <option>Canada</option>
726 <option>United Kingdom</option>
727 </select>
728 </div>
729 </div>
730 </div>
731 </div>
732
733 <!-- USER CARDS -->
734 <div class="section-divider">04 - Team Members / User Cards</div>
735 <div class="container">
736 <h2 style="font-size: 32px; font-weight: 800; margin-bottom: 32px;">Team Members</h2>
737 <div class="user-grid">
738 <div class="user-card">
739 <div class="user-avatar-large">JS</div>
740 <div class="user-name">John Smith</div>
741 <div class="user-role">Frontend Developer</div>
742 <button class="btn btn-primary" style="width: 100%;">View Profile</button>
743 <div class="user-stats">
744 <div>
745 <div class="user-stat-value">24</div>
746 <div class="user-stat-label">Projects</div>
747 </div>
748 <div>
749 <div class="user-stat-value">156</div>
750 <div class="user-stat-label">Tasks</div>
751 </div>
752 </div>
753 </div>
754
755 <div class="user-card">
756 <div class="user-avatar-large" style="background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);">SC</div>
757 <div class="user-name">Sarah Chen</div>
758 <div class="user-role">Product Designer</div>
759 <button class="btn btn-primary" style="width: 100%;">View Profile</button>
760 <div class="user-stats">
761 <div>
762 <div class="user-stat-value">18</div>
763 <div class="user-stat-label">Projects</div>
764 </div>
765 <div>
766 <div class="user-stat-value">203</div>
767 <div class="user-stat-label">Tasks</div>
768 </div>
769 </div>
770 </div>
771
772 <div class="user-card">
773 <div class="user-avatar-large" style="background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);">MJ</div>
774 <div class="user-name">Mike Johnson</div>
775 <div class="user-role">Backend Developer</div>
776 <button class="btn btn-primary" style="width: 100%;">View Profile</button>
777 <div class="user-stats">
778 <div>
779 <div class="user-stat-value">31</div>
780 <div class="user-stat-label">Projects</div>
781 </div>
782 <div>
783 <div class="user-stat-value">287</div>
784 <div class="user-stat-label">Tasks</div>
785 </div>
786 </div>
787 </div>
788
789 <div class="user-card">
790 <div class="user-avatar-large" style="background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);">ED</div>
791 <div class="user-name">Emma Davis</div>
792 <div class="user-role">Project Manager</div>
793 <button class="btn btn-primary" style="width: 100%;">View Profile</button>
794 <div class="user-stats">
795 <div>
796 <div class="user-stat-value">42</div>
797 <div class="user-stat-label">Projects</div>
798 </div>
799 <div>
800 <div class="user-stat-value">512</div>
801 <div class="user-stat-label">Tasks</div>
802 </div>
803 </div>
804 </div>
805 </div>
806 </div>
807
808 <!-- FOOTER NOTE -->
809 <div style="padding: 80px 24px; text-align: center; background: #f9fafb;">
810 <h2 style="margin-bottom: 16px; color: #111827;">Complete Dashboard / Application UI Collection</h2>
811 <p style="color: #6b7280; max-width: 700px; margin: 0 auto 32px; font-size: 18px; line-height: 1.7;">
812 Premium admin dashboard components for modern web applications.
813 Sidebar navigation, stats cards, data tables, forms, charts, and team member cards.
814 </p>
815 <div style="display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;">
816 <button class="btn btn-primary" onclick="window.location='demo-marketing-complete.html'">Marketing Components</button>
817 <button class="btn btn-primary" onclick="window.location='demo-ecommerce-complete.html'">eCommerce Components</button>
818 </div>
819 </div>
820</body>
821</html>