-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
552 lines (485 loc) · 20.2 KB
/
Copy pathindex.html
File metadata and controls
552 lines (485 loc) · 20.2 KB
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
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Metanoia - Developer Portal</title>
<link rel="apple-touch-icon" sizes="180x180" href="/icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/icon.png">
<link rel="icon" type="image/png" sizes="16x16" href="/icon.png">
<style>
:root {
--bg-primary: #0f1117;
--bg-secondary: #161922;
--text-primary: #a9b1d6;
--text-secondary: #787c99;
--accent: #7aa2f7;
--accent-hover: #5d7fd3;
--success: #9ece6a;
--warning: #e0af68;
--error: #f7768e;
--liquid-glass: rgba(26, 27, 38, 0.7);
--liquid-glass-border: rgba(186, 187, 208, 0.1);
--shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
--backdrop-blur: 20px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
background-image:
radial-gradient(ellipse at top, rgba(122, 162, 247, 0.1) 0%, transparent 50%),
radial-gradient(ellipse at bottom, rgba(158, 206, 255, 0.05) 0%, transparent 50%);
}
.liquid-glass {
background: var(--liquid-glass);
backdrop-filter: blur(var(--backdrop-blur));
-webkit-backdrop-filter: blur(var(--backdrop-blur));
border: 1px solid var(--liquid-glass-border);
box-shadow: var(--shadow);
border-radius: 16px;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
header {
padding: 3rem 0;
text-align: center;
}
h1 {
font-size: 3.5rem;
font-weight: 700;
color: var(--accent);
margin-bottom: 0.5rem;
text-shadow: 0 0 30px rgba(122, 162, 247, 0.3);
}
.subtitle {
font-size: 1.2rem;
color: var(--text-secondary);
margin-bottom: 2rem;
}
nav {
display: flex;
justify-content: center;
gap: 1rem;
margin-top: 2rem;
flex-wrap: wrap;
}
nav a {
color: var(--text-primary);
text-decoration: none;
padding: 0.75rem 1.5rem;
border-radius: 8px;
transition: all 0.3s ease;
font-weight: 500;
}
nav a:hover {
color: var(--accent);
background: rgba(122, 162, 247, 0.1);
}
main {
padding: 2rem 0;
}
.section {
margin-bottom: 3rem;
}
h2 {
font-size: 2rem;
color: var(--accent);
margin-bottom: 1.5rem;
border-bottom: 2px solid var(--accent);
padding-bottom: 0.5rem;
display: inline-block;
}
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
margin-top: 2rem;
}
.card {
padding: 2rem;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.card h3 {
color: var(--accent);
margin-bottom: 1rem;
font-size: 1.3rem;
}
.card p {
color: var(--text-secondary);
line-height: 1.6;
margin-bottom: 1rem;
}
.code-block {
background: var(--bg-secondary);
border: 1px solid var(--liquid-glass-border);
border-radius: 8px;
padding: 1.5rem;
overflow-x: auto;
margin: 1.5rem 0;
font-family: 'Fira Code', 'Consolas', monospace;
font-size: 0.9rem;
line-height: 1.6;
}
.code-block code {
color: var(--text-primary);
}
.copy-btn {
position: absolute;
top: 1rem;
right: 1rem;
background: rgba(122, 162, 247, 0.2);
border: 1px solid var(--accent);
color: var(--accent);
padding: 0.5rem 1rem;
border-radius: 6px;
cursor: pointer;
font-size: 0.85rem;
transition: all 0.3s ease;
}
.copy-btn:hover {
background: rgba(122, 162, 247, 0.3);
}
.code-block {
position: relative;
}
.method-badge {
display: inline-block;
padding: 0.25rem 0.75rem;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.method-badge.http {
background: rgba(158, 206, 255, 0.2);
color: #9ece6a;
border: 1px solid rgba(158, 206, 255, 0.3);
}
.method-badge.custom {
background: rgba(122, 162, 247, 0.2);
color: #7aa2f7;
border: 1px solid rgba(122, 162, 247, 0.3);
}
.example-table {
width: 100%;
border-collapse: collapse;
margin: 1.5rem 0;
}
.example-table th, .example-table td {
padding: 1rem;
text-align: left;
border-bottom: 1px solid var(--liquid-glass-border);
}
.example-table th {
color: var(--accent);
font-weight: 600;
}
.example-table tr:hover {
background: rgba(122, 162, 247, 0.05);
}
.warning-box {
background: rgba(224, 175, 104, 0.1);
border: 1px solid rgba(224, 175, 104, 0.3);
border-radius: 12px;
padding: 1.5rem;
margin: 1.5rem 0;
}
.warning-box h3 {
color: var(--warning);
margin-bottom: 0.5rem;
}
.success-box {
background: rgba(158, 206, 255, 0.1);
border: 1px solid rgba(158, 206, 255, 0.3);
border-radius: 12px;
padding: 1.5rem;
margin: 1.5rem 0;
}
.success-box h3 {
color: var(--success);
margin-bottom: 0.5rem;
}
footer {
text-align: center;
padding: 3rem 0;
color: var(--text-secondary);
border-top: 1px solid var(--liquid-glass-border);
margin-top: 3rem;
}
.hero-section {
text-align: center;
padding: 4rem 0;
}
.hero-section h1 {
font-size: 4rem;
margin-bottom: 1rem;
}
.hero-section .subtitle {
font-size: 1.5rem;
max-width: 600px;
margin: 0 auto 2rem;
}
.cta-button {
display: inline-block;
background: var(--accent);
color: var(--bg-primary);
padding: 1rem 2rem;
border-radius: 12px;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
box-shadow: 0 4px 20px rgba(122, 162, 247, 0.3);
}
.cta-button:hover {
background: var(--accent-hover);
transform: translateY(-2px);
box-shadow: 0 6px 30px rgba(122, 162, 247, 0.4);
}
@media (max-width: 768px) {
h1 { font-size: 2.5rem; }
.hero-section h1 { font-size: 2.5rem; }
.container { padding: 1rem; }
.card-grid { grid-template-columns: 1fr; }
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>Metanoia Developer Portal</h1>
<p class="subtitle">Link directly to Bible verses from your Android app</p>
<nav>
<a href="#linking">Linking Guide</a>
<a href="#examples">Examples</a>
<a href="#testing">Testing</a>
<a href="#faq">FAQ</a>
<a href="https://github.com/4cecoder/metanoia">GitHub</a>
</nav>
</header>
<main>
<div class="section">
<div class="hero-section">
<h1>Deep Link to Bible Verses</h1>
<p class="subtitle">Enable users to jump from your app directly to specific passages in Metanoia</p>
<a href="#linking" class="cta-button">Get Started</a>
</div>
</div>
<div class="section" id="linking">
<h2>How It Works</h2>
<p class="subtitle">Two simple link formats, automatic verse resolution</p>
<div class="card-grid">
<div class="card liquid-glass">
<span class="method-badge http">HTTPS</span>
<h3>Web-Friendly Links</h3>
<p>Use standard HTTPS URLs that work in browsers and automatically open Metanoia with App Link verification.</p>
<div class="code-block">
<code>https://metanoia.bytecats.codes/bible/John/3/16</code>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
</div>
<div class="card liquid-glass">
<span class="method-badge custom">Custom Scheme</span>
<h3>Direct App Links</h3>
<p>Use the metanoia:// scheme for immediate deep links without web verification needed.</p>
<div class="code-block">
<code>metanoia://bible/John/3/16</code>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
</div>
<div class="card liquid-glass">
<span class="method-badge http">Flexible</span>
<h3>Smart Resolution</h3>
<p>Supports full book names, common abbreviations, and automatic chapter/verse validation.</p>
<div class="code-block">
<code>https://metanoia.bytecats.codes/bible/jn/3/16</code>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
</div>
</div>
</div>
<div class="section" id="implementation">
<h2>Integration Guide</h2>
<div class="card liquid-glass">
<h3>Kotlin/Android</h3>
<p>Launch Metanoia from your Android app with a specific verse reference:</p>
<div class="code-block">
<code>val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://metanoia.bytecats.codes/bible/John/3/16"))
startActivity(intent)</code>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
</div>
<div class="card liquid-glass">
<h3>Web/HTML</h3>
<p>Create clickable links that open Metanoia directly:</p>
<div class="code-block">
<code><a href="https://metanoia.bytecats.codes/bible/Romans/8/28">Read Romans 8:28</a></code>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
</div>
<div class="card liquid-glass">
<h3>JavaScript/Web</h3>
<p>Programmatic links from web apps:</p>
<div class="code-block">
<code>window.open('https://metanoia.bytecats.codes/bible/Genesis/1/1', '_self');</code>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
</div>
</div>
<div class="section" id="examples">
<h2>Link Examples</h2>
<div class="success-box">
<h3>✅ Tested & Working</h3>
<p>These links have been verified to work correctly with the latest Metanoia app.</p>
</div>
<table class="example-table">
<thead>
<tr>
<th>Link</th>
<th>Opens</th>
<th>Type</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>metanoia://bible/John/3/16</code></td>
<td>John 3:16</td>
<td><span class="method-badge custom">Custom</span></td>
</tr>
<tr>
<td><code>https://metanoia.bytecats.codes/bible/Genesis/1</code></td>
<td>Genesis 1 (chapter)</td>
<td><span class="method-badge http">HTTPS</span></td>
</tr>
<tr>
<td><code>https://metanoia.bytecats.codes/bible/1Samuel/17/45</code></td>
<td>1 Samuel 17:45</td>
<td><span class="method-badge http">HTTPS</span></td>
</tr>
<tr>
<td><code>metanoia://bible/SongofSolomon/2/1</code></td>
<td>Song of Solomon 2:1</td>
<td><span class="method-badge custom">Custom</span></td>
</tr>
<tr>
<td><code>https://metanoia.bytecats.codes/bible/jn/3/16</code></td>
<td>John 3:16 (abbreviation)</td>
<td><span class="method-badge http">HTTPS</span></td>
</tr>
<tr>
<td><code>https://metanoia.bytecats.codes/bible/Romans/8/28</code></td>
<td>Romans 8:28</td>
<td><span class="method-badge http">HTTPS</span></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="testing">
<h2>Testing Links</h2>
<div class="warning-box">
<h3>⚠️ ADB Testing</h3>
<p>Test deep links directly from your development machine:</p>
<div class="code-block">
<code>adb shell am start -W -a android.intent.action.VIEW \
-d "metanoia://bible/John/3/16" com.bytecats.metanoia</code>
<button class="copy-btn" onclick="copyCode(this)">Copy</button>
</div>
</div>
<div class="card liquid-glass">
<h3>Live Testing</h3>
<p>Try these links right now (requires Metanoia app installed):</p>
<div style="display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem;">
<a href="https://metanoia.bytecats.codes/bible/John/3/16" class="cta-button" style="font-size: 0.9rem; padding: 0.75rem 1.5rem;">Test John 3:16</a>
<a href="https://metanoia.bytecats.codes/bible/Genesis/1" class="cta-button" style="font-size: 0.9rem; padding: 0.75rem 1.5rem;">Test Genesis 1</a>
<a href="https://metanoia.bytecats.codes/bible/Romans/8/28" class="cta-button" style="font-size: 0.9rem; padding: 0.75rem 1.5rem;">Test Romans 8:28</a>
</div>
</div>
</div>
<div class="section" id="faq">
<h2>Frequently Asked Questions</h2>
<div class="card-grid">
<div class="card liquid-glass">
<h3>What if Metanoia isn't installed?</h3>
<p>The HTTPS link will open in a web browser. Users can then choose to install Metanoia from the link.</p>
</div>
<div class="card liquid-glass">
<h3>Does this work on iOS?</h3>
<p>Currently Android-only. iOS deep linking support is planned for future releases.</p>
</div>
<div class="card liquid-glass">
<h3>Can I link to specific translations?</h3>
<p>Not yet. Links open the user's currently selected translation. Translation-specific links are planned.</p>
</div>
<div class="card liquid-glass">
<h3>What about deuterocanonical books?</h3>
<p>Currently only 66-book Protestant canon. Use full book names (e.g., "Tobit") for other canons until abbreviations are added.</p>
</div>
</div>
</div>
<div class="section">
<h2>Developer Resources</h2>
<div class="card-grid">
<div class="card liquid-glass">
<h3>Source Code</h3>
<p><a href="https://github.com/4cecoder/metanoia" style="color: var(--accent);">View on GitHub</a></p>
<p style="font-size: 0.9rem; margin-top: 0.5rem;">MIT License - Open Source</p>
</div>
<div class="card liquid-glass">
<h3>Documentation</h3>
<p><a href="https://github.com/4cecoder/metanoia/tree/main/docs" style="color: var(--accent);">Full Documentation</a></p>
<p style="font-size: 0.9rem; margin-top: 0.5rem;">Implementation details & technical notes</p>
</div>
<div class="card liquid-glass">
<h3>Issues & Support</h3>
<p><a href="https://github.com/4cecoder/metanoia/issues" style="color: var(--accent);">Report Issues</a></p>
<p style="font-size: 0.9rem; margin-top: 0.5rem;">Bug reports & feature requests</p>
</div>
</div>
</div>
</main>
<footer>
<p>Made with ❤️ by the Metanoia community • <a href="https://github.com/4cecoder/metanoia" style="color: var(--accent);">GitHub</a></p>
<p style="font-size: 0.9rem; margin-top: 0.5rem;">© 2024 Metanoia Project. All rights reserved.</p>
</footer>
</div>
<script>
function copyCode(button) {
const codeBlock = button.parentElement;
const code = codeBlock.querySelector('code');
navigator.clipboard.writeText(code.textContent).then(() => {
const originalText = button.textContent;
button.textContent = 'Copied!';
setTimeout(() => {
button.textContent = originalText;
}, 2000);
});
}
// Smooth scroll for navigation
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
</script>
</body>
</html>