Skip to content

feat: Implement category filters for artwork gallery#298

Open
SinghCod3r wants to merge 1 commit intopixel-museum:mainfrom
SinghCod3r:main
Open

feat: Implement category filters for artwork gallery#298
SinghCod3r wants to merge 1 commit intopixel-museum:mainfrom
SinghCod3r:main

Conversation

@SinghCod3r
Copy link

This PR introduces a new feature that allows users to filter artworks by category.

Key changes include:

  • Added a category filter bar to index.html with radio buttons for "All", "Abstract", "Funny", "Minimal", and "Animated" categories.
  • Updated arts.json to include a category field for each artwork, programmatically assigned based on keywords in titles and filenames.
  • Modified style.css to style the category filter bar and implement CSS-based filtering logic with smooth transitions.
  • Updated script.js to dynamically add data-category attributes to artwork cards and implement JavaScript-based filtering when radio buttons are selected.

These changes enhance the user experience by providing an organized way to browse artworks based on their categories.

Closes #264

@vercel
Copy link

vercel bot commented Oct 12, 2025

@SinghCod3r is attempting to deploy a commit to the shamli-singh-yadav's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Ritesh381
Copy link
Collaborator

resolve the merge conflicts

@Ritesh381
Copy link
Collaborator

On what aspect you are categorizing the arts into different categories ?
Can you please provide the logic of how the arts are categorized.

One thing can be done in arts.json we have to add one more field in each of the arts about its categories.
But this method will take too much time and if we try to give categories with AI it will give random on the basis of their name which is not optimal.

So @SinghCod3r tell your strategy

@Ritesh381 Ritesh381 added enhancement New feature or request hacktoberfest 2025 labels Oct 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request hacktoberfest 2025

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Category Filters (Abstract | Funny | Minimal | Animated)

2 participants