-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
347 lines (318 loc) · 18.2 KB
/
Copy pathindex.html
File metadata and controls
347 lines (318 loc) · 18.2 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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tao Te Ching - Código da Presença</title>
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Fira Code', monospace;
background-color: #1e1e1e;
color: #d4d4d4;
overflow-x: hidden;
}
.code-line {
position: relative;
padding-left: 2.5rem;
}
.line-number {
position: absolute;
left: 0;
color: #858585;
user-select: none;
}
.cursor-blink {
animation: blink 1s step-end infinite;
}
@keyframes blink {
from, to { opacity: 1; }
50% { opacity: 0; }
}
.sidebar {
transition: all 0.3s ease;
}
.highlight {
color: #569cd6;
}
.string {
color: #ce9178;
}
.comment {
color: #6a9955;
}
.keyword {
color: #c586c0;
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function() {
const sidebarToggle = document.getElementById('sidebar-toggle');
const sidebar = document.querySelector('.sidebar');
const overlay = document.getElementById('sidebar-overlay');
sidebarToggle.addEventListener('click', function() {
sidebar.classList.toggle('-translate-x-full');
overlay.classList.toggle('hidden');
});
overlay.addEventListener('click', function() {
sidebar.classList.add('-translate-x-full');
overlay.classList.add('hidden');
});
});
</script>
</head>
<body class="min-h-screen flex flex-col">
<!-- Header with VSCode-like tabs -->
<header class="bg-gray-900 border-b border-gray-700">
<div class="flex items-center px-4 py-2">
<button id="sidebar-toggle" class="mr-2 md:hidden text-gray-400 hover:text-white">
<i class="fas fa-bars"></i>
</button>
<div class="flex space-x-2 mr-4">
<div class="w-3 h-3 rounded-full bg-red-500"></div>
<div class="w-3 h-3 rounded-full bg-yellow-500"></div>
<div class="w-3 h-3 rounded-full bg-green-500"></div>
</div>
<nav class="flex space-x-4 text-sm">
<div class="px-3 py-1 bg-gray-800 rounded-t text-white">index.html</div>
<div class="px-3 py-1 text-gray-500 hover:text-white">style.css</div>
<div class="px-3 py-1 text-gray-500 hover:text-white">tao.js</div>
</nav>
</div>
</header>
<div class="flex flex-1 relative">
<!-- Overlay for mobile sidebar -->
<div id="sidebar-overlay" class="fixed inset-0 bg-black bg-opacity-50 z-10 hidden md:hidden"></div>
<!-- Sidebar (initially hidden on mobile) -->
<aside class="sidebar w-64 bg-gray-800 border-r border-gray-700 hidden md:block fixed md:static inset-y-0 left-0 z-20 transform -translate-x-full md:translate-x-0">
<div class="p-4 border-b border-gray-700">
<h2 class="text-sm font-semibold text-gray-400 uppercase tracking-wider">EXPLORADOR</h2>
</div>
<div class="p-2">
<div class="text-gray-400 text-xs mb-1">TAO TE CHING</div>
<ul class="space-y-1">
<li class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-code mr-2 text-blue-400"></i>
<span>Prefácio</span>
</li>
<a href="https://pdrodoc.github.io/tao/capitulo1.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 1</span>
</a>
<a href="https://pdrodoc.github.io/tao/capitulo3.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 3</span>
</a>
<a href="https://pdrodoc.github.io/tao/Capitulo36.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 36</span>
</a>
<a href="https://pdrodoc.github.io/tao/capitulo42.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 42</span>
</a>
<a href="https://pdrodoc.github.io/tao/capitulo48.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 48</span>
</a>
<a href="https://pdrodoc.github.io/tao/capitulo50.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 50</span>
</a>
</a>
<a href="https://pdrodoc.github.io/tao/capitulo68.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 68</span>
</a>
<a href="https://pdrodoc.github.io/tao/capitulo71.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 71</span>
</a>
<a href="https://pdrodoc.github.io/tao/Capitulo%2071.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 71</span>
</a>
<a href="https://pdrodoc.github.io/tao/capitulo36.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 36</span>
</a>
<a href="https://pdrodoc.github.io/tao/capitulo3.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 3</span>
</a>
<a href="https://pdrodoc.github.io/tao/capitulo42.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 42</span>
</a>
<a href="https://pdrodoc.github.io/tao/capitulo43.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 43</span>
</a>
<a href="https://pdrodoc.github.io/tao/capitulo48.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 48</span>
</a>
<a href="https://pdrodoc.github.io/tao/capitulo68.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 68</span>
</a>
<a href="https://pdrodoc.github.io/tao/capitulo71.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 71</span>
</a>
<a href="https://pdrodoc.github.io/tao/capitulo78.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 78</span>
</a>
<a href="https://pdrodoc.github.io/tao/capitulo79.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 79</span>
</a>
<a href="https://pdrodoc.github.io/tao/capitulo15.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 15</span>
</a>
<!-- Para adicionar mais capítulos, copie uma linha abaixo, altere o número e o texto:
<a href="https://pdrodoc.github.io/tao/capituloX.html" class="flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo X</span>
</a>
-->
</ul>
</div>
</aside>
<!-- Main content -->
<main class="flex-1 overflow-auto p-6">
<div class="max-w-4xl mx-auto">
<!-- Terminal-like header -->
<div class="bg-gray-800 rounded-t-lg px-4 py-2 flex items-center">
<div class="flex space-x-2 mr-4">
<div class="w-3 h-3 rounded-full bg-gray-600"></div>
<div class="w-3 h-3 rounded-full bg-gray-600"></div>
<div class="w-3 h-3 rounded-full bg-gray-600"></div>
</div>
<span class="text-xs text-gray-400">TERMINAL - Pdro P.></span>
</div>
<!-- Code-like content -->
<div class="bg-gray-900 p-4 rounded-b-lg border border-gray-800">
<div class="code-line mb-2">
<span class="line-number">1</span>
<span class="string">.</span>
</div>
<div class="code-line mb-2">
<span class="line-number">2</span>
<span class="string"></span>
</div>
<div class="code-line mb-2">
<span class="line-number">3</span>
<span class="string"></span>
</div>
<div class="code-line mb-8">
<span class="line-number">4</span>
<span class="string"></span>
</div>
<div class="code-line mb-6">
<span class="line-number">9</span>
<button id="exploreBtn" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded text-sm font-mono focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50 transition-all duration-200">
<i class="fas fa-terminal mr-2"></i>Explorar os capítulos
</button>
<span class="ml-2 text-gray-500 text-sm cursor-blink">_</span>
</div>
<div id="chaptersOutput" class="hidden">
<div class="code-line mb-2">
<span class="line-number">10</span>
<span class="comment">// Capítulos disponíveis:</span>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-2 pl-8">
<!-- Chapters would be dynamically loaded here -->
</div>
</div>
</div>
<!-- Mobile menu button -->
<div class="md:hidden mt-6">
<button id="mobileMenuBtn" class="bg-gray-800 hover:bg-gray-700 text-gray-300 px-4 py-2 rounded text-sm font-mono focus:outline-none focus:ring-2 focus:ring-gray-600 focus:ring-opacity-50 transition-all duration-200">
<i class="fas fa-bars mr-2"></i>Menu de Capítulos
</button>
</div>
</div>
</main>
</div>
<!-- Mobile sidebar (hidden by default) -->
<div id="mobileSidebar" class="fixed inset-0 bg-gray-900 bg-opacity-75 z-50 hidden">
<div class="absolute left-0 top-0 bottom-0 w-64 bg-gray-800 overflow-y-auto">
<div class="p-4 flex justify-between items-center border-b border-gray-700">
<h2 class="text-sm font-semibold text-gray-400 uppercase tracking-wider">CAPÍTULOS</h2>
<button id="closeMobileMenu" class="text-gray-400 hover:text-white">
<i class="fas fa-times"></i>
</button>
</div>
<div class="p-2">
<ul class="space-y-1">
<li class="flex items-center px-2 py-2 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-code mr-2 text-blue-400"></i>
<span>Prefácio</span>
</li>
<li class="flex items-center px-2 py-2 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 1</span>
</li>
<li class="flex items-center px-2 py-2 text-sm text-gray-300 hover:bg-gray-700 rounded cursor-pointer">
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo 2</span>
</li>
<!-- More chapters would be added here -->
</ul>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Explore button functionality
const exploreBtn = document.getElementById('exploreBtn');
const chaptersOutput = document.getElementById('chaptersOutput');
exploreBtn.addEventListener('click', function() {
chaptersOutput.classList.toggle('hidden');
if (!chaptersOutput.classList.contains('hidden')) {
// Simulate loading chapters
const chaptersContainer = chaptersOutput.querySelector('.grid');
chaptersContainer.innerHTML = '';
for (let i = 1; i <= 10; i++) {
const chapterElement = document.createElement('div');
chapterElement.className = 'flex items-center px-2 py-1 text-sm text-gray-300 hover:bg-gray-800 rounded cursor-pointer';
chapterElement.innerHTML = `
<i class="far fa-file-alt mr-2 text-yellow-400"></i>
<span>Capítulo ${i}</span>
`;
chaptersContainer.appendChild(chapterElement);
}
}
});
// Mobile menu functionality
const mobileMenuBtn = document.getElementById('mobileMenuBtn');
const mobileSidebar = document.getElementById('mobileSidebar');
const closeMobileMenu = document.getElementById('closeMobileMenu');
mobileMenuBtn.addEventListener('click', function() {
mobileSidebar.classList.remove('hidden');
});
closeMobileMenu.addEventListener('click', function() {
mobileSidebar.classList.add('hidden');
});
// Typewriter effect for the title
const taoText = "The Tao is like a well: used but never used up. It is like the eternal void:/filled with infinite possibilities.It is hidden but always present./I don’t know who gave birth to it. It is older than God.;"
let i = 0;
const speed = 50;
function typeWriter() {
if (i < taoText.length) {
document.querySelector('.string').textContent += taoText.charAt(i);
i++;
setTimeout(typeWriter, speed);
}
}
// Start the typewriter effect after a short delay
setTimeout(typeWriter, 1000);
});
</script>
</body>
</html>