<!DOCTYPE html>
<html>
<head>
<title>Learn Game Development - Build, Code, Play</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; }
/* Header */
.header { background: #04AA6D; color: white; padding: 12px 0; }
.header-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { font-size: 24px; font-weight: bold; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: white; text-decoration: none; padding: 8px 16px; border-radius: 4px; }
.nav-links a:hover { background: rgba(255,255,255,0.1); }
.auth-buttons { display: flex; gap: 10px; }
.btn-login { background: transparent; border: 1px solid white; color: white; padding: 8px 20px; border-radius: 4px; text-decoration: none; }
.btn-signup { background: #ff9500; color: white; padding: 8px 20px; border-radius: 4px; text-decoration: none; }
.btn-login:hover, .btn-signup:hover { opacity: 0.8; }
/* Hero Section */
.hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 80px 20px; text-align: center; }
.hero h1 { font-size: 48px; margin-bottom: 20px; }
.hero p { font-size: 20px; margin-bottom: 40px; opacity: 0.9; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: #ff6b6b; color: white; padding: 15px 30px; border-radius: 25px; text-decoration: none; font-size: 18px; }
.btn-secondary { background: rgba(255,255,255,0.2); color: white; padding: 15px 30px; border-radius: 25px; text-decoration: none; font-size: 18px; }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-2px); transition: 0.2s; }
/* Try It Section */
.try-section { background: #f1f1f1; padding: 60px 20px; }
.try-content { max-width: 1200px; margin: 0 auto; }
.try-section h2 { text-align: center; font-size: 36px; margin-bottom: 20px; color: #333; }
.try-section p { text-align: center; font-size: 18px; margin-bottom: 40px; color: #666; }
.editor-demo { background: white; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); overflow: hidden; margin-bottom: 20px; }
.editor-tabs { background: #04AA6D; color: white; padding: 10px 20px; }
.editor-content { padding: 20px; }
.code-block { background: #f8f9fa; border-left: 4px solid #04AA6D; padding: 15px; font-family: Consolas, monospace; margin-bottom: 15px; }
.preview-area { background: #333; color: #0f0; padding: 20px; font-family: monospace; min-height: 100px; }
/* Features */
.features { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
.features h2 { text-align: center; font-size: 36px; margin-bottom: 50px; color: #333; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { text-align: center; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.feature-icon { font-size: 48px; margin-bottom: 20px; }
.feature-card h3 { font-size: 24px; margin-bottom: 15px; color: #333; }
.feature-card p { color: #666; line-height: 1.6; }
/* CTA Section */
.cta-section { background: #333; color: white; padding: 60px 20px; text-align: center; }
.cta-section h2 { font-size: 36px; margin-bottom: 20px; }
.cta-section p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }
</style>
</head>
<body>
<div class="header">
<div class="header-content">
<div class="logo">🎮 GameDev Platform</div>
<div class="nav-links">
<a href="#tutorials">Tutorials</a>
<a href="#games">Browse Games</a>
<a href="#examples">Examples</a>
<a href="#docs">Docs</a>
</div>
<div class="auth-buttons">
<a href="login.php" class="btn-login">Log In</a>
<a href="signup.php" class="btn-signup">Sign Up Free</a>
</div>
</div>
</div>
<div class="hero">
<h1>Learn Game Development</h1>
<p>Build games with visual blocks and real code. From beginner to pro.</p>
<div class="hero-buttons">
<a href="#try-now" class="btn-primary">Try It Yourself</a>
<a href="signup.php" class="btn-secondary">Start Learning Free</a>
</div>
</div>
<div class="try-section" id="try-now">
<div class="try-content">
<h2>Try It Yourself</h2>
<p>See how easy it is to build games with our block editor</p>
<div class="editor-demo">
<div class="editor-tabs">Game Editor - Blocks & Code</div>
<div class="editor-content">
<div class="code-block">
// Drag blocks to create code like this:
player.jump = function() {
if (player.onGround) {
player.velocity.y = -400;
}
}
// Or write code directly - both work!
</div>
<div class="preview-area">
🎮 Game Preview:
[Player] 🏃♂️
[Platform] ▬▬▬▬▬▬▬
Score: 1250
Click "Try Editor" below to start building!
</div>
</div>
</div>
<div style="text-align: center;">
<a href="signup.php" class="btn-primary">Try the Editor</a>
<p style="margin-top: 10px; color: #666;">No download required • Works in your browser • Free to start</p>
</div>
</div>
</div>
<div class="features">
<h2>Everything You Need to Build Games</h2>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon">🧩</div>
<h3>Visual Block Editor</h3>
<p>Drag and drop blocks to create game logic. Perfect for beginners, but see the real code being generated.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🤖</div>
<h3>AI Assistant</h3>
<p>Get help writing code, debugging games, and learning new concepts with our built-in AI tutor.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🎯</div>
<h3>Phaser.js Games</h3>
<p>Build real HTML5 games that work everywhere. From simple puzzles to multiplayer adventures.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🌐</div>
<h3>Instant Publishing</h3>
<p>Share your games instantly with a URL. No complex deployment - just build and share!</p>
</div>
<div class="feature-card">
<div class="feature-icon">👥</div>
<h3>Game Browser</h3>
<p>Discover games made by others, get inspired, and see what's possible with the platform.</p>
</div>
<div class="feature-card">
<div class="feature-icon">📈</div>
<h3>Learn & Grow</h3>
<p>Start with blocks, graduate to coding, then build professional games with databases and multiplayer.</p>
</div>
</div>
</div>
<div class="cta-section">
<h2>Ready to Start Building?</h2>
<p>Join thousands of game developers learning on our platform</p>
<a href="signup.php" class="btn-primary">Get Started Free</a>
</div>
</body>
</html>