Skip to main content
NL.dev
Back to projects
2026

Nice Gadgets — Phone Catalog

Responsive e-commerce SPA catalog with URL-synced filters, persistent cart, and theme switching

  • React
  • TypeScript
  • SCSS
  • Context API
  • React Router
Nice Gadgets — Phone Catalog

Responsive e-commerce catalog SPA built with React, TypeScript, SCSS, and React Router. Features URL-synchronized filtering, sorting, and pagination (useCatalogParams), persistent cart and favorites state, light/dark theme switching, reusable custom hooks, and route-level code splitting.

Key highlights

  • URL-synchronized catalog filtering, sorting, search, and pagination powered by useCatalogParams.
  • Persistent shopping cart, favorites list, and light/dark theme switching managed via Context API.
  • Custom hooks (useDebounce for search, useSlider and useSwipe for touch galleries) keeping UI components concise and reusable.
  • Route-level code splitting via React.lazy / Suspense, Error Boundary protection, and semantic accessibility.

Engineering challenges

  • Problem

    Keeping catalog filters, sorting, and pagination shareable in the URL without noisy search updates.

    Solution

    Centralized search params state in useCatalogParams and paired search inputs with useDebounce to avoid redundant query updates.

  • Problem

    Preventing UI component bloat across product carousels and keeping initial route bundles lean.

    Solution

    Extracted touch and carousel controls into useSlider and useSwipe hooks and split routes with React.lazy, Suspense, and Error Boundaries.