Skip to content

Richard-Fu/Drive-Beyond-Horizons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

25 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽ๏ธ Drive Beyond Horizons - Epic Racing Game Website

A high-performance racing game website built with modern web technologies. Experience realistic driving physics, multiple racing environments, and unlimited racing action completely free!

๐ŸŒ Live Site: Drive Beyond Horizons

๐Ÿš€ Features

Core Features

  • โœ… Static Site Generation - Lightning-fast loading with Astro
  • โœ… SEO Optimized - Sitemap, robots.txt, structured data, meta tags
  • โœ… Responsive Design - Works perfectly on desktop, tablet, and mobile
  • โœ… Dark Mode - Automatic theme switching with user preference storage
  • โœ… Search Functionality - Real-time game search with category filters
  • โœ… Modern UI - Glass morphism effects, smooth animations, gradient designs
  • โœ… Content Management - Easy game management with Astro Content Collections
  • โœ… No Backend Required - Pure static site, works with any hosting

Page Types

  • ๐Ÿ  Homepage with featured game
  • ๐ŸŽฎ Individual game pages with unified player component
  • ๐Ÿ“‘ Category pages (Action, Puzzle, Sports, etc.)
  • ๐Ÿ” Search page with filtering
  • ๐Ÿ“„ Legal pages (Privacy Policy, Terms, DMCA, Contact)
  • ๐Ÿ†• New Games and Popular Games sections

๐Ÿ› ๏ธ Tech Stack

  • Framework: Astro v4.16+
  • Styling: Tailwind CSS v3.4+
  • Language: TypeScript
  • Content: Markdown/MDX with Content Collections
  • Icons: Inline SVGs and emoji
  • Build: Vite

๐Ÿ“ฆ Installation

  1. Clone the repository

    git clone [repository-url]
    cd game-kuangjia
  2. Install dependencies

    npm install
  3. Start development server

    npm run dev
  4. Build for production

    npm run build

๐ŸŽฏ Quick Start - Deploy Your Own Game Site

1. Configure Your Site

Edit src/config/theme.config.js:

export default {
  site: {
    name: 'Your Game Site',
    url: 'https://your-domain.com',
    description: 'Your site description'
  },
  mainKeyword: {
    primary: 'your-game',
    variants: ['your-game free', 'play your-game']
  },
  featuredGame: {
    title: 'Your Featured Game',
    embedUrl: 'https://your-game-url.com'
    // ... other game settings
  }
}

2. Add Your Games

Create game files in src/content/games/:

---
title: 'Game Title'
description: 'Game description for SEO'
pubDate: 2024-01-01
categories: ["Action", "Multiplayer"]
gameType: 'action'
embedUrl: 'https://game-embed-url.com'
image: '/images/game-thumbnail.jpg'
featured: true
rating: 9.5
---

Detailed game description and instructions...

3. Customize Styling

  • Edit src/styles/global.css for global styles
  • Modify Tailwind config in tailwind.config.mjs
  • Update color scheme in component files

4. Deploy

The site can be deployed to any static hosting:

Vercel:

npm i -g vercel
vercel

Netlify:

npm i -g netlify-cli
netlify deploy

GitHub Pages, Cloudflare Pages, etc.

๐Ÿ“ Project Structure

game-kuangjia/
โ”œโ”€โ”€ public/
โ”‚   โ”œโ”€โ”€ images/          # Game thumbnails and assets
โ”‚   โ”œโ”€โ”€ robots.txt       # SEO crawler instructions
โ”‚   โ””โ”€โ”€ grid.svg         # Background patterns
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/      # Reusable Astro components
โ”‚   โ”‚   โ”œโ”€โ”€ GamePlayer.astro     # Unified game display
โ”‚   โ”‚   โ”œโ”€โ”€ ModernNavigation.astro
โ”‚   โ”‚   โ”œโ”€โ”€ Footer.astro
โ”‚   โ”‚   โ””โ”€โ”€ ModernGameCard.astro
โ”‚   โ”œโ”€โ”€ config/          # Site configuration
โ”‚   โ”‚   โ””โ”€โ”€ theme.config.js
โ”‚   โ”œโ”€โ”€ content/         # Game content (Markdown)
โ”‚   โ”‚   โ””โ”€โ”€ games/       # Individual game files
โ”‚   โ”œโ”€โ”€ layouts/         # Page layouts
โ”‚   โ”‚   โ””โ”€โ”€ BaseLayout.astro
โ”‚   โ”œโ”€โ”€ pages/           # Route pages
โ”‚   โ”‚   โ”œโ”€โ”€ index.astro  # Homepage
โ”‚   โ”‚   โ”œโ”€โ”€ [category].astro
โ”‚   โ”‚   โ”œโ”€โ”€ games/[slug].astro
โ”‚   โ”‚   โ””โ”€โ”€ search.astro
โ”‚   โ””โ”€โ”€ styles/          # Global styles
โ”œโ”€โ”€ astro.config.mjs     # Astro configuration
โ”œโ”€โ”€ tailwind.config.mjs  # Tailwind configuration
โ””โ”€โ”€ package.json

๐ŸŽฎ Adding New Games

  1. Create a new .md file in src/content/games/
  2. Add required frontmatter (see template above)
  3. Include game thumbnail in public/images/
  4. The game will automatically appear in:
    • Search results
    • Category pages
    • New games (if recent)
    • Homepage (if featured)

๐Ÿ”ง Configuration Options

Theme Configuration (src/config/theme.config.js)

  • Site Info: Name, URL, description
  • SEO Keywords: Primary and variant keywords
  • Featured Game: Homepage game configuration
  • Categories: Game category definitions
  • Social Links: Footer social media links

Analytics Integration

Vercel Analytics: Built-in and works automatically when deployed to Vercel.

Google Analytics (optional): Create .env file for GA integration:

PUBLIC_GA_ID=your-google-analytics-id
PUBLIC_GTM_ID=your-google-tag-manager-id

๐Ÿš€ Performance Optimizations

  • Static Generation: Pre-built HTML for instant loading
  • Image Optimization: Lazy loading, responsive images
  • Code Splitting: Automatic by Astro
  • Minimal JavaScript: Only where necessary
  • CDN Ready: Static assets can be served from CDN

๐Ÿ“ˆ SEO Features

  • Automatic Sitemap: Generated at /sitemap.xml
  • Robots.txt: Configured for search engines
  • Meta Tags: Open Graph, Twitter Cards
  • Structured Data: Schema.org markup
  • Canonical URLs: Prevent duplicate content
  • Mobile Friendly: Responsive design

๐ŸŒ Multi-Language Support (Planned)

The framework is designed to support i18n:

  • Language switcher in navigation
  • Translated content files
  • URL structure: /en/, /es/, /zh/

๐Ÿ›ก๏ธ Security

  • No Database: No SQL injection risks
  • Static Files: No server-side vulnerabilities
  • Content Security: Iframe sandboxing for games
  • HTTPS Ready: Works with SSL certificates

๐Ÿ“ License

This project is open source and available under the MIT License.

๐Ÿค Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Open a Pull Request

๐Ÿ’ก Tips for Success

  1. Choose Good Domain: Match your target keyword
  2. Quality Games: Select popular, working games
  3. Fresh Content: Regular updates help SEO
  4. Fast Hosting: Use CDN for better performance
  5. Monitor Analytics: Track your traffic and optimize

๐Ÿšจ ๆ•…้šœๆŽ’้™ค

้‡ๅˆฐ้ƒจ็ฝฒ้—ฎ้ข˜๏ผŸๆŸฅ็œ‹ๆˆ‘ไปฌ็š„่ฏฆ็ป†ๆ•…้šœๆŽ’้™คๆŒ‡ๅ—๏ผš

ๅธธ่ง้—ฎ้ข˜ๅฟซ้€Ÿไฟฎๅค๏ผš

# Vercel ้ƒจ็ฝฒๅคฑ่ดฅ๏ผŸ
rm package-lock.json node_modules -rf
npm install
git add . && git commit -m "fix: reset dependencies" && git push
# zod ๆจกๅ—ๆ‰พไธๅˆฐ๏ผŸ
# ๆฃ€ๆŸฅ vercel.json ๆ˜ฏๅฆไฝฟ็”จไบ† --legacy-peer-deps
# ็กฎไฟไฝฟ็”จ "npm ci" ่€Œไธๆ˜ฏ "npm install"

๐Ÿ†˜ Support

  • ๐Ÿ“‹ ๆ•…้šœๆŽ’้™คๆŒ‡ๅ— - ่งฃๅ†ณๅธธ่ง้—ฎ้ข˜
  • ๐Ÿ› Create an issue for bugs
  • ๐Ÿ“š Check existing documentation
  • ๐Ÿ“ง Contact through the website's contact form

Built with โค๏ธ for game site creators. Make it your own and monetize gaming traffic!

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •