Enhance card styling system with priority, secondary variants and improved hover effects - #46
Open
JamesDeRaja wants to merge 2 commits into
Open
Enhance card styling system with priority, secondary variants and improved hover effects#46JamesDeRaja wants to merge 2 commits into
JamesDeRaja wants to merge 2 commits into
Conversation
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a comprehensive redesign of the card styling system, adding new card variants (
.card-priorityand.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).glass-card-hover: Added more prominent neon glow effects with layered shadows and border color transitions.card-priorityvariant: Featured/most important card style with:.card-secondaryvariant: Recessive card style with:.bento-elevatedhover: Increased transform lift from-2pxto-4pxand enhanced shadow depthComponent Updates (
BentoCard.tsx)roundedprop with typeBentoRounded('2xl' | 'xl' | 'lg') for flexible border radius controlvariantMapwith improved border widths and opacity values for better visual consistencyglowMapwith stronger hover effects including lift animations (-translate-y-1) and more prominent color glowsroundedMapfor centralized border radius managementSection & Component Refactoring
.card-priorityand.card-secondaryclasses; updated motion animations.card-prioritywith enhanced spring animations; non-featured use.glass-card-hover.rounded-2xl; others use.rounded-xl.card-priorityfor the main section headerroundedvalues (xl, lg, 2xl)Notable Implementation Details
stiffness: 300-350, damping: 20-22) for featured/priority cards vs. standard duration-based animationshttps://claude.ai/code/session_019DiQ1Gdx6zUMSpZeSDb7jK