Skip to content

Enhance card styling system with priority, secondary variants and improved hover effects - #46

Open
JamesDeRaja wants to merge 2 commits into
mainfrom
claude/card-visual-hierarchy-5RBJ2
Open

Enhance card styling system with priority, secondary variants and improved hover effects#46
JamesDeRaja wants to merge 2 commits into
mainfrom
claude/card-visual-hierarchy-5RBJ2

Conversation

@JamesDeRaja

Copy link
Copy Markdown
Owner

Summary

This PR introduces a comprehensive redesign of the card styling system, adding new card variants (.card-priority and .card-secondary), enhancing hover interactions across components, and improving visual hierarchy through better border treatments and shadow effects.

Key Changes

CSS Styling (src/index.css)

  • Enhanced .glass-card-hover: Added more prominent neon glow effects with layered shadows and border color transitions
  • New .card-priority variant: Featured/most important card style with:
    • 2px solid neon borders with gradient backgrounds
    • Enhanced hover states with stronger glow and lift effects
    • Light mode support with adjusted colors and shadows
  • New .card-secondary variant: Recessive card style with:
    • 1px dashed borders for visual distinction
    • Subtle hover effects
    • Light mode support
  • Improved .bento-elevated hover: Increased transform lift from -2px to -4px and enhanced shadow depth

Component Updates (BentoCard.tsx)

  • Added rounded prop with type BentoRounded ('2xl' | 'xl' | 'lg') for flexible border radius control
  • Updated variantMap with improved border widths and opacity values for better visual consistency
  • Enhanced glowMap with stronger hover effects including lift animations (-translate-y-1) and more prominent color glows
  • Added roundedMap for centralized border radius management

Section & Component Refactoring

  • XRLabSection: Migrated cards to use new .card-priority and .card-secondary classes; updated motion animations
  • WorkCard: Featured projects now use .card-priority with enhanced spring animations; non-featured use .glass-card-hover
  • WritingSection: First post (featured) uses enhanced spring animations with .rounded-2xl; others use .rounded-xl
  • ShippedTitlesSection: Updated to use .card-priority for the main section header
  • EvidenceCard: Enhanced hover animations with scale and improved spring physics
  • BentoCard implementations: Updated all instances to specify appropriate rounded values (xl, lg, 2xl)

Notable Implementation Details

  • Consistent use of spring-based animations (stiffness: 300-350, damping: 20-22) for featured/priority cards vs. standard duration-based animations
  • Layered shadow system with multiple rgba layers for depth and glow effects
  • Light mode support maintained across all new variants with appropriate color adjustments
  • Transition properties explicitly defined for smooth border-color and box-shadow changes

https://claude.ai/code/session_019DiQ1Gdx6zUMSpZeSDb7jK

Three-tier card system with dotted borders for secondary/dim cards,
thick colored borders + tinted bg for priority cards, and shape variety
(rounded-2xl → xl → lg) to create visual dynamism. Hover effects now
pop with spring physics on priority cards and stronger neon glows on
all bento cards.

https://claude.ai/code/session_019DiQ1Gdx6zUMSpZeSDb7jK
@vercel

vercel Bot commented Apr 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
portfolio Ready Ready Preview, Comment Apr 26, 2026 7:25pm

Extends the page-card / page-card-sm / page-card-accent system to all
case study and lab pages. Colored accent cards use border-2 with themed
color (neon, emerald, red, amber). Secondary items use dashed borders
via page-card-sm. Evidence images get dashed borders. Tables and teaches
cards use standard page-card treatment. Adds CSS classes to index.css
for light-mode support.

https://claude.ai/code/session_019DiQ1Gdx6zUMSpZeSDb7jK
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.

2 participants