Skip to main content

Overview

The Horse Trust marketplace provides a luxury horse browsing experience with advanced filtering, sorting, and real-time search capabilities. The marketplace is implemented as a server-side rendered page with client-side interactivity.

Architecture

The marketplace uses a hybrid rendering approach:

Server Component (marketplace/page.tsx)

The marketplace uses ISR (Incremental Static Regeneration) with 60-second revalidation for optimal performance.

Client Component (MarketplaceClient.tsx)

Handles interactive filtering and sorting:

Filtering System

The marketplace implements a comprehensive filtering engine:

Default Filters

Filter Logic

Sorting Options

The marketplace supports three sorting modes:

Newest First

Default sort showing latest listings first

Price: Low to High

Affordable horses first

Price: High to Low

Premium horses first

Filter Sidebar

The FilterSideBar component provides an intuitive filtering interface:

Key Features

  • Price Range Slider: Visual price range selection
  • Breed Dropdown: All supported breeds
  • Multi-Discipline: Select multiple disciplines
  • Location Search: Text-based location filtering
  • Verified Badge: Toggle to show only verified sellers
  • Clear All: Reset filters with one click

Horse Card Component

Each listing is displayed using the HorseCard component:

Card Information Display

1

Hero Image

Large cover photo with verified seller badge overlay
2

Horse Details

Name, breed, age, and discipline prominently displayed
3

Location

Geographic location with map pin icon
4

Pricing

Price with currency, formatted with locale-specific separators
5

Seller Info

Seller name with verification status badge

Responsive Design

The marketplace adapts seamlessly across devices:
  • 3-column grid layout
  • Sidebar always visible
  • Full filter controls

Search Results

The marketplace displays search result counts and handles empty states:

Pagination

The marketplace includes pagination controls (currently static, can be enhanced):
Consider implementing server-side pagination for marketplaces with 100+ listings to improve performance.

Performance Optimizations

Initial page load is server-rendered for instant content display and SEO benefits.
Pages are cached and revalidated every 60 seconds, balancing freshness and speed.
All filtering and sorting happens client-side for instant feedback without network requests.
Cloudinary handles image optimization, resizing, and CDN delivery automatically.

User Experience Features

Visual Hierarchy

Verified Seller Badges

Verified sellers receive prominent visual indicators:

Accessibility

Keyboard Navigation

Full keyboard support for filters and sorting

Screen Readers

Semantic HTML and ARIA labels throughout

Focus Management

Clear focus indicators on all interactive elements

Alt Text

Descriptive alt text for all horse images

Error Handling

The marketplace gracefully handles API failures:

Next Steps

View Listing Details

Learn about individual horse listing pages

Contact Sellers

Start conversations with sellers