Repository navigation
Expand file tree
/
Copy pathnotes.html
More file actions
329 lines (279 loc) · 7.06 KB
/
Copy pathnotes.html
File metadata and controls
329 lines (279 loc) · 7.06 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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Notes</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Noto+Sans+KR:wght@400;500;700&display=swap');
:root {
--bg: #0f0f0f;
--surface: #1a1a1a;
--surface2: #222;
--border: #2e2e2e;
--text: #e8e8e0;
--muted: #888;
--accent: #c77dff;
--mono: 'IBM Plex Mono', monospace;
--sans: 'Noto Sans KR', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
background: var(--bg);
color: var(--text);
font-family: var(--sans);
min-height: 100vh;
padding: 40px 24px;
}
.container { max-width: 760px; margin: 0 auto; }
/* 상단 네비 */
.nav {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 32px;
font-family: var(--mono);
font-size: 12px;
color: var(--muted);
}
.nav a {
color: var(--accent);
text-decoration: none;
transition: opacity 0.2s;
}
.nav a:hover { opacity: 0.7; }
.nav-sep { color: var(--border); }
/* 헤더 */
.page-header {
border-left: 3px solid var(--accent);
padding-left: 14px;
margin-bottom: 28px;
}
.page-header h1 {
font-family: var(--mono);
font-size: 20px;
font-weight: 600;
color: var(--accent);
}
.page-header p {
color: var(--muted);
font-size: 11px;
font-family: var(--mono);
margin-top: 4px;
}
/* 파일 목록 */
#file-list { display: flex; flex-direction: column; gap: 8px; }
.file-item {
background: var(--surface);
border: 0.5px solid var(--border);
border-radius: 8px;
padding: 14px 16px;
display: flex;
align-items: center;
gap: 12px;
cursor: pointer;
transition: border-color 0.2s, background 0.2s, transform 0.15s;
animation: fadeUp 0.4s ease both;
}
.file-item:hover {
border-color: var(--accent);
background: #1f1f1f;
transform: translateX(4px);
}
.file-icon {
font-family: var(--mono);
font-size: 10px;
font-weight: 600;
padding: 2px 6px;
border-radius: 3px;
background: #2a1a40;
color: var(--accent);
flex-shrink: 0;
}
.file-name {
font-size: 14px;
font-weight: 500;
flex: 1;
}
.file-arrow {
color: var(--muted);
font-family: var(--mono);
font-size: 12px;
transition: color 0.2s;
}
.file-item:hover .file-arrow { color: var(--accent); }
/* 마크다운 렌더링 영역 */
#md-view { display: none; }
.md-back {
display: inline-flex;
align-items: center;
gap: 6px;
font-family: var(--mono);
font-size: 12px;
color: var(--accent);
cursor: pointer;
margin-bottom: 24px;
padding: 6px 10px;
border: 0.5px solid var(--border);
border-radius: 6px;
transition: border-color 0.2s, background 0.2s;
text-decoration: none;
}
.md-back:hover { border-color: var(--accent); background: var(--surface); }
.md-content {
background: var(--surface);
border: 0.5px solid var(--border);
border-radius: 10px;
padding: 32px;
line-height: 1.8;
}
/* 마크다운 스타일 */
.md-content h1 {
font-size: 24px;
font-weight: 700;
margin-bottom: 20px;
padding-bottom: 12px;
border-bottom: 0.5px solid var(--border);
color: var(--text);
}
.md-content h2 {
font-size: 18px;
font-weight: 700;
margin: 28px 0 12px;
color: var(--accent);
}
.md-content h3 {
font-size: 15px;
font-weight: 700;
margin: 20px 0 8px;
color: #f9c74f;
}
.md-content h4 {
font-size: 13px;
font-weight: 700;
margin: 16px 0 6px;
color: #90e0ef;
}
.md-content p {
margin-bottom: 12px;
font-size: 14px;
}
.md-content ul, .md-content ol {
margin: 8px 0 12px 20px;
font-size: 14px;
}
.md-content li { margin-bottom: 4px; }
.md-content code {
background: var(--surface2);
padding: 1px 5px;
border-radius: 3px;
font-family: var(--mono);
font-size: 12px;
color: #90e0ef;
}
.md-content pre {
background: var(--surface2);
border: 0.5px solid var(--border);
border-radius: 6px;
padding: 16px;
overflow-x: auto;
margin: 12px 0;
}
.md-content pre code {
background: none;
padding: 0;
font-size: 12px;
color: #f9c74f;
}
.md-content blockquote {
border-left: 3px solid var(--accent);
padding: 8px 14px;
margin: 12px 0;
color: var(--muted);
font-size: 13px;
background: var(--surface2);
border-radius: 0 4px 4px 0;
}
.md-content table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
margin: 12px 0;
}
.md-content th {
background: var(--surface2);
padding: 8px 12px;
text-align: left;
border-bottom: 0.5px solid var(--border);
color: var(--muted);
font-size: 11px;
}
.md-content td {
padding: 8px 12px;
border-bottom: 0.5px solid #1e1e1e;
font-size: 13px;
}
.md-content tr:last-child td { border-bottom: none; }
.md-content strong { color: var(--text); font-weight: 700; }
.md-content em { color: #f4a261; font-style: italic; }
.md-content hr {
border: none;
border-top: 0.5px solid var(--border);
margin: 24px 0;
}
.md-content a { color: var(--accent); text-decoration: none; }
.md-content a:hover { text-decoration: underline; }
/* 로딩 */
.loading {
text-align: center;
color: var(--muted);
font-family: var(--mono);
font-size: 12px;
padding: 40px;
}
footer {
margin-top: 60px;
text-align: center;
font-family: var(--mono);
font-size: 10px;
color: var(--border);
}
@keyframes fadeUp {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
</style>
</head>
<body>
<div class="container">
<nav class="nav">
<a href="./index.html">Study Notes</a>
<span class="nav-sep">/</span>
<span id="repo-name">Notes</span>
<span class="nav-sep" id="nav-sep2" style="display:none;">/</span>
<span id="nav-file" style="display:none;"></span>
</nav>
<!-- 파일 목록 -->
<div id="list-view">
<div class="page-header">
<h1 id="list-title">Notes</h1>
<p id="list-subtitle"></p>
</div>
<div id="file-list"><div class="loading">파일 목록 불러오는 중...</div></div>
</div>
<!-- 마크다운 뷰 -->
<div id="md-view">
<a class="md-back" id="back-btn" href="#">← 목록으로</a>
<div class="md-content" id="md-content"></div>
</div>
<footer id="footer">Notes · dyd8115-max.github.io</footer>
</div>
<!-- marked.js 마크다운 파서 -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/9.1.6/marked.min.js"></script>
<!-- KaTeX 수식 렌더링 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js"></script>
<script src="./assets/notes.js"></script>
</body>
</html>