-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
337 lines (319 loc) · 18.1 KB
/
Copy pathindex.html
File metadata and controls
337 lines (319 loc) · 18.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>TerminalNotes — Developer Knowledge Platform</title>
<link rel="stylesheet" href="css/main.css"/>
<link rel="preconnect" href="https://fonts.googleapis.com"/>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,300;1,9..144,400&family=DM+Sans:wght@300;400;500&display=swap" rel="stylesheet"/>
</head>
<body>
<!-- ═══════════════════ LANDING PAGE ═══════════════════ -->
<div id="landing" class="landing">
<!-- NAV -->
<nav class="land-nav">
<div class="land-logo">
<img src="public/images/logo.png" alt="TerminalNotes logo" class="brand-logo-img"/>
<span class="logo-name">TerminalNotes</span>
</div>
<div class="land-nav-links">
<a href="#features" class="nav-link">Features</a>
<a href="#how" class="nav-link">How it works</a>
<button id="btn-land-login" class="btn-outline-sm">Sign in</button>
<button id="btn-land-signup" class="btn-accent-sm">Get started</button>
</div>
<button class="nav-hamburger" id="nav-hamburger" aria-label="menu">
<span></span><span></span><span></span>
</button>
</nav>
<!-- HERO -->
<section class="hero">
<div class="hero-grid-bg"></div>
<div class="hero-content">
<div class="hero-badge">
<span class="badge-dot"></span>
<span>Now with GitHub Integration</span>
</div>
<h1 class="hero-title">
Your developer brain,<br/>
<em>finally organized.</em>
</h1>
<p class="hero-sub">
TerminalNotes is a notebook, terminal, and project manager in one.<br/>
Store commands, capture ideas, track projects — all in a beautiful dev-first workspace.
</p>
<div class="hero-cta">
<button id="btn-hero-start" class="btn-hero">
<span>>_</span> Start for free
</button>
<span class="hero-hint">No credit card required</span>
</div>
<div class="hero-terminal">
<div class="ht-bar">
<div class="ht-dots"><span></span><span></span><span></span></div>
<span class="ht-title">terminalnotes ~ dev-journal</span>
</div>
<div class="ht-body">
<div class="ht-line"><span class="ht-prompt">$</span><span class="ht-cmd"> new notebook "Linux Mastery"</span></div>
<div class="ht-line ht-out">✓ Notebook created · 0 entries</div>
<div class="ht-line"><span class="ht-prompt">$</span><span class="ht-cmd"> add command "ssh -L 8080:localhost:80 user@host"</span></div>
<div class="ht-line ht-out">✓ Command saved · tagged: ssh, tunnel, port-forwarding</div>
<div class="ht-line"><span class="ht-prompt">$</span><span class="ht-cmd"> idea new "SaaS tool for devs"</span></div>
<div class="ht-line ht-out">✓ Idea created · status: <span class="ht-accent">exploring</span></div>
<div class="ht-line ht-blink"><span class="ht-prompt">$</span><span class="cursor-block">▋</span></div>
</div>
</div>
</div>
</section>
<!-- FEATURES -->
<section class="features" id="features">
<div class="section-label">// features</div>
<h2 class="section-title">Everything a developer needs,<br/><em>in one place.</em></h2>
<div class="features-grid">
<div class="feat-card">
<div class="feat-icon"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/></svg></div>
<h3>Smart Notebooks</h3>
<p>Organize commands, code snippets, definitions, and study notes into structured notebook pages. Built for how developers actually think.</p>
</div>
<div class="feat-card feat-card--accent">
<div class="feat-icon"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M9 18h6"/><path d="M10 22h4"/><path d="M8 14c-1.3-1-2-2.6-2-4.2A6 6 0 0 1 18 9.8c0 1.7-.7 3.2-2 4.2-.5.4-1 .9-1 1.5V16H9v-.5c0-.6-.5-1.1-1-1.5z"/></svg></div>
<h3>Idea → Project flow</h3>
<p>Capture raw ideas instantly. When ready, promote them to full projects with one click. Connect to your GitHub repos.</p>
</div>
<div class="feat-card">
<div class="feat-icon"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/></svg></div>
<h3>Project Workspace</h3>
<p>Projects with timelines, linked ideas, notes, and GitHub repo integration. A dev project manager that doesn't get in your way.</p>
</div>
<div class="feat-card">
<div class="feat-icon"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="20" y2="19"/></svg></div>
<h3>Command Library</h3>
<p>One-click copy. Tag system. Searchable. Your personal cheatsheet for every tool and technology you use.</p>
</div>
<div class="feat-card">
<div class="feat-icon"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg></div>
<h3>Community Feed</h3>
<p>Share notebooks publicly. Follow other developers. Star useful libraries. Build your dev knowledge in public.</p>
</div>
<div class="feat-card">
<div class="feat-icon"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8"><rect x="3" y="4" width="18" height="18" rx="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg></div>
<h3>Timeline Mode</h3>
<p>Visual project timelines with milestones and work sessions. See your project's story from idea to launch.</p>
</div>
</div>
</section>
<!-- HOW IT WORKS -->
<section class="how" id="how">
<div class="section-label">// how it works</div>
<h2 class="section-title">From thought to shipped,<br/><em>one flow.</em></h2>
<div class="how-steps">
<div class="how-step">
<div class="step-num">01</div>
<h3>Capture</h3>
<p>Write notes, save commands, jot down ideas. Everything has a place.</p>
</div>
<div class="how-arrow">→</div>
<div class="how-step">
<div class="step-num">02</div>
<h3>Organise</h3>
<p>Group into notebooks. Tag, categorise, and search everything instantly.</p>
</div>
<div class="how-arrow">→</div>
<div class="how-step">
<div class="step-num">03</div>
<h3>Build</h3>
<p>Promote ideas to projects. Connect GitHub repos. Track timelines.</p>
</div>
<div class="how-arrow">→</div>
<div class="how-step">
<div class="step-num">04</div>
<h3>Share</h3>
<p>Publish libraries. Follow devs. Star great work. Build in public.</p>
</div>
</div>
</section>
<!-- FOOTER -->
<footer class="land-footer">
<div class="land-logo">
<img src="public/images/logo.png" alt="TerminalNotes logo" class="brand-logo-img sm"/>
<span class="logo-name">TerminalNotes</span>
</div>
<p class="footer-copy">// your developer brain, organized.</p>
</footer>
</div><!-- /landing -->
<!-- ═══════════════════ AUTH OVERLAY ═══════════════════ -->
<div id="auth-overlay" class="auth-overlay hidden">
<div class="auth-panel">
<button class="auth-close" id="auth-close"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg></button>
<div class="auth-logo-sm">
<img src="public/images/logo.png" alt="TerminalNotes logo" class="brand-logo-img sm"/>
<span>TerminalNotes</span>
</div>
<div class="auth-tabs">
<button class="atab active" data-tab="login">login</button>
<button class="atab" data-tab="signup">signup</button>
</div>
<div id="aform-login" class="aform active">
<div class="field-group">
<label>$ email</label>
<input type="email" id="l-email" class="field" placeholder="dev@example.com"/>
</div>
<div class="field-group">
<label>$ password</label>
<input type="password" id="l-pass" class="field" placeholder="••••••••"/>
</div>
<div id="l-err" class="auth-err hidden"></div>
<button id="btn-login" class="btn-auth-primary">Sign in</button>
<div class="auth-or"><span>or</span></div>
<button id="btn-gh-login" class="btn-github">
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.3 3.438 9.8 8.205 11.387.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 10.07 3.633 9.7 3.633 9.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 21.795 24 17.295 24 12c0-6.63-5.37-12-12-12"/></svg>
Continue with GitHub
</button>
</div>
<div id="aform-signup" class="aform">
<div class="field-group">
<label>$ email</label>
<input type="email" id="s-email" class="field" placeholder="dev@example.com"/>
</div>
<div class="field-group">
<label>$ password</label>
<input type="password" id="s-pass" class="field" placeholder="min 6 characters"/>
</div>
<div id="s-err" class="auth-err hidden"></div>
<button id="btn-signup" class="btn-auth-primary">Create account</button>
<div class="auth-or"><span>or</span></div>
<button id="btn-gh-signup" class="btn-github">
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.3 3.438 9.8 8.205 11.387.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 10.07 3.633 9.7 3.633 9.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 21.795 24 17.295 24 12c0-6.63-5.37-12-12-12"/></svg>
Continue with GitHub
</button>
</div>
</div>
</div>
<!-- ═══════════════════ MAIN APP ═══════════════════ -->
<div id="app" class="app hidden">
<!-- TOPBAR -->
<header class="topbar">
<div class="tb-left">
<button class="tb-sidebar-toggle" id="sidebar-toggle" aria-label="Toggle sidebar">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
</button>
<div class="tb-logo">
<img src="public/images/logo.png" alt="TerminalNotes logo" class="brand-logo-img xs"/>
<span class="logo-name">TerminalNotes</span>
</div>
</div>
<div class="tb-search-wrap">
<span class="tb-search-icon"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg></span>
<input type="text" id="global-search" class="tb-search" placeholder="Search everything... (Ctrl+K)"/>
</div>
<div class="tb-right">
<button class="tb-icon-btn" id="btn-notifications" title="Notifications">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.73 21a2 2 0 0 1-3.46 0"/></svg>
</button>
<div class="tb-user" id="tb-user-menu">
<div class="tb-avatar" id="tb-avatar">?</div>
<div class="tb-user-dropdown hidden" id="user-dropdown">
<div class="udd-header">
<div class="udd-name" id="udd-name">—</div>
<div class="udd-email" id="udd-email">—</div>
</div>
<a class="udd-item" data-nav="profile">Profile</a>
<a class="udd-item" data-nav="settings">Settings</a>
<div class="udd-divider"></div>
<a class="udd-item danger" id="btn-logout">Sign out</a>
</div>
</div>
</div>
</header>
<div class="app-body">
<!-- SIDEBAR -->
<aside class="sidebar" id="sidebar">
<div class="sidebar-section">
<div class="sb-label">// library</div>
<nav class="sb-nav">
<a class="sb-item" data-nav="dashboard">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/></svg>
Dashboard
</a>
<a class="sb-item" data-nav="notebooks">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/></svg>
Notebooks
</a>
<a class="sb-item" data-nav="commands">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="20" y2="19"/></svg>
Commands
</a>
<a class="sb-item" data-nav="ideas">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
Ideas
</a>
<a class="sb-item" data-nav="projects">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/></svg>
Projects
</a>
</nav>
</div>
<div class="sidebar-section">
<div class="sb-label">// community</div>
<nav class="sb-nav">
<a class="sb-item" data-nav="feed">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
Live Feed
</a>
<a class="sb-item" data-nav="explore">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
Explore
</a>
</nav>
</div>
<div class="sb-bottom">
<a class="sb-item" data-nav="profile">
<div class="sb-avatar" id="sb-avatar">?</div>
<span id="sb-name">Profile</span>
</a>
</div>
</aside>
<!-- MAIN CONTENT (router target) -->
<main class="main-content" id="main-content">
<!-- injected by router -->
</main>
</div>
</div>
<!-- ═══════════════════ MODALS ═══════════════════ -->
<div id="modal-root"></div>
<!-- ═══════════════════ TOAST ═══════════════════ -->
<div id="toast-container"></div>
<!-- ═══════════════════ SEARCH OVERLAY ═══════════════════ -->
<div id="search-overlay" class="search-overlay hidden">
<div class="search-modal">
<div class="sm-head">
<span class="sm-icon"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg></span>
<input type="text" id="sm-input" class="sm-input" placeholder="Search notebooks, ideas, projects, users..."/>
<kbd class="sm-esc">Esc</kbd>
</div>
<div id="sm-results" class="sm-results">
<div class="sm-empty">Start typing to search...</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
<script src="js/config.js"></script>
<script src="js/ui.js"></script>
<script src="js/db.js"></script>
<script src="js/auth.js"></script>
<script src="js/router.js"></script>
<script>window.Views = {};</script>
<script src="js/views/dashboard.js"></script>
<script src="js/views/notebooks.js"></script>
<script src="js/views/commands.js"></script>
<script src="js/views/ideas.js"></script>
<script src="js/views/projects.js"></script>
<script src="js/views/feed.js"></script>
<script src="js/views/explore.js"></script>
<script src="js/views/profile.js"></script>
<script src="js/modals.js"></script>
<script src="js/search.js"></script>
<script src="js/app.js"></script>
</body>
</html>