File size: 13,364 Bytes
a91e387
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Manga OCR Translator</title>
    <link rel="stylesheet" href="/static/ui/styles.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
</head>
<body>
    <div class="app-container">
        <!-- Header Section -->
        <header class="header">
            <div class="logo">
                <i class="fas fa-book-open logo-icon"></i>
                <h1>Manga OCR</h1>
            </div>
            <nav class="nav">
                <a href="#" class="active">Home</a>
                <a href="#features">Features</a>
                <a href="#how-it-works">How It Works</a>
                <a href="#pricing">Pricing</a>
            </nav>
        </header>

        <!-- Hero Section -->
        <section class="hero">
            <div class="hero-content">
                <h1>Translate Manga with AI</h1>
                <p>Instantly translate manga, comics, and light novels from Japanese, Korean, and Chinese to English and other languages.</p>
                <button class="btn btn-primary btn-large" id="try-now-btn">Try Now</button>
            </div>
            <div class="hero-image">
                <img src="/static/ui/hero-image.png" alt="Manga Translation Demo" onerror="this.src='/static/ui/placeholder.png'">
            </div>
        </section>

        <!-- Features Section -->
        <section class="features" id="features">
            <h2>Powerful Translation Features</h2>
            <div class="feature-cards">
                <div class="feature-card">
                    <i class="fas fa-language"></i>
                    <h3>Multiple Languages</h3>
                    <p>Support for Japanese, Korean, Chinese, and more, with translation to English, Spanish, French, etc.</p>
                </div>
                <div class="feature-card">
                    <i class="fas fa-magic"></i>
                    <h3>Smart Text Detection</h3>
                    <p>Advanced OCR technology detects text in speech bubbles, captions, and more.</p>
                </div>
                <div class="feature-card">
                    <i class="fas fa-file-pdf"></i>
                    <h3>PDF Support</h3>
                    <p>Upload manga in PDF format and get translated pages instantly.</p>
                </div>
                <div class="feature-card">
                    <i class="fas fa-link"></i>
                    <h3>URL Translation</h3>
                    <p>Simply paste a URL and we'll fetch and translate the manga from the web.</p>
                </div>
            </div>
        </section>

        <!-- How It Works Section -->
        <section class="how-it-works" id="how-it-works">
            <h2>How It Works</h2>
            <div class="steps">
                <div class="step">
                    <div class="step-number">1</div>
                    <h3>Upload or Paste URL</h3>
                    <p>Upload a manga PDF or paste a URL to a manga site</p>
                </div>
                <div class="step-arrow">β†’</div>
                <div class="step">
                    <div class="step-number">2</div>
                    <h3>AI Processing</h3>
                    <p>Our AI detects text and extracts it from the images</p>
                </div>
                <div class="step-arrow">β†’</div>
                <div class="step">
                    <div class="step-number">3</div>
                    <h3>Translation</h3>
                    <p>The text is translated to your preferred language</p>
                </div>
                <div class="step-arrow">β†’</div>
                <div class="step">
                    <div class="step-number">4</div>
                    <h3>Enjoy!</h3>
                    <p>Download or view translated manga instantly</p>
                </div>
            </div>
        </section>

        <!-- Translator Interface -->
        <section class="translator-container" id="translator">
            <h2>Translate Manga Now</h2>
            <div class="translator-tabs">
                <button class="tab-btn active" data-tab="url-tab">URL</button>
                <button class="tab-btn" data-tab="pdf-tab">PDF Upload</button>
            </div>
            
            <div class="tab-content">
                <!-- URL Tab -->
                <div class="tab-pane active" id="url-tab">
                    <form id="url-form" class="translation-form">
                        <div class="form-group">
                            <label for="manga-url">Manga URL</label>
                            <input type="url" id="manga-url" placeholder="https://example.com/manga/chapter-1" required>
                        </div>
                        <div class="form-row">
                            <div class="form-group">
                                <label for="url-src-lang">Source Language</label>
                                <select id="url-src-lang">
                                    <option value="auto">Auto-detect</option>
                                    <option value="ja">Japanese</option>
                                    <option value="ko">Korean</option>
                                    <option value="ch_sim">Chinese (Simplified)</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="url-tgt-lang">Target Language</label>
                                <select id="url-tgt-lang">
                                    <option value="en">English</option>
                                    <option value="es">Spanish</option>
                                    <option value="fr">French</option>
                                    <option value="de">German</option>
                                    <option value="it">Italian</option>
                                    <option value="pt">Portuguese</option>
                                    <option value="ru">Russian</option>
                                </select>
                            </div>
                        </div>
                        <button type="submit" class="btn btn-primary">Translate</button>
                    </form>
                </div>
                
                <!-- PDF Tab -->
                <div class="tab-pane" id="pdf-tab">
                    <form id="pdf-form" class="translation-form">
                        <div class="form-group">
                            <label for="pdf-file">Upload Manga PDF</label>
                            <div class="file-upload">
                                <input type="file" id="pdf-file" accept=".pdf" required>
                                <label for="pdf-file" class="file-label">
                                    <i class="fas fa-cloud-upload-alt"></i> 
                                    <span>Choose a PDF file</span>
                                </label>
                                <div class="file-name">No file chosen</div>
                            </div>
                        </div>
                        <div class="form-row">
                            <div class="form-group">
                                <label for="pdf-src-lang">Source Language</label>
                                <select id="pdf-src-lang">
                                    <option value="auto">Auto-detect</option>
                                    <option value="ja">Japanese</option>
                                    <option value="ko">Korean</option>
                                    <option value="ch_sim">Chinese (Simplified)</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="pdf-tgt-lang">Target Language</label>
                                <select id="pdf-tgt-lang">
                                    <option value="en">English</option>
                                    <option value="es">Spanish</option>
                                    <option value="fr">French</option>
                                    <option value="de">German</option>
                                    <option value="it">Italian</option>
                                    <option value="pt">Portuguese</option>
                                    <option value="ru">Russian</option>
                                </select>
                            </div>
                        </div>
                        <button type="submit" class="btn btn-primary">Translate</button>
                    </form>
                </div>
            </div>
            
            <!-- Results Area -->
            <div class="results-container" id="results">
                <div class="progress-container" style="display: none;">
                    <div class="progress-text">Processing page 1/5...</div>
                    <div class="progress-bar">
                        <div class="progress-fill"></div>
                    </div>
                </div>
                <div class="results-grid"></div>
            </div>
        </section>

        <!-- Pricing Section -->
        <section class="pricing" id="pricing">
            <h2>Simple Pricing</h2>
            <div class="pricing-cards">
                <div class="pricing-card">
                    <div class="pricing-header">
                        <h3>Free</h3>
                        <div class="price">$0</div>
                        <p>Translate up to 5 pages</p>
                    </div>
                    <ul class="pricing-features">
                        <li><i class="fas fa-check"></i> Basic OCR translation</li>
                        <li><i class="fas fa-check"></i> URL and PDF upload</li>
                        <li><i class="fas fa-check"></i> 5 pages per day limit</li>
                        <li><i class="fas fa-times"></i> No source language selection</li>
                        <li><i class="fas fa-times"></i> Limited output quality</li>
                    </ul>
                    <button class="btn">Current Plan</button>
                </div>
                <div class="pricing-card featured">
                    <div class="pricing-tag">Popular</div>
                    <div class="pricing-header">
                        <h3>Premium</h3>
                        <div class="price">$9.99<span>/month</span></div>
                        <p>All features unlocked</p>
                    </div>
                    <ul class="pricing-features">
                        <li><i class="fas fa-check"></i> Advanced OCR translation</li>
                        <li><i class="fas fa-check"></i> URL and PDF upload</li>
                        <li><i class="fas fa-check"></i> Unlimited pages</li>
                        <li><i class="fas fa-check"></i> All languages supported</li>
                        <li><i class="fas fa-check"></i> Premium quality output</li>
                    </ul>
                    <button class="btn btn-primary">Upgrade Now</button>
                </div>
                <div class="pricing-card">
                    <div class="pricing-header">
                        <h3>Teams</h3>
                        <div class="price">$29.99<span>/month</span></div>
                        <p>For scanlation groups</p>
                    </div>
                    <ul class="pricing-features">
                        <li><i class="fas fa-check"></i> All Premium features</li>
                        <li><i class="fas fa-check"></i> Bulk processing</li>
                        <li><i class="fas fa-check"></i> API access</li>
                        <li><i class="fas fa-check"></i> Priority support</li>
                        <li><i class="fas fa-check"></i> Team collaboration</li>
                    </ul>
                    <button class="btn">Contact Sales</button>
                </div>
            </div>
        </section>
        
        <!-- Footer -->
        <footer class="footer">
            <div class="footer-content">
                <div class="footer-logo">
                    <i class="fas fa-book-open"></i>
                    <h3>Manga OCR</h3>
                </div>
                <div class="footer-links">
                    <ul>
                        <li><a href="#">Home</a></li>
                        <li><a href="#features">Features</a></li>
                        <li><a href="#how-it-works">How It Works</a></li>
                        <li><a href="#pricing">Pricing</a></li>
                    </ul>
                </div>
                <div class="footer-social">
                    <a href="#"><i class="fab fa-twitter"></i></a>
                    <a href="#"><i class="fab fa-facebook"></i></a>
                    <a href="#"><i class="fab fa-github"></i></a>
                </div>
            </div>
            <div class="footer-bottom">
                <p>&copy; 2025 Manga OCR Translator. All rights reserved.</p>
            </div>
        </footer>
    </div>

    <script src="/static/ui/scripts.js"></script>
</body>
</html>