serverBOOST commited on
Commit
cb2b30f
Β·
verified Β·
1 Parent(s): 4440502

yeah make backend and frontend very simple and featurerich you are profi coder with sql or nosql database and api

Browse files
Files changed (6) hide show
  1. README.md +8 -5
  2. components/footer.js +106 -0
  3. components/navbar.js +98 -0
  4. index.html +86 -19
  5. script.js +34 -0
  6. style.css +81 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Codecanvas Studio Where Pixels Dance With Data
3
- emoji: πŸ“‰
4
- colorFrom: yellow
5
- colorTo: green
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: CodeCanvas Studio - Where Pixels Dance with Data πŸŽ¨πŸš€
3
+ colorFrom: purple
4
+ colorTo: yellow
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,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .footer {
7
+ background: rgba(15, 23, 42, 0.8);
8
+ border-top: 1px solid rgba(255, 255, 255, 0.1);
9
+ }
10
+
11
+ .footer-link {
12
+ transition: all 0.2s ease;
13
+ }
14
+
15
+ .footer-link:hover {
16
+ color: #8B5CF6;
17
+ transform: translateX(4px);
18
+ }
19
+
20
+ .social-icon {
21
+ width: 2.5rem;
22
+ height: 2.5rem;
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: center;
26
+ border-radius: 50%;
27
+ transition: all 0.3s ease;
28
+ }
29
+
30
+ .social-icon:hover {
31
+ background: rgba(139, 92, 246, 0.2);
32
+ transform: translateY(-3px);
33
+ }
34
+ </style>
35
+
36
+ <footer class="footer py-12 px-6 mt-20">
37
+ <div class="max-w-7xl mx-auto">
38
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-12">
39
+ <div>
40
+ <a href="/" class="flex items-center space-x-2 mb-6">
41
+ <i data-feather="code" class="text-purple-500"></i>
42
+ <span class="text-xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-purple-400 to-pink-500">CodeCanvas</span>
43
+ </a>
44
+ <p class="text-gray-400 mb-6">Build beautiful full-stack applications with ease.</p>
45
+ <div class="flex space-x-4">
46
+ <a href="#" class="social-icon">
47
+ <i data-feather="twitter"></i>
48
+ </a>
49
+ <a href="#" class="social-icon">
50
+ <i data-feather="github"></i>
51
+ </a>
52
+ <a href="#" class="social-icon">
53
+ <i data-feather="linkedin"></i>
54
+ </a>
55
+ <a href="#" class="social-icon">
56
+ <i data-feather="youtube"></i>
57
+ </a>
58
+ </div>
59
+ </div>
60
+
61
+ <div>
62
+ <h3 class="text-lg font-semibold mb-4">Product</h3>
63
+ <ul class="space-y-3">
64
+ <li><a href="/features" class="footer-link flex items-center">Features <i data-feather="chevron-right" class="ml-1 w-4 h-4"></i></a></li>
65
+ <li><a href="/pricing" class="footer-link flex items-center">Pricing <i data-feather="chevron-right" class="ml-1 w-4 h-4"></i></a></li>
66
+ <li><a href="/examples" class="footer-link flex items-center">Examples <i data-feather="chevron-right" class="ml-1 w-4 h-4"></i></a></li>
67
+ <li><a href="/roadmap" class="footer-link flex items-center">Roadmap <i data-feather="chevron-right" class="ml-1 w-4 h-4"></i></a></li>
68
+ </ul>
69
+ </div>
70
+
71
+ <div>
72
+ <h3 class="text-lg font-semibold mb-4">Resources</h3>
73
+ <ul class="space-y-3">
74
+ <li><a href="/docs" class="footer-link flex items-center">Documentation <i data-feather="chevron-right" class="ml-1 w-4 h-4"></i></a></li>
75
+ <li><a href="/tutorials" class="footer-link flex items-center">Tutorials <i data-feather="chevron-right" class="ml-1 w-4 h-4"></i></a></li>
76
+ <li><a href="/blog" class="footer-link flex items-center">Blog <i data-feather="chevron-right" class="ml-1 w-4 h-4"></i></a></li>
77
+ <li><a href="/community" class="footer-link flex items-center">Community <i data-feather="chevron-right" class="ml-1 w-4 h-4"></i></a></li>
78
+ </ul>
79
+ </div>
80
+
81
+ <div>
82
+ <h3 class="text-lg font-semibold mb-4">Company</h3>
83
+ <ul class="space-y-3">
84
+ <li><a href="/about" class="footer-link flex items-center">About <i data-feather="chevron-right" class="ml-1 w-4 h-4"></i></a></li>
85
+ <li><a href="/careers" class="footer-link flex items-center">Careers <i data-feather="chevron-right" class="ml-1 w-4 h-4"></i></a></li>
86
+ <li><a href="/contact" class="footer-link flex items-center">Contact <i data-feather="chevron-right" class="ml-1 w-4 h-4"></i></a></li>
87
+ <li><a href="/legal" class="footer-link flex items-center">Legal <i data-feather="chevron-right" class="ml-1 w-4 h-4"></i></a></li>
88
+ </ul>
89
+ </div>
90
+ </div>
91
+
92
+ <div class="border-t border-gray-800 mt-12 pt-8 text-center text-gray-500">
93
+ <p>Β© 2023 CodeCanvas Studio. All rights reserved.</p>
94
+ </div>
95
+ </div>
96
+ </footer>
97
+ `;
98
+
99
+ // Initialize feather icons
100
+ if (window.feather) {
101
+ window.feather.replace();
102
+ }
103
+ }
104
+ }
105
+
106
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .navbar {
7
+ background: rgba(15, 23, 42, 0.8);
8
+ backdrop-filter: blur(10px);
9
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
10
+ }
11
+
12
+ .nav-link {
13
+ position: relative;
14
+ transition: all 0.3s ease;
15
+ }
16
+
17
+ .nav-link:hover {
18
+ color: #8B5CF6;
19
+ }
20
+
21
+ .nav-link::after {
22
+ content: '';
23
+ position: absolute;
24
+ bottom: -2px;
25
+ left: 0;
26
+ width: 0;
27
+ height: 2px;
28
+ background: linear-gradient(90deg, #8B5CF6, #EC4899);
29
+ transition: width 0.3s ease;
30
+ }
31
+
32
+ .nav-link:hover::after {
33
+ width: 100%;
34
+ }
35
+
36
+ .mobile-menu {
37
+ transition: all 0.3s ease;
38
+ }
39
+ </style>
40
+
41
+ <nav class="navbar fixed w-full z-50 py-4 px-6">
42
+ <div class="max-w-7xl mx-auto flex justify-between items-center">
43
+ <a href="/" class="flex items-center space-x-2">
44
+ <i data-feather="code" class="text-purple-500"></i>
45
+ <span class="text-xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-purple-400 to-pink-500">CodeCanvas</span>
46
+ </a>
47
+
48
+ <div class="hidden md:flex items-center space-x-8">
49
+ <a href="/features" class="nav-link">Features</a>
50
+ <a href="/docs" class="nav-link">Documentation</a>
51
+ <a href="/examples" class="nav-link">Examples</a>
52
+ <a href="/pricing" class="nav-link">Pricing</a>
53
+ </div>
54
+
55
+ <div class="hidden md:flex items-center space-x-4">
56
+ <a href="/login" class="px-4 py-2 rounded-lg">Sign In</a>
57
+ <a href="/signup" class="btn-primary">Get Started</a>
58
+ </div>
59
+
60
+ <button id="mobile-menu-button" class="md:hidden p-2 rounded-lg hover:bg-gray-800">
61
+ <i data-feather="menu"></i>
62
+ </button>
63
+ </div>
64
+
65
+ <!-- Mobile menu -->
66
+ <div id="mobile-menu" class="mobile-menu hidden md:hidden mt-4 py-4 border-t border-gray-800">
67
+ <div class="flex flex-col space-y-4">
68
+ <a href="/features" class="nav-link">Features</a>
69
+ <a href="/docs" class="nav-link">Documentation</a>
70
+ <a href="/examples" class="nav-link">Examples</a>
71
+ <a href="/pricing" class="nav-link">Pricing</a>
72
+ <div class="pt-4 border-t border-gray-800 mt-4 flex flex-col space-y-3">
73
+ <a href="/login" class="w-full text-center py-2 rounded-lg border border-gray-700">Sign In</a>
74
+ <a href="/signup" class="w-full text-center btn-primary">Get Started</a>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ </nav>
79
+ `;
80
+
81
+ // Initialize feather icons
82
+ if (window.feather) {
83
+ window.feather.replace({ class: 'inline-block' });
84
+ }
85
+
86
+ // Mobile menu toggle
87
+ const mobileMenuButton = this.shadowRoot.getElementById('mobile-menu-button');
88
+ const mobileMenu = this.shadowRoot.getElementById('mobile-menu');
89
+
90
+ if (mobileMenuButton && mobileMenu) {
91
+ mobileMenuButton.addEventListener('click', () => {
92
+ mobileMenu.classList.toggle('hidden');
93
+ });
94
+ }
95
+ }
96
+ }
97
+
98
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,86 @@
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>CodeCanvas Studio</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://unpkg.com/feather-icons"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ </head>
12
+ <body class="bg-gradient-to-br from-gray-900 to-gray-800 min-h-screen text-gray-100">
13
+ <custom-navbar></custom-navbar>
14
+
15
+ <main class="container mx-auto px-4 py-12">
16
+ <section class="hero-section mb-20">
17
+ <div class="flex flex-col md:flex-row items-center gap-12">
18
+ <div class="md:w-1/2 animate-fade-in">
19
+ <h1 class="text-5xl md:text-6xl font-bold mb-6 bg-clip-text text-transparent bg-gradient-to-r from-purple-400 via-pink-500 to-red-500">
20
+ Where Code Meets Creativity
21
+ </h1>
22
+ <p class="text-xl text-gray-300 mb-8">
23
+ Build stunning full-stack applications with our feature-rich platform that combines powerful backend with beautiful frontend.
24
+ </p>
25
+ <div class="flex flex-wrap gap-4">
26
+ <a href="/dashboard" class="btn-primary">
27
+ Get Started <i data-feather="arrow-right" class="ml-2"></i>
28
+ </a>
29
+ <a href="/features" class="btn-secondary">
30
+ Explore Features
31
+ </a>
32
+ </div>
33
+ </div>
34
+ <div class="md:w-1/2 animate-float">
35
+ <img src="http://static.photos/technology/1024x576/42" alt="Code illustration" class="rounded-xl shadow-2xl border-2 border-purple-500/20">
36
+ </div>
37
+ </div>
38
+ </section>
39
+
40
+ <section class="features-section mb-20">
41
+ <h2 class="text-3xl font-bold text-center mb-12">✨ Powerful Features</h2>
42
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
43
+ <div class="feature-card">
44
+ <div class="icon-wrapper bg-purple-500/10 text-purple-400">
45
+ <i data-feather="database"></i>
46
+ </div>
47
+ <h3 class="text-xl font-semibold mb-2">Flexible Database</h3>
48
+ <p class="text-gray-400">Choose between SQL or NoSQL databases with seamless integration.</p>
49
+ </div>
50
+ <div class="feature-card">
51
+ <div class="icon-wrapper bg-blue-500/10 text-blue-400">
52
+ <i data-feather="cpu"></i>
53
+ </div>
54
+ <h3 class="text-xl font-semibold mb-2">RESTful APIs</h3>
55
+ <p class="text-gray-400">Auto-generated endpoints with comprehensive documentation.</p>
56
+ </div>
57
+ <div class="feature-card">
58
+ <div class="icon-wrapper bg-pink-500/10 text-pink-400">
59
+ <i data-feather="layout"></i>
60
+ </div>
61
+ <h3 class="text-xl font-semibold mb-2">UI Components</h3>
62
+ <p class="text-gray-400">Beautiful, responsive components built with Tailwind CSS.</p>
63
+ </div>
64
+ </div>
65
+ </section>
66
+
67
+ <section class="cta-section bg-gradient-to-r from-purple-900/50 to-blue-900/50 rounded-2xl p-8 md:p-12 text-center">
68
+ <h2 class="text-3xl font-bold mb-4">Ready to Build Something Amazing?</h2>
69
+ <p class="text-xl text-gray-300 mb-8 max-w-2xl mx-auto">Join thousands of developers creating exceptional full-stack applications with ease.</p>
70
+ <a href="/signup" class="btn-primary mx-auto">
71
+ Create Free Account
72
+ </a>
73
+ </section>
74
+ </main>
75
+
76
+ <custom-footer></custom-footer>
77
+
78
+ <script src="components/navbar.js"></script>
79
+ <script src="components/footer.js"></script>
80
+ <script src="script.js"></script>
81
+ <script>
82
+ feather.replace();
83
+ </script>
84
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
85
+ </body>
86
+ </html>
script.js ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Initialize tooltips
2
+ document.addEventListener('DOMContentLoaded', function() {
3
+ // Any initialization code can go here
4
+ console.log('CodeCanvas Studio initialized');
5
+ });
6
+
7
+ // Example API call function
8
+ async function fetchData(endpoint) {
9
+ try {
10
+ const response = await fetch(`/api/${endpoint}`);
11
+ const data = await response.json();
12
+ return data;
13
+ } catch (error) {
14
+ console.error('Error fetching data:', error);
15
+ return null;
16
+ }
17
+ }
18
+
19
+ // Mobile menu toggle functionality
20
+ function setupMobileMenu() {
21
+ const mobileMenuButton = document.getElementById('mobile-menu-button');
22
+ const mobileMenu = document.getElementById('mobile-menu');
23
+
24
+ if (mobileMenuButton && mobileMenu) {
25
+ mobileMenuButton.addEventListener('click', () => {
26
+ mobileMenu.classList.toggle('hidden');
27
+ });
28
+ }
29
+ }
30
+
31
+ // Initialize when DOM is loaded
32
+ document.addEventListener('DOMContentLoaded', () => {
33
+ setupMobileMenu();
34
+ });
style.css CHANGED
@@ -1,28 +1,91 @@
 
 
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
+ }
6
+
7
+ /* Animations */
8
+ @keyframes fadeIn {
9
+ from { opacity: 0; transform: translateY(20px); }
10
+ to { opacity: 1; transform: translateY(0); }
11
+ }
12
+
13
+ @keyframes floating {
14
+ 0% { transform: translateY(0px); }
15
+ 50% { transform: translateY(-15px); }
16
+ 100% { transform: translateY(0px); }
17
+ }
18
+
19
+ .animate-fade-in {
20
+ animation: fadeIn 1s ease-out forwards;
21
+ }
22
+
23
+ .animate-float {
24
+ animation: floating 6s ease-in-out infinite;
25
+ }
26
+
27
+ /* Buttons */
28
+ .btn-primary {
29
+ display: inline-flex;
30
+ align-items: center;
31
+ justify-content: center;
32
+ padding: 0.75rem 1.5rem;
33
+ background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
34
+ color: white;
35
+ font-weight: 500;
36
+ border-radius: 0.5rem;
37
+ transition: all 0.3s ease;
38
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
39
+ }
40
+
41
+ .btn-primary:hover {
42
+ transform: translateY(-2px);
43
+ box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
44
+ }
45
+
46
+ .btn-secondary {
47
+ display: inline-flex;
48
+ align-items: center;
49
+ justify-content: center;
50
+ padding: 0.75rem 1.5rem;
51
+ background-color: rgba(255, 255, 255, 0.1);
52
+ color: white;
53
+ font-weight: 500;
54
+ border-radius: 0.5rem;
55
+ transition: all 0.3s ease;
56
+ border: 1px solid rgba(255, 255, 255, 0.2);
57
  }
58
 
59
+ .btn-secondary:hover {
60
+ background-color: rgba(255, 255, 255, 0.2);
 
61
  }
62
 
63
+ /* Feature Cards */
64
+ .feature-card {
65
+ background: rgba(255, 255, 255, 0.05);
66
+ border-radius: 1rem;
67
+ padding: 2rem;
68
+ transition: all 0.3s ease;
69
+ border: 1px solid rgba(255, 255, 255, 0.1);
70
  }
71
 
72
+ .feature-card:hover {
73
+ transform: translateY(-5px);
74
+ background: rgba(255, 255, 255, 0.08);
75
+ box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
 
 
76
  }
77
 
78
+ .icon-wrapper {
79
+ width: 3.5rem;
80
+ height: 3.5rem;
81
+ border-radius: 1rem;
82
+ display: flex;
83
+ align-items: center;
84
+ justify-content: center;
85
+ margin-bottom: 1.5rem;
86
  }
87
+
88
+ .icon-wrapper i {
89
+ width: 1.5rem;
90
+ height: 1.5rem;
91
+ }