Skip to content

Conversation

@qaisersofficial
Copy link
Collaborator

This pull request implements a full-featured "Topics" page, including search, filter, sort, and pagination capabilities, along with a set of reusable UI components for displaying topic cards and statistics. The changes introduce a new data model for topics, update the navigation and header for better usability, and establish a scalable structure for future enhancements.

Key changes include:

Topics Page Functionality and Structure

  • Added a new Topics page (page.tsx) that integrates search, filtering, and sorting of topics, and renders topic cards using the new components and data model.
  • Implemented the CardContainer component to handle topic listing, including search, filter, sort logic, and pagination.
  • Created the TopicsNav component to provide a navigation bar with integrated search and filter/sort controls.

UI Components

  • Added reusable UI components:
    • SearchBar for keyword search with expand/collapse animation.
    • FilterSortBar for dropdown-based filtering and sorting options.
    • TopicsCard for displaying individual topic information and statistics.
    • StatItem for rendering icon-labeled statistics within topic cards.

Data Model

  • Introduced a new topics data model in topicsData.tsx, defining the structure for topic items and their statistics, and providing a sample dataset with icons and metadata.

Header and Navigation Enhancements

  • Updated the Header component to highlight the active navigation link based on the current route, improving user orientation within the app.

@qaisersofficial qaisersofficial self-assigned this Oct 19, 2025
@Navidreza80 Navidreza80 merged commit a2e2ab0 into main Oct 24, 2025
1 check 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.

3 participants