feat(resume): add profile photo to resume header#96
Conversation
Places the photo at public/images/resume-photo.jpg, renders it beside the name/title block in ResumeHeader, and wires it through resume.yaml. https://claude.ai/code/session_018vQR94EpjGTVw5RcP2oNBx
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Code Review: feat(resume): add profile photo to resume headerOverviewClean, focused PR that adds an optional profile photo to the resume header. The layout refactor wraps the existing heading content in a flex container alongside the new image, with the photo remaining opt-in via the ✅ What's done well
Suggestions1. Consider Astro's The raw ---
import { Image } from 'astro:assets';
---
{photo && (
<Image
src={photo}
alt={name}
width={112}
height={112}
class="w-24 h-24 sm:w-28 sm:h-28 ..."
/>
)}Note: 2. Add Without explicit dimensions, the browser can't reserve space for the image before it loads, causing the heading text to jump. Even with the raw <img
src={photo}
alt={name}
width="112"
height="112"
class="w-24 h-24 sm:w-28 sm:h-28 ..."
/>The CSS classes still control the rendered size; the HTML attributes just give the browser an aspect-ratio hint. 3. Minor: Since the photo is above the fold it's LCP-critical, so No concerns on
SummarySolid PR. The only actionable items are the |
Places the photo at public/images/resume-photo.jpg, renders it beside
the name/title block in ResumeHeader, and wires it through resume.yaml.
https://claude.ai/code/session_018vQR94EpjGTVw5RcP2oNBx