Move portfolio case studies to data-driven template system and archive old individual files

This commit is contained in:
Ovidiu U
2026-03-15 18:04:56 +00:00
parent ac917dbc0a
commit 28cd60a427
21 changed files with 1789 additions and 1188 deletions

View File

@@ -1,12 +1,22 @@
<?php
$slugs = array_keys($projects);
$idx = array_search($cs_slug, $slugs);
$prev = $idx > 0 ? $slugs[$idx - 1] : null;
$next = $idx < count($slugs) - 1 ? $slugs[$idx + 1] : null;
?>
<section class="section section-cta">
<div class="section-label"> Next</div>
<div class="section-content">
<a href="/portfolio" class="cs-back cs-back--lg"> Back to All Work</a>
<p class="large-text">Got a project in mind?</p>
<a href="mailto:hello@uovidiu.com" class="btn">Let's Talk →</a>
</div>
</section>
<div class="project-nav">
<?php if ($prev): ?>
<a href="/portfolio/<?php echo htmlspecialchars($prev); ?>/" class="project-nav-link">← <?php echo htmlspecialchars($projects[$prev]['title']); ?></a>
<?php else: ?>
<a href="/portfolio" class="project-nav-link">← Back to Portfolio</a>
<?php endif; ?>
<?php if ($next): ?>
<a href="/portfolio/<?php echo htmlspecialchars($next); ?>/" class="project-nav-link">Next Project → <?php echo htmlspecialchars($projects[$next]['title']); ?></a>
<?php else: ?>
<a href="/portfolio" class="project-nav-link">← Back to Portfolio</a>
<?php endif; ?>
</div>
<script src="/js/screenshot-scroll-hint.js"></script>
<?php require __DIR__ . '/footer.php'; ?>