Skip to content

refactor: update component styles and structure for improved consistency and responsiveness#107

Merged
Alexandrbig1 merged 1 commit into
OpenCodeChicago:mainfrom
AparAgarwal:feature/responsive-products
Oct 10, 2025
Merged

refactor: update component styles and structure for improved consistency and responsiveness#107
Alexandrbig1 merged 1 commit into
OpenCodeChicago:mainfrom
AparAgarwal:feature/responsive-products

Conversation

@AparAgarwal
Copy link
Copy Markdown
Contributor

This pull request focuses on improving the visual consistency and responsiveness of the product listing and related sections. The changes modernize typography, spacing, and layout for better usability and alignment across devices, while also refining component props and removing unused CSS.

Key changes include:

UI/UX and Layout Improvements

  • Updated section headings across components (CollectionSection, SupplementForGoalsSection, WhyChoose, RecentlyViewed) to use consistent styles, colors, and markup, and removed old heading-specific CSS in favor of utility classes.
  • Improved grid and spacing for product and recently viewed sections to ensure better responsiveness and tighter layouts, especially on mobile.

Product Card and Grid Enhancements

  • Refined ProductCard image container to use object-cover, absolute positioning, and consistent aspect ratio, improving image presentation and responsiveness.

Sorting and Filtering Toolbar

  • Enhanced SortDropdown to accept a className prop, improved button and dropdown responsiveness, and made the label truncation and layout more mobile-friendly.

Code and CSS Cleanup

  • Removed unused CSS for old heading styles and text outline utilities, consolidating to utility-first and component-based styling.

These updates collectively improve the user interface, ensure consistency across sections, and simplify the codebase for future enhancements.

@AparAgarwal
Copy link
Copy Markdown
Contributor Author

@Alexandrbig1, please review the recent changes when you have a moment. I've made several styling adjustments to ensure visual consistency across components, and I've also implemented responsive design improvements on the product page to enhance usability on different screen sizes.

Copy link
Copy Markdown
Contributor

@Alexandrbig1 Alexandrbig1 left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution, and congrats on your PR being approved!
We’re excited to have your work as part of Open Code Chicago’s Hacktoberfest 2025 project.

@Alexandrbig1 Alexandrbig1 added frontend Tasks related to the frontend (React, Vite, TailwindCSS, UI components, pages) hacktoberfest Special issue for Hacktoberfest hacktoberfest-2025 Special issue for Hacktoberfest 2025 hacktoberfest-accepted This label indicates that a contribution has been accepted and counts toward Hacktoberfest rewards. react React components & UI logic tailwind Tailwind CSS & styling labels Oct 10, 2025
@Alexandrbig1 Alexandrbig1 added this to the Hacktoberfest 2025 milestone Oct 10, 2025
@Alexandrbig1 Alexandrbig1 merged commit d94768e into OpenCodeChicago:main Oct 10, 2025
2 checks passed
@Alexandrbig1
Copy link
Copy Markdown
Contributor

@AparAgarwal, great work! Apar, may I ask you for a few minor issues, please:

  • to add a mark on the default 'Feature' filter;
  • Add a cursor pointer when hovering over the 'All Filters' and 'Sort' tabs, please.

def
cur
cur2

@Alexandrbig1
Copy link
Copy Markdown
Contributor

@AparAgarwal, also, you can ask the all-contributor bot to add you bugs label as well.

@AparAgarwal
Copy link
Copy Markdown
Contributor Author

@all-contributors please add @AparAgarwal for bug

@allcontributors
Copy link
Copy Markdown
Contributor

@AparAgarwal

I've put up a pull request to add @AparAgarwal! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Tasks related to the frontend (React, Vite, TailwindCSS, UI components, pages) hacktoberfest Special issue for Hacktoberfest hacktoberfest-2025 Special issue for Hacktoberfest 2025 hacktoberfest-accepted This label indicates that a contribution has been accepted and counts toward Hacktoberfest rewards. react React components & UI logic tailwind Tailwind CSS & styling

Development

Successfully merging this pull request may close these issues.

Frontend Task: Global Style & UI Improvements Build "All Products" Page (/products)

2 participants