-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
465 lines (394 loc) · 10.9 KB
/
index.html
File metadata and controls
465 lines (394 loc) · 10.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Markdown Graph Builder</title>
<link rel="stylesheet" href="style.css" />
<style>
/* RESET & BASE ---------------------------------------------------------- */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
html, body {
height: 100%;
width: 100%;
scroll-behavior: smooth;
color: #e7e7f0;
}
/* Animated gradient background */
body {
position: relative;
overflow-x: hidden;
background: radial-gradient(circle at top center, #1b1c24 0%, #0f1014 40%, #0a0b0f 100%);
}
body::before {
content: "";
position: fixed;
inset: 0;
z-index: -2;
background: linear-gradient(130deg, #1d1f2b, #141621, #1c1e27, #0d0e12);
background-size: 260% 260%;
animation: gradientShift 22s ease-in-out infinite;
}
/* Soft glow overlay */
body::after {
content: "";
position: fixed;
inset: 0;
z-index: -1;
background:
radial-gradient(circle at 20% 0%, rgba(110, 110, 255, 0.10), transparent 55%),
radial-gradient(circle at 80% 80%, rgba(130, 90, 255, 0.10), transparent 55%);
mix-blend-mode: screen;
pointer-events: none;
}
@keyframes gradientShift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
/* Utility: glassmorphism card */
.glass {
background: linear-gradient(145deg, rgba(15,16,22,0.95), rgba(15,16,22,0.70));
border-radius: 18px;
border: 1px solid rgba(110, 120, 150, 0.20);
box-shadow:
0 18px 40px rgba(0,0,0,0.55),
0 0 20px rgba(110, 110, 255, 0.08);
backdrop-filter: blur(24px) saturate(135%);
}
/* NAVBAR --------------------------------------------------------------- */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 10;
padding: 18px 48px;
display: flex;
justify-content: flex-start;
align-items: center;
background: linear-gradient(
to bottom,
rgba(4, 5, 17, 0.9),
rgba(4, 5, 17, 0.7),
transparent
);
border-bottom: 1px solid rgba(72, 76, 124, 0.4);
}
.logo {
background: none !important;
border: none !important;
padding: 0 !important;
margin: 0;
font-size: 1.4rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #f5f5ff !important;
cursor: pointer;
}
.logo:focus,
.logo:hover {
outline: none;
background: none !important;
box-shadow: none !important;
}
/* MAIN LAYOUT ---------------------------------------------------------- */
main {
min-height: 100vh;
padding-top: 80px; /* space for navbar */
}
/* HERO SECTION --------------------------------------------------------- */
.hero {
min-height: calc(100vh - 80px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 40px 20px 60px;
position: relative;
}
.hero-inner {
max-width: 780px;
width: 100%;
padding: 40px 32px 36px;
text-align: center;
margin-top: 80px;
}
.eyebrow {
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.2em;
color: #9ca3ff;
margin-bottom: 12px;
opacity: 0.9;
}
.hero h1 {
font-size: clamp(2.7rem, 5vw, 3.6rem);
font-weight: 800;
letter-spacing: 0.01em;
margin-bottom: 14px;
}
.subtitle {
font-size: 1.05rem;
line-height: 1.6;
color: #c5c7f0;
margin-bottom: 26px;
}
.hero-actions {
display: flex;
justify-content: center;
gap: 14px;
margin-bottom: 18px;
flex-wrap: wrap;
}
.btn {
padding: 11px 26px;
border-radius: 999px;
text-decoration: none;
font-size: 0.98rem;
font-weight: 500;
border: 1px solid transparent;
cursor: pointer;
transition:
transform 0.18s ease,
box-shadow 0.18s ease,
background 0.18s ease,
border-color 0.18s ease,
color 0.18s ease;
}
.btn.primary {
background: linear-gradient(135deg, #6f5bff, #9f5bff);
color: #fdfdff;
box-shadow:
0 14px 35px rgba(111, 91, 255, 0.45),
0 0 24px rgba(159, 91, 255, 0.4);
}
.btn.primary:hover {
transform: translateY(-1px) scale(1.02);
box-shadow:
0 20px 40px rgba(111, 91, 255, 0.55),
0 0 30px rgba(159, 91, 255, 0.5);
}
.btn.ghost {
background: rgba(10, 11, 26, 0.3);
border-color: rgba(150, 152, 230, 0.5);
color: #d0d1ff;
}
.btn.ghost:hover {
background: rgba(30, 31, 60, 0.9);
transform: translateY(-1px);
box-shadow: 0 10px 26px rgba(14, 16, 40, 0.8);
}
/* Hero meta line */
.hero-meta {
font-size: 0.9rem;
color: #a6a9df;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 6px;
margin-top: 6px;
}
/* STEPS SECTION -------------------------------------------------------- */
.steps {
padding: 70px 24px 90px;
}
.steps h2 {
text-align: center;
font-size: 2.1rem;
margin-bottom: 8px;
}
.steps-subtitle {
text-align: center;
color: #b6b9f5;
font-size: 0.98rem;
margin-bottom: 38px;
}
.steps-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 26px;
max-width: 1100px;
margin: 0 auto;
}
.step-card {
padding: 24px 22px 22px;
position: relative;
overflow: hidden;
}
.step-card::after {
content: "";
position: absolute;
inset: -40%;
opacity: 0;
background: radial-gradient(circle at top, rgba(169, 133, 255, 0.22), transparent 55%);
transition: opacity 0.25s ease;
pointer-events: none;
}
.step-card:hover::after {
opacity: 1;
}
.step-card:hover {
transform: translateY(-4px);
}
.step-number {
font-size: 1.8rem;
font-weight: 700;
opacity: 0.25;
margin-bottom: 10px;
}
.step-card h3 {
font-size: 1.1rem;
margin-bottom: 6px;
}
.step-card p {
color: #c3c5f2;
line-height: 1.55;
font-size: 0.95rem;
}
.step-card code {
background: rgba(35, 38, 88, 0.8);
padding: 2px 6px;
border-radius: 6px;
font-size: 0.9em;
}
/* FOOTER --------------------------------------------------------------- */
.footer {
border-top: 1px solid rgba(98, 103, 170, 0.5);
padding: 14px 24px 18px;
text-align: center;
font-size: 0.9rem;
color: #a7a9e3;
background: radial-gradient(circle at top, rgba(8, 9, 22, 0.94), rgba(5, 6, 16, 0.98));
}
/* SCROLL REVEAL ANIMATIONS -------------------------------------------- */
.reveal {
opacity: 0;
transform: translateY(26px);
transition:
opacity 0.7s ease-out,
transform 0.7s ease-out;
}
.reveal.visible {
opacity: 1;
transform: translateY(0);
}
/* RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 768px) {
.navbar {
padding-inline: 20px;
}
.hero-inner {
padding: 28px 22px 26px;
}
.hero-actions {
flex-direction: column;
}
.steps {
padding-inline: 16px;
}
}
</style>
</head>
<body id="bg-video">
<!-- NAVBAR -->
<nav class="navbar">
<!-- <div class="logo">GraphNote</div> -->
<button class="logo">GraphNote</button>
</nav>
<!-- HERO SECTION -->
<section class="hero">
<div class="hero-inner glass reveal">
<p class="eyebrow">Markdown Knowledge Graph</p>
<h1>Visualize Your Knowledge Like Never Before</h1>
<p class="subtitle">
Turn your markdown notes into a living, interactive graph – built for focus.
</p>
<div class="hero-actions">
<a href="main.html" class="btn primary">Open Workspace</a>
<a href="#how-it-works" class="btn ghost">See How It Works</a>
</div>
<div class="hero-meta">
<span>⚡ Local & fast</span>
<span>•</span>
<span>🧠 Graph-based note browsing</span>
<span>•</span>
<span>📁 Works with your .md files</span>
</div>
</div>
</section>
<!-- STEPS SECTION -->
<section class="steps" id="how-it-works">
<h2 class="reveal">How It Works</h2>
<p class="steps-subtitle reveal">
Build a personal knowledge network in just a few steps.
</p>
<div class="steps-container">
<div class="step-card glass reveal">
<div class="step-number">01</div>
<h3>Create Notes</h3>
<p>
Start by creating your first markdown note or uploading an existing
<code>.md</code> file into GraphNote.
</p>
</div>
<div class="step-card glass reveal">
<div class="step-number">02</div>
<h3>Add Links</h3>
<p>
Use wiki-style links like <code>[[note-name]]</code> to connect ideas
across your notes naturally as you write.
</p>
</div>
<div class="step-card glass reveal">
<div class="step-number">03</div>
<h3>Visualize Connections</h3>
<p>
The graph view shows your notes as nodes with edges between linked pages —
click any node to jump straight into that note.
</p>
</div>
<div class="step-card glass reveal">
<div class="step-number">04</div>
<h3>Explore & Expand</h3>
<p>
Follow connections, discover clusters of ideas, and grow your own
knowledge map over time.
</p>
</div>
</div>
</section>
</main>
<!-- FOOTER -->
<footer class="footer">
<p>made with love ❤️ by: Sanchit and Mayank</p>
</footer>
<script src="script.js"></script>
<script>
const revealElements = document.querySelectorAll('.reveal');
const observer = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
observer.unobserve(entry.target);
}
});
},
{
threshold: 0.15,
}
);
revealElements.forEach((el) => observer.observe(el));
document.getElementById("logoBtn").addEventListener("click", () => {
window.location.href = "index.html";
});
</script>
</body>
</html>