Scaling Personal Presence: Updating my Portfolio with Astro and Strapi
A personal portfolio is a living project that grows alongside your professional experience. Recently, I spent time updating the content on my cris0fw/portafolio-2024 project, specifically focusing on integrating a new project case study and updating my CV documentation.
The Challenge of Content Freshness
When managing a portfolio, the friction between 'doing the work' and 'showing the work' is real. If the process of adding a new project or updating a CV is cumbersome, these assets quickly become stale. To maintain momentum, I leverage the static site generation capabilities of Astro, which allows me to serve fast, performant pages while keeping the content dynamic through a headless CMS like Strapi.
Streamlining the Update Flow
Adding new content to a portfolio should be as simple as pushing a configuration change or updating a record. By separating the content layer (Strapi) from the view layer (Astro/Tailwind CSS), I ensure that adding a new CV or project entry doesn't require a deep dive into the underlying component logic.
// Example: Fetching project data in Astro
async function getProjects() {
const response = await fetch('https://example.com/api/projects');
const data = await response.json();
return data.map(project => ({
title: project.attributes.title,
description: project.attributes.description
}));
}
The Technical Philosophy
Using utility-first CSS via Tailwind ensures that when I introduce new project sections, the layout remains consistent without writing redundant stylesheets.
- Decouple Content: Let the CMS handle text and media, while the frontend defines the structure.
- Leverage Type Safety: Use TypeScript interfaces to ensure that project data coming from the API matches the expected UI schema.
- Automate Builds: Trigger redeploys when content updates are published to keep the site current without manual intervention.
The Takeaway
Your portfolio is your professional calling card. Instead of viewing updates as a chore, integrate them into your development workflow. By using a headless CMS, you treat your personal brand like any other data-driven application: modular, scalable, and easy to update.
Generated with Gitvlg.com