File size: 13,168 Bytes
1da1a45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Convert Your Website - WebToApp</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
    <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: {
                            50: '#eff6ff',
                            100: '#dbeafe',
                            200: '#bfdbfe',
                            300: '#93c5fd',
                            400: '#60a5fa',
                            500: '#3b82f6',
                            600: '#2563eb',
                            700: '#1d4ed8',
                            800: '#1e40af',
                            900: '#1e3a8a',
                        }
                    }
                }
            }
        }
    </script>
</head>
<body class="bg-gray-50">
    <!-- Navigation -->
    <nav class="bg-white shadow-lg">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between h-16">
                <div class="flex items-center">
                    <a href="index.html" class="flex-shrink-0 flex items-center">
                        <i data-feather="box" class="h-8 w-8 text-primary-600"></i>
                        <span class="ml-2 text-xl font-bold text-gray-900">WebToApp</span>
                    </a>
                </div>
                <div class="flex items-center">
                    <a href="index.html" class="text-gray-700 hover:text-primary-600 transition">← Back to Home</a>
                </div>
            </div>
        </div>
    </nav>

    <!-- Conversion Form -->
    <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
        <div class="bg-white rounded-xl shadow-lg p-8">
            <h1 class="text-3xl font-bold text-gray-900 mb-2">Convert Your Website to App</h1>
            <p class="text-gray-600 mb-8">Fill in your website details and customization options</p>

            <form id="conversionForm" class="space-y-8">
                <!-- Website Details -->
                <div>
                    <h2 class="text-xl font-semibold text-gray-900 mb-6 flex items-center">
                        <div class="w-8 h-8 bg-primary-100 rounded-full flex items-center justify-center mr-3">
                            <span class="text-primary-600 font-bold">1</span>
                        </div>
                        Website Details
                    </h2>
                    <div class="space-y-6">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Website URL *</label>
                            <input type="url" name="websiteUrl" required placeholder="https://yourwebsite.com" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-transparent">
                            <p class="text-sm text-gray-500 mt-1">Enter the full URL of your website</p>
                        </div>
                        <div class="grid md:grid-cols-2 gap-6">
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-1">App Name *</label>
                                <input type="text" name="appName" required placeholder="My Awesome App" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-transparent">
                            </div>
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-1">Bundle ID *</label>
                                <input type="text" name="bundleId" required placeholder="com.company.app" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-transparent">
                                <p class="text-sm text-gray-500 mt-1">Reverse domain notation (e.g., com.company.app)</p>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Platform Selection -->
                <div>
                    <h2 class="text-xl font-semibold text-gray-900 mb-6 flex items-center">
                        <div class="w-8 h-8 bg-primary-100 rounded-full flex items-center justify-center mr-3">
                            <span class="text-primary-600 font-bold">2</span>
                        </div>
                        Platform Selection
                    </h2>
                    <div class="grid md:grid-cols-3 gap-4">
                        <label class="relative">
                            <input type="checkbox" name="platform" value="android" class="sr-only peer">
                            <div class="p-6 border-2 border-gray-300 rounded-lg peer-checked:border-primary-500 peer-checked:bg-primary-50 transition-all cursor-pointer">
                                <div class="flex items-center mb-4">
                                    <i data-feather="smartphone" class="h-6 w-6 text-gray-600 peer-checked:text-primary-600 mr-3"></i>
                                    <span class="font-medium">Android</span>
                                </div>
                                <p class="text-sm text-gray-600">APK + Source Code</p>
                            </div>
                        </label>
                        <label class="relative">
                            <input type="checkbox" name="platform" value="ios" class="sr-only peer">
                            <div class="p-6 border-2 border-gray-300 rounded-lg peer-checked:border-primary-500 peer-checked:bg-primary-50 transition-all cursor-pointer">
                                <div class="flex items-center mb-4">
                                    <i data-feather="tablet" class="h-6 w-6 text-gray-600 peer-checked:text-primary-600 mr-3"></i>
                                    <span class="font-medium">iOS</span>
                                </div>
                                <p class="text-sm text-gray-600">Xcode Project + Source</p>
                            </div>
                        </label>
                        <label class="relative">
                            <input type="checkbox" name="platform" value="both" class="sr-only peer" checked>
                            <div class="p-6 border-2 border-primary-500 bg-primary-50 rounded-lg transition-all cursor-pointer">
                                <div class="flex items-center mb-4">
                                    <i data-feather="layers" class="h-6 w-6 text-primary-600 mr-3"></i>
                                    <span class="font-medium">Both Platforms</span>
                                </div>
                                <p class="text-sm text-gray-600">Complete Package (Recommended)</p>
                            </div>
                        </label>
                    </div>
                </div>

                <!-- App Icon -->
                <div>
                    <h2 class="text-xl font-semibold text-gray-900 mb-6 flex items-center">
                        <div class="w-8 h-8 bg-primary-100 rounded-full flex items-center justify-center mr-3">
                            <span class="text-primary-600 font-bold">3</span>
                        </div>
                        App Icon & Branding
                    </h2>
                    <div class="space-y-6">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">App Icon</label>
                            <div class="flex items-center space-x-4">
                                <div class="relative">
                                    <input type="file" id="iconUpload" accept="image/*" class="sr-only">
                                    <label for="iconUpload" class="cursor-pointer bg-gray-100 hover:bg-gray-200 px-4 py-3 rounded-lg transition">
                                        <i data-feather="upload" class="h-5 w-5 inline mr-2"></i>
                                        Upload Icon
                                    </label>
                                </div>
                                <span class="text-gray-500">or</span>
                                <button type="button" class="text-primary-600 hover:text-primary-700 font-medium">
                                    <i data-feather="download" class="h-5 w-5 inline mr-2"></i>
                                    Extract from Website
                                </button>
                            </div>
                            <p class="text-sm text-gray-500 mt-2">512x512 PNG recommended. We'll generate all required sizes.</p>
                        </div>
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Primary Color</label>
                            <div class="flex items-center space-x-4">
                                <input type="color" name="primaryColor" value="#3b82f6" class="w-12 h-12 rounded cursor-pointer">
                                <input type="text" value="#3b82f6" class="px-3 py-2 border border-gray-300 rounded-lg w-32">
                                <button type="button" class="text-primary-600 hover:text-primary-700 font-medium">
                                    <i data-feather="eye-dropper" class="h-5 w-5 inline mr-2"></i>
                                    Extract from Website
                                </button>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Advanced Options -->
                <div>
                    <h2 class="text-xl font-semibold text-gray-900 mb-6 flex items-center">
                        <div class="w-8 h-8 bg-primary-100 rounded-full flex items-center justify-center mr-3">
                            <span class="text-primary-600 font-bold">4</span>
                        </div>
                        Advanced Options
                    </h2>
                    <div class="space-y-6">
                        <div class="flex items-center justify-between">
                            <div>
                                <label class="block text-sm font-medium text-gray-700 mb-1">Signing Credentials</label>
                                <p class="text-sm text-gray-500">Upload your keystore or Apple credentials for signed builds</p>
                            </div>
                            <button type="button" class="text-primary-600 hover:text-primary-700 font-medium">
                                Add Credentials
                                <i data-feather="chevron-right" class="h-5 w-5 inline ml-1"></i>
                            </button>
                        </div>
                        <div class="flex items-center">
                            <input type="checkbox" id="offlineSupport" name="offlineSupport" class="h-4 w-4 text-primary-600 focus:ring-primary-500 border-gray-300 rounded">
                            <label for="offlineSupport" class="ml-3 text-sm text-gray-700">Enable offline support for critical pages</label>
                        </div>
                        <div class="flex items-center">
                            <input type="checkbox" id="webviewFallback" name="webviewFallback" class="h-4 w-4 text-primary-600 focus:ring-primary-500 border-gray-300 rounded" checked>
                            <label for="webviewFallback" class="ml-3 text-sm text-gray-700">Use WebView fallback for dynamic content</label>
                        </div>
                    </div>
                </div>

                <!-- Action Buttons -->
                <div class="flex justify-between pt-8 border-t border-gray-200">
                    <button type="button" class="px-6 py-3 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50 transition">
                        Cancel
                    </button>
                    <button type="submit" class="px-6 py-3 bg-primary-600 text-white rounded-lg hover:bg-primary-700 transition">
                        Generate Preview & Continue
                    </button>
                </div>
            </form>
        </div>
    </div>

    <script>
        AOS.init();
        feather.replace();
        
        document.getElementById('conversionForm').addEventListener('submit', function(e) {
            e.preventDefault();
            // In a real implementation, this would process the form and redirect to preview page
            window.location.href = 'preview.html';
        });
    </script>
</body>
</html>