code0zero commited on
Commit
b93a74d
·
verified ·
1 Parent(s): 5e28ece

صفحة على الإنترنت تكون واجهه امامية لتعديل وظبط الوكلاء خاصة لمكتبات https://www.crewai.com/

Browse files
Files changed (7) hide show
  1. README.md +7 -4
  2. components/footer.js +21 -0
  3. components/navbar.js +49 -0
  4. components/sidebar.js +55 -0
  5. index.html +58 -19
  6. script.js +9 -0
  7. style.css +13 -21
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Crewcontrol Dashboard
3
- emoji: 🌖
4
- colorFrom: gray
5
  colorTo: pink
 
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
1
  ---
2
+ title: CrewControl Dashboard 🚀
3
+ colorFrom: blue
 
4
  colorTo: pink
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
components/footer.js ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ footer {
7
+ background: white;
8
+ border-top: 1px solid #e5e7eb;
9
+ padding: 1rem 2rem;
10
+ text-align: center;
11
+ color: #6b7280;
12
+ font-size: 0.875rem;
13
+ }
14
+ </style>
15
+ <footer>
16
+ © 2023 CrewControl Dashboard. All rights reserved.
17
+ </footer>
18
+ `;
19
+ }
20
+ }
21
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ nav {
7
+ background: white;
8
+ box-shadow: 0 1px 3px rgba(0,0,0,0.1);
9
+ padding: 1rem 2rem;
10
+ display: flex;
11
+ justify-content: space-between;
12
+ align-items: center;
13
+ }
14
+ .logo {
15
+ font-weight: bold;
16
+ font-size: 1.25rem;
17
+ color: #3b82f6;
18
+ }
19
+ .logo span {
20
+ color: #10b981;
21
+ }
22
+ .actions {
23
+ display: flex;
24
+ gap: 1rem;
25
+ }
26
+ button {
27
+ padding: 0.5rem 1rem;
28
+ border-radius: 0.375rem;
29
+ font-weight: 500;
30
+ }
31
+ .primary {
32
+ background: #3b82f6;
33
+ color: white;
34
+ }
35
+ .secondary {
36
+ border: 1px solid #e5e7eb;
37
+ }
38
+ </style>
39
+ <nav>
40
+ <div class="logo">Crew<span>Control</span></div>
41
+ <div class="actions">
42
+ <button class="secondary">Docs</button>
43
+ <button class="primary">New Agent</button>
44
+ </div>
45
+ </nav>
46
+ `;
47
+ }
48
+ }
49
+ customElements.define('custom-navbar', CustomNavbar);
components/sidebar.js ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomSidebar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ aside {
7
+ width: 250px;
8
+ background: white;
9
+ height: calc(100vh - 64px);
10
+ border-right: 1px solid #e5e7eb;
11
+ padding: 1rem 0;
12
+ }
13
+ .menu-item {
14
+ padding: 0.75rem 1.5rem;
15
+ display: flex;
16
+ align-items: center;
17
+ color: #4b5563;
18
+ cursor: pointer;
19
+ }
20
+ .menu-item:hover {
21
+ background: #f3f4f6;
22
+ color: #3b82f6;
23
+ }
24
+ .menu-item i {
25
+ margin-right: 0.75rem;
26
+ font-size: 1.25rem;
27
+ }
28
+ .active {
29
+ background: #eff6ff;
30
+ color: #3b82f6;
31
+ border-right: 2px solid #3b82f6;
32
+ }
33
+ </style>
34
+ <aside>
35
+ <a href="/" class="menu-item active">
36
+ <i class="mdi mdi-view-dashboard"></i>
37
+ Dashboard
38
+ </a>
39
+ <a href="#" class="menu-item">
40
+ <i class="mdi mdi-robot"></i>
41
+ Agents
42
+ </a>
43
+ <a href="#" class="menu-item">
44
+ <i class="mdi mdi-cog"></i>
45
+ Settings
46
+ </a>
47
+ <a href="#" class="menu-item">
48
+ <i class="mdi mdi-chart-bar"></i>
49
+ Analytics
50
+ </a>
51
+ </aside>
52
+ `;
53
+ }
54
+ }
55
+ customElements.define('custom-sidebar', CustomSidebar);
index.html CHANGED
@@ -1,19 +1,58 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>CrewControl Dashboard</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <link href="https://cdn.jsdelivr.net/npm/@mdi/font@7.2.96/css/materialdesignicons.min.css" rel="stylesheet">
10
+ </head>
11
+ <body class="bg-gray-50">
12
+ <custom-navbar></custom-navbar>
13
+
14
+ <div class="flex">
15
+ <custom-sidebar></custom-sidebar>
16
+
17
+ <main class="flex-1 p-8">
18
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
19
+ <!-- Agent Cards -->
20
+ <div class="bg-white rounded-lg shadow p-6">
21
+ <div class="flex items-center mb-4">
22
+ <div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center">
23
+ <i class="mdi mdi-robot text-blue-500 text-2xl"></i>
24
+ </div>
25
+ <div class="ml-4">
26
+ <h3 class="font-semibold">Research Agent</h3>
27
+ <p class="text-gray-500 text-sm">Task: Web Research</p>
28
+ </div>
29
+ </div>
30
+ <div class="space-y-3">
31
+ <div>
32
+ <label class="block text-sm font-medium text-gray-700 mb-1">Role</label>
33
+ <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-md" value="Researcher">
34
+ </div>
35
+ <div>
36
+ <label class="block text-sm font-medium text-gray-700 mb-1">Goal</label>
37
+ <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md">Find relevant information online</textarea>
38
+ </div>
39
+ <button class="w-full bg-blue-500 text-white py-2 rounded-md hover:bg-blue-600 transition">
40
+ Update Agent
41
+ </button>
42
+ </div>
43
+ </div>
44
+
45
+ <!-- Add more agent cards as needed -->
46
+ </div>
47
+ </main>
48
+ </div>
49
+
50
+ <custom-footer></custom-footer>
51
+
52
+ <script src="components/navbar.js"></script>
53
+ <script src="components/sidebar.js"></script>
54
+ <script src="components/footer.js"></script>
55
+ <script src="script.js"></script>
56
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
57
+ </body>
58
+ </html>
script.js ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ document.addEventListener('DOMContentLoaded', () => {
2
+ // Initialize tooltips
3
+ const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
4
+ tooltipTriggerList.map(function (tooltipTriggerEl) {
5
+ return new bootstrap.Tooltip(tooltipTriggerEl);
6
+ });
7
+
8
+ // Add any additional initialization code here
9
+ });
style.css CHANGED
@@ -1,28 +1,20 @@
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
- }
25
-
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }
 
1
  body {
2
+ margin: 0;
3
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
4
+ Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
5
  }
6
 
7
+ input, textarea {
8
+ transition: border-color 0.2s;
 
9
  }
10
 
11
+ input:focus, textarea:focus {
12
+ outline: none;
13
+ border-color: #3b82f6;
14
+ box-shadow: 0 0 0 1px #3b82f6;
 
15
  }
16
 
17
+ button {
18
+ transition: background-color 0.2s;
19
+ cursor: pointer;
20
+ }