File size: 33,084 Bytes
4f032d5 | 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 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 | <!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blog Post | Modern Design</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.prose {
max-width: 65ch;
}
.prose img {
border-radius: 0.5rem;
margin: 1.5rem auto;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.prose blockquote {
border-left: 4px solid #3b82f6;
padding-left: 1rem;
font-style: italic;
color: #4b5563;
}
.prose code {
background-color: #f3f4f6;
padding: 0.2rem 0.4rem;
border-radius: 0.25rem;
font-family: monospace;
}
.prose pre {
background-color: #1e293b;
color: white;
padding: 1rem;
border-radius: 0.5rem;
overflow-x: auto;
}
.reading-progress {
height: 4px;
background: #3b82f6;
position: fixed;
top: 0;
left: 0;
z-index: 50;
}
.fade-in {
animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
</style>
</head>
<body class="bg-gray-50 text-gray-800 font-sans">
<!-- Reading progress bar -->
<div id="progress" class="reading-progress"></div>
<!-- Header -->
<header class="bg-white shadow-sm sticky top-0 z-40">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<a href="#" class="text-2xl font-bold text-blue-600 flex items-center">
<i class="fas fa-blog mr-2"></i> BlogModern
</a>
<nav class="hidden md:flex space-x-6">
<a href="#" class="hover:text-blue-600 transition">Home</a>
<a href="#" class="hover:text-blue-600 transition">Categories</a>
<a href="#" class="hover:text-blue-600 transition">About</a>
<a href="#" class="hover:text-blue-600 transition">Contact</a>
</nav>
<div class="flex items-center space-x-4">
<button class="md:hidden text-gray-600">
<i class="fas fa-bars text-xl"></i>
</button>
<button class="hidden md:block bg-blue-600 text-white px-4 py-2 rounded-full hover:bg-blue-700 transition">
Subscribe
</button>
</div>
</div>
</header>
<!-- Mobile Menu (hidden by default) -->
<div id="mobileMenu" class="hidden bg-white shadow-lg absolute w-full z-50">
<div class="container mx-auto px-4 py-3 flex flex-col space-y-3">
<a href="#" class="py-2 hover:text-blue-600 transition">Home</a>
<a href="#" class="py-2 hover:text-blue-600 transition">Categories</a>
<a href="#" class="py-2 hover:text-blue-600 transition">About</a>
<a href="#" class="py-2 hover:text-blue-600 transition">Contact</a>
<button class="bg-blue-600 text-white px-4 py-2 rounded-full hover:bg-blue-700 transition w-full">
Subscribe
</button>
</div>
</div>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8 md:py-12">
<div class="flex flex-col lg:flex-row gap-8">
<!-- Article Content -->
<article class="lg:w-2/3 fade-in">
<!-- Post Header -->
<div class="mb-8">
<div class="flex items-center space-x-2 text-sm text-gray-500 mb-4">
<span>Technology</span>
<span>•</span>
<span>8 min read</span>
</div>
<h1 class="text-3xl md:text-4xl font-bold mb-4 leading-tight">The Future of Web Development: Trends to Watch in 2023</h1>
<div class="flex items-center justify-between mb-6">
<div class="flex items-center space-x-3">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Author" class="w-10 h-10 rounded-full">
<div>
<p class="font-medium">John Doe</p>
<p class="text-sm text-gray-500">Published on May 15, 2023</p>
</div>
</div>
<div class="flex space-x-3">
<button class="text-gray-500 hover:text-blue-600 transition">
<i class="far fa-bookmark"></i>
</button>
<button class="text-gray-500 hover:text-blue-600 transition">
<i class="fas fa-share-alt"></i>
</button>
</div>
</div>
<img src="https://images.unsplash.com/photo-1547658719-da2b51169166?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1300&q=80" alt="Featured Image" class="w-full h-auto rounded-lg shadow-md mb-6">
</div>
<!-- Post Content -->
<div class="prose max-w-none">
<p class="lead">The web development landscape is constantly evolving, with new technologies and approaches emerging every year. As we move through 2023, several key trends are shaping the future of how we build and interact with web applications.</p>
<h2>1. The Rise of AI-Assisted Development</h2>
<p>Artificial Intelligence is no longer just a buzzword in web development. Tools like GitHub Copilot and ChatGPT are revolutionizing how developers write code, offering intelligent suggestions and even generating entire code blocks.</p>
<p>These AI-powered tools can:</p>
<ul>
<li>Automate repetitive coding tasks</li>
<li>Suggest optimizations and best practices</li>
<li>Help debug complex issues</li>
<li>Generate boilerplate code quickly</li>
</ul>
<img src="https://images.unsplash.com/photo-1677442136013-0d0360a4af59?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1374&q=80" alt="AI Development">
<h2>2. WebAssembly (Wasm) Goes Mainstream</h2>
<p>WebAssembly continues to gain traction, enabling near-native performance for web applications. With major browsers now supporting Wasm, we're seeing more performance-critical applications moving to the web.</p>
<blockquote>
"WebAssembly is changing what's possible on the web. Applications that were previously only feasible as native apps can now run in the browser with near-native performance."
</blockquote>
<p>Use cases include:</p>
<ul>
<li>Video and image editing tools</li>
<li>CAD and 3D modeling applications</li>
<li>Scientific simulations</li>
<li>Games with complex physics engines</li>
</ul>
<h2>3. Edge Computing for Faster Experiences</h2>
<p>The traditional client-server model is being augmented by edge computing, where processing happens closer to the user. This reduces latency and improves performance for globally distributed applications.</p>
<p>Modern frameworks like Next.js and Remix are embracing edge functions, allowing developers to:</p>
<pre><code>// Example of an edge function in Next.js
export const config = {
runtime: 'edge',
}
export default function handler(request) {
return new Response('Hello from the edge!', {
status: 200,
headers: {
'content-type': 'text/plain',
},
})
}</code></pre>
<h2>4. Progressive Enhancement with Modern CSS</h2>
<p>CSS continues to evolve with new features like container queries, cascade layers, and the :has() selector. These allow for more sophisticated layouts and designs without relying on JavaScript.</p>
<div class="bg-blue-50 p-4 rounded-lg border border-blue-100">
<h3 class="text-blue-800 font-medium mb-2">Pro Tip:</h3>
<p class="text-blue-700">Start adopting CSS container queries today for more flexible components that adapt to their container rather than just the viewport.</p>
</div>
<h2>5. The JAMStack Evolution</h2>
<p>While JAMStack (JavaScript, APIs, Markup) remains popular, the approach is evolving with more dynamic capabilities. The lines between static and dynamic are blurring with techniques like:</p>
<ul>
<li>Incremental Static Regeneration (ISR)</li>
<li>On-demand Revalidation</li>
<li>Edge-side rendering</li>
</ul>
<h2>Conclusion</h2>
<p>2023 is proving to be an exciting year for web development. By staying informed about these trends and selectively adopting the ones that fit your projects, you can build faster, more capable, and more maintainable web applications.</p>
<p>What trends are you most excited about? Share your thoughts in the comments below!</p>
</div>
<!-- Tags -->
<div class="mt-8 flex flex-wrap gap-2">
<a href="#" class="px-3 py-1 bg-gray-100 rounded-full text-sm hover:bg-gray-200 transition">#webdev</a>
<a href="#" class="px-3 py-1 bg-gray-100 rounded-full text-sm hover:bg-gray-200 transition">#javascript</a>
<a href="#" class="px-3 py-1 bg-gray-100 rounded-full text-sm hover:bg-gray-200 transition">#trends</a>
<a href="#" class="px-3 py-1 bg-gray-100 rounded-full text-sm hover:bg-gray-200 transition">#ai</a>
<a href="#" class="px-3 py-1 bg-gray-100 rounded-full text-sm hover:bg-gray-200 transition">#webassembly</a>
</div>
<!-- Author Bio -->
<div class="mt-12 p-6 bg-gray-50 rounded-lg border border-gray-200">
<div class="flex items-center space-x-4">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Author" class="w-16 h-16 rounded-full">
<div>
<h3 class="font-bold text-lg">John Doe</h3>
<p class="text-gray-600">Senior Web Developer with 10+ years of experience. Passionate about JavaScript, performance optimization, and teaching others.</p>
<div class="mt-2 flex space-x-3">
<a href="#" class="text-blue-600 hover:text-blue-800"><i class="fab fa-twitter"></i></a>
<a href="#" class="text-blue-600 hover:text-blue-800"><i class="fab fa-github"></i></a>
<a href="#" class="text-blue-600 hover:text-blue-800"><i class="fab fa-linkedin"></i></a>
</div>
</div>
</div>
</div>
<!-- Comments Section -->
<div class="mt-12">
<h3 class="text-xl font-bold mb-6">Comments (3)</h3>
<div class="space-y-6">
<!-- Comment 1 -->
<div class="flex space-x-4">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="User" class="w-10 h-10 rounded-full">
<div class="flex-1">
<div class="bg-gray-50 p-4 rounded-lg">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">Sarah Johnson</h4>
<p class="text-xs text-gray-500">2 days ago</p>
</div>
<button class="text-gray-400 hover:text-gray-600">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
<p class="mt-2 text-gray-700">Great article! I've been experimenting with WebAssembly for a game project and the performance gains are incredible compared to pure JavaScript.</p>
<div class="mt-3 flex space-x-4 text-sm">
<button class="text-gray-500 hover:text-blue-600 flex items-center">
<i class="far fa-thumbs-up mr-1"></i> 5
</button>
<button class="text-gray-500 hover:text-blue-600 flex items-center">
<i class="far fa-thumbs-down mr-1"></i> 0
</button>
<button class="text-gray-500 hover:text-blue-600">
Reply
</button>
</div>
</div>
</div>
</div>
<!-- Comment 2 -->
<div class="flex space-x-4">
<img src="https://randomuser.me/api/portraits/men/22.jpg" alt="User" class="w-10 h-10 rounded-full">
<div class="flex-1">
<div class="bg-gray-50 p-4 rounded-lg">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">Michael Chen</h4>
<p class="text-xs text-gray-500">1 week ago</p>
</div>
<button class="text-gray-400 hover:text-gray-600">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
<p class="mt-2 text-gray-700">What are your thoughts on HTMX as an alternative to heavy JavaScript frameworks? It seems to be gaining popularity for simpler interactive sites.</p>
<div class="mt-3 flex space-x-4 text-sm">
<button class="text-gray-500 hover:text-blue-600 flex items-center">
<i class="far fa-thumbs-up mr-1"></i> 3
</button>
<button class="text-gray-500 hover:text-blue-600 flex items-center">
<i class="far fa-thumbs-down mr-1"></i> 1
</button>
<button class="text-gray-500 hover:text-blue-600">
Reply
</button>
</div>
</div>
</div>
</div>
<!-- Comment 3 -->
<div class="flex space-x-4">
<img src="https://randomuser.me/api/portraits/women/63.jpg" alt="User" class="w-10 h-10 rounded-full">
<div class="flex-1">
<div class="bg-gray-50 p-4 rounded-lg">
<div class="flex justify-between items-start">
<div>
<h4 class="font-medium">Emma Rodriguez</h4>
<p class="text-xs text-gray-500">3 weeks ago</p>
</div>
<button class="text-gray-400 hover:text-gray-600">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
<p class="mt-2 text-gray-700">I'd love to see more content about implementing AI features in web apps. Maybe a follow-up article with practical examples?</p>
<div class="mt-3 flex space-x-4 text-sm">
<button class="text-gray-500 hover:text-blue-600 flex items-center">
<i class="far fa-thumbs-up mr-1"></i> 8
</button>
<button class="text-gray-500 hover:text-blue-600 flex items-center">
<i class="far fa-thumbs-down mr-1"></i> 0
</button>
<button class="text-gray-500 hover:text-blue-600">
Reply
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Comment Form -->
<div class="mt-8">
<h4 class="font-medium mb-4">Leave a comment</h4>
<form class="space-y-4">
<div>
<textarea rows="4" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" placeholder="Write your comment here..."></textarea>
</div>
<div class="flex justify-between items-center">
<div class="flex space-x-2">
<button type="button" class="text-gray-500 hover:text-gray-700">
<i class="far fa-smile"></i>
</button>
<button type="button" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-paperclip"></i>
</button>
</div>
<button type="submit" class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition">
Post Comment
</button>
</div>
</form>
</div>
</div>
</article>
<!-- Sidebar -->
<aside class="lg:w-1/3 space-y-8 fade-in">
<!-- Newsletter -->
<div class="bg-blue-50 p-6 rounded-lg border border-blue-100">
<h3 class="font-bold text-lg text-blue-800 mb-3">Subscribe to Newsletter</h3>
<p class="text-blue-700 mb-4">Get the latest articles and news delivered to your inbox every week.</p>
<form class="space-y-3">
<input type="email" placeholder="Your email" class="w-full px-4 py-2 rounded-lg border border-blue-200 focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<button type="submit" class="w-full bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 transition">
Subscribe
</button>
</form>
</div>
<!-- Popular Posts -->
<div class="bg-white p-6 rounded-lg border border-gray-200 shadow-sm">
<h3 class="font-bold text-lg mb-4">Popular Posts</h3>
<div class="space-y-4">
<a href="#" class="flex group">
<div class="w-16 h-16 flex-shrink-0">
<img src="https://images.unsplash.com/photo-1547658719-da2b51169166?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=200&q=80" alt="Post" class="w-full h-full object-cover rounded">
</div>
<div class="ml-3">
<h4 class="font-medium group-hover:text-blue-600 transition">The Future of Web Development</h4>
<p class="text-sm text-gray-500">May 15, 2023</p>
</div>
</a>
<a href="#" class="flex group">
<div class="w-16 h-16 flex-shrink-0">
<img src="https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=200&q=80" alt="Post" class="w-full h-full object-cover rounded">
</div>
<div class="ml-3">
<h4 class="font-medium group-hover:text-blue-600 transition">React 18 Features Explained</h4>
<p class="text-sm text-gray-500">April 28, 2023</p>
</div>
</a>
<a href="#" class="flex group">
<div class="w-16 h-16 flex-shrink-0">
<img src="https://images.unsplash.com/photo-1620712943543-bcc4688e7485?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=200&q=80" alt="Post" class="w-full h-full object-cover rounded">
</div>
<div class="ml-3">
<h4 class="font-medium group-hover:text-blue-600 transition">CSS Container Queries Guide</h4>
<p class="text-sm text-gray-500">March 10, 2023</p>
</div>
</a>
</div>
</div>
<!-- Categories -->
<div class="bg-white p-6 rounded-lg border border-gray-200 shadow-sm">
<h3 class="font-bold text-lg mb-4">Categories</h3>
<div class="space-y-2">
<a href="#" class="flex justify-between items-center py-2 px-3 hover:bg-gray-50 rounded-lg transition">
<span>JavaScript</span>
<span class="bg-gray-100 text-gray-600 text-xs px-2 py-1 rounded-full">24</span>
</a>
<a href="#" class="flex justify-between items-center py-2 px-3 hover:bg-gray-50 rounded-lg transition">
<span>React</span>
<span class="bg-gray-100 text-gray-600 text-xs px-2 py-1 rounded-full">18</span>
</a>
<a href="#" class="flex justify-between items-center py-2 px-3 hover:bg-gray-50 rounded-lg transition">
<span>CSS</span>
<span class="bg-gray-100 text-gray-600 text-xs px-2 py-1 rounded-full">15</span>
</a>
<a href="#" class="flex justify-between items-center py-2 px-3 hover:bg-gray-50 rounded-lg transition">
<span>Performance</span>
<span class="bg-gray-100 text-gray-600 text-xs px-2 py-1 rounded-full">12</span>
</a>
<a href="#" class="flex justify-between items-center py-2 px-3 hover:bg-gray-50 rounded-lg transition">
<span>Web Design</span>
<span class="bg-gray-100 text-gray-600 text-xs px-2 py-1 rounded-full">9</span>
</a>
</div>
</div>
<!-- Tags Cloud -->
<div class="bg-white p-6 rounded-lg border border-gray-200 shadow-sm">
<h3 class="font-bold text-lg mb-4">Tags</h3>
<div class="flex flex-wrap gap-2">
<a href="#" class="px-3 py-1 bg-gray-100 rounded-full text-sm hover:bg-gray-200 transition">#javascript</a>
<a href="#" class="px-3 py-1 bg-gray-100 rounded-full text-sm hover:bg-gray-200 transition">#react</a>
<a href="#" class="px-3 py-1 bg-gray-100 rounded-full text-sm hover:bg-gray-200 transition">#css</a>
<a href="#" class="px-3 py-1 bg-gray-100 rounded-full text-sm hover:bg-gray-200 transition">#webdev</a>
<a href="#" class="px-3 py-1 bg-gray-100 rounded-full text-sm hover:bg-gray-200 transition">#beginners</a>
<a href="#" class="px-3 py-1 bg-gray-100 rounded-full text-sm hover:bg-gray-200 transition">#tutorial</a>
<a href="#" class="px-3 py-1 bg-gray-100 rounded-full text-sm hover:bg-gray-200 transition">#performance</a>
<a href="#" class="px-3 py-1 bg-gray-100 rounded-full text-sm hover:bg-gray-200 transition">#accessibility</a>
</div>
</div>
</aside>
</div>
</main>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-xl font-bold mb-4">BlogModern</h3>
<p class="text-gray-400">Sharing knowledge about web development, design, and technology trends.</p>
<div class="mt-4 flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-twitter"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-github"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-linkedin"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-youtube"></i></a>
</div>
</div>
<div>
<h4 class="font-bold mb-4">Quick Links</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white transition">Home</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">About</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Blog</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Contact</a></li>
</ul>
</div>
<div>
<h4 class="font-bold mb-4">Categories</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white transition">JavaScript</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">CSS</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">React</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Performance</a></li>
</ul>
</div>
<div>
<h4 class="font-bold mb-4">Newsletter</h4>
<p class="text-gray-400 mb-4">Subscribe to get notified about new posts.</p>
<form class="flex">
<input type="email" placeholder="Your email" class="px-4 py-2 rounded-l-lg text-gray-800 w-full">
<button type="submit" class="bg-blue-600 px-4 py-2 rounded-r-lg hover:bg-blue-700 transition">
<i class="fas fa-paper-plane"></i>
</button>
</form>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
<p>© 2023 BlogModern. All rights reserved.</p>
</div>
</div>
</footer>
<!-- Back to Top Button -->
<button id="backToTop" class="fixed bottom-6 right-6 bg-blue-600 text-white p-3 rounded-full shadow-lg opacity-0 invisible transition-all duration-300 hover:bg-blue-700">
<i class="fas fa-arrow-up"></i>
</button>
<script>
// Mobile menu toggle
document.querySelector('header button').addEventListener('click', function() {
const menu = document.getElementById('mobileMenu');
menu.classList.toggle('hidden');
});
// Reading progress bar
window.addEventListener('scroll', function() {
const winScroll = document.body.scrollTop || document.documentElement.scrollTop;
const height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
const scrolled = (winScroll / height) * 100;
document.getElementById('progress').style.width = scrolled + '%';
// Back to top button
const backToTop = document.getElementById('backToTop');
if (winScroll > 300) {
backToTop.classList.remove('opacity-0', 'invisible');
backToTop.classList.add('opacity-100', 'visible');
} else {
backToTop.classList.remove('opacity-100', 'visible');
backToTop.classList.add('opacity-0', 'invisible');
}
});
// Back to top functionality
document.getElementById('backToTop').addEventListener('click', function() {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
// Add fade-in animation to elements as they come into view
const fadeElements = document.querySelectorAll('.fade-in');
const fadeInObserver = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('animate-fadeIn');
}
});
}, {
threshold: 0.1
});
fadeElements.forEach(element => {
fadeInObserver.observe(element);
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=inegrao/post" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |