Skip to content

Redesign resources page with category filtering#117

Open
notkaramel wants to merge 1 commit intomainfrom
v0/ecsess-techdev-095e2d5d
Open

Redesign resources page with category filtering#117
notkaramel wants to merge 1 commit intomainfrom
v0/ecsess-techdev-095e2d5d

Conversation

@notkaramel
Copy link
Copy Markdown
Member

Resources Page Redesign

Redesigns the /resources page with a category-based filtering system.

Changes

src/lib/schemas.ts

  • Added ResourceCategory enum with values: all, academic, technical, involvement, sustainability, equity, campusLife
  • Added category field to the Resource type

src/routes/resources/+page.server.ts

  • Updated GROQ query to fetch the category field from Sanity CMS
  • Added order(category asc, title asc) sorting

src/components/resource/ResourceCard.svelte

  • Redesigned as a full-height dark card with arrow icon, bottom accent line, and hover states
  • Opens links in a new tab (external={true})

src/routes/resources/+page.svelte

  • New page header with subtitle matching the events page style
  • Category filter pills using the existing EventTabsTrigger component with per-category count badges
  • Responsive 1→2→3 column grid layout
  • Empty state message when no resources match the selected category

Notes

  • Requires Sanity CMS resources to have a category field populated for filtering to work. Resources without a category will only appear under "All".

Add category field to Resource schema, update Sanity query, and redesign ResourceCard and page.

Co-authored-by: Antoine Phan <24505220+notkaramel@users.noreply.github.com>
@notkaramel notkaramel added the v0 label Apr 14, 2026 — with Vercel
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ecsess Ready Ready Preview, Comment Apr 14, 2026 4:17am

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant