-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
106 lines (105 loc) · 3.57 KB
/
index.html
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
<!doctype html>
<html lang="en">
<head>
<title>Convert Kindle Highlights HTML to Markdown file</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta
name="description"
content="Convert Kindle notebook HTMLs to a Markdown text files for Obsidian."
/>
<link rel="stylesheet" href="/assets/output.css" type="text/css" />
<script src="/scripts/file-saver-2.0.2-min.js"></script>
</head>
<body
class="flex flex-col items-center bg-stone-200 text-stone-900 dark:bg-slate-900 dark:text-slate-50"
>
<div class="mx-5 my-5 flex max-w-screen-sm flex-col gap-6">
<div>
<h1>Convert Kindle Notebook HTML to Markdown</h1>
<p class="leading-relaxed opacity-80 dark:text-white">
Amazon's Kindle apps allow you to share book's highlights, notes, and
bookmarks as an HTML file via email.
</p>
<p class="leading-relaxed opacity-80 dark:text-white">
This simple tool converts those HTMLs into Markdown text files perfect
for
<a
href="https://obsidian.md/"
target="_blank"
class="font-semibold no-underline"
>Obsidian</a
>
and similar apps.
</p>
</div>
<div class="my-24">
<div
id="dropzoneContainer"
class="relative rounded-2xl bg-stone-100/75 shadow-xl shadow-stone-800/10 transition duration-500 hover:scale-[1.02] hover:bg-stone-50 hover:shadow-2xl hover:shadow-sky-500/50 dark:bg-slate-800/50 dark:shadow-slate-900 hover:dark:bg-slate-800/70 hover:dark:shadow-sky-600/30"
>
<div
id="dropzone"
class="absolute inset-0 flex flex-col items-center justify-center p-12 motion-safe:animate-pulse"
>
<p
id="dropPrompt"
class="form-label text-center font-medium opacity-90"
>
Drop Kindle Notebook HTML(s) here to download as Markdown file(s)
</p>
<p
id="clickPrompt"
class="form-label text-center text-sm font-medium opacity-60"
>
or click to choose
</p>
</div>
<form id="primePicker" class="text-center opacity-0">
<input
id="fileInput"
class="form-input mb-4 w-full rounded-md border-0 py-48 text-sm shadow transition hover:shadow-lg dark:bg-slate-800"
type="file"
accept=".html"
multiple
/>
</form>
</div>
</div>
</div>
<footer
class="mt-11 flex w-full max-w-screen-sm flex-row items-center justify-center gap-2 px-5 pb-5 text-center text-sm text-stone-600 dark:text-slate-400"
>
<p>
<span class="text-xs">Made by</span>
<a
href="https://nathancheng.work/"
target="_blank"
class="font-semibold no-underline"
>Nathan Cheng</a
>
</p>
<p>•</p>
<p>
<a
href="https://www.buymeacoffee.com/nthnchng"
target="_blank"
class="font-semibold no-underline"
>
<p>💌 Send a Tip</p>
</a>
</p>
<p>•</p>
<p>
<a
href="https://github.com/nweii/Kindle-HTML-to-Markdown"
target="_blank"
class="font-semibold no-underline"
>Github</a
>
<span class="text-xs">(CC0‑1.0 license)</span>
</p>
</footer>
<script src="/scripts/kindleToMd.js"></script>
</body>
</html>