Skip to content

refactor(writings): redesign home writings section and article card#121

Merged
hanihusam merged 3 commits into
stagingfrom
refactor-writings-section
May 20, 2026
Merged

refactor(writings): redesign home writings section and article card#121
hanihusam merged 3 commits into
stagingfrom
refactor-writings-section

Conversation

@hanihusam

Copy link
Copy Markdown
Owner

Summary

  • Redesign home page to focus on Hero + Recent Writing sections (remove About, Services, CTA sections)
  • Fix BlurrableImage so blur overlay sits on top and crossfades out when the real image loads
  • Fix footer mobile layout: remove bottom-18 visual hack, use pb-24 on LayoutRoot to properly clear the floating navbar
  • Add ClipboardCopyButton on article card with blur crossfade animation between copy/check icons
  • Add image scale-up animation on article card hover (group-hover:scale-105) with overflow-hidden clipping and motion-safe: reduced motion support
  • Consolidate Spacer sizes to sm/md/lg scale
  • Refactor Header to use H2 + ButtonLink with ghost variant for CTA

Test plan

  • Home page renders Hero + Recent Writing sections correctly
  • Article card image blur placeholder fades out when real image loads
  • Article card image scales up on hover and stays clipped within rounded corners
  • Clipboard copy button crossfades between copy and check icons on click
  • Footer appears above floating navbar on mobile (no overlap)
  • Footer layout is correct on desktop
  • Reduced motion: no scale/transition animations when prefers-reduced-motion: reduce is set

hanihusam added 3 commits May 20, 2026 16:39
- Simplify home page to focus on hero + recent writing sections
- Fix BlurrableImage so blur overlay sits on top and crossfades out on load
- Fix footer mobile layout: remove bottom-18 hack, use pb-24 on LayoutRoot
- Update ArticleCard: use Text/overline for metadata with correct block display
- Refactor Header to use H2 + ButtonLink with ghost variant for CTA
- Consolidate Spacer sizes to sm/md/lg scale
…mation

- Add ClipboardCopyButton overlay on article card image (top-left)
- Implement blur crossfade between copy/check icons on state transition
- Add active:scale-[0.97] press feedback on the button
- Fix Button className ordering so base styles apply after variant/size
- Swap Link for AnchorOrLink and update imports to use @/ alias
- Scale image to 1.05 on card hover using group-hover
- Add overflow-hidden to BlurrableImage container to clip scaled image
- Use will-change-transform for GPU acceleration
- Wrap all animation classes in motion-safe: for reduced motion support
@sonarqubecloud

Copy link
Copy Markdown

@hanihusam hanihusam merged commit 68d7526 into staging May 20, 2026
3 checks passed
@hanihusam hanihusam deleted the refactor-writings-section branch May 20, 2026 13:11
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