-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
208 lines (183 loc) · 6.46 KB
/
Copy pathindex.html
File metadata and controls
208 lines (183 loc) · 6.46 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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="utf-8">
<title>G1its — Security Research Blog</title>
<meta name="description" content="Write-ups, research notes e estudos sobre segurança ofensiva.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- NAV -->
<nav class="nav">
<div class="nav-inner">
<a href="index.html" class="nav-brand">g1its<span>.</span></a>
<ul class="nav-links">
<li><a href="fundamentos/index.html">Fundamentos</a></li>
<li><a href="writeups/index.html">Write-ups</a></li>
<li><a href="critica/index.html">Crítica</a></li>
<li><a href="whoami/whoami.html">whoami</a></li>
</ul>
<a href="https://github.com/eduardobezerraz" target="_blank" class="nav-cta">GitHub ↗</a>
</div>
</nav>
<main>
<!-- HERO -->
<section class="hero">
<div class="wrap">
<span class="hero-label">Security research & notes</span>
<h1>Hacking, fundamentos<br>e crítica tecnológica</h1>
<p class="hero-sub">
Documentação de estudos sobre segurança ofensiva, redes e
reflexões sobre o impacto social da tecnologia.
</p>
</div>
</section>
<!-- SEÇÕES -->
<div class="wrap">
<div class="sec-label">
<h2>Seções</h2>
</div>
<div class="sections-grid">
<a href="fundamentos/index.html" class="sec-card">
<div class="sec-card-icon">📖</div>
<h3>Fundamentos</h3>
<p>
Glossário técnico e conceitos essenciais de segurança da informação —
web security, redes, protocolos e além.
</p>
<span class="sec-card-link">Explorar fundamentos →</span>
</a>
<a href="writeups/index.html" class="sec-card">
<div class="sec-card-icon">🔓</div>
<h3>Write-ups</h3>
<p>
Documentação detalhada de desafios de CTF, laboratórios e
exploração de vulnerabilidades, organizados por área técnica.
</p>
<span class="sec-card-link">Ver write-ups →</span>
</a>
<a href="critica/index.html" class="sec-card">
<div class="sec-card-icon">🔬</div>
<h3>Crítica</h3>
<p>
Textos com reflexões críticas sobre vigilância, privacidade,
poder digital e o uso da tecnologia na sociedade.
</p>
<span class="sec-card-link">Ler crítica →</span>
</a>
</div>
</div>
<!-- POSTS RECENTES — renderizados via posts.js -->
<div class="wrap" id="posts-section" style="display:none">
<div class="sec-label">
<h2>Posts recentes</h2>
</div>
<div class="posts-grid" id="posts-grid"></div>
</div>
<!-- EMPTY STATE — visível enquanto não há posts -->
<div class="wrap" id="empty-state">
<div class="sec-label">
<h2>Posts recentes</h2>
</div>
<div class="posts-empty">
<p>
Nenhum post publicado ainda.<br>
Para adicionar um post, edite <code>posts.js</code> na raiz do projeto.
</p>
</div>
</div>
<!-- WHOAMI -->
<div class="wrap">
<div class="whoami-strip">
<div class="whoami-avatar"></div>
<div class="whoami-text">
<h3>José Eduardo Bezerra de Medeiros</h3>
<p>Estudante de Redes de Computadores — segurança web, redes, CTFs e impacto social da tecnologia.</p>
</div>
<div class="whoami-links">
<a href="whoami/whoami.html" class="whoami-btn">whoami</a>
<a href="https://github.com/eduardobezerraz" target="_blank" class="whoami-btn primary">GitHub ↗</a>
</div>
</div>
</div>
<!-- QUOTE -->
<div class="wrap">
<div class="quote-bar">
<p><em>Knowledge grows when shared.</em> Silence benefits only ignorance.</p>
</div>
</div>
</main>
<!-- FOOTER -->
<footer>
<div class="wrap">
<div class="foot-inner">
<span class="foot-brand">g1its.</span>
<div class="foot-links">
<a href="fundamentos/index.html">Fundamentos</a>
<a href="writeups/index.html">Write-ups</a>
<a href="critica/index.html">Crítica</a>
<a href="whoami/whoami.html">whoami</a>
<a href="https://github.com/eduardobezerraz" target="_blank">GitHub</a>
</div>
</div>
</div>
</footer>
<script src="posts.js"></script>
<script>
(function () {
if (!Array.isArray(POSTS) || POSTS.length === 0) return;
// ordena do mais recente para o mais antigo
const sorted = [...POSTS].sort((a, b) => new Date(b.date) - new Date(a.date));
const THUMB_CLASS = {
fundamentos: 'th-fundamentos',
writeups: 'th-writeups',
critica: 'th-critica',
};
const TAG_CLASS = {
fundamentos: 'tag-fundamentos',
writeups: 'tag-writeups',
critica: 'tag-critica',
};
function fmtDate(iso) {
const d = new Date(iso + 'T12:00:00');
return d.toLocaleDateString('pt-BR', { day: '2-digit', month: 'short', year: 'numeric' });
}
const grid = document.getElementById('posts-grid');
sorted.forEach(p => {
const th = THUMB_CLASS[p.section] || 'th-fundamentos';
const tg = TAG_CLASS[p.section] || 'tag-fundamentos';
const sec = p.section.charAt(0).toUpperCase() + p.section.slice(1);
const thumbHTML = p.img
? `<img src="${p.img}" alt="${p.title}" style="width:100%;height:100%;object-fit:cover;display:block;">`
: `<div class="post-thumb-inner ${th}">${p.section}</div>`;
const card = document.createElement('a');
card.href = p.url;
card.className = 'post-card';
card.innerHTML = `
<div class="post-thumb">
${thumbHTML}
</div>
<div class="post-body">
<div class="post-meta">
<span class="tag ${tg}">${p.tag || sec}</span>
<span class="post-date">${fmtDate(p.date)}</span>
</div>
<h3 class="post-title">${p.title}</h3>
<p class="post-desc">${p.desc}</p>
<div class="post-footer">
<span class="post-author">g1its</span>
<span class="post-arrow">→</span>
</div>
</div>`;
grid.appendChild(card);
});
document.getElementById('posts-section').style.display = 'block';
document.getElementById('empty-state').style.display = 'none';
})();
</script>
</body>
</html>