File size: 5,952 Bytes
11bf4da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Deployment Guide</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
</head>
<body class="bg-gray-50 min-h-screen">
    <custom-header></custom-header>
    
    <main class="container mx-auto px-4 py-12">
        <div class="max-w-4xl mx-auto bg-white rounded-xl shadow-md overflow-hidden p-8">
            <h1 class="text-4xl font-bold text-gray-800 mb-8">How to Deploy Your App</h1>
            
            <div class="space-y-8">
                <section class="bg-blue-50 p-6 rounded-lg">
                    <div class="flex items-start">
                        <div class="bg-blue-100 p-3 rounded-full mr-4">
                            <i data-feather="cloud" class="text-blue-600"></i>
                        </div>
                        <div>
                            <h2 class="text-2xl font-semibold text-gray-800 mb-3">1. Choose Your Deployment Platform</h2>
                            <p class="text-gray-600">Select from these popular options:</p>
                            <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mt-4">
                                <div class="border rounded-lg p-4 hover:shadow-md transition-shadow">
                                    <i data-feather="github" class="text-gray-700 mb-2"></i>
                                    <h3 class="font-medium">GitHub Pages</h3>
                                    <p class="text-sm text-gray-500 mt-1">Simple static site hosting</p>
                                </div>
                                <div class="border rounded-lg p-4 hover:shadow-md transition-shadow">
                                    <i data-feather="hard-drive" class="text-orange-500 mb-2"></i>
                                    <h3 class="font-medium">Vercel</h3>
                                    <p class="text-sm text-gray-500 mt-1">Great for Next.js projects</p>
                                </div>
                                <div class="border rounded-lg p-4 hover:shadow-md transition-shadow">
                                    <i data-feather="globe" class="text-green-500 mb-2"></i>
                                    <h3 class="font-medium">Netlify</h3>
                                    <p class="text-sm text-gray-500 mt-1">All-in-one platform</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </section>

                <section class="bg-purple-50 p-6 rounded-lg">
                    <div class="flex items-start">
                        <div class="bg-purple-100 p-3 rounded-full mr-4">
                            <i data-feather="terminal" class="text-purple-600"></i>
                        </div>
                        <div>
                            <h2 class="text-2xl font-semibold text-gray-800 mb-3">2. Prepare Your Project</h2>
                            <ol class="list-decimal list-inside space-y-2 text-gray-700">
                                <li>Ensure all dependencies are in package.json</li>
                                <li>Create a production build (e.g., <code class="bg-gray-100 px-2 py-1 rounded">npm run build</code>)</li>
                                <li>Test locally with a production server</li>
                                <li>Add a .gitignore file if needed</li>
                            </ol>
                        </div>
                    </div>
                </section>

                <section class="bg-green-50 p-6 rounded-lg">
                    <div class="flex items-start">
                        <div class="bg-green-100 p-3 rounded-full mr-4">
                            <i data-feather="upload" class="text-green-600"></i>
                        </div>
                        <div>
                            <h2 class="text-2xl font-semibold text-gray-800 mb-3">3. Deploy!</h2>
                            <div class="bg-gray-800 text-gray-100 p-4 rounded-lg font-mono text-sm overflow-x-auto">
                                <div class="flex items-center mb-2">
                                    <span class="text-green-400 mr-2">$</span>
                                    <span>git init</span>
                                </div>
                                <div class="flex items-center mb-2">
                                    <span class="text-green-400 mr-2">$</span>
                                    <span>git add .</span>
                                </div>
                                <div class="flex items-center mb-2">
                                    <span class="text-green-400 mr-2">$</span>
                                    <span>git commit -m "Initial commit"</span>
                                </div>
                                <div class="flex items-center">
                                    <span class="text-green-400 mr-2">$</span>
                                    <span>git push</span>
                                </div>
                            </div>
                            <p class="mt-4 text-gray-600">Or connect your GitHub repository to your hosting provider.</p>
                        </div>
                    </div>
                </section>
            </div>
        </div>
    </main>

    <custom-footer></custom-footer>

    <script src="components/header.js"></script>
    <script src="components/footer.js"></script>
    <script src="script.js"></script>
    <script>
        feather.replace();
    </script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>