-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
135 lines (124 loc) · 6.33 KB
/
index.html
File metadata and controls
135 lines (124 loc) · 6.33 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ConfigNote - 📝 我的开发工具配置备忘录</title>
<!-- Fonts -->
<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=Inter:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap"
rel="stylesheet">
<!-- Highlight.js Theme (dynamically set by app.js) -->
<link id="hljs-theme" rel="stylesheet" href="">
<!-- Custom CSS -->
<link rel="stylesheet" href="./assets/css/style.css">
</head>
<body>
<!-- Navigation Bar -->
<nav class="navbar">
<div class="nav-container">
<a href="?" class="logo" id="logo-link">
<span class="emoji">🥲</span>
<span class="title">ConfigNote</span>
</a>
<!-- Search Box -->
<div class="search-wrap" id="search-wrap">
<div class="search-box">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="search-icon">
<circle cx="11" cy="11" r="8"></circle>
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
</svg>
<input type="text" id="search-input" placeholder="搜索笔记..." autocomplete="off" spellcheck="false">
<kbd class="search-shortcut">/</kbd>
</div>
<div class="search-dropdown" id="search-dropdown"></div>
</div>
<div class="theme-toggle" id="theme-toggle" title="切换暗/黑主题">
<svg id="moon-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="hidden">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
<svg id="sun-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</div>
</div>
</nav>
<!-- Main Content Area -->
<main class="container">
<!-- Home Page: Grid View -->
<div id="home-view" class="view section-active">
<header class="hero">
<h1 class="hero-title">📝 ConfigNote</h1>
<p class="hero-desc">收录日常开发高频工具的可复用配置方案,提供一份实用的笔记</p>
</header>
<div class="notes-grid" id="notes-grid">
<!-- Cards will be injected by app.js -->
</div>
</div>
<!-- Note Detail View -->
<div id="note-view" class="view section-hidden">
<div class="note-header">
<a href="?" class="back-button">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="19" y1="12" x2="5" y2="12"></line>
<polyline points="12 19 5 12 12 5"></polyline>
</svg>
返回主页
</a>
<a id="github-edit-link" href="#" target="_blank" class="edit-button">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path>
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>
</svg>
在 GitHub 编辑
</a>
</div>
<div class="note-container">
<article class="markdown-body glass-panel" id="markdown-content">
<div class="loader">
<div class="spinner"></div>
<p>加载笔记中...</p>
</div>
</article>
<aside class="toc-sidebar glass-panel" id="toc-sidebar">
<div class="toc-title">目录</div>
<ul id="toc-list"></ul>
</aside>
</div>
</div>
</main>
<footer class="footer">
<p>ConfigNote © 2026</p>
</footer>
<!-- Back to Top Button -->
<button id="back-to-top" class="back-to-top" aria-label="回到顶部">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="12" y1="19" x2="12" y2="5"></line>
<polyline points="5 12 12 5 19 12"></polyline>
</svg>
</button>
<!-- Scripts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/12.0.1/marked.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<script src="./assets/js/config.js"></script>
<script src="./assets/js/app.js"></script>
</body>
</html>