-
Notifications
You must be signed in to change notification settings - Fork 44
feat: roadmap path card style changes #521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: roadmap path card style changes #521
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Overview
This PR introduces style updates for the roadmap path card, including new custom icon components and updated UI styling and layout for the study path question cards.
- Added new Check and ERemove icon components.
- Updated styling in the StudyPathQuestionCard component to include dynamic border colors and animations.
- Adjusted the offset calculation in the StudyPathsList for repositioning question cards.
Reviewed Changes
| File | Description |
|---|---|
| src/components/ui/icons/check.tsx | Introduced a new Check component with customizable props. |
| src/components/ui/icons/e-remove.tsx | Introduced a new ERemove component for error state icons. |
| src/components/app/study-paths/study-path-question-card.tsx | Refactored question card layout and replaced lucide-react icons with newly created icon components. |
| src/components/app/study-paths/list.tsx | Updated container styling and modified the offset calculation for positioning cards. |
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
src/components/app/study-paths/list.tsx:41
- [nitpick] Verify that the updated offset calculation meets the intended design, as changing the multiplier values significantly increases the offset compared to the previous implementation.
const offsetValue = calculateOffset ? calculateOffset(index) : Math.sin(index * 2.5) * 25;
src/components/ui/icons/check.tsx
Outdated
|
|
||
| function Check(props: iconProps) { | ||
| const fill = props.fill || 'currentColor'; | ||
| const secondaryfill = props.secondaryfill || fill; |
Copilot
AI
Mar 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable 'secondaryfill' is defined but not used within the Check component. Consider removing it to simplify the code unless future enhancements require it.
| const secondaryfill = props.secondaryfill || fill; |
No description provided.