-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathessay.html
More file actions
150 lines (143 loc) · 5.49 KB
/
Copy pathessay.html
File metadata and controls
150 lines (143 loc) · 5.49 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
<!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 Writing">
<title>David Zhang - Essay</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); }
/* Essay content */
.essay-content h1 {
font-family: 'Syne', sans-serif;
font-weight: 800; font-size: 1.8rem;
color: var(--text); margin-bottom: 8px;
letter-spacing: -0.02em; line-height: 1.2;
border: none; padding: 0;
}
.essay-content .date {
font-family: 'JetBrains Mono', monospace;
font-size: 0.75rem; color: var(--text-muted);
margin-bottom: 12px;
}
.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); }
/* Essay body */
.essay-content div {
font-size: 0.95rem; line-height: 1.8; color: var(--text);
}
.essay-content div p { margin-bottom: 16px; }
.essay-content div h1, .essay-content div h2, .essay-content div h3 {
font-family: 'Syne', sans-serif;
color: var(--text); margin-top: 32px; margin-bottom: 12px;
border-bottom: 1px solid var(--border); padding-bottom: 6px;
}
.essay-content div h1 { font-size: 1.5rem; }
.essay-content div h2 { font-size: 1.25rem; }
.essay-content div h3 { font-size: 1.05rem; border: none; }
.essay-content div a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.essay-content div a:hover { color: #a0f0c8; }
.essay-content div ul, .essay-content div ol {
padding-left: 24px; margin-bottom: 16px;
}
.essay-content div li { margin-bottom: 6px; color: var(--text); }
.essay-content div strong { color: var(--accent); font-weight: 600; }
.essay-content div code {
font-family: 'JetBrains Mono', monospace;
font-size: 0.85rem; background: var(--bg3);
padding: 2px 6px; border-radius: 3px;
border: 1px solid var(--border);
}
.essay-content div blockquote {
border-left: 3px solid var(--accent);
padding: 12px 20px; margin: 16px 0;
background: var(--bg2); border-radius: 0 6px 6px 0;
color: var(--text-dim);
}
.essay-content div hr {
border: none; border-top: 1px solid var(--border);
margin: 24px 0;
}
/* 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="essay-content"></div>
<div class="back-link"><a href="writing.html">← Back to Writing</a></div>
</div>
<footer class="site-footer"><p>© 2025 David Zhang</p></footer>
<script src="loadEssay.js"></script>
</body>
</html>