Commit Graph
172 Commits
Author SHA1 Message Date
dong.nguyen d7ef4a28e4 feat(nav+cta): deep accent fill for light CTA text in dark mode, rotating palette swatch
- index.css: --accent-solid / -hover / -active plus --text-on-accent-solid in all
  five palette blocks; the two light blocks duplicate the plain accent values
  verbatim so light mode does not move
- App.css: .btn-primary and .badge-accent take the solid fill with light text and
  a 1px --accent border; hover and active deepen instead of brightening
- ThemePaletteMenu.tsx: the swatch is a motion.span, rotate 90 while the palette
  submenu is open, 0 otherwise; reduced motion stays global (main.tsx)
- language control unchanged (owner decision Q1: keep EN/VI)
- docs: new spec-v3-nav-cta-enhancements.md v0.2.0, palette spec to v0.4.0,
  AGENTS.md accent-tier and rotation bullets

Gates: tsc -b exit 0, oxlint 19 findings (baseline held), 0 hex/rgba in App.css,
vite build green (CSS 33.48 kB), SSR smoke 7/7.
2026-10-17 14:02:16 +07:00
dong.nguyen 9f6db009e4 fix(experience): senior engineer wording in the career-gap entry 2026-10-17 10:30:02 +07:00
dong.nguyen d0aa9958c8 feat(nav): mobile sheet + shared bar control chrome (v3 mobile navigation)
MobileMenu.tsx: conditional-mounted glass sheet (94% + blur(12px)), three labelled groups, staggered rows, Mode/Language/Theme-color segmented rows, Connect tiles, safe-area padding, overscroll contain.

Navigation.tsx: honest dialog - Escape on document, inert on #main-content/.footer/.back-to-top, focus restore guarded by offsetParent, matchMedia close above 1024px, icon morph, navPaths from data; route-change close effect deleted.

SocialLinks: single data-driven renderer (src/data/social.ts + strings.social.aria); Hero and Footer cut over; mailto without target/rel; dead .social-link span rule removed; hero/footer centering scoped.

Bar: .nav-control shared chrome for mode/language/theme-color, icon-only 20px half-circle palette trigger at every width, <=420px bar guard; .nav glass 85% -> 94%.

Docs: spec-v3-mobile-navigation.md v0.5.0 (Q14 recorded, gates re-run 16/16 SSR), spec-ui-layout.md and AGENTS.md corrected.
2026-10-17 10:27:36 +07:00
dong.nguyen f2c920d6ad feat(theme): red/blue palette switch with a nav + mobile-sheet color menu
Second axis on <html>: data-palette (Portfolio type Palette = 'red' | 'blue',
localStorage key portfolio-palette, default red so existing visitors see no
change). Both attributes are written before paint by the index.html init
script and re-written during render in useTheme.

- src/types/index.ts, src/data/palettes.ts: Palette + paletteIds/paletteMeta
  (Record<Language, string>, indexed inline - no lookup helper)
- src/hooks/useTheme.tsx: palette state, data-palette write during render,
  persistence, setPalette; no cyclePalette
- src/components/layout/ThemePaletteMenu.tsx: disclosure semantics
  (aria-expanded/aria-controls, aria-current), variant nav|sheet, panel ids
  derived from variant, Escape closes and refocuses the trigger
- src/components/layout/Navigation.tsx: nav instance in .nav-actions, sheet
  instance after the mobile link list, remounted closed via key
- src/index.css: blue dark/light blocks (0,3,0 selectors) + preview tokens;
  red --accent-soft/--accent-glow re-derived from the accent in force
- src/App.css: .nav-palette* block (token-only), nav hidden at 1024px,
  sheet options inline
- specs: palette-switch spec v0.3.0 with the implementation record; corrected
  the false AA claim in spec-v3-theme-colors.md (3.90:1, not ~4.8), the
  composite values in spec-v3-theme-palette-gasatrya.md, the Footer consumer
  claim in spec-v3-theme-switch.md; AGENTS.md Theming section documents the
  palette axis

Verified: tsc exit 0; vite build green (CSS 31.80 kB); oxlint unchanged at
11 errors / 9 warnings; hex gate over src/App.css 0 matches; inline type
styles 0; contrast minima 4.96 / 4.63 / 4.81 / 4.64 with zero AA failures.
2026-10-17 00:32:49 +07:00
dong.nguyen 5b4b301ef1 docs(specs): record the timeline pass, variant model and resume undefined fix
- AGENTS.md: data layer now names ExperienceEntry.variant ('current' | 'gap'); Card dropped
  from the ui/ component list (deleted in d172843)
- spec-ui-components.md: Card section replaced with a removal note (component + .card* rules
  deleted; remaining cards are section-specific classes)
- spec-ui-experience.md: structure tree used the dropped `current: true` flag -> composed class
- spec-v3-typography.md: achievement rules marked deleted, dead-CSS list extended, Experience
  TSX row marked superseded, new 4.4 covering the timeline pass and the resume generator fix
- spec-v3-resume-improvements.md: Bugs Fixed row 2 for
  "${exp.achievements?.map(...).join('')}" printing the literal "undefined"; malformed table
  separator repaired
- spec-v2-resume-playwright.md: acceptance row 4 notes the achievements branch is now a
  guarded no-op
- spec-v3-i18n.md: experience.ts data row and the Experience strings rows updated
  (achievements dropped, relax-gap added, experience.tldr / tldrText recorded)
- spec-v3-theme-palette-gasatrya.md: lint baseline annotated 15/9 -> 11/9
2026-10-16 23:22:20 +07:00
dong.nguyen 166eb171b5 feat(experience): timeline status + career-break nodes, TLDR terminal node, prose measures
Timeline structure
- Spine drawn per node (.timeline-entry::before) instead of one line on .timeline, so it ends at
  the TLDR diamond; marker and spine centres coincide at x=6 (gutter 36 desktop / 28 mobile)
- TLDR terminal node: markup in ExperiencePage + Experience section, copy in i18n/strings.ts
  (experience.tldr / experience.tldrText), CSS .timeline-tldr* (stub, accent link, hollow
  diamond, chip, text)
- ExperienceEntry gains variant?: 'current' | 'gap'; the class is composed in JSX rather than
  hard-coding entry ids

Node decoration
- current node: TLDR-family panel (--bg-surface, 1px --border, radius-lg, whisper shadow) with a
  2px accent left edge, real entry padding (16/18/20, mobile 14/16/18) and a pulsing marker;
  mobile pulse capped at 6px spread so the ring never touches the panel border
- gap node: dashed spine (repeating-linear-gradient), 10px muted marker, no divider,
  italic-muted title and company

Data
- New relax-gap entry (Aug 2026 – Oct 2026) between open-to-work and lazada-senior-swe; unique
  entry ids; Nexts and SAP bullets aligned across VI/EN

Typography
- Add --measure-page (680px); .prose-wide / .lede-wide; .page-body 700 -> 680; philosophy grid
  3 columns, 2 at <=1024px

Cleanup
- Achievements dropped from the SPA timeline and their dead .achievement* rules deleted
  (.achievement-metric kept: projects pages still use it)

Resume generator
- "${exp.achievements?.map(...).join('')}" short-circuited the whole chain and printed the
  literal "undefined" in every PDF once an entry had no achievements; now (exp.achievements ?? [])

Docs: spec-ui-experience.md, spec-v3-typography.md, AGENTS.md

Verified: tsc -b clean; vite build green; oxlint 11 errors / 9 warnings (HEAD baseline was 15/9 —
the four that disappeared were the achievements markup findings); pnpm build:resume-all renders
both PDFs with the new ordering and no "undefined".
2026-10-16 23:14:52 +07:00
dong.nguyen d172843738 style(ui): finish v3 typography sweep - inline type styles to classes
PhilosophyPage: prose column, paragraph spacing, no nested <p>, aria-labelledby wired to a real SectionHeading id.

About/AboutPage, ProjectDetailPage, Experience/ExperiencePage, Contact/ContactPage, Projects, DownloadResume: inline fontSize/lineHeight/fontWeight/color/maxWidth replaced by .prose, .prose-lede, .page-body, .subheading, .project-section, .back-link, .section-cta, .link-label, .contact-link-sub, .achievement-impact, .achievement-metrics.

App.css: add .download-resume-button as a variant of .contact-link. index.css: drop leftover .container-narrow from two responsive selector lists. Delete dead ui/Card.tsx and its barrel export.

Specs: typography progress marked done with the verification log; .skip-link orphan closed in both v3 specs (strings.skipLink is gone too).

tsc -b exit 0; vite build 538 modules / 24.86 kB CSS; built CSS carries every new class and none of the deleted selectors; oxlint diagnostics identical to HEAD (15 errors / 9 warnings, all pre-existing).
2026-10-16 21:29:40 +07:00
dong.nguyen c1e64eabbd added red theme 2026-10-16 21:14:59 +07:00
dong.nguyen 41b40653c7 updated resume pdf generation 2026-10-15 15:00:22 +07:00
dong.nguyen 0e34db7964 updated philosophy 2026-10-15 01:23:33 +07:00
dong.nguyen da320284a5 fixed contact page 2026-10-15 01:15:09 +07:00
dong.nguyen 0d6890d1b9 updated rules in AGENTS.md 2026-10-15 00:18:34 +07:00
dong.nguyen 0718151c42 fixed resume photo 2026-10-14 23:46:11 +07:00
dong.nguyen 71bf3fe090 fixed name in resume pdf 2026-10-14 23:34:50 +07:00
dong.nguyen 67255173f8 updated navigation 2026-10-14 23:11:36 +07:00
dong.nguyen 5159607702 fixed hero background 2026-10-14 20:28:13 +07:00
dong.nguyen b6c96fe16a updated download button 2026-10-14 19:56:02 +07:00
dong.nguyen 16925dc5d6 changed hero button 2026-10-14 19:37:10 +07:00
dong.nguyen 4996a91a77 fix(i18n): complete phase 1 - translate section tags, replace lang checks, dedup download component
- Replace hardcoded SectionHeading tags with i18n strings (7 files)
- Replace 17 lang === 'vi' checks with useField/useFieldArray hooks
- Extract shared DownloadResumeDropdown component (Hero + DownloadResume)
- Move langLabels to src/data/resume.ts as resumeLanguageLabels
- Update feedback docs with resolution status
2026-10-14 14:50:27 +07:00
dong.nguyen 72a832c781 support multi languages 2026-10-14 11:15:48 +07:00
dong.nguyen ca8ff2f983 docs: update AGENTS.md to reflect current project state
- Add motion, playwright, tsx to Tech Stack
- Add build:resume/build:resume-all commands
- Update theming: remove system variant, document resolvedTheme
- Add resume.ts to Data Layer
- Add new components (HeroParticles, DownloadResume, Typewriter, AnimatedSection, InView, RollingTextLink, BackToTop)
- Add useClickOutside hook
- Add Motion & Animation section
- Add External Assets section
- Add Scripts section
- Add nginx.conf and docker-compose.yaml to Deployment
- Remove obsolete system theme gotchas
- Add motion/react import gotcha
- Add v3 specs to Design Specs
2026-10-13 16:45:54 +07:00
dong.nguyen b58e3ce306 fixed theme switch 2026-10-13 15:57:16 +07:00
dong.nguyen 58941f6001 fix(theme): simplify theme cycle to dark/light and improve initial load
- Remove 'system' from Theme type (now 'dark' | 'light')
- Fix cycle to predictable dark -> light -> dark -> light
- Replace getStoredTheme with getInitialTheme
- Initial load: check localStorage, detect system theme, fallback dark
- Simplify resolveTheme (no longer needs system branch)
- Remove unused getSystemTheme function
- Add spec-v3-theme-switch.md
2026-10-13 14:56:20 +07:00
dong.nguyen cce04a6e78 feat(theme): improve dark theme palette and soften light theme
- Dark theme: shift from near-black (#0a0a0a) to deep slate (#0f1117)
- Dark theme: softer text colors for reduced eye strain
- Dark theme: add missing --error variable to default :root
- Light theme: soften from pure white to off-white (#ececee)
- Light theme: add contrast to --bg-surface (#e0e0e3)
- Remove gradient background (caused flicker on scroll)
- Add position: relative to .hero for stacking context
- Update spec-v3-theme-colors.md with correct implementation
2026-10-13 14:28:22 +07:00
dong.nguyen 3d28d8523b update project rules prompt description 2026-10-13 13:58:43 +07:00
dong.nguyen 6e221856a9 remove opacity effect for hero section 2026-10-13 13:30:39 +07:00
dong.nguyen 437c996002 fix scroll indicator for mobile screen 2026-10-13 13:21:29 +07:00
dong.nguyen 21311d311d feat: add lazer border effect to download resume buttons
- Add rotating conic gradient border animation using pure CSS
- Apply to both Hero section dropdown and Contact section dropdown
- Shared wrapper for proper positioning context
- Flex layout for correct height calculation
- Respects prefers-reduced-motion
2026-10-13 13:10:56 +07:00
dong.nguyen f1d249061e fix scroll indicator and download button 2026-10-13 10:22:10 +07:00
dong.nguyen a783791513 fix social link border color in light mode 2026-10-13 01:01:09 +07:00
dong.nguyen dd22f3be3a feat(ui): v3 enhancements - hero photo, particles, mobile responsive
- Hero photo: circular shape, object-position center top, transparent background
- Hero particles: bigger (6-16px), more visible (opacity 0.8)
- Mobile: hide hero photo, transparent hero content, fix text/social link colors
- Mobile social links: darker border in light mode
- Update spec docs and all section components for v3 UI
2026-10-13 00:24:12 +07:00
dong.nguyen a303d98e41 docs: add v3 UI enhancements spec with implementation tracking 2026-10-12 18:06:04 +07:00
dong.nguyen c5a94ce5c9 enhanced mobile screen 2026-10-12 17:50:51 +07:00
dong.nguyen e60179c8eb fix(hero): add gap between mobile download buttons
- Add flex layout with 16px gap to hero-download-mobile and download-resume-mobile
- Remove inline style, use CSS only
2026-10-12 16:19:55 +07:00
dong.nguyen 20dfbe9125 fix(hero): improve mobile text readability
- Increase overlay opacity from 0.55 to 0.75
- Use brighter text colors on mobile: #ffffff for name, #e0e0e0 for title/tagline
2026-10-12 16:06:31 +07:00
dong.nguyen 76679922fe fix(resume): match dropdown summary to btn-secondary style
- Update .download-resume-summary to use same CSS as btn-secondary
- Remove hero-specific font-size overrides
- Consistent look with View Projects and Contact Me buttons
2026-10-12 16:00:57 +07:00
dong.nguyen cb50bb2cb4 docs: add rule 6 — never auto-commit or auto-push without approval 2026-10-12 15:44:56 +07:00
dong.nguyen 6b5c03e47a docs: clean up resume PDF specs - remove deferred items
- spec-v2-resume-future.md: v0.3.0 - only keep Version Stamping and
 Multiple Language Versions, mark both as implemented
- spec-v2-resume-playwright.md: v0.6.0 - remove Future Enhancements
 table, mark Download Resume UI as implemented
2026-10-12 15:40:57 +07:00
dong.nguyen c8f86aea90 feat(resume): add dropdown for download on desktop, 2 buttons on mobile
- DownloadResume: single dropdown button on desktop (≥769px),
  2 separate buttons on mobile (<769px)
- Hero CTA: same pattern — dropdown on desktop, 2 buttons on mobile
- Use native <details>/<summary> for dropdown — no React state needed
- CSS: dropdown with chevron animation, hover states, breakpoint-based
  visibility toggle
- Mobile: keep existing 2-button layout with language labels
2026-10-12 15:31:28 +07:00
dong.nguyen 1b5c55fbaf docs: update resume PDF specs — add Download Resume UI and mark items implemented
- Add Download Resume UI spec: single button with dropdown on desktop,
  2 separate buttons on mobile (≥769px breakpoint)
- Mark Version Stamping and Multiple Language Versions as implemented
  in both spec files
- Add implementation details for version stamping and i18n in future spec
- Future spec version 0.2.0 — Partial (2/4 implemented)
2026-10-12 15:23:23 +07:00
dong.nguyen 1f20f36180 fix action version 2026-10-12 14:56:48 +07:00
dong.nguyen 0297c18bad feat(resume): add version stamping and bilingual EN/VN PDF support
- Add version stamp footer 'Last updated: YYYY-MM-DD' to PDF
- Implement bilingual support (English + Vietnamese) for resume PDF
  - Add Language type and *En optional fields to types
  - Add Vietnamese translations to profile, experience, projects data
  - resolveField utility for language-aware field resolution
  - Language-specific section labels (Experience/Kinh nghiệm, etc.)
  - --lang CLI arg: 'en' (default) or 'vi'
  - Output: resume.pdf (EN), resume-vi.pdf (VI)
- Update CI workflow to generate and deploy both PDF versions
- Add build:resume-all npm script
- Update UI components (Hero, DownloadResume) for language selection
- Add spec-v2-resume-future.md for deferred enhancements
- Refactor spec-v2-resume-playwright.md (condense implementation notes)
2026-10-12 14:50:17 +07:00
dong.nguyen 26af25a39d feat(resume): Phase 2 CI integration for PDF generation
- Split deploy.yml into 3 jobs: build, generate-resume, deploy
- generate-resume job: Playwright cache, chromium install, PDF generation
- deploy job: download both static-site and resume-pdf artifacts
- Add build:resume convenience script in package.json
- Artifact retention: site 5 days, PDF 30 days
2026-10-11 00:55:00 +07:00
dong.nguyen d6ef0bd93f feat(resume): Phase 1 PDF generation with Playwright
- Add playwright and tsx as devDependencies
- Create scripts/generate-resume.ts (build script)
- Create public/resume-template.html (A4 layout, embedded fonts)
- Download Inter fonts (4 weights: Regular, Medium, SemiBold, Bold)
- Update src/data/resume.ts (hardcoded resumeAvailable)
- Update spec-v2.md overview table
- Add spec-v2-resume-playwright.md (Phase 1+2 spec)
- Add spec-v2-resume-puppeteer.md (alternative spec)
- Add pnpm-workspace.yaml (allow esbuild builds)
2026-10-11 00:53:10 +07:00
dong.nguyen 459781d251 updated docu 2026-10-10 14:14:05 +07:00
dong.nguyen ef3977f4be updated docu 2026-10-10 14:02:47 +07:00
dong.nguyen adbe4aeff2 clean code 2026-10-10 13:38:22 +07:00
dong.nguyen 985ad84421 debug rsync 2026-10-10 13:33:15 +07:00
dong.nguyen dd88b4dfe7 test vps deployment 2026-10-10 13:26:56 +07:00
dong.nguyen 6bd11a3d05 test vps deployment 2026-10-10 13:23:17 +07:00