A single-page personal portfolio for posaninagendra.github.io, built with Next.js, Tailwind CSS v4 and Framer Motion.
Design language: warm, editorial, minimalist — cream background, white elevated cards, charcoal typography, pastel gradient accents (sky / peach / sage), Plus Jakarta Sans display type over Inter body text. Inspired by microsoft.ai/about.
| Section | What it does |
|---|---|
| Sticky header | Monogram, smooth-scroll anchors, “Get in touch” CTA, mobile menu |
| Hero & About | Headline, synthesized bio, portrait, fact chips, social icon pills, stats strip |
| Engineering values | Interactive pill tabs (spring layoutId indicator) with a philosophy card per value |
| Experience | Career timeline with a scroll-driven progress line, per-company role stacks |
| Projects | Expandable cards — metric badge by default, architecture + contributions + stack + links on tap |
| Footer | Sign-off, copyright, social links |
All content — bio, values, timeline, projects, social URLs — lives in lib/data.ts. Edit that file; no component changes needed.
Two things update themselves:
yearsOfExperience() in lib/data.ts — it rolls forward automatically each September.public/images/logos/.Animations respect prefers-reduced-motion, and the layout is responsive from phone to desktop.
Dark mode ships built in: the toggle in the header (and mobile menu) flips a .dark class, the choice persists in localStorage, first-time visitors get their OS preference, and an inline boot script applies it before first paint so there is no flash. The dark palette is warm charcoal — not blue-black — with brightened accent tokens.
Requires Node 20+ (Node 22 recommended).
# 1. Install dependencies
npm install
# 2. Start the dev server
npm run dev
# → http://localhost:3000
# 3. Production build (static export into ./out)
npm run build
# 4. Preview the production build locally
npx serve out
The site is a fully static export (output: "export" in next.config.ts) and deploys to GitHub Pages automatically:
.github/workflows/deploy.yml builds on every push to master and deploys out/ via the official Pages actions./bud is an unlisted preview until launch. The plain /bud/ URL shows a
minimal coming-soon screen; the showcase loads only when the URL carries a
preview code:
https://posaninagendra.github.io/bud/?code=<preview-code>
The site stores only a SHA-256 hash of the code (NEXT_PUBLIC_BUD_ACCESS_HASH),
never the code itself. The showcase is mounted only after the code matches,
the locked HTML contains none of its content, and the page is marked
noindex. (On a static host the showcase’s JavaScript is still part of the
public build; see the note at the end.)
Generate a code, link and hash:
npm run bud:code
Then either:
NEXT_PUBLIC_BUD_ACCESS_HASH=... in .env.local
and run npm run dev (or npm run build), orDeploy: add the printed hash as the GitHub Actions repository secret
named BUD_ACCESS_HASH (Settings → Secrets and variables → Actions):
gh secret set BUD_ACCESS_HASH --body "<printed-hash>"
The next build picks it up.
If the hash is absent, /bud/ fails closed: everyone sees the coming-soon
screen. To rotate access, generate a new code, update .env.local and/or the
secret, and redeploy. Old links stop working, and unlocked tabs close on their
next load because the remembered unlock is tied to the current hash.
Because this is a static GitHub Pages site, the gate is a convenience for sharing an unlisted preview, not server-side security. Someone determined can inspect the JavaScript and find the showcase chunk. If the page must be genuinely private, use a host with password protection or encrypt the content instead.
Unlocks are remembered in sessionStorage, so a tab that has opened the
showcase can refresh it without the code; closing the tab clears that, and a
code rotation clears it on the next load.
app/
layout.tsx # fonts, metadata
page.tsx # section composition
globals.css # Tailwind v4 theme tokens, utilities, ambient glow
icon.svg # favicon
components/
header.tsx # sticky nav + mobile menu
hero.tsx # about section, portrait, stats
values.tsx # interactive values pill switcher
timeline.tsx # scroll-drawn career timeline
projects.tsx # expandable project cards
social-links.tsx # icon pills
icons.tsx # stroke-matched social SVGs (X, Cosign custom)
reveal.tsx # shared fade-up reveal + section headings
lib/
data.ts # ← all site content lives here
public/
images/nagendra.jpg
Nagendra-Posani-Resume.pdf
lib/data.ts.profile, socials, values, timeline, projects, or stats.npm run dev to preview, then push — Pages redeploys automatically.Replace the portrait by swapping public/images/nagendra.jpg (square crops best), and the résumé by replacing public/Nagendra-Posani-Resume.pdf.