-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
403 lines (352 loc) · 13.9 KB
/
index.html
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
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
---
title: Carlos Duarte Do Nascimento (Chester)
description_p1: I build and improve software to solve problems, bring joy, and improve lives — and also simply because I love coding.
description_p2: A curious, compassionate, and thoughtful autistic person who supports fairness, inclusion, and dignity for all.
---
<!DOCTYPE html>
<html lang="en">
<!--
This intends to be a minimalistic page that can be statically hosted and quickly loaded/edited,
therefore the inline JavaScript and CSS - otherwise I'd put them in their own files).
For that same reason I'm going with the basics: HTML, CSS, and JavaScript - the later only being
used for translating the page to Brazilian Portuguese (if needed) and warning the user about
Twitter/X. If it is not available, the page gracefully falls back to English and no warning.
This work is licensed under Creative Commons Attribution 4.0 International License. See:
https://creativecommons.org/licenses/by/4.0/
The design is inspired by a few pages and templates from different places, but otherwise created
from scratch, hennce no particular attribution. LMK if you think I should credit someone.
Font Awesome (public) and flag-icons are used under their respective licenses. See:
- https://fontawesome.com/license/free
- https://github.com/lipis/flag-icons?tab=MIT-1-ov-file
-->
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ page.title }}</title>
<link href="/fontawesome/css/fontawesome.css" rel="stylesheet" />
<link href="/fontawesome/css/brands.css" rel="stylesheet" />
<link href="/fontawesome/css/solid.css" rel="stylesheet" />
<link href="/flag-icons/css/flag-icons.min.css" rel="stylesheet" />
<meta property="og:title" content="{{ page.title }}" />
<meta property="og:description"
content="{{ page.description_p1 }}\n\n{{ page.description_p2 }}" />
<meta property="og:image" content="https://chester.me/img/root-profile-photo.jpg" />
<meta property="og:url" content="https://chester.me" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="{{ page.title }}" />
<meta name="twitter:description"
content="{{ page.description_p1 }}\n\n{{ page.description_p2 }}" />
<meta name="twitter:image" content="https://chester.me/img/root-profile-photo.jpg" />
<meta name="twitter:url" content="https://chester.me" />
<script>
document.addEventListener("DOMContentLoaded", function () {
const translationsPt = {
greeting: "Olá! Eu sou o Chester",
introP1: "Crio e melhoro software para resolver problemas, trazer alegria, melhorar vidas — e também simplesmente porque adoro programar.",
introP2: "Um autista curioso, empático e atencioso que apoia a justiça, a inclusão e a dignidade para todas as pessoas.",
aboutMe: "Sobre mim",
aboutMeItems: [
"Brasileiro de nascença, italiano por herança, canadense por escolha.",
'Adoro videogames e quadrinhos, mas evito seus <a href="https://pt.wikipedia.org/wiki/Gamergate">redutos</a> mais <a href="https://super.abril.com.br/cultura/o-que-e-o-comicsgate-movimento-contra-a-diversidade-nos-quadrinhos/">tóxicos</a>.',
'Escrevo de vez em quando sobre software, eletrônica e outros temas no <a href="/blog/">meu blog</a>.',
'Meu nome real é Carlos Duarte Do Nascimento.',
'O apelido vem do <a href="https://youtu.be/sPZ8Xxh1vK4?si=hOu66SLMLDTacv4F&t=65">Chester McTech</a>, do desenho <a href="https://pt.wikipedia.org/wiki/Beverly_Hills_Teens">Turma da Pesada</a>.',
],
aboutWork: "Código e Trabalho",
aboutWorkItems: [
"Programador há mais de 30 anos - e adoro fazer isso até hoje!",
"Trabalhei em empresas de todos os tamanhos, como iG, Apontador, Shopify e GitHub.",
'Criador do <a href="https://play.google.com/store/apps/details?id=me.chester.minitruco">miniTruco</a>, um jogo de cartas para celular bastante popular.',
'Entusiasta de retrocomputação; escrevi um <a href="https://github.com/chesterbr/ruby2600">emulador</a> e um <a href="https://github.com/chesterbr/2048-2600">jogo</a> de Atari.',
'Mais detalhes no <a href="https://www.linkedin.com/in/chesterbr/">LinkedIn</a>; projetos de código no <a href="https://github.com/chesterbr">GitHub</a> e no <a href="/blog/">meu blog</a>.',
],
snarkyTwitterTitle: "Twitter / X / seja lá como se chama esta semana",
twitterConfirmMessage: "Este lugar é tóxico; só entro pra ver DMs e menções.\n\nSugiro o Mastodon ou Instagram para interações em redes sociais. Ainda deseja prosseguir?"
};
const urlParams = new URLSearchParams(window.location.search);
const langParam = urlParams.get('lang');
const userLang = langParam || navigator.language;
if (userLang.startsWith("pt")) {
document.querySelector(".about-text").style.maxWidth = "750px";
document.documentElement.lang = "pt-BR";
document.getElementById("greeting").innerHTML = translationsPt.greeting;
document.getElementById("intro-p1").innerHTML = translationsPt.introP1;
document.getElementById("intro-p2").innerHTML = translationsPt.introP2;
document.getElementById("twitter-link").setAttribute("data-confirm-message", translationsPt.twitterConfirmMessage);
document.getElementById("twitter-link").setAttribute("title", translationsPt.snarkyTwitterTitle);
document.getElementById("about-me-title").innerHTML = translationsPt.aboutMe;
const aboutMeItems = document.querySelectorAll("#about-me-items li");
translationsPt.aboutMeItems.forEach((item, index) => {
if (aboutMeItems[index]) aboutMeItems[index].innerHTML = item;
});
document.getElementById("about-work-title").innerHTML = translationsPt.aboutWork;
const aboutWorkItems = document.querySelectorAll("#about-work-items li");
translationsPt.aboutWorkItems.forEach((item, index) => {
if (aboutWorkItems[index]) aboutWorkItems[index].innerHTML = item;
});
}
});
document.addEventListener("DOMContentLoaded", function () {
const twitterLink = document.getElementById("twitter-link");
twitterLink.addEventListener("click", function (event) {
event.preventDefault();
const twitterConfirmMessage = twitterLink.getAttribute("data-confirm-message");
const proceed = confirm(twitterConfirmMessage);
if (proceed) {
window.location.href = this.href;
}
});
});
</script>
<style>
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=PT+Sans&family=PT+Sans+Caption:wght@400;700&display=swap");
body {
margin: 0;
font-family: "PT Sans", sans-serif;
background-color: white;
color: #333;
padding-top: 150px;
}
a:link,
a:visited {
color: #0056b3;
text-decoration: none;
}
a:hover,
a:focus {
color: #003f7f;
text-decoration: underline;
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: stretch;
padding: 20px;
max-width: 1200px;
margin: 0 auto;
}
.profile-box {
flex: 1;
max-width: 375px;
background-color: rgb(56, 206, 229);
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding: 20px;
text-align: center;
box-sizing: border-box;
position: relative;
}
.profile-box img {
width: 220px;
height: 220px;
border-radius: 50%;
position: absolute;
top: -110px;
}
.profile-box h3 {
font-family: "PT Sans Caption", sans-serif;
font-size: 1.85em;
margin-top: 100px;
margin-bottom: 10px;
color: white;
}
.profile-box p {
font-family: "PT Sans", sans-serif;
font-size: 1em;
margin: 0 0 20px;
color: black;
}
.icon-links {
display: flex;
gap: 10px;
justify-content: center;
flex-wrap: wrap;
margin-top: auto;
}
.icon-links a {
color: white;
font-size: 1.5em;
text-decoration: none;
transition: color 0.3s;
}
.icon-links a:hover {
color: #333;
}
.about-text {
flex: 2;
max-width: 700px;
padding-left: 20px;
padding-right: 20px;
box-sizing: border-box;
font-family: "Montserrat", sans-serif;
font-size: 1em;
line-height: 1.5;
}
.about-text h1 {
margin-top: 10px;
margin-bottom: .1em;
font-size: 1.5em;
}
.about-text ul {
padding-left: 0;
margin: 0;
list-style: none;
margin-bottom: 1em;
}
.about-text li {
position: relative;
padding-left: 1.5em;
margin-left: 0;
}
.about-text li::before {
content: attr(data-bullet);
position: absolute;
left: 0;
top: 0;
font-size: 1em;
line-height: 1.5;
}
.language-switch {
position: absolute;
top: 20px;
right: 20px;
}
.language-switch a {
margin: 0 5px;
font-size: 1.5em;
color: #333;
text-decoration: none;
}
.language-switch a:hover {
color: #000;
}
@media (max-width: 880px) {
.container {
flex-direction: column;
align-items: flex-start;
}
.profile-box {
max-width: 100%;
width: 100%;
}
.about-text {
max-width: 100%;
width: 100%;
}
}
@media (prefers-color-scheme: dark) {
body {
background-color: #121212;
color: #e0e0e0;
}
a:link,
a:visited {
color: #90caf9;
}
a:hover,
a:focus {
color: #64b5f6;
text-decoration: underline;
}
.profile-box {
background-color: #1e88e5;
}
.profile-box h3 {
color: #f0f0f0;
}
.icon-links a {
color: #e0e0e0;
}
.icon-links a:hover {
color: #90caf9;
}
.language-switch a {
color: #e0e0e0;
}
.language-switch a:hover {
color: #ffffff;
}
.about-text ul li::before {
color: #90caf9;
}
}
</style>
</head>
<body>
<div class="language-switch">
<a href="/?lang=en"><span class="fi fi-gb"></span></a>
<a href="/?lang=pt"><span class="fi fi-br"></span></a>
</div>
<div class="container">
<div class="profile-box">
<img src="img/root-profile-photo.jpg" alt="My profile photo" />
<h3 id="greeting">Hello! I'm Chester</h3>
<p id="intro-p1">
{{ page.description_p1 }}
</p><p id="intro-p2">
{{ page.description_p2 }}</p>
<div class="icon-links">
<a href="https://linkedin.com/in/chesterbr" title="LinkedIn"><i class="fa-brands fa-linkedin"></i></a>
<a href="https://github.com/chesterbr" title="GitHub"><i class="fa-brands fa-github"></i></a>
<a href="mailto:[email protected]" title="E-mail"><i class="fa-solid fa-envelope"></i></a>
<a href="https://instagram.com/chester_br" title="Instagram"><i class="fa-brands fa-instagram"></i></a>
<a href="https://ursal.zone/@chesterbr" title="Mastodon"><i class="fa-brands fa-mastodon"></i></a>
<a href="https://x.com/chesterbr" title="Twitter / X / whatever it's named this week" id="twitter-link"
data-confirm-message="This place is toxic; I only check it for DMs and mentions.
I suggest Mastodon or Instagram for social media interactions. Do you still want to proceed?">
<i class="fa-brands fa-twitter"></i>
</a>
<a href="/blog/" title="chester's blog"><i class="fa-solid fa-blog"></i></a>
</div>
</div>
<div class="about-text">
<h1 id="about-me-title">About me</h1>
<ul id="about-me-items">
<li data-bullet="🌎">
Brazilian by birthright, Italian by heritage, Canadian by choice.
</li>
<li data-bullet="👾">
Love video games and comics - but avoid their most <a
href="https://en.wikipedia.org/wiki/Gamergate_(harassment_campaign)">toxic</a> <a
href="https://en.wikipedia.org/wiki/Comicsgate">corners</a>.
</li>
<li data-bullet="🖋">
<a href="/blog/">Blog</a> occasionally about software, electronics, and more.
</li>
<li data-bullet="🆔">
My actual name is Carlos Duarte do Nascimento.
</li>
<li data-bullet="📺">
Nickname comes from <a href="https://www.youtube.com/watch?v=hamimmdHzUo">Chester McTech</a> in the <a
href="https://en.wikipedia.org/wiki/Beverly_Hills_Teens">Beverly Hills Teens</a> cartoon.
<br />
</li>
</ul>
<h1 id="about-work-title">Work and code</h1>
<ul id="about-work-items">
<li data-bullet="🤓">
Computer programmer for 30+ years - and still loving it!
</li>
<li data-bullet="💼">
Worked with companies of all sizes, including GitHub and Shopify.
</li>
<li data-bullet="♦️">
Creator of <a href="https://play.google.com/store/apps/details?id=me.chester.minitruco">miniTruco</a>, a
mobile card game quite popular in Brazil.
</li>
<li data-bullet="💾">
Retrocomputing enthusiast; wrote an Atari VCS <a href="https://github.com/chesterbr/ruby2600">emulator</a> and a <a href="https://github.com/chesterbr/2048-2600">game</a>.
</li>
<li data-bullet="👔">
More details on <a href="https://www.linkedin.com/in/chesterbr/">LinkedIn</a>; code projects on <a
href="https://github.com/chesterbr">GitHub</a> and on <a href="/blog/">my blog</a>.
</li>
</ul>
</div>
</div>
</body>
</html>