-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwriting.html
More file actions
349 lines (321 loc) · 13.6 KB
/
writing.html
File metadata and controls
349 lines (321 loc) · 13.6 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
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Writing — M.T. Cates</title>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Mono:wght@300;400;500&family=DM+Sans:wght@300;400;500&display=swap" rel="stylesheet">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--paper: #F5F0E8; --paper2: #EDE8DC; --ink: #1A1814; --ink2: #3D3A33;
--ink3: #7A7568; --ink4: #B0A898; --red: #C0392B; --border: rgba(26,24,20,0.12);
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--paper); color: var(--ink); font-weight: 300; }
nav {
position: sticky; top: 0; z-index: 100; background: var(--paper);
border-bottom: 1px solid var(--border); padding: 0 40px;
height: 52px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--ink); text-decoration: none; text-transform: uppercase; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 12px; font-family: 'DM Mono', monospace; color: var(--ink3); text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.15s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--red); transition: width 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }
.page-header {
padding: 60px 40px 40px;
border-bottom: 3px solid var(--ink);
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: end;
}
.page-header-title { font-family: 'Playfair Display', serif; font-size: clamp(48px, 7vw, 96px); font-weight: 900; line-height: 0.9; letter-spacing: -0.02em; }
.page-header-title em { font-style: italic; color: var(--red); }
.page-header-desc { font-size: 15px; line-height: 1.8; color: var(--ink2); font-weight: 300; max-width: 480px; }
.substack-bar {
padding: 20px 40px;
border-bottom: 1px solid var(--border);
background: var(--ink);
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
}
.substack-text { font-size: 13px; color: var(--ink4); line-height: 1.5; }
.substack-text strong { color: var(--paper); font-weight: 500; }
.substack-actions { display: flex; gap: 10px; flex-shrink: 0; }
.substack-btn {
display: inline-flex; align-items: center; gap: 8px;
font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.08em;
text-transform: uppercase; padding: 10px 20px; text-decoration: none;
border-radius: 2px; white-space: nowrap; transition: opacity 0.15s;
}
.substack-btn-primary { background: var(--red); color: var(--paper); }
.substack-btn-secondary { background: transparent; color: var(--ink4); border: 1px solid rgba(240,237,230,0.2); }
.substack-btn:hover { opacity: 0.8; }
.writing-grid {
display: grid;
grid-template-columns: 2fr 1fr;
min-height: 60vh;
}
.writing-main { border-right: 1px solid var(--border); padding: 40px; }
.writing-sidebar { padding: 40px; }
.section-label {
font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.14em;
color: var(--ink4); text-transform: uppercase; margin-bottom: 28px;
display: flex; align-items: center; gap: 8px;
}
.section-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--red); }
.loading-state {
padding: 40px 0; display: flex; align-items: center; gap: 10px;
font-family: 'DM Mono', monospace; font-size: 11px; color: var(--ink4); letter-spacing: 0.06em;
}
.loading-dot {
width: 6px; height: 6px; border-radius: 50%; background: var(--red);
animation: pulse 1.2s ease-in-out infinite;
}
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse {
0%, 100% { opacity: 0.2; transform: scale(0.8); }
50% { opacity: 1; transform: scale(1); }
}
.article-card {
display: block; text-decoration: none; color: inherit;
padding: 28px 0; border-bottom: 1px solid var(--border); transition: opacity 0.15s;
}
.article-card:hover { opacity: 0.7; }
.article-card-meta {
font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.08em;
color: var(--ink3); text-transform: uppercase; margin-bottom: 8px;
display: flex; gap: 16px;
}
.article-card-title {
font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700;
line-height: 1.2; margin-bottom: 10px; color: var(--ink);
}
.article-card-excerpt {
font-size: 14px; color: var(--ink2); line-height: 1.7;
display: -webkit-box; -webkit-line-clamp: 3;
-webkit-box-orient: vertical; overflow: hidden;
}
.article-card-subtitle {
font-size: 13px; color: var(--ink3); font-style: italic;
margin-bottom: 8px; font-family: 'Playfair Display', serif;
}
.article-card-link {
display: inline-flex; align-items: center; gap: 4px; margin-top: 12px;
font-family: 'DM Mono', monospace; font-size: 10px; color: var(--red);
letter-spacing: 0.06em; text-transform: uppercase;
}
.error-state { padding: 40px 0; border-bottom: 1px solid var(--border); }
.error-state p { font-family: 'Playfair Display', serif; font-style: italic; font-size: 16px; color: var(--ink3); margin-bottom: 8px; }
.error-state span { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--ink4); letter-spacing: 0.04em; }
.error-state a { color: var(--red); text-decoration: none; }
.topic-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.topic-label { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.12em; color: var(--red); text-transform: uppercase; margin-bottom: 4px; }
.topic-name { font-size: 14px; color: var(--ink); line-height: 1.4; }
.rss-note {
margin-top: 28px; padding: 16px; background: var(--paper2);
border-left: 2px solid var(--border); border-radius: 0 4px 4px 0;
}
.rss-note p { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--ink3); letter-spacing: 0.04em; line-height: 1.7; }
.rss-note a { color: var(--red); text-decoration: none; }
footer {
padding: 40px; border-top: 3px solid var(--ink);
display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px;
}
.footer-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; line-height: 1; margin-bottom: 20px; }
.footer-title em { font-style: italic; color: var(--red); }
.footer-col-label { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.14em; color: var(--ink4); text-transform: uppercase; margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: var(--ink2); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--red); }
.footer-copy { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--ink4); letter-spacing: 0.06em; margin-top: 16px; }
@media (max-width: 900px) {
nav { padding: 0 20px; }
.page-header { padding: 40px 20px 28px; grid-template-columns: 1fr; gap: 20px; }
.substack-bar { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
.substack-actions { width: 100%; }
.substack-btn { flex: 1; justify-content: center; }
.writing-grid { grid-template-columns: 1fr; }
.writing-main { border-right: none; padding: 28px 20px; }
.writing-sidebar { padding: 28px 20px; border-top: 1px solid var(--border); }
footer { grid-template-columns: 1fr; padding: 28px 20px; gap: 28px; }
}
@media (max-width: 600px) { .nav-links { display: none; } }
</style>
</head>
<body>
<nav>
<a class="nav-logo" href="index.html">M.T. Cates</a>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="projects.html">Projects</a></li>
<li><a href="writing.html" class="active">Writing</a></li>
<li><a href="reading.html">Reading</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
<div class="page-header">
<div class="page-header-title"><em>Wri</em>ting</div>
<div class="page-header-desc">
Information, attention, internet culture, and what it means to move through curiosity with intention. Published on Substack — pulled here automatically.
</div>
</div>
<div class="substack-bar">
<div class="substack-text">
<strong>Internets Law Boy</strong> — information, attention, and internet culture.
Subscribe to get new pieces in your inbox.
</div>
<div class="substack-actions">
<a class="substack-btn substack-btn-secondary"
href="https://internetslawboy.substack.com"
target="_blank" rel="noopener">
Read on Substack
</a>
<a class="substack-btn substack-btn-primary"
href="https://internetslawboy.substack.com/subscribe"
target="_blank" rel="noopener">
Subscribe →
</a>
</div>
</div>
<div class="writing-grid">
<div class="writing-main">
<div class="section-label">All writing</div>
<div id="articles-container">
<div class="loading-state">
<div class="loading-dot"></div>
<div class="loading-dot"></div>
<div class="loading-dot"></div>
<span>Fetching from Substack...</span>
</div>
</div>
</div>
<div class="writing-sidebar">
<div class="section-label">Topics</div>
<div class="topic-item">
<div class="topic-label">Thread</div>
<div class="topic-name">Tech law & internet culture</div>
</div>
<div class="topic-item">
<div class="topic-label">Thread</div>
<div class="topic-name">Mutual aid & civic infrastructure</div>
</div>
<div class="topic-item">
<div class="topic-label">Thread</div>
<div class="topic-name">Network analysis & information theory</div>
</div>
<div class="topic-item">
<div class="topic-label">Thread</div>
<div class="topic-name">Anarchist political philosophy</div>
</div>
<div class="topic-item">
<div class="topic-label">Thread</div>
<div class="topic-name">Athens, Georgia</div>
</div>
<div class="topic-item">
<div class="topic-label">Thread</div>
<div class="topic-name">Topical deep dives</div>
</div>
<div class="rss-note">
<p>
Articles load automatically from your
<a href="https://internetslawboy.substack.com/feed" target="_blank">Substack RSS feed</a>.
Publish there — this page updates itself.
</p>
</div>
</div>
</div>
<footer>
<div>
<div class="footer-title">M.T.<br><em>Cates</em></div>
<div class="footer-copy">Athens, Georgia<br>University of Georgia<br>mtcates@uga.edu</div>
</div>
<div>
<div class="footer-col-label">Pages</div>
<ul class="footer-links">
<li><a href="index.html">Home</a></li>
<li><a href="projects.html">Projects</a></li>
<li><a href="writing.html">Writing</a></li>
<li><a href="reading.html">Reading</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
<div>
<div class="footer-col-label">Elsewhere</div>
<ul class="footer-links">
<li><a href="https://github.com/mtcates-lab" target="_blank">GitHub</a></li>
<li><a href="https://internetslawboy.substack.com" target="_blank">Substack</a></li>
</ul>
</div>
</footer>
<script>
const SUBSTACK_URL = 'https://internetslawboy.substack.com';
// Cloudflare Worker — fetches Substack RSS server-side, no CORS issues
const WORKER_URL = 'https://substack-feed.mtccates.workers.dev';
function stripHtml(html) {
const el = document.createElement('div');
el.innerHTML = html;
return el.textContent || el.innerText || '';
}
function formatDate(str) {
const d = new Date(str);
return isNaN(d) ? '' : d.toLocaleDateString('en-US', { year:'numeric', month:'long', day:'numeric' });
}
function parseRSS(xml) {
const doc = new DOMParser().parseFromString(xml, 'text/xml');
return Array.from(doc.querySelectorAll('item')).map(item => ({
title: item.querySelector('title')?.textContent?.trim() || 'Untitled',
link: item.querySelector('link')?.textContent?.trim() || SUBSTACK_URL,
date: formatDate(item.querySelector('pubDate')?.textContent || ''),
excerpt: stripHtml(item.querySelector('description')?.textContent || '').trim().slice(0, 300),
}));
}
function render(posts) {
const el = document.getElementById('articles-container');
if (!posts.length) {
el.innerHTML = `<div class="error-state"><p>No posts yet.</p><span>Read on <a href="${SUBSTACK_URL}" target="_blank">Substack</a>.</span></div>`;
return;
}
el.innerHTML = posts.map(p => `
<a class="article-card" href="${p.link}" target="_blank" rel="noopener">
<div class="article-card-meta">
<span>${p.date}</span>
<span>Essay</span>
</div>
<div class="article-card-title">${p.title}</div>
${p.excerpt ? `<div class="article-card-excerpt">${p.excerpt}</div>` : ''}
<div class="article-card-link">Read on Substack →</div>
</a>`).join('');
}
function renderError() {
document.getElementById('articles-container').innerHTML = `
<div class="error-state">
<p>Couldn't load posts right now.</p>
<span>Read directly on <a href="${SUBSTACK_URL}" target="_blank">Substack</a>.</span>
</div>`;
}
async function fetchPosts() {
try {
const res = await fetch(WORKER_URL);
if (!res.ok) throw new Error(`Worker returned ${res.status}`);
const xml = await res.text();
if (!xml) throw new Error('Empty response');
const posts = parseRSS(xml);
render(posts);
} catch (err) {
console.warn('Feed fetch failed:', err);
renderError();
}
}
fetchPosts();
</script>
</body>
</html>