File size: 12,994 Bytes
93e603b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Deepsite - Your Knowledge Base</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        .markdown-content h1 {
            @apply text-2xl font-bold mb-4 mt-6 border-b pb-2;
        }
        .markdown-content h2 {
            @apply text-xl font-bold mb-3 mt-5;
        }
        .markdown-content p {
            @apply mb-4 leading-relaxed;
        }
        .markdown-content ul, .markdown-content ol {
            @apply mb-4 pl-6;
        }
        .markdown-content ul {
            @apply list-disc;
        }
        .markdown-content ol {
            @apply list-decimal;
        }
        .markdown-content pre {
            @apply bg-gray-100 p-4 rounded mb-4 overflow-x-auto;
        }
        .markdown-content code {
            @apply bg-gray-100 px-2 py-1 rounded text-sm;
        }
        .markdown-content blockquote {
            @apply border-l-4 border-gray-300 pl-4 italic text-gray-600 mb-4;
        }
        .markdown-content a {
            @apply text-blue-600 hover:text-blue-800 hover:underline;
        }
        .note-link {
            @apply text-purple-600 hover:text-purple-800 hover:underline;
        }
        .backlink {
            @apply bg-gray-100 p-2 rounded mb-2 text-sm;
        }
        .tag {
            @apply bg-blue-100 text-blue-800 px-2 py-1 rounded-full text-xs mr-1;
        }
        .sidebar-item {
            @apply px-4 py-2 hover:bg-gray-100 rounded cursor-pointer flex items-center;
        }
        .sidebar-item.active {
            @apply bg-blue-50 text-blue-700 font-medium;
        }
        .editor {
            min-height: 300px;
        }
        .note-card {
            @apply border rounded-lg p-4 mb-4 hover:shadow-md transition-shadow;
        }
        .note-card h3 {
            @apply font-bold text-lg mb-2;
        }
        .note-card p {
            @apply text-gray-600 text-sm mb-2;
        }
        .note-card .tags {
            @apply mt-2;
        }
        .graph-container {
            height: 400px;
            background-color: #f8fafc;
        }
    </style>
</head>
<body class="bg-gray-50">
    <div class="flex h-screen overflow-hidden">
        <!-- Sidebar -->
        <div class="w-64 bg-white border-r border-gray-200 flex flex-col">
            <div class="p-4 border-b border-gray-200">
                <h1 class="text-xl font-bold text-gray-800 flex items-center">
                    <i class="fas fa-brain mr-2 text-purple-600"></i> Deepsite
                </h1>
            </div>
            
            <div class="flex-1 overflow-y-auto">
                <!-- Navigation -->
                <div class="py-2">
                    <div class="sidebar-item active">
                        <i class="fas fa-home mr-2"></i> Dashboard
                    </div>
                    <div class="sidebar-item">
                        <i class="fas fa-sticky-note mr-2"></i> All Notes
                    </div>
                    <div class="sidebar-item">
                        <i class="fas fa-project-diagram mr-2"></i> Knowledge Graph
                    </div>
                    <div class="sidebar-item">
                        <i class="fas fa-tags mr-2"></i> Tags
                    </div>
                    <div class="sidebar-item">
                        <i class="fas fa-book mr-2"></i> MOCs
                    </div>
                </div>
                
                <!-- Subjects/Folders -->
                <div class="px-4 py-2 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                    Subjects
                </div>
                <div class="pb-2">
                    <div class="sidebar-item">
                        <i class="fas fa-folder mr-2 text-yellow-500"></i> Productivity
                    </div>
                    <div class="sidebar-item pl-10">
                        <i class="fas fa-folder mr-2 text-blue-500"></i> Time Management
                    </div>
                    <div class="sidebar-item pl-10">
                        <i class="fas fa-folder mr-2 text-green-500"></i> Task Management
                    </div>
                    <div class="sidebar-item">
                        <i class="fas fa-folder mr-2 text-red-500"></i> Programming
                    </div>
                    <div class="sidebar-item pl-10">
                        <i class="fas fa-folder mr-2 text-purple-500"></i> JavaScript
                    </div>
                    <div class="sidebar-item pl-10">
                        <i class="fas fa-folder mr-2 text-indigo-500"></i> Python
                    </div>
                    <div class="sidebar-item">
                        <i class="fas fa-folder mr-2 text-pink-500"></i> Philosophy
                    </div>
                </div>
                
                <!-- Recent Notes -->
                <div class="px-4 py-2 text-xs font-semibold text-gray-500 uppercase tracking-wider">
                    Recent Notes
                </div>
                <div class="pb-2">
                    <div class="sidebar-item">
                        <i class="fas fa-file-alt mr-2 text-gray-400"></i> Zettelkasten Method
                    </div>
                    <div class="sidebar-item">
                        <i class="fas fa-file-alt mr-2 text-gray-400"></i> Bi-directional Linking
                    </div>
                    <div class="sidebar-item">
                        <i class="fas fa-file-alt mr-2 text-gray-400"></i> Progressive Summarization
                    </div>
                </div>
            </div>
            
            <div class="p-4 border-t border-gray-200">
                <button class="w-full bg-purple-600 hover:bg-purple-700 text-white py-2 px-4 rounded-md flex items-center justify-center">
                    <i class="fas fa-plus mr-2"></i> New Note
                </button>
            </div>
        </div>
        
        <!-- Main Content -->
        <div class="flex-1 flex flex-col overflow-hidden">
            <!-- Top Bar -->
            <div class="bg-white border-b border-gray-200 p-4 flex items-center justify-between">
                <div class="flex items-center">
                    <div class="relative w-64">
                        <input type="text" placeholder="Search notes..." class="w-full pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-transparent">
                        <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                    </div>
                </div>
                <div class="flex items-center space-x-4">
                    <button class="p-2 rounded-full hover:bg-gray-100">
                        <i class="fas fa-moon text-gray-600"></i>
                    </button>
                    <button class="p-2 rounded-full hover:bg-gray-100">
                        <i class="fas fa-cog text-gray-600"></i>
                    </button>
                    <div class="w-8 h-8 rounded-full bg-purple-600 flex items-center justify-center text-white font-bold">
                        U
                    </div>
                </div>
            </div>
            
            <!-- Content Area -->
            <div class="flex-1 overflow-auto p-6">
                <div class="max-w-4xl mx-auto">
                    <!-- Note Header -->
                    <div class="mb-6">
                        <div class="flex justify-between items-start mb-2">
                            <h1 class="text-3xl font-bold text-gray-800">Zettelkasten Method</h1>
                            <div class="flex space-x-2">
                                <button class="p-2 rounded hover:bg-gray-100">
                                    <i class="fas fa-edit text-gray-600"></i>
                                </button>
                                <button class="p-2 rounded hover:bg-gray-100">
                                    <i class="fas fa-share-alt text-gray-600"></i>
                                </button>
                                <button class="p-2 rounded hover:bg-gray-100">
                                    <i class="fas fa-file-pdf text-gray-600"></i>
                                </button>
                                <button class="p-2 rounded hover:bg-gray-100">
                                    <i class="fas fa-ellipsis-v text-gray-600"></i>
                                </button>
                            </div>
                        </div>
                        <div class="flex items-center text-sm text-gray-500 mb-4">
                            <span class="mr-4">Created: 2023-05-15</span>
                            <span>Modified: 2023-06-20</span>
                        </div>
                        <div class="flex flex-wrap gap-2 mb-4">
                            <span class="tag">#knowledge-management</span>
                            <span class="tag">#productivity</span>
                            <span class="tag">#note-taking</span>
                        </div>
                    </div>
                    
                    <!-- Note Content -->
                    <div class="markdown-content mb-8">
                        <h2>Core Principles</h2>
                        <p>The Zettelkasten method is a note-taking system that emphasizes <a href="#" class="note-link">[[atomicity]]</a> and <a href="#" class="note-link">[[bi-directional linking]]</a>. Key principles include:</p>
                        <ul>
                            <li><strong>Atomicity:</strong> Each note should contain a single idea or concept.</li>
                            <li><strong>Linking:</strong> Notes should be densely interconnected to form a web of knowledge.</li>
                            <li><strong>Own Words:</strong> Always write notes in your own words to ensure understanding.</li>
                            <li><strong>Progressive Summarization:</strong> Refine notes over time by adding layers of summary.</li>
                        </ul>
                        
                        <h2>Note Structure</h2>
                        <p>Each note in the system should follow this structure:</p>
                        <pre># Title
Unique ID: 202305151234
Created: 2023-05-15
Modified: 2023-05-20
Tags: #knowledge-management #productivity

## Content
[The main content of the note goes here]

## Sources
- [Source 1](https://example.com)
- [Source 2](https://example.com)

## Related Notes
- [[Atomic Notes]]
- [[Progressive Summarization]]
- [[Linking Thinking]]</pre>
                        
                        <h2>Inter-Note Linking</h2>
                        <p>Use double brackets <code>[[ ]]</code> to create links to other notes. For example:</p>
                        <pre>This concept relates to [[Atomic Notes]] and [[Progressive Summarization]].</pre>
                        <p>This creates bi-directional links that appear in both notes.</p>
                        
                        <h2>Subject Organization</h2>
                        <p>Organize notes using a hybrid approach:</p>
                        <ol>
                            <li><strong>Tags:</strong> Flat structure for quick categorization (e.g., #productivity, #programming)</li>
                            <li><strong>MOCs (Maps of Content):</strong> Index notes that collect and organize related notes (e.g., "Productivity MOC")</li>
                            <li><strong>Folders:</strong> Broad categories for high-level organization (e.g., "Work", "Personal")</li>
                        </ol>
                        
                        <h2>Searchability</h2>
                        <p>To enhance searchability:</p>
                        <ul>
                            <li>Use consistent terminology (e.g., always use "note-taking" instead of alternating with "note taking")</li>
                            <li>Include relevant keywords in the note body</li>
                            <li>Add an "Keywords" section with synonyms and related terms</li>
                        </ul>
                        
                        <h2>PDF Export Workflow</h2>
                        <p>To export notes to PDF:</p>
                        <ol>
                            <li>For single notes: Use the "Export to PDF" button in the note toolbar</li>
                            <li>For collections:
                                <ol>
                                    <li>Navigate to the MOC or tag page</li>
                                    <li>Select "Export All"</li>
                                    <li>Choose PDF
</html>