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

0 downloads

dbbasic-web-native/demo-app-full.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-app-full.html · 32.3 KB · 913 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>TaskFlow - Project Management Dashboard</title>
7 <script src="semantic-components.js"></script>
8 <style>
9 * {
10 margin: 0;
11 padding: 0;
12 box-sizing: border-box;
13 }
14
15 body {
16 background: #000;
17 color: #fff;
18 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
19 }
20
21 /* Header */
22 .header {
23 background: #1c1c1e;
24 border-bottom: 1px solid #3a3a3c;
25 padding: 16px 32px;
26 display: flex;
27 align-items: center;
28 justify-content: space-between;
29 position: sticky;
30 top: 0;
31 z-index: 100;
32 }
33
34 .header-left {
35 display: flex;
36 align-items: center;
37 gap: 24px;
38 }
39
40 .logo {
41 font-size: 20px;
42 font-weight: 700;
43 color: #409cff;
44 }
45
46 .search-bar {
47 position: relative;
48 width: 400px;
49 }
50
51 .search-icon {
52 position: absolute;
53 left: 12px;
54 top: 50%;
55 transform: translateY(-50%);
56 color: #8e8e93;
57 font-size: 16px;
58 }
59
60 .search-bar semantic-input {
61 padding-left: 36px;
62 }
63
64 .header-right {
65 display: flex;
66 align-items: center;
67 gap: 16px;
68 }
69
70 .user-avatar {
71 width: 36px;
72 height: 36px;
73 background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
74 border-radius: 18px;
75 display: flex;
76 align-items: center;
77 justify-content: center;
78 cursor: pointer;
79 }
80
81 /* Main Layout */
82 .main-container {
83 display: flex;
84 min-height: calc(100vh - 73px);
85 }
86
87 /* Sidebar */
88 .sidebar {
89 width: 260px;
90 background: #1c1c1e;
91 border-right: 1px solid #3a3a3c;
92 padding: 24px 0;
93 }
94
95 .sidebar-section {
96 margin-bottom: 32px;
97 }
98
99 .sidebar-title {
100 font-size: 13px;
101 font-weight: 600;
102 color: #8e8e93;
103 text-transform: uppercase;
104 letter-spacing: 0.5px;
105 padding: 0 24px;
106 margin-bottom: 12px;
107 }
108
109 .sidebar-item {
110 padding: 10px 24px;
111 cursor: pointer;
112 display: flex;
113 align-items: center;
114 gap: 12px;
115 color: #ebebf5;
116 transition: background 0.2s;
117 }
118
119 .sidebar-item:hover {
120 background: #2c2c2e;
121 }
122
123 .sidebar-item.active {
124 background: #2c2c2e;
125 color: #409cff;
126 border-left: 3px solid #409cff;
127 padding-left: 21px;
128 }
129
130 .sidebar-icon {
131 font-size: 18px;
132 width: 20px;
133 }
134
135 /* Content */
136 .content {
137 flex: 1;
138 padding: 32px;
139 overflow-y: auto;
140 }
141
142 .breadcrumb-container {
143 margin-bottom: 24px;
144 }
145
146 .page-header {
147 margin-bottom: 32px;
148 }
149
150 .page-title {
151 font-size: 28px;
152 font-weight: 700;
153 margin-bottom: 8px;
154 }
155
156 .page-subtitle {
157 font-size: 15px;
158 color: #8e8e93;
159 }
160
161 /* Stats Grid */
162 .stats-grid {
163 display: grid;
164 grid-template-columns: repeat(4, 1fr);
165 gap: 24px;
166 margin-bottom: 40px;
167 }
168
169 .stat-card {
170 background: #1c1c1e;
171 border: 1px solid #3a3a3c;
172 border-radius: 12px;
173 padding: 24px;
174 }
175
176 .stat-header {
177 display: flex;
178 align-items: center;
179 justify-content: space-between;
180 margin-bottom: 16px;
181 }
182
183 .stat-title {
184 font-size: 14px;
185 color: #8e8e93;
186 }
187
188 .stat-icon {
189 font-size: 24px;
190 }
191
192 .stat-value {
193 font-size: 32px;
194 font-weight: 700;
195 margin-bottom: 8px;
196 }
197
198 .stat-change {
199 font-size: 13px;
200 color: #30d158;
201 }
202
203 .stat-change.negative {
204 color: #ff453a;
205 }
206
207 /* Section */
208 .section {
209 margin-bottom: 40px;
210 }
211
212 .section-header {
213 display: flex;
214 align-items: center;
215 justify-content: space-between;
216 margin-bottom: 20px;
217 }
218
219 .section-title {
220 font-size: 20px;
221 font-weight: 600;
222 }
223
224 .section-actions {
225 display: flex;
226 gap: 12px;
227 }
228
229 /* Cards Grid */
230 .cards-grid {
231 display: grid;
232 grid-template-columns: repeat(3, 1fr);
233 gap: 24px;
234 }
235
236 .project-card {
237 background: #1c1c1e;
238 border: 2px solid #3a3a3c;
239 border-radius: 12px;
240 padding: 24px;
241 cursor: pointer;
242 transition: all 0.3s;
243 }
244
245 .project-card:hover {
246 border-color: #409cff;
247 transform: translateY(-4px);
248 }
249
250 .project-header {
251 display: flex;
252 align-items: flex-start;
253 justify-content: space-between;
254 margin-bottom: 16px;
255 }
256
257 .project-title {
258 font-size: 18px;
259 font-weight: 600;
260 margin-bottom: 8px;
261 }
262
263 .project-description {
264 font-size: 14px;
265 color: #8e8e93;
266 margin-bottom: 16px;
267 line-height: 1.5;
268 }
269
270 .project-meta {
271 display: flex;
272 gap: 16px;
273 margin-bottom: 16px;
274 font-size: 13px;
275 color: #8e8e93;
276 }
277
278 .project-meta-item {
279 display: flex;
280 align-items: center;
281 gap: 6px;
282 }
283
284 .project-progress {
285 margin-bottom: 12px;
286 }
287
288 .project-progress-label {
289 font-size: 12px;
290 color: #8e8e93;
291 margin-bottom: 8px;
292 display: flex;
293 justify-content: space-between;
294 }
295
296 .project-team {
297 display: flex;
298 align-items: center;
299 gap: 8px;
300 }
301
302 .team-avatars {
303 display: flex;
304 margin-left: -4px;
305 }
306
307 .team-avatar {
308 width: 28px;
309 height: 28px;
310 border-radius: 14px;
311 border: 2px solid #1c1c1e;
312 margin-left: -8px;
313 background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
314 display: flex;
315 align-items: center;
316 justify-content: center;
317 font-size: 11px;
318 }
319
320 .team-avatar:first-child {
321 margin-left: 0;
322 }
323
324 /* Table */
325 .table-container {
326 background: #1c1c1e;
327 border: 1px solid #3a3a3c;
328 border-radius: 12px;
329 overflow: hidden;
330 }
331
332 .table {
333 width: 100%;
334 border-collapse: collapse;
335 }
336
337 .table th {
338 background: #2c2c2e;
339 padding: 16px;
340 text-align: left;
341 font-size: 13px;
342 font-weight: 600;
343 color: #8e8e93;
344 text-transform: uppercase;
345 letter-spacing: 0.5px;
346 }
347
348 .table td {
349 padding: 16px;
350 border-top: 1px solid #3a3a3c;
351 font-size: 14px;
352 }
353
354 .table tr:hover {
355 background: #2c2c2e;
356 }
357
358 .task-name {
359 font-weight: 500;
360 }
361
362 .assignee {
363 display: flex;
364 align-items: center;
365 gap: 8px;
366 }
367
368 .assignee-avatar {
369 width: 24px;
370 height: 24px;
371 border-radius: 12px;
372 background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
373 display: flex;
374 align-items: center;
375 justify-content: center;
376 font-size: 10px;
377 }
378
379 /* Modal Styles */
380 .modal-content {
381 padding: 8px 0;
382 }
383
384 .modal-title {
385 font-size: 20px;
386 font-weight: 600;
387 margin: 0;
388 }
389
390 .modal-body {
391 line-height: 1.6;
392 color: #ebebf5;
393 }
394
395 .form-group {
396 margin-bottom: 20px;
397 }
398
399 .form-label {
400 display: block;
401 margin-bottom: 8px;
402 font-size: 14px;
403 font-weight: 500;
404 }
405
406 .form-row {
407 display: grid;
408 grid-template-columns: repeat(2, 1fr);
409 gap: 16px;
410 }
411
412 .modal-actions {
413 display: flex;
414 gap: 12px;
415 justify-content: flex-end;
416 }
417
418 /* Responsive */
419 @media (max-width: 1200px) {
420 .stats-grid {
421 grid-template-columns: repeat(2, 1fr);
422 }
423 .cards-grid {
424 grid-template-columns: repeat(2, 1fr);
425 }
426 }
427
428 @media (max-width: 768px) {
429 .sidebar {
430 display: none;
431 }
432 .stats-grid,
433 .cards-grid {
434 grid-template-columns: 1fr;
435 }
436 .search-bar {
437 width: 200px;
438 }
439 }
440 </style>
441</head>
442<body>
443 <!-- Header -->
444 <div class="header">
445 <div class="header-left">
446 <div class="logo">⚡ TaskFlow</div>
447 <div class="search-bar">
448 <span class="search-icon">🔍</span>
449 <semantic-input type="text" placeholder="Search projects, tasks, people..." intent="neutral"></semantic-input>
450 </div>
451 </div>
452 <div class="header-right">
453 <semantic-popover position="bottom" content="Create new project or task" trigger="hover">
454 <semantic-action slot="trigger" intent="primary">+ New</semantic-action>
455 </semantic-popover>
456 <semantic-popover position="bottom" content="3 unread notifications" trigger="hover">
457 <div slot="trigger" style="position: relative; cursor: pointer;">
458 <span style="font-size: 20px;">🔔</span>
459 <semantic-badge intent="danger" size="small" style="position: absolute; top: -4px; right: -4px;">3</semantic-badge>
460 </div>
461 </semantic-popover>
462 <semantic-popover position="bottom" content="John Doe - View Profile" trigger="hover">
463 <div slot="trigger" class="user-avatar">👤</div>
464 </semantic-popover>
465 </div>
466 </div>
467
468 <!-- Main Container -->
469 <div class="main-container">
470 <!-- Sidebar -->
471 <div class="sidebar">
472 <div class="sidebar-section">
473 <div class="sidebar-title">Main</div>
474 <div class="sidebar-item active">
475 <span class="sidebar-icon">📊</span>
476 <span>Dashboard</span>
477 </div>
478 <div class="sidebar-item">
479 <span class="sidebar-icon">📋</span>
480 <span>Projects</span>
481 </div>
482 <div class="sidebar-item">
483 <span class="sidebar-icon">✓</span>
484 <span>Tasks</span>
485 </div>
486 <div class="sidebar-item">
487 <span class="sidebar-icon">👥</span>
488 <span>Team</span>
489 </div>
490 <div class="sidebar-item">
491 <span class="sidebar-icon">📅</span>
492 <span>Calendar</span>
493 </div>
494 </div>
495
496 <div class="sidebar-section">
497 <div class="sidebar-title">Projects</div>
498 <div class="sidebar-item">
499 <span class="sidebar-icon">🎨</span>
500 <span>Website Redesign</span>
501 <semantic-badge intent="warning" size="small">8</semantic-badge>
502 </div>
503 <div class="sidebar-item">
504 <span class="sidebar-icon">📱</span>
505 <span>Mobile App</span>
506 <semantic-badge intent="primary" size="small">12</semantic-badge>
507 </div>
508 <div class="sidebar-item">
509 <span class="sidebar-icon">🚀</span>
510 <span>Product Launch</span>
511 <semantic-badge intent="success" size="small">5</semantic-badge>
512 </div>
513 </div>
514
515 <div class="sidebar-section">
516 <div class="sidebar-title">Quick Access</div>
517 <div class="sidebar-item">
518 <span class="sidebar-icon">⭐</span>
519 <span>Favorites</span>
520 </div>
521 <div class="sidebar-item">
522 <span class="sidebar-icon">📂</span>
523 <span>Recent</span>
524 </div>
525 <div class="sidebar-item">
526 <span class="sidebar-icon">⚙️</span>
527 <span>Settings</span>
528 </div>
529 </div>
530 </div>
531
532 <!-- Content -->
533 <div class="content">
534 <!-- Breadcrumb -->
535 <div class="breadcrumb-container">
536 <semantic-breadcrumb separator="›">
537 <breadcrumb-item href="/">Home</breadcrumb-item>
538 <breadcrumb-item href="/workspace">Workspace</breadcrumb-item>
539 <breadcrumb-item>Dashboard</breadcrumb-item>
540 </semantic-breadcrumb>
541 </div>
542
543 <!-- Page Header -->
544 <div class="page-header">
545 <h1 class="page-title">Dashboard</h1>
546 <p class="page-subtitle">Welcome back, John! Here's what's happening with your projects today.</p>
547 </div>
548
549 <!-- Stats Grid -->
550 <div class="stats-grid">
551 <div class="stat-card">
552 <div class="stat-header">
553 <div class="stat-title">Total Projects</div>
554 <div class="stat-icon">📁</div>
555 </div>
556 <div class="stat-value">24</div>
557 <div class="stat-change">↑ 12% from last month</div>
558 </div>
559
560 <div class="stat-card">
561 <div class="stat-header">
562 <div class="stat-title">Active Tasks</div>
563 <div class="stat-icon">✓</div>
564 </div>
565 <div class="stat-value">142</div>
566 <div class="stat-change">↑ 8% from last week</div>
567 </div>
568
569 <div class="stat-card">
570 <div class="stat-header">
571 <div class="stat-title">Team Members</div>
572 <div class="stat-icon">👥</div>
573 </div>
574 <div class="stat-value">18</div>
575 <div class="stat-change">↑ 2 new this month</div>
576 </div>
577
578 <div class="stat-card">
579 <div class="stat-header">
580 <div class="stat-title">Completion Rate</div>
581 <div class="stat-icon">📈</div>
582 </div>
583 <div class="stat-value">87%</div>
584 <div class="stat-change class negative">↓ 3% from last week</div>
585 </div>
586 </div>
587
588 <!-- Active Projects Section -->
589 <div class="section">
590 <div class="section-header">
591 <h2 class="section-title">Active Projects</h2>
592 <div class="section-actions">
593 <semantic-action intent="secondary" id="btn-view-all">View All</semantic-action>
594 <semantic-action intent="primary" id="btn-new-project">+ New Project</semantic-action>
595 </div>
596 </div>
597
598 <div class="cards-grid">
599 <div class="project-card">
600 <div class="project-header">
601 <div>
602 <h3 class="project-title">Website Redesign</h3>
603 <semantic-badge intent="warning">In Progress</semantic-badge>
604 </div>
605 </div>
606 <p class="project-description">
607 Complete redesign of company website with modern UI/UX and improved performance.
608 </p>
609 <div class="project-meta">
610 <div class="project-meta-item">
611 <span>📅</span>
612 <span>Due: Mar 15</span>
613 </div>
614 <div class="project-meta-item">
615 <span>✓</span>
616 <span>12/18 tasks</span>
617 </div>
618 </div>
619 <div class="project-progress">
620 <div class="project-progress-label">
621 <span>Progress</span>
622 <span>67%</span>
623 </div>
624 <semantic-progress value="67" max="100" intent="warning"></semantic-progress>
625 </div>
626 <div class="project-team">
627 <span style="font-size: 12px; color: #8e8e93;">Team:</span>
628 <div class="team-avatars">
629 <div class="team-avatar">JD</div>
630 <div class="team-avatar">SM</div>
631 <div class="team-avatar">AK</div>
632 <div class="team-avatar">+5</div>
633 </div>
634 </div>
635 </div>
636
637 <div class="project-card">
638 <div class="project-header">
639 <div>
640 <h3 class="project-title">Mobile App Development</h3>
641 <semantic-badge intent="primary">Active</semantic-badge>
642 </div>
643 </div>
644 <p class="project-description">
645 iOS and Android app with React Native for seamless cross-platform experience.
646 </p>
647 <div class="project-meta">
648 <div class="project-meta-item">
649 <span>📅</span>
650 <span>Due: Apr 1</span>
651 </div>
652 <div class="project-meta-item">
653 <span>✓</span>
654 <span>24/35 tasks</span>
655 </div>
656 </div>
657 <div class="project-progress">
658 <div class="project-progress-label">
659 <span>Progress</span>
660 <span>69%</span>
661 </div>
662 <semantic-progress value="69" max="100" intent="primary"></semantic-progress>
663 </div>
664 <div class="project-team">
665 <span style="font-size: 12px; color: #8e8e93;">Team:</span>
666 <div class="team-avatars">
667 <div class="team-avatar">MJ</div>
668 <div class="team-avatar">RH</div>
669 <div class="team-avatar">TW</div>
670 <div class="team-avatar">+3</div>
671 </div>
672 </div>
673 </div>
674
675 <div class="project-card">
676 <div class="project-header">
677 <div>
678 <h3 class="project-title">Product Launch Campaign</h3>
679 <semantic-badge intent="success">On Track</semantic-badge>
680 </div>
681 </div>
682 <p class="project-description">
683 Marketing campaign for Q2 product launch with social media and content strategy.
684 </p>
685 <div class="project-meta">
686 <div class="project-meta-item">
687 <span>📅</span>
688 <span>Due: Mar 30</span>
689 </div>
690 <div class="project-meta-item">
691 <span>✓</span>
692 <span>28/32 tasks</span>
693 </div>
694 </div>
695 <div class="project-progress">
696 <div class="project-progress-label">
697 <span>Progress</span>
698 <span>88%</span>
699 </div>
700 <semantic-progress value="88" max="100" intent="success"></semantic-progress>
701 </div>
702 <div class="project-team">
703 <span style="font-size: 12px; color: #8e8e93;">Team:</span>
704 <div class="team-avatars">
705 <div class="team-avatar">LC</div>
706 <div class="team-avatar">DM</div>
707 <div class="team-avatar">+2</div>
708 </div>
709 </div>
710 </div>
711 </div>
712 </div>
713
714 <!-- Recent Tasks Section -->
715 <div class="section">
716 <div class="section-header">
717 <h2 class="section-title">Recent Tasks</h2>
718 <div class="section-actions">
719 <semantic-tabs>
720 <tab-item label="All" active></tab-item>
721 <tab-item label="My Tasks"></tab-item>
722 <tab-item label="Overdue"></tab-item>
723 </semantic-tabs>
724 </div>
725 </div>
726
727 <div class="table-container">
728 <table class="table">
729 <thead>
730 <tr>
731 <th>Task Name</th>
732 <th>Project</th>
733 <th>Assignee</th>
734 <th>Priority</th>
735 <th>Status</th>
736 <th>Due Date</th>
737 </tr>
738 </thead>
739 <tbody>
740 <tr>
741 <td class="task-name">Design homepage mockup</td>
742 <td>Website Redesign</td>
743 <td>
744 <div class="assignee">
745 <div class="assignee-avatar">JD</div>
746 <span>John Doe</span>
747 </div>
748 </td>
749 <td><semantic-badge intent="danger" size="small">High</semantic-badge></td>
750 <td><semantic-badge intent="warning" size="small">In Progress</semantic-badge></td>
751 <td>Mar 10</td>
752 </tr>
753 <tr>
754 <td class="task-name">Implement user authentication</td>
755 <td>Mobile App</td>
756 <td>
757 <div class="assignee">
758 <div class="assignee-avatar">SM</div>
759 <span>Sarah Miller</span>
760 </div>
761 </td>
762 <td><semantic-badge intent="warning" size="small">Medium</semantic-badge></td>
763 <td><semantic-badge intent="primary" size="small">Active</semantic-badge></td>
764 <td>Mar 12</td>
765 </tr>
766 <tr>
767 <td class="task-name">Write blog post content</td>
768 <td>Product Launch</td>
769 <td>
770 <div class="assignee">
771 <div class="assignee-avatar">LC</div>
772 <span>Lisa Chen</span>
773 </div>
774 </td>
775 <td><semantic-badge intent="neutral" size="small">Low</semantic-badge></td>
776 <td><semantic-badge intent="success" size="small">Completed</semantic-badge></td>
777 <td>Mar 8</td>
778 </tr>
779 <tr>
780 <td class="task-name">QA testing round 2</td>
781 <td>Mobile App</td>
782 <td>
783 <div class="assignee">
784 <div class="assignee-avatar">AK</div>
785 <span>Alex Kim</span>
786 </div>
787 </td>
788 <td><semantic-badge intent="danger" size="small">High</semantic-badge></td>
789 <td><semantic-badge intent="warning" size="small">In Progress</semantic-badge></td>
790 <td>Mar 14</td>
791 </tr>
792 <tr>
793 <td class="task-name">Update documentation</td>
794 <td>Website Redesign</td>
795 <td>
796 <div class="assignee">
797 <div class="assignee-avatar">MJ</div>
798 <span>Mike Johnson</span>
799 </div>
800 </td>
801 <td><semantic-badge intent="neutral" size="small">Low</semantic-badge></td>
802 <td><semantic-badge intent="neutral" size="small">Pending</semantic-badge></td>
803 <td>Mar 16</td>
804 </tr>
805 </tbody>
806 </table>
807 </div>
808 </div>
809
810 <!-- Team Activity Section -->
811 <div class="section">
812 <div class="section-header">
813 <h2 class="section-title">Team Activity</h2>
814 </div>
815
816 <semantic-disclosure>
817 <div slot="summary">Recent Updates (5 new)</div>
818 <div slot="content">
819 <div style="padding: 16px 0;">
820 <div style="display: flex; gap: 16px; padding: 12px; border-radius: 8px; background: #2c2c2e; margin-bottom: 12px;">
821 <div class="assignee-avatar">SM</div>
822 <div>
823 <div style="font-weight: 500; margin-bottom: 4px;">Sarah Miller completed "User Authentication"</div>
824 <div style="font-size: 13px; color: #8e8e93;">2 hours ago • Mobile App</div>
825 </div>
826 </div>
827 <div style="display: flex; gap: 16px; padding: 12px; border-radius: 8px; background: #2c2c2e; margin-bottom: 12px;">
828 <div class="assignee-avatar">JD</div>
829 <div>
830 <div style="font-weight: 500; margin-bottom: 4px;">John Doe added 3 new tasks</div>
831 <div style="font-size: 13px; color: #8e8e93;">4 hours ago • Website Redesign</div>
832 </div>
833 </div>
834 <div style="display: flex; gap: 16px; padding: 12px; border-radius: 8px; background: #2c2c2e;">
835 <div class="assignee-avatar">LC</div>
836 <div>
837 <div style="font-weight: 500; margin-bottom: 4px;">Lisa Chen uploaded marketing materials</div>
838 <div style="font-size: 13px; color: #8e8e93;">Yesterday • Product Launch</div>
839 </div>
840 </div>
841 </div>
842 </div>
843 </semantic-disclosure>
844 </div>
845 </div>
846 </div>
847
848 <!-- New Project Modal -->
849 <semantic-modal id="modal-new-project">
850 <div slot="header">
851 <h3 class="modal-title">Create New Project</h3>
852 </div>
853 <div slot="body" class="modal-content">
854 <div class="form-group">
855 <label class="form-label">Project Name</label>
856 <semantic-input type="text" placeholder="Enter project name" intent="primary"></semantic-input>
857 </div>
858 <div class="form-group">
859 <label class="form-label">Description</label>
860 <semantic-input type="text" placeholder="Brief description of the project" intent="primary"></semantic-input>
861 </div>
862 <div class="form-row">
863 <div class="form-group">
864 <label class="form-label">Start Date</label>
865 <semantic-input type="date" intent="primary"></semantic-input>
866 </div>
867 <div class="form-group">
868 <label class="form-label">End Date</label>
869 <semantic-input type="date" intent="primary"></semantic-input>
870 </div>
871 </div>
872 <div class="form-group">
873 <label class="form-label">Priority</label>
874 <semantic-input type="text" placeholder="High, Medium, or Low" intent="primary"></semantic-input>
875 </div>
876 <div class="form-group">
877 <label class="form-label">Team Members</label>
878 <semantic-input type="text" placeholder="Assign team members" intent="primary"></semantic-input>
879 </div>
880 </div>
881 <div slot="footer">
882 <div class="modal-actions">
883 <semantic-action intent="secondary" onclick="document.getElementById('modal-new-project').close()">Cancel</semantic-action>
884 <semantic-action intent="primary" onclick="document.getElementById('modal-new-project').close()">Create Project</semantic-action>
885 </div>
886 </div>
887 </semantic-modal>
888
889 <script>
890 // Open modal
891 document.getElementById('btn-new-project').addEventListener('click', () => {
892 document.getElementById('modal-new-project').open();
893 });
894
895 // Sidebar navigation
896 document.querySelectorAll('.sidebar-item').forEach(item => {
897 item.addEventListener('click', () => {
898 document.querySelectorAll('.sidebar-item').forEach(i => i.classList.remove('active'));
899 item.classList.add('active');
900 });
901 });
902
903 // Project cards
904 document.querySelectorAll('.project-card').forEach(card => {
905 card.addEventListener('click', () => {
906 console.log('Project card clicked');
907 });
908 });
909
910 console.log('Dashboard loaded successfully!');
911 </script>
912</body>
913</html>