-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmath-note.html
More file actions
156 lines (147 loc) · 5.41 KB
/
math-note.html
File metadata and controls
156 lines (147 loc) · 5.41 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
<!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 Note</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; line-height: 1.6;
}
/* 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); }
/* Math note content */
.math-note-content h1 {
font-family: 'Syne', sans-serif;
font-weight: 800; font-size: 1.8rem;
color: var(--text); margin-bottom: 12px;
letter-spacing: -0.02em; line-height: 1.2;
border: none; padding: 0;
}
.note-meta-container {
background: var(--bg2);
padding: 16px 20px; border-radius: 6px;
border: 1px solid var(--border);
margin-bottom: 24px;
}
.note-meta-container p {
font-size: 0.85rem; color: var(--text-dim);
margin: 4px 0;
}
.note-meta-container strong { color: var(--text); font-weight: 600; }
.math-note-content .description {
font-size: 0.95rem; color: var(--text-dim);
line-height: 1.65; margin-bottom: 24px;
padding: 16px 20px;
background: var(--bg2);
border-left: 3px solid var(--accent);
border-radius: 0 6px 6px 0;
}
.tags { margin-bottom: 24px; }
.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); }
/* Resources section */
.math-note-content h2 {
font-family: 'Syne', sans-serif;
font-weight: 700; font-size: 1.2rem;
color: var(--text); margin-top: 32px; margin-bottom: 16px;
border-bottom: 1px solid var(--border); padding-bottom: 8px;
}
.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: 12px 16px; border-radius: 6px;
background: var(--bg2); border: 1px solid var(--border);
transition: all 0.25s ease;
}
.note-links a:hover {
border-color: rgba(127,221,170,0.3);
transform: translateY(-1px);
}
.note-links .link-title {
font-weight: 600; display: block;
margin-bottom: 4px; color: var(--accent);
font-size: 0.9rem;
}
.note-links .link-description {
font-size: 0.82rem; color: var(--text-dim); line-height: 1.45;
}
/* Back link */
.back-link {
margin-top: 40px; padding-top: 20px;
border-top: 1px solid var(--border);
}
.back-link a {
font-family: 'JetBrains Mono', monospace;
font-size: 0.8rem; color: var(--accent);
text-decoration: none; transition: color 0.2s ease;
}
.back-link a:hover { color: #a0f0c8; }
/* 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">Math</a>
</nav>
<div class="main">
<div class="math-note-content"></div>
</div>
<footer class="site-footer"><p>© 2025 David Zhang</p></footer>
<script src="loadMathNote.js"></script>
</body>
</html>