Skip to content

fix(mobile): improve responsive layout across portfolio sections#2

Merged
anhvuFE merged 1 commit into
mainfrom
fix/mobile-responsive-layout
May 3, 2026
Merged

fix(mobile): improve responsive layout across portfolio sections#2
anhvuFE merged 1 commit into
mainfrom
fix/mobile-responsive-layout

Conversation

@anhvuFE
Copy link
Copy Markdown
Owner

@anhvuFE anhvuFE commented May 3, 2026

Summary

  • Certificate: replaced broken transform-based slider on mobile with native horizontal scroll-snap (touch swipe + prev/next buttons + snap to center)
  • Contact: title now scales with clamp(2rem, 5vw + 1rem, 3rem); form card padding reduced from 32px to 16px on mobile
  • Qualification: Timeline switches from alternate to right position on mobile (was leaving 50% blank); tab font/padding shrunk so 2 tabs fit without overflow
  • Footer: brand section, Quick Links, and Contact Info now center their content on mobile (heading underline, social icons, link list, contact items); copyright year hardcoded to 2025
  • GitHub Activity: calendar block size, font, and margin shrunk on mobile (~30% narrower); added right-edge fade gradient as a horizontal-scroll hint

Files changed

  • src/components/certificate/Certificate.tsx
  • src/components/contact/Contact.tsx
  • src/components/contact/contact.css
  • src/components/footer/Footer.tsx
  • src/components/github/GitHubActivity.tsx
  • src/components/qualification/Qualification.tsx

Test plan

  • Open localhost:3000/portfolio on iPhone 14 Pro Max viewport (430x932)
  • Certificate: swipe ngang, bấm prev/next, card snap về giữa, loop khi đến cuối
  • Contact: tiêu đề "Let's Connect" không bị quá to; form không bị nén
  • Qualification: timeline cards căn về phải, tabs không tràn
  • Footer: 3 cột brand / quick links / contact info đều center; copyright = 2025
  • GitHub: lịch contributions vuốt ngang được, có fade hint bên phải
  • Desktop view (>= 900px) không bị regress

- certificate: replace broken transform-based slider with native
  horizontal scroll-snap on mobile, restore prev/next buttons
- contact: scale title with clamp, reduce form card padding on mobile
- qualification: switch Timeline to right position on mobile, shrink
  tab font/padding to prevent overflow
- footer: center brand/quick links/contact info content on mobile,
  set copyright year to 2025
- github: shrink calendar block size on mobile, add fade gradient
  hint for horizontal scroll
@anhvuFE anhvuFE merged commit 0ea22ef into main May 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant