-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmath.html
More file actions
191 lines (182 loc) · 6.55 KB
/
math.html
File metadata and controls
191 lines (182 loc) · 6.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="David Zhang's Math Notes">
<title>David Zhang - Math</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Syne:wght@700;800&family=Inter:wght@300;400;500;600&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--bg: #0a0a0c; --bg2: #101014; --bg3: #161619;
--accent: #7fddaa; --accent-dim: rgba(127,221,170,0.15);
--text: #e8ece9; --text-dim: #6a7d70; --text-muted: #444a46;
--border: #1e2120;
}
body {
background: var(--bg); color: var(--text);
font-family: 'Inter', -apple-system, sans-serif;
max-width: 780px; margin: 0 auto; padding: 0 24px;
min-height: 100vh;
}
/* Nav */
.site-nav {
padding: 24px 0; border-bottom: 1px solid var(--border);
margin-bottom: 40px;
display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.site-nav .site-title {
font-family: 'Syne', sans-serif;
font-weight: 800; font-size: 1.1rem;
color: var(--text); text-decoration: none; margin-right: auto;
}
.site-nav .site-title:hover { color: var(--accent); }
.site-nav a {
font-family: 'JetBrains Mono', monospace;
font-size: 0.75rem; font-weight: 500;
letter-spacing: 0.06em; text-transform: uppercase;
text-decoration: none; color: var(--text-dim);
padding: 6px 12px; border: 1px solid var(--border);
border-radius: 4px; transition: all 0.25s ease;
}
.site-nav a:hover { color: var(--accent); border-color: var(--accent-dim); }
.site-nav a.active { color: var(--accent); border-color: rgba(127,221,170,0.3); background: rgba(127,221,170,0.04); }
/* Page header */
.page-title {
font-family: 'Syne', sans-serif;
font-weight: 800; font-size: 1.8rem;
color: var(--text); margin-bottom: 24px;
letter-spacing: -0.02em;
}
/* Filter */
.filter-section {
margin-bottom: 28px;
display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.filter-group {
display: flex; align-items: center; gap: 8px;
}
.filter-group label {
font-family: 'JetBrains Mono', monospace;
font-size: 0.78rem; color: var(--text-dim);
}
#subjectSelector, #tagSelector {
font-family: 'JetBrains Mono', monospace;
font-size: 0.78rem;
background: var(--bg2); color: var(--text);
border: 1px solid var(--border); border-radius: 4px;
padding: 6px 12px; outline: none; cursor: pointer;
}
#subjectSelector:focus, #tagSelector:focus { border-color: var(--accent-dim); }
/* Note entry */
.note-entry {
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 8px;
margin-bottom: 12px;
overflow: hidden;
transition: border-color 0.25s ease, transform 0.2s ease;
}
.note-entry:hover {
border-color: rgba(127,221,170,0.3);
transform: translateY(-1px);
}
.note-header {
padding: 18px 20px;
}
.note-header h3 {
font-family: 'Inter', sans-serif;
font-weight: 600; font-size: 1rem;
margin-bottom: 6px; line-height: 1.4;
border: none; padding: 0;
}
.note-header h3 a {
color: var(--accent); text-decoration: none;
transition: color 0.2s ease;
}
.note-header h3 a:hover { color: #a0f0c8; }
.note-meta {
font-family: 'JetBrains Mono', monospace;
font-size: 0.72rem; color: var(--text-muted);
margin-bottom: 8px;
}
.note-description {
font-size: 0.85rem; color: var(--text-dim);
line-height: 1.55; font-style: normal;
}
.tags { margin-top: 10px; }
.tag {
display: inline-block;
font-family: 'JetBrains Mono', monospace;
font-size: 0.68rem; color: var(--accent);
background: var(--accent-dim);
padding: 2px 8px; border-radius: 3px;
margin-right: 4px; cursor: pointer;
text-transform: lowercase;
transition: background 0.2s ease;
}
.tag:hover { background: rgba(127,221,170,0.25); }
/* Note links */
.note-links {
padding: 12px 20px;
border-top: 1px solid var(--border);
}
.note-links ul { list-style: none; padding: 0; margin: 0; }
.note-links li { margin-bottom: 8px; }
.note-links li:last-child { margin-bottom: 0; }
.note-links a {
display: block; text-decoration: none; color: var(--text);
padding: 10px 14px; border-radius: 4px;
transition: background 0.2s ease;
}
.note-links a:hover { background: var(--bg3); }
.note-links .link-title {
font-weight: 600; display: block;
margin-bottom: 2px; color: var(--accent);
font-size: 0.88rem;
}
.note-links .link-description {
font-size: 0.8rem; color: var(--text-dim); line-height: 1.4;
}
/* Footer */
.site-footer {
text-align: center; padding: 40px 0;
border-top: 1px solid var(--border); margin-top: 40px;
}
.site-footer p {
font-family: 'JetBrains Mono', monospace;
font-size: 0.72rem; color: var(--text-muted);
}
</style>
</head>
<body>
<nav class="site-nav">
<a href="index.html" class="site-title">David Zhang</a>
<a href="index.html">Home</a>
<a href="index.html#podcast-section">Podcast</a>
<a href="writing.html">Writing</a>
<a href="math.html" class="active">Math</a>
</nav>
<h1 class="page-title">Math Notes</h1>
<div class="main">
<div class="filter-section">
<div class="filter-group">
<label for="subjectSelector">Subject:</label>
<select id="subjectSelector">
<option value="all">All Subjects</option>
</select>
</div>
<div class="filter-group">
<label for="tagSelector">Tag:</label>
<select id="tagSelector">
<option value="all">All Tags</option>
</select>
</div>
</div>
<div class="math-notes"></div>
</div>
<footer class="site-footer"><p>© 2025 David Zhang</p></footer>
<script src="loadMathNotes.js"></script>
</body>
</html>