jeffMunya commited on
Commit
11bf4da
Β·
verified Β·
1 Parent(s): 98cc875

how do i dep[loy the app

Browse files
Files changed (6) hide show
  1. README.md +8 -5
  2. components/footer.js +123 -0
  3. components/header.js +79 -0
  4. index.html +109 -19
  5. script.js +36 -0
  6. style.css +42 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Deploy Wizard Delight
3
- emoji: πŸ†
4
- colorFrom: purple
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: Deploy Wizard Delight πŸš€
3
+ colorFrom: green
4
+ colorTo: purple
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,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ footer {
7
+ background-color: #2d3748;
8
+ color: white;
9
+ padding: 2rem 1rem;
10
+ margin-top: 3rem;
11
+ }
12
+
13
+ .footer-content {
14
+ max-width: 1200px;
15
+ margin: 0 auto;
16
+ display: grid;
17
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
18
+ gap: 2rem;
19
+ }
20
+
21
+ .footer-section h3 {
22
+ font-size: 1.2rem;
23
+ margin-bottom: 1rem;
24
+ color: #a0aec0;
25
+ }
26
+
27
+ .footer-section ul {
28
+ list-style: none;
29
+ padding: 0;
30
+ }
31
+
32
+ .footer-section li {
33
+ margin-bottom: 0.5rem;
34
+ }
35
+
36
+ .footer-section a {
37
+ color: #e2e8f0;
38
+ text-decoration: none;
39
+ transition: color 0.2s;
40
+ }
41
+
42
+ .footer-section a:hover {
43
+ color: #4299e1;
44
+ }
45
+
46
+ .social-links {
47
+ display: flex;
48
+ gap: 1rem;
49
+ margin-top: 1rem;
50
+ }
51
+
52
+ .social-links a {
53
+ color: white;
54
+ background-color: #4a5568;
55
+ width: 36px;
56
+ height: 36px;
57
+ border-radius: 50%;
58
+ display: flex;
59
+ align-items: center;
60
+ justify-content: center;
61
+ transition: background-color 0.2s;
62
+ }
63
+
64
+ .social-links a:hover {
65
+ background-color: #4299e1;
66
+ }
67
+
68
+ .copyright {
69
+ text-align: center;
70
+ margin-top: 2rem;
71
+ padding-top: 1rem;
72
+ border-top: 1px solid #4a5568;
73
+ color: #a0aec0;
74
+ font-size: 0.875rem;
75
+ }
76
+ </style>
77
+ <footer>
78
+ <div class="footer-content">
79
+ <div class="footer-section">
80
+ <h3>Deploy Wizard</h3>
81
+ <p>Your guide to effortless app deployment.</p>
82
+ <div class="social-links">
83
+ <a href="#"><i data-feather="github"></i></a>
84
+ <a href="#"><i data-feather="twitter"></i></a>
85
+ <a href="#"><i data-feather="linkedin"></i></a>
86
+ </div>
87
+ </div>
88
+ <div class="footer-section">
89
+ <h3>Quick Links</h3>
90
+ <ul>
91
+ <li><a href="#">Home</a></li>
92
+ <li><a href="#">Platforms</a></li>
93
+ <li><a href="#">Tutorials</a></li>
94
+ <li><a href="#">Contact</a></li>
95
+ </ul>
96
+ </div>
97
+ <div class="footer-section">
98
+ <h3>Resources</h3>
99
+ <ul>
100
+ <li><a href="#">Documentation</a></li>
101
+ <li><a href="#">API Reference</a></li>
102
+ <li><a href="#">Community</a></li>
103
+ <li><a href="#">Blog</a></li>
104
+ </ul>
105
+ </div>
106
+ <div class="footer-section">
107
+ <h3>Legal</h3>
108
+ <ul>
109
+ <li><a href="#">Privacy Policy</a></li>
110
+ <li><a href="#">Terms of Service</a></li>
111
+ <li><a href="#">Cookie Policy</a></li>
112
+ </ul>
113
+ </div>
114
+ </div>
115
+ <div class="copyright">
116
+ &copy; ${new Date().getFullYear()} Deploy Wizard. All rights reserved.
117
+ </div>
118
+ </footer>
119
+ `;
120
+ }
121
+ }
122
+
123
+ customElements.define('custom-footer', CustomFooter);
components/header.js ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomHeader extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ header {
7
+ background: linear-gradient(135deg, #6b46c1 0%, #805ad5 100%);
8
+ color: white;
9
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
10
+ }
11
+
12
+ nav {
13
+ display: flex;
14
+ justify-content: space-between;
15
+ align-items: center;
16
+ padding: 1rem 2rem;
17
+ max-width: 1200px;
18
+ margin: 0 auto;
19
+ }
20
+
21
+ .logo {
22
+ font-weight: 700;
23
+ font-size: 1.5rem;
24
+ display: flex;
25
+ align-items: center;
26
+ }
27
+
28
+ .logo i {
29
+ margin-right: 0.5rem;
30
+ }
31
+
32
+ .nav-links {
33
+ display: flex;
34
+ gap: 1.5rem;
35
+ }
36
+
37
+ .nav-links a {
38
+ color: white;
39
+ text-decoration: none;
40
+ font-weight: 500;
41
+ transition: opacity 0.2s;
42
+ }
43
+
44
+ .nav-links a:hover {
45
+ opacity: 0.8;
46
+ }
47
+
48
+ @media (max-width: 768px) {
49
+ nav {
50
+ flex-direction: column;
51
+ gap: 1rem;
52
+ padding: 1rem;
53
+ }
54
+
55
+ .nav-links {
56
+ width: 100%;
57
+ justify-content: space-around;
58
+ }
59
+ }
60
+ </style>
61
+ <header>
62
+ <nav>
63
+ <div class="logo">
64
+ <i data-feather="rocket"></i>
65
+ <span>Deploy Wizard</span>
66
+ </div>
67
+ <div class="nav-links">
68
+ <a href="/">Home</a>
69
+ <a href="#platforms">Platforms</a>
70
+ <a href="#steps">Steps</a>
71
+ <a href="#deploy">Deploy</a>
72
+ </div>
73
+ </nav>
74
+ </header>
75
+ `;
76
+ }
77
+ }
78
+
79
+ customElements.define('custom-header', CustomHeader);
index.html CHANGED
@@ -1,19 +1,109 @@
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>Deployment Guide</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-gray-50 min-h-screen">
13
+ <custom-header></custom-header>
14
+
15
+ <main class="container mx-auto px-4 py-12">
16
+ <div class="max-w-4xl mx-auto bg-white rounded-xl shadow-md overflow-hidden p-8">
17
+ <h1 class="text-4xl font-bold text-gray-800 mb-8">How to Deploy Your App</h1>
18
+
19
+ <div class="space-y-8">
20
+ <section class="bg-blue-50 p-6 rounded-lg">
21
+ <div class="flex items-start">
22
+ <div class="bg-blue-100 p-3 rounded-full mr-4">
23
+ <i data-feather="cloud" class="text-blue-600"></i>
24
+ </div>
25
+ <div>
26
+ <h2 class="text-2xl font-semibold text-gray-800 mb-3">1. Choose Your Deployment Platform</h2>
27
+ <p class="text-gray-600">Select from these popular options:</p>
28
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mt-4">
29
+ <div class="border rounded-lg p-4 hover:shadow-md transition-shadow">
30
+ <i data-feather="github" class="text-gray-700 mb-2"></i>
31
+ <h3 class="font-medium">GitHub Pages</h3>
32
+ <p class="text-sm text-gray-500 mt-1">Simple static site hosting</p>
33
+ </div>
34
+ <div class="border rounded-lg p-4 hover:shadow-md transition-shadow">
35
+ <i data-feather="hard-drive" class="text-orange-500 mb-2"></i>
36
+ <h3 class="font-medium">Vercel</h3>
37
+ <p class="text-sm text-gray-500 mt-1">Great for Next.js projects</p>
38
+ </div>
39
+ <div class="border rounded-lg p-4 hover:shadow-md transition-shadow">
40
+ <i data-feather="globe" class="text-green-500 mb-2"></i>
41
+ <h3 class="font-medium">Netlify</h3>
42
+ <p class="text-sm text-gray-500 mt-1">All-in-one platform</p>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ </section>
48
+
49
+ <section class="bg-purple-50 p-6 rounded-lg">
50
+ <div class="flex items-start">
51
+ <div class="bg-purple-100 p-3 rounded-full mr-4">
52
+ <i data-feather="terminal" class="text-purple-600"></i>
53
+ </div>
54
+ <div>
55
+ <h2 class="text-2xl font-semibold text-gray-800 mb-3">2. Prepare Your Project</h2>
56
+ <ol class="list-decimal list-inside space-y-2 text-gray-700">
57
+ <li>Ensure all dependencies are in package.json</li>
58
+ <li>Create a production build (e.g., <code class="bg-gray-100 px-2 py-1 rounded">npm run build</code>)</li>
59
+ <li>Test locally with a production server</li>
60
+ <li>Add a .gitignore file if needed</li>
61
+ </ol>
62
+ </div>
63
+ </div>
64
+ </section>
65
+
66
+ <section class="bg-green-50 p-6 rounded-lg">
67
+ <div class="flex items-start">
68
+ <div class="bg-green-100 p-3 rounded-full mr-4">
69
+ <i data-feather="upload" class="text-green-600"></i>
70
+ </div>
71
+ <div>
72
+ <h2 class="text-2xl font-semibold text-gray-800 mb-3">3. Deploy!</h2>
73
+ <div class="bg-gray-800 text-gray-100 p-4 rounded-lg font-mono text-sm overflow-x-auto">
74
+ <div class="flex items-center mb-2">
75
+ <span class="text-green-400 mr-2">$</span>
76
+ <span>git init</span>
77
+ </div>
78
+ <div class="flex items-center mb-2">
79
+ <span class="text-green-400 mr-2">$</span>
80
+ <span>git add .</span>
81
+ </div>
82
+ <div class="flex items-center mb-2">
83
+ <span class="text-green-400 mr-2">$</span>
84
+ <span>git commit -m "Initial commit"</span>
85
+ </div>
86
+ <div class="flex items-center">
87
+ <span class="text-green-400 mr-2">$</span>
88
+ <span>git push</span>
89
+ </div>
90
+ </div>
91
+ <p class="mt-4 text-gray-600">Or connect your GitHub repository to your hosting provider.</p>
92
+ </div>
93
+ </div>
94
+ </section>
95
+ </div>
96
+ </div>
97
+ </main>
98
+
99
+ <custom-footer></custom-footer>
100
+
101
+ <script src="components/header.js"></script>
102
+ <script src="components/footer.js"></script>
103
+ <script src="script.js"></script>
104
+ <script>
105
+ feather.replace();
106
+ </script>
107
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
108
+ </body>
109
+ </html>
script.js ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Smooth scrolling for anchor links
2
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
3
+ anchor.addEventListener('click', function (e) {
4
+ e.preventDefault();
5
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
6
+ behavior: 'smooth'
7
+ });
8
+ });
9
+ });
10
+
11
+ // Copy code snippets functionality
12
+ document.querySelectorAll('code').forEach(code => {
13
+ code.addEventListener('click', () => {
14
+ const text = code.innerText;
15
+ navigator.clipboard.writeText(text).then(() => {
16
+ const originalText = code.innerText;
17
+ code.innerText = 'Copied!';
18
+ setTimeout(() => {
19
+ code.innerText = originalText;
20
+ }, 2000);
21
+ });
22
+ });
23
+ });
24
+
25
+ // Responsive adjustments
26
+ function handleResize() {
27
+ const main = document.querySelector('main');
28
+ if (window.innerWidth < 768) {
29
+ main.classList.add('px-2');
30
+ } else {
31
+ main.classList.remove('px-2');
32
+ }
33
+ }
34
+
35
+ window.addEventListener('resize', handleResize);
36
+ handleResize();
style.css CHANGED
@@ -1,28 +1,52 @@
 
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
+ /* Base styles */
2
  body {
3
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
4
+ line-height: 1.6;
5
  }
6
 
7
+ /* Custom scrollbar */
8
+ ::-webkit-scrollbar {
9
+ width: 8px;
10
+ height: 8px;
11
  }
12
 
13
+ ::-webkit-scrollbar-track {
14
+ background: #f1f1f1;
 
 
 
15
  }
16
 
17
+ ::-webkit-scrollbar-thumb {
18
+ background: #888;
19
+ border-radius: 4px;
 
 
 
20
  }
21
 
22
+ ::-webkit-scrollbar-thumb:hover {
23
+ background: #555;
24
  }
25
+
26
+ /* Animation for deployment steps */
27
+ @keyframes fadeInUp {
28
+ from {
29
+ opacity: 0;
30
+ transform: translateY(20px);
31
+ }
32
+ to {
33
+ opacity: 1;
34
+ transform: translateY(0);
35
+ }
36
+ }
37
+
38
+ section {
39
+ animation: fadeInUp 0.5s ease-out forwards;
40
+ }
41
+
42
+ section:nth-child(1) {
43
+ animation-delay: 0.1s;
44
+ }
45
+
46
+ section:nth-child(2) {
47
+ animation-delay: 0.3s;
48
+ }
49
+
50
+ section:nth-child(3) {
51
+ animation-delay: 0.5s;
52
+ }