Polish portfolio nav, add Resume page and backend-managed Contact form#38
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
Themetoggle persisted tolocalStorageand injected a tiny inline script inportfolio/build.mjs, and added supporting styles inportfolio/style.cssfor the compact header, theme button, resume and contact shells.portfolio/build.mjsto includeResumeandContactnav items, injected aresumePageContent()andcontactPageContent()renderer forcontent/pages/resume.mdandcontent/pages/contact.md, and replacedmailto:links with a/contact/link; removed the exposedemailkey fromportfolio/content/site.json./api/contactPOST handler ingateway/server.js(handleContactRequest) that validates the form, reads the recipient from server-only env vars, and sends via Resend whenRESEND_API_KEYandCONTACT_TO_EMAILare configured, otherwise returns a safe setup503page; the route returns friendly HTML responses for success/error states..agents/skills/portfolio-design/SKILL.mdto allow the tiny explicit theme script, updatedportfolio/content/pages/about.mdto link to/contact/, and recorded the change inCHANGELOG.mdandLEARNINGS.md; addedportfolio/content/pages/resume.mdandcontact.md.Testing
npm run buildinportfolio/completed successfully andportfoliobuild-time metadata validation passed.node --check gateway/server.jssucceeded andnpm testingateway/passed (all gateway unit tests green).node scripts/build-local.mjscompleted andnpm run smoke(dependency-free smoke test) passed (17 passed, 0 failed).POST /api/contactagainst a locally started gateway returned503as expected when mail env vars were not set, demonstrating safe fallback behavior.RESEND_API_KEYandCONTACT_TO_EMAIL(and optionalCONTACT_FROM_EMAIL) to be set in the deployment environment for emails to actually send.Codex Task