Abmacode12 commited on
Commit
2bb61c7
·
verified ·
1 Parent(s): c3a0836

J'aimerais que vous intégrez cette clé, s'il vous plaît, sur mon entreprise. Merci.npx "@builder.io/dev-tools@latest" lancement

Browse files
Files changed (6) hide show
  1. README.md +7 -4
  2. components/footer.js +70 -0
  3. components/navbar.js +62 -0
  4. index.html +97 -19
  5. script.js +17 -0
  6. style.css +26 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Devtools Dashboard Delight
3
- emoji: 🐢
4
  colorFrom: red
5
- colorTo: indigo
 
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: DevTools Dashboard Delight 🚀
 
3
  colorFrom: red
4
+ colorTo: gray
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,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .footer {
7
+ background-color: #f9fafb;
8
+ border-top: 1px solid #e5e7eb;
9
+ }
10
+ .footer-link {
11
+ transition: color 0.2s ease;
12
+ }
13
+ .footer-link:hover {
14
+ color: #3b82f6;
15
+ }
16
+ </style>
17
+ <footer class="footer py-8">
18
+ <div class="container mx-auto px-4">
19
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
20
+ <div>
21
+ <h3 class="text-lg font-semibold text-gray-800 mb-4">BuilderTools</h3>
22
+ <p class="text-gray-600 mb-4">Powerful development tools for modern web applications.</p>
23
+ <div class="flex space-x-4">
24
+ <a href="#" class="text-gray-500 hover:text-blue-600"><i data-feather="twitter"></i></a>
25
+ <a href="#" class="text-gray-500 hover:text-blue-600"><i data-feather="github"></i></a>
26
+ <a href="#" class="text-gray-500 hover:text-blue-600"><i data-feather="linkedin"></i></a>
27
+ </div>
28
+ </div>
29
+
30
+ <div>
31
+ <h3 class="text-lg font-semibold text-gray-800 mb-4">Product</h3>
32
+ <ul class="space-y-2">
33
+ <li><a href="#" class="footer-link text-gray-600">Features</a></li>
34
+ <li><a href="#" class="footer-link text-gray-600">Pricing</a></li>
35
+ <li><a href="#" class="footer-link text-gray-600">Documentation</a></li>
36
+ <li><a href="#" class="footer-link text-gray-600">Releases</a></li>
37
+ </ul>
38
+ </div>
39
+
40
+ <div>
41
+ <h3 class="text-lg font-semibold text-gray-800 mb-4">Company</h3>
42
+ <ul class="space-y-2">
43
+ <li><a href="#" class="footer-link text-gray-600">About</a></li>
44
+ <li><a href="#" class="footer-link text-gray-600">Blog</a></li>
45
+ <li><a href="#" class="footer-link text-gray-600">Careers</a></li>
46
+ <li><a href="#" class="footer-link text-gray-600">Contact</a></li>
47
+ </ul>
48
+ </div>
49
+
50
+ <div>
51
+ <h3 class="text-lg font-semibold text-gray-800 mb-4">Legal</h3>
52
+ <ul class="space-y-2">
53
+ <li><a href="#" class="footer-link text-gray-600">Privacy</a></li>
54
+ <li><a href="#" class="footer-link text-gray-600">Terms</a></li>
55
+ <li><a href="#" class="footer-link text-gray-600">Cookie Policy</a></li>
56
+ <li><a href="#" class="footer-link text-gray-600">GDPR</a></li>
57
+ </ul>
58
+ </div>
59
+ </div>
60
+
61
+ <div class="border-t border-gray-200 mt-8 pt-8 text-center text-gray-500">
62
+ <p>© ${new Date().getFullYear()} BuilderTools. All rights reserved.</p>
63
+ </div>
64
+ </div>
65
+ </footer>
66
+ <script>feather.replace();</script>
67
+ `;
68
+ }
69
+ }
70
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .navbar {
7
+ background-color: white;
8
+ box-shadow: 0 2px 4px rgba(0,0,0,0.05);
9
+ }
10
+ .nav-link {
11
+ transition: color 0.2s ease;
12
+ }
13
+ .nav-link:hover {
14
+ color: #3b82f6;
15
+ }
16
+ .mobile-menu {
17
+ transition: all 0.3s ease;
18
+ }
19
+ </style>
20
+ <nav class="navbar border-b border-gray-200">
21
+ <div class="container mx-auto px-4">
22
+ <div class="flex justify-between items-center py-4">
23
+ <div class="flex items-center">
24
+ <a href="/" class="flex items-center">
25
+ <i data-feather="box" class="text-blue-600 mr-2"></i>
26
+ <span class="text-xl font-bold text-gray-800">BuilderTools</span>
27
+ </a>
28
+ </div>
29
+
30
+ <div class="hidden md:flex items-center space-x-8">
31
+ <a href="#" class="nav-link text-gray-600 hover:text-blue-600">Features</a>
32
+ <a href="#" class="nav-link text-gray-600 hover:text-blue-600">Documentation</a>
33
+ <a href="#" class="nav-link text-gray-600 hover:text-blue-600">Pricing</a>
34
+ <a href="#" class="nav-link text-gray-600 hover:text-blue-600">Support</a>
35
+ </div>
36
+
37
+ <div class="md:hidden">
38
+ <button id="mobile-menu-button" class="text-gray-600 hover:text-gray-900 focus:outline-none">
39
+ <i data-feather="menu"></i>
40
+ </button>
41
+ </div>
42
+ </div>
43
+
44
+ <div id="mobile-menu" class="mobile-menu hidden md:hidden pb-4">
45
+ <a href="#" class="block py-2 text-gray-600 hover:text-blue-600">Features</a>
46
+ <a href="#" class="block py-2 text-gray-600 hover:text-blue-600">Documentation</a>
47
+ <a href="#" class="block py-2 text-gray-600 hover:text-blue-600">Pricing</a>
48
+ <a href="#" class="block py-2 text-gray-600 hover:text-blue-600">Support</a>
49
+ </div>
50
+ </div>
51
+ </nav>
52
+ <script>
53
+ feather.replace();
54
+ document.getElementById('mobile-menu-button').addEventListener('click', function() {
55
+ const menu = document.getElementById('mobile-menu');
56
+ menu.classList.toggle('hidden');
57
+ });
58
+ </script>
59
+ `;
60
+ }
61
+ }
62
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,97 @@
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>DevTools Dashboard</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ </head>
12
+ <body class="bg-gray-50">
13
+ <custom-navbar></custom-navbar>
14
+
15
+ <main class="container mx-auto px-4 py-8">
16
+ <div class="bg-white rounded-xl shadow-md overflow-hidden p-6 mb-8">
17
+ <div class="flex flex-col md:flex-row items-center justify-between">
18
+ <div>
19
+ <h1 class="text-3xl font-bold text-gray-800 mb-2">Builder.io DevTools</h1>
20
+ <p class="text-gray-600">Powerful development tools at your fingertips</p>
21
+ </div>
22
+ <div class="mt-4 md:mt-0">
23
+ <button id="launchBtn" class="bg-blue-600 hover:bg-blue-700 text-white font-medium py-3 px-6 rounded-lg flex items-center transition-all">
24
+ <i data-feather="rocket" class="mr-2"></i>
25
+ Launch DevTools
26
+ </button>
27
+ </div>
28
+ </div>
29
+ </div>
30
+
31
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
32
+ <div class="bg-white rounded-xl shadow-md overflow-hidden p-6">
33
+ <div class="flex items-center mb-4">
34
+ <div class="bg-blue-100 p-3 rounded-full mr-4">
35
+ <i data-feather="code" class="text-blue-600"></i>
36
+ </div>
37
+ <h3 class="text-xl font-semibold text-gray-800">Visual Editor</h3>
38
+ </div>
39
+ <p class="text-gray-600">Drag and drop interface for building pages and components visually.</p>
40
+ </div>
41
+
42
+ <div class="bg-white rounded-xl shadow-md overflow-hidden p-6">
43
+ <div class="flex items-center mb-4">
44
+ <div class="bg-purple-100 p-3 rounded-full mr-4">
45
+ <i data-feather="cpu" class="text-purple-600"></i>
46
+ </div>
47
+ <h3 class="text-xl font-semibold text-gray-800">API Explorer</h3>
48
+ </div>
49
+ <p class="text-gray-600">Test and debug your APIs with our powerful explorer tool.</p>
50
+ </div>
51
+
52
+ <div class="bg-white rounded-xl shadow-md overflow-hidden p-6">
53
+ <div class="flex items-center mb-4">
54
+ <div class="bg-green-100 p-3 rounded-full mr-4">
55
+ <i data-feather="bar-chart-2" class="text-green-600"></i>
56
+ </div>
57
+ <h3 class="text-xl font-semibold text-gray-800">Performance</h3>
58
+ </div>
59
+ <p class="text-gray-600">Monitor and optimize your application's performance metrics.</p>
60
+ </div>
61
+ </div>
62
+
63
+ <div class="mt-8 bg-white rounded-xl shadow-md overflow-hidden p-6">
64
+ <h2 class="text-2xl font-bold text-gray-800 mb-4">Getting Started</h2>
65
+ <div class="bg-gray-50 rounded-lg p-4 mb-4">
66
+ <code class="text-sm text-gray-800">npx @builder.io/dev-tools@latest</code>
67
+ </div>
68
+ <p class="text-gray-600 mb-4">Run this command in your project directory to install and launch the DevTools.</p>
69
+ <div class="flex flex-wrap gap-4">
70
+ <a href="#" class="text-blue-600 hover:text-blue-800 font-medium flex items-center">
71
+ <i data-feather="book" class="mr-2"></i> Documentation
72
+ </a>
73
+ <a href="#" class="text-blue-600 hover:text-blue-800 font-medium flex items-center">
74
+ <i data-feather="github" class="mr-2"></i> GitHub
75
+ </a>
76
+ <a href="#" class="text-blue-600 hover:text-blue-800 font-medium flex items-center">
77
+ <i data-feather="message-circle" class="mr-2"></i> Community
78
+ </a>
79
+ </div>
80
+ </div>
81
+ </main>
82
+
83
+ <custom-footer></custom-footer>
84
+
85
+ <script src="components/navbar.js"></script>
86
+ <script src="components/footer.js"></script>
87
+ <script src="script.js"></script>
88
+ <script>
89
+ feather.replace();
90
+ document.getElementById('launchBtn').addEventListener('click', function() {
91
+ // In a real implementation, this would trigger the DevTools launch
92
+ alert('Launching Builder.io DevTools...');
93
+ });
94
+ </script>
95
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
96
+ </body>
97
+ </html>
script.js ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Main application script
2
+ document.addEventListener('DOMContentLoaded', function() {
3
+ // Initialize tooltips
4
+ const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
5
+ tooltipTriggerList.map(function (tooltipTriggerEl) {
6
+ return new bootstrap.Tooltip(tooltipTriggerEl);
7
+ });
8
+
9
+ // Handle DevTools launch
10
+ const launchBtn = document.getElementById('launchBtn');
11
+ if (launchBtn) {
12
+ launchBtn.addEventListener('click', function() {
13
+ // This would be replaced with actual DevTools launch logic
14
+ console.log('Builder.io DevTools launch initiated');
15
+ });
16
+ }
17
+ });
style.css CHANGED
@@ -1,28 +1,36 @@
 
 
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
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
2
+
3
  body {
4
+ font-family: 'Inter', sans-serif;
5
+ min-height: 100vh;
6
+ display: flex;
7
+ flex-direction: column;
8
+ }
9
+
10
+ main {
11
+ flex: 1;
12
  }
13
 
14
+ /* Smooth scroll behavior */
15
+ html {
16
+ scroll-behavior: smooth;
17
  }
18
 
19
+ /* Custom scrollbar */
20
+ ::-webkit-scrollbar {
21
+ width: 8px;
22
+ height: 8px;
 
23
  }
24
 
25
+ ::-webkit-scrollbar-track {
26
+ background: #f1f1f1;
 
 
 
 
27
  }
28
 
29
+ ::-webkit-scrollbar-thumb {
30
+ background: #888;
31
+ border-radius: 4px;
32
  }
33
+
34
+ ::-webkit-scrollbar-thumb:hover {
35
+ background: #555;
36
+ }