Skip to main content
Configuration File: config/pages/games.ts

Overview

The games listing page (/games) displays all available game servers:
  • Hero section with title and stats
  • Grid section header
  • Automatic grid of all game configs
Configuration file: config/pages/games.ts

Quick Start

1

Edit the config file

Open config/pages/games.ts:
2

Customize hero and grid section

Update title, description, and stats
3

Test it

Visit: http://localhost:3000/games

Configuration Structure

Hero Section

Title Format: "title [titleHighlight]"
  • Example: ā€œChoose Your Gameā€
Stats: Show 3 metrics related to game hosting (games supported, servers running, global reach)

Grid Section

The grid automatically displays all game configs from config/games/ directory. No need to manually list games here.

Request Game CTA

New compact single-row design that appears below the game grid
Options: Example variants:

Features Section

6-card grid with left-aligned icons matching VPS/Dedicated style
Available Icons: Available Colors: Best Practices:
  1. Use 6 features - Fills the 3-column grid perfectly
  2. Vary colors - Don’t use same color twice
  3. Short titles - 2-3 words max
  4. Descriptive text - 15-25 words explaining the benefit
  5. Match icons - Zap for speed, Shield for security, etc.

Complete Example

Note: Don’t forget as const at the end for TypeScript

Best Practices

Hero Section

  1. Clear purpose - ā€œChoose Your Gameā€ immediately tells users what this page is for
  2. Highlight key word - Make ā€œGameā€ stand out
  3. Brief description - 1-2 sentences max
  4. Relevant stats - Games count, server count, global reach

Grid Section

  1. Simple title - ā€œAvailable Game Serversā€ is clear
  2. Short description - Don’t overwhelm before they see the games
  3. Let games speak - The game cards do the heavy lifting

Background Image

  1. High quality - Use 1920x1080 or higher
  2. Gaming theme - Use a popular game background
  3. Not too busy - Text must be readable over it

Troubleshooting

Games not showing in grid

The grid automatically pulls from config/games/ directory. Check:
  1. Game configs exist in config/games/
  2. Each game has enabled: true
  3. Games are properly exported

Stats not displaying

Ensure stats array has exactly 3 items with label and value:

Title highlight not working

Check titleHighlight is set (not highlight):

Background image not loading

Use full HTTPS URL:
Not relative paths: