A modern e-commerce platform specialized in gaming gear and accessories, built with Next.js, TypeScript, and Tailwind CSS.
- Top-Selling Gaming Gear: Dynamic display of best-selling gaming products
- Product Catalog: Comprehensive gaming gear inventory with ratings and reviews
- Responsive Design: Mobile-first approach with Tailwind CSS
- Product Search & Filtering: Advanced product discovery features
- Real-time Data: Dynamic product loading with server-side API integration
- Framework: Next.js 14+ with App Router
- Language: TypeScript
- Styling: Tailwind CSS
- UI Components: Custom React components
- State Management: React hooks (useState, useEffect)
components/
├── TopSellingGamingGear.tsx # Top-selling products section
├── ProductCard.tsx # Individual product display component
└── ...other components
api/
├── products/ # Product API endpoints
└── ...other API routes
- Clone the repository:
git clone [repository-url]
cd CrossGuild- Install dependencies:
npm install
# or
yarn install- Run the development server:
npm run dev
# or
yarn dev- Open http://localhost:3000 in your browser.
GET /api/products- Fetch all productsGET /api/products?sort=topSelling- Fetch top-selling products
interface Product {
id: string;
name: string;
price: number;
averageRating: number;
images: { url: string }[];
brand?: { name: string };
quantity: number;
topSelling: number;
slug: string;
}Displays the top 4 best-selling gaming products with:
- Dynamic product fetching
- Error handling
- Responsive grid layout
- Product sorting by sales volume
Reusable component for displaying individual product information.
- Ensure your product data follows the Product interface
- Update the
topSellingfield for featured products - Products are automatically sorted by sales volume
The project uses Tailwind CSS with custom accent colors. Key classes:
text-accent- Brand accent color- Responsive grid:
grid-cols-1 md:grid-cols-2 lg:grid-cols-4
- Fork the repository
- Create a feature branch (
git checkout -b feature/new-feature) - Commit your changes (
git commit -am 'Add new feature') - Push to the branch (
git push origin feature/new-feature) - Create a Pull Request
[Add your license information here]
[Add contact information or links]