Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
126 lines (113 loc) · 4.99 KB
/
Copy pathindex.html
File metadata and controls
126 lines (113 loc) · 4.99 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Inkwell — Markdown Notes</title>
<link rel="stylesheet" href="css/style.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=JetBrains+Mono:wght@300;400;500&display=swap" rel="stylesheet" />
</head>
<body>
<!-- Ambient background -->
<div class="ambient" aria-hidden="true">
<div class="ambient__orb ambient__orb--1"></div>
<div class="ambient__orb ambient__orb--2"></div>
</div>
<!-- App shell -->
<div class="app" id="app">
<!-- Header -->
<header class="header">
<div class="header__brand">
<svg class="header__logo" width="22" height="22" viewBox="0 0 22 22" fill="none">
<path d="M3 4h16M3 8h10M3 12h16M3 16h8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
</svg>
<span class="header__name">Inkwell</span>
<span class="header__tagline">markdown notes</span>
</div>
<nav class="header__notes-list" id="notesTabs" role="tablist" aria-label="Notes">
<!-- Tabs injected by JS -->
</nav>
<div class="header__actions">
<button class="btn btn--new" id="btnNew" title="New note (Ctrl+N)">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
<path d="M7 1v12M1 7h12" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/>
</svg>
New
</button>
<button class="btn btn--icon" id="btnToggleLayout" title="Toggle layout" aria-label="Toggle layout">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
<rect x="1" y="1" width="6" height="14" rx="1.5" stroke="currentColor" stroke-width="1.4"/>
<rect x="9" y="1" width="6" height="14" rx="1.5" stroke="currentColor" stroke-width="1.4"/>
</svg>
</button>
<button class="btn btn--icon btn--delete" id="btnDelete" title="Delete note" aria-label="Delete current note">
<svg width="15" height="15" viewBox="0 0 15 15" fill="none">
<path d="M2.5 4h10M6 4V2.5h3V4M5.5 4v7.5h4V4" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
</div>
</header>
<!-- Title bar -->
<div class="titlebar">
<input
class="titlebar__input"
id="noteTitle"
type="text"
placeholder="Untitled note…"
spellcheck="false"
autocomplete="off"
aria-label="Note title"
/>
<span class="titlebar__meta" id="noteMeta"></span>
</div>
<!-- Editor panes -->
<main class="panes" id="panes">
<section class="pane pane--editor" id="paneEditor">
<div class="pane__label">
<span>MARKDOWN</span>
<div class="pane__stats" id="editorStats"></div>
</div>
<textarea
class="editor"
id="editor"
spellcheck="true"
autocomplete="off"
autocorrect="off"
placeholder="Start writing… # Heading **bold**, *italic*, `code` - list items > blockquote ```code block```"
aria-label="Markdown editor"
></textarea>
</section>
<div class="divider" id="divider" aria-hidden="true"></div>
<section class="pane pane--preview" id="panePreview">
<div class="pane__label">
<span>PREVIEW</span>
<button class="pane__copy" id="btnCopyHTML" title="Copy rendered HTML">Copy HTML</button>
</div>
<div class="preview" id="preview" aria-live="polite" aria-label="Rendered preview"></div>
</section>
</main>
<!-- Status bar -->
<footer class="statusbar">
<span id="statusSave" class="statusbar__item statusbar__item--save">All saved</span>
<span class="statusbar__sep"></span>
<span id="statusWords" class="statusbar__item">0 words</span>
<span class="statusbar__sep"></span>
<span id="statusChars" class="statusbar__item">0 chars</span>
<span class="statusbar__sep"></span>
<span id="statusLines" class="statusbar__item">0 lines</span>
<span class="statusbar__spacer"></span>
<span class="statusbar__item statusbar__item--hint">Ctrl+N new · Ctrl+S save · Ctrl+P preview</span>
</footer>
</div>
<!-- Toast -->
<div class="toast" id="toast" role="alert" aria-live="assertive"></div>
<!-- marked.js CDN -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/9.1.6/marked.min.js"></script>
<!-- highlight.js for code -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" />
<script src="js/app.js"></script>
</body>
</html>