Skip to main content
Configuration Files: config/shared/sections.ts & config/games/common.ts

Overview

Shared sections are reusable components that appear on multiple pages:
  • Discord Banner - Call-to-action to join your Discord community
  • Common Includes - Features included in all game server plans
Configuration file: config/shared/sections.ts

Quick Start

1

Edit the config file

Open config/shared/sections.ts:
2

Add to your pages

3

Test it


Discord Banner

A prominent call-to-action banner encouraging visitors to join your Discord server.

Configuration

Fields

Note: The Discord URL is automatically pulled from your socialLinks in config/branding.ts. Make sure you have a Discord link configured there.

Example

Where It Appears

The Discord Banner is commonly used on:
  • Bottom of product pages (games, VPS, dedicated)
  • After contact form submission
  • Partner program page
  • Knowledge base articles

Styling

The banner features:
  • Gradient background - Purple to indigo gradient
  • White button - High contrast for visibility
  • Auto-scales - Responsive on mobile
  • Discord icon - Built-in Discord logo

Best Practices

Do:
  • Keep title under 5 words
  • Highlight community size (โ€œJoin 10K+ gamersโ€)
  • Mention benefits (support, giveaways, updates)
  • Use action-oriented button text
Donโ€™t:
  • Write long descriptions (2 lines max)
  • Use generic text (โ€œClick hereโ€)
  • Forget to set Discord URL in branding config
  • Place on every single page (too repetitive)

Common Includes (Game Plans)

Displays features included in all game server plans. Shown on individual game pages below pricing.

Configuration File

config/games/common.ts

Feature Object

Each feature has:

Available Colors

Use Tailwind color classes:
  • blue-400
  • purple-400
  • cyan-400
  • green-400
  • orange-400
  • pink-400
  • yellow-400
  • red-400

Icon Names

Find icons at lucide.dev/icons Common hosting icons:
  • Shield - Security/DDoS protection
  • Zap - Speed/instant setup
  • HardDrive - Storage (NVMe, SSD)
  • LifeBuoy - Support
  • Database - Backups
  • Lock - Security/access control
  • Globe - Domains/networking
  • Gauge - Performance/uptime
  • Server - Infrastructure
  • Cloud - Cloud services

Grid Layout

Features automatically display in a responsive grid:
  • Mobile: 2 columns
  • Desktop: 4 columns
Recommended: 8 features for perfect balance (2 rows of 4)

Complete Example

Best Practices

Do:
  • Keep titles concise (2-3 words)
  • Use 8 features for grid balance
  • Pick contrasting colors
  • Highlight genuine value-adds
Donโ€™t:
  • List too many features (8 max)
  • Use long feature names
  • Repeat colors consecutively
  • Include features specific to certain plans only

Where It Appears

The Common Includes section shows on:
  • Individual game pages (below pricing)
  • After plan comparison tables
  • Game template pages
This reassures customers what they get with every plan, reducing confusion and building trust.

Usage Examples

Adding Discord Banner

Adding Common Includes


Troubleshooting

Discord banner not linking correctly

Problem: Button links to # instead of Discord Solution: Add Discord to your socialLinks in config/branding.ts:

Icons not showing in Common Includes

Problem: Icons display as question marks or donโ€™t render Solution: Verify icon names match lucide.dev exactly (case-sensitive):

Colors not applying

Problem: Icon colors are default gray instead of specified color Solution: Use exact Tailwind color classes with shade number: