Files
2026-06-06 00:38:47 +08:00

67 lines
2.5 KiB
PHP
Executable File

<?php require_once __DIR__ . '/config/db.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Blog — Tutorials, tech reviews, and updates from Cris Charles Garcia's developer journey.">
<title>Blog | Cris Charles Garcia</title>
<link rel="icon" type="image/svg+xml" href="assets/img/favicon.svg">
<link rel="stylesheet" href="assets/css/style.css?v=2.0.0">
</head>
<body>
<input type="checkbox" id="dark-mode-toggle" class="toggle-checkbox" checked>
<!-- Animated Mesh Background -->
<div class="mesh-bg" aria-hidden="true">
<div class="orb orb-1"></div>
<div class="orb orb-2"></div>
<div class="orb orb-3"></div>
</div>
<div class="site-wrapper">
<?php include('views/nav.php'); ?>
<div class="page-hero reveal">
<span class="section-label">Articles</span>
<h1>Articles</h1>
<p class="subtitle">Articles about web development and programming.</p>
</div>
<div class="section-divider"></div>
<section class="section-pad reveal">
<div class="blog-grid">
<?php include('views/articles.php'); ?>
</div>
</section>
<footer>
<p>&copy; <span id="year"></span> Cris Charles Garcia. Based in Laguna, Philippines.</p>
</footer>
</div>
<a href="#" id="back-to-top" title="Back to Top" aria-label="Back to top">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M18 15l-6-6-6 6"/></svg>
</a>
<script>
document.addEventListener("DOMContentLoaded", () => {
document.getElementById("year").textContent = new Date().getFullYear();
const observer = new IntersectionObserver((entries, obs) => {
entries.forEach(entry => {
if (entry.isIntersecting) { entry.target.classList.add('active'); obs.unobserve(entry.target); }
});
}, { threshold: 0.08 });
document.querySelectorAll('.reveal').forEach(el => observer.observe(el));
const backToTop = document.getElementById("back-to-top");
window.addEventListener('scroll', () => backToTop.classList.toggle("show", window.scrollY > 300));
});
</script>
</body>
</html>