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
- โ 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
- ๐ 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
- Framework: Astro v4.16+
- Styling: Tailwind CSS v3.4+
- Language: TypeScript
- Content: Markdown/MDX with Content Collections
- Icons: Inline SVGs and emoji
- Build: Vite
-
Clone the repository
git clone [repository-url] cd game-kuangjia
-
Install dependencies
npm install
-
Start development server
npm run dev
-
Build for production
npm run build
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
}
}
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...
- Edit
src/styles/global.css
for global styles - Modify Tailwind config in
tailwind.config.mjs
- Update color scheme in component files
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.
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
- Create a new
.md
file insrc/content/games/
- Add required frontmatter (see template above)
- Include game thumbnail in
public/images/
- The game will automatically appear in:
- Search results
- Category pages
- New games (if recent)
- Homepage (if featured)
- 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
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
- 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
- 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
The framework is designed to support i18n:
- Language switcher in navigation
- Translated content files
- URL structure:
/en/
,/es/
,/zh/
- No Database: No SQL injection risks
- Static Files: No server-side vulnerabilities
- Content Security: Iframe sandboxing for games
- HTTPS Ready: Works with SSL certificates
This project is open source and available under the MIT License.
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
- Choose Good Domain: Match your target keyword
- Quality Games: Select popular, working games
- Fresh Content: Regular updates help SEO
- Fast Hosting: Use CDN for better performance
- Monitor Analytics: Track your traffic and optimize
้ๅฐ้จ็ฝฒ้ฎ้ข๏ผๆฅ็ๆไปฌ็่ฏฆ็ปๆ ้ๆ้คๆๅ๏ผ
- ๐ ๅฎๆดๆ ้ๆ้คๆๅ
- ๐ Vercel ้จ็ฝฒ้ฎ้ข
- ๐ง ไพ่ตๅฒ็ช่งฃๅณ
ๅธธ่ง้ฎ้ขๅฟซ้ไฟฎๅค๏ผ
# 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"
- ๐ ๆ ้ๆ้คๆๅ - ่งฃๅณๅธธ่ง้ฎ้ข
- ๐ 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!