Skip to content

redesign experience section with compact card layout - #31

Merged
aagra109 merged 2 commits into
mainfrom
redesign-experience-section
May 15, 2026
Merged

redesign experience section with compact card layout#31
aagra109 merged 2 commits into
mainfrom
redesign-experience-section

Conversation

@aagra109

@aagra109 aagra109 commented May 15, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • Style
    • Updated color palette with new terracotta and ink-deep themes
    • Redesigned Experience section layout with improved typography and spacing
    • Removed section divider element for cleaner visual flow
    • Enhanced animations and motion effects

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 15, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

This PR refactors the portfolio's design system and Experience section: new color tokens (terracotta, ink-deep, paper variants) and shadow presets are added to Tailwind and CSS; the SectionDivider component and paper-grain utility are removed; and the Experience component is refactored with Framer Motion viewport animations, grid-based point lists, and a right-column tech stack layout.

Changes

Design System and Experience Component Refactor

Layer / File(s) Summary
Design system: color and shadow tokens
tailwind.config.ts, src/app/globals.css
New Tailwind color tokens (paper with DEFAULT/card/border/muted/copy variants, terracotta, ink-deep with DEFAULT/card variants) and box shadows (card, card-hover) are added; obsolete --paper-foreground CSS variable is removed; new CSS custom properties --terracotta, --ink-deep, and --ink-deep-card are introduced.
Layout cleanup: remove SectionDivider and update grain utility
src/components/SectionDivider.tsx, src/app/globals.css, src/app/page.tsx
SectionDivider component file is deleted; .paper-grain utility class is removed and .hero-grain is updated with new gradient and background-size values; SectionDivider import is removed from page.
Experience component: animation, layout, and tech stack refactor
src/components/Experience.tsx, src/app/page.tsx
Experience refactors from Card/CardContent to motion.article with ROW_VIEWPORT-based animation constants (rowInitial, POINTS_VIEWPORT, MOTION_EASE) that animate opacity and y-offset; points switch to CSS grid layout with colored dot indicator; tech stack moves to a right-side lg-breakpoint column with border and updated pill styling; Experience is rendered directly in page.tsx without wrapper.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • aagra109/portfolio#29: Overlaps with SectionDivider.tsx refactoring and grain utility styling in globals.css.
  • aagra109/portfolio#24: Shares visual theme updates in globals.css and page.tsx decorative element changes.

Poem

🐰 A portfolio freshens with terracotta hues,
Motion whispers through grids, no dividers to lose,
Cards leap to articles, tech stacks find home,
New shadows dance softly—a redesigned roam.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'redesign experience section with compact card layout' accurately describes the main change: refactoring the Experience component with a new compact card-based layout and removing the SectionDivider wrapper.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch redesign-experience-section

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Repository owner deleted a comment from coderabbitai Bot May 15, 2026
@aagra109

Copy link
Copy Markdown
Owner Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented May 15, 2026

Copy link
Copy Markdown
✅ Actions performed

Full review triggered.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
tailwind.config.ts (1)

73-77: 💤 Low value

Consider using CSS variables for shadow values.

The shadow definitions use hardcoded rgba values, while the color tokens use CSS variables. This makes the shadows less flexible for theming. You could define --shadow-card-color and --shadow-card-hover-color in globals.css for consistency, though the current approach works fine.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tailwind.config.ts` around lines 73 - 77, Replace the hardcoded rgba values
in the tailwind config's boxShadow entries (boxShadow.card and
boxShadow["card-hover"]) with CSS variables (e.g. var(--shadow-card-color) and
var(--shadow-card-hover-color)) and update the shadow strings to use those
variables so themes can override them; also add corresponding CSS variable
definitions (e.g. --shadow-card-color, --shadow-card-hover-color) in your global
stylesheet so the values can be themed consistently across the app.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@tailwind.config.ts`:
- Around line 73-77: Replace the hardcoded rgba values in the tailwind config's
boxShadow entries (boxShadow.card and boxShadow["card-hover"]) with CSS
variables (e.g. var(--shadow-card-color) and var(--shadow-card-hover-color)) and
update the shadow strings to use those variables so themes can override them;
also add corresponding CSS variable definitions (e.g. --shadow-card-color,
--shadow-card-hover-color) in your global stylesheet so the values can be themed
consistently across the app.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 2a0199c8-c035-4ca0-a7f7-222e26ec4f62

📥 Commits

Reviewing files that changed from the base of the PR and between 1185afa and 9284655.

📒 Files selected for processing (5)
  • src/app/globals.css
  • src/app/page.tsx
  • src/components/Experience.tsx
  • src/components/SectionDivider.tsx
  • tailwind.config.ts
💤 Files with no reviewable changes (1)
  • src/components/SectionDivider.tsx

@aagra109
aagra109 merged commit 36e2829 into main May 15, 2026
3 checks 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