openCode
Settings
Reset
Download
Save to GitHub
Deploy to Netlify
index.html
<!DOCTYPE html> <html> <head> <style> body { margin: 0; padding: 20px; font-family: Arial, sans-serif; line-height: 1.6; color: #333; max-width: 800px; margin: 0 auto; } .header { text-align: center; padding: 20px 0; border-bottom: 1px solid #eee; margin-bottom: 30px; } .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; } .feature-card { background: #f9f9f9; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .feature-card h3 { margin-top: 0; color: #2c3e50; } .try-section { background: #f0f8ff; padding: 20px; border-radius: 8px; margin-top: 30px; } code { background: #f5f5f5; padding: 2px 4px; border-radius: 3px; font-family: monospace; } .button { display: inline-block; background: #3498db; color: white; padding: 8px 16px; border-radius: 4px; text-decoration: none; margin-top: 10px; } .button:hover { background: #2980b9; } </style> </head> <body> <div class="header"> <h1>Welcome to OpenCode!</h1> <p>An experimental and open-source real-time HTML/CSS/JS editor with AI-powered assistance.</p> </div> <div class="features"> <div class="feature-card"> <h3>🤖 AI Generation</h3> <p>Use natural language to describe what you want and let AI generate the code for you.</p> </div> <div class="feature-card"> <h3>🚀 Export & Deploy</h3> <p>Download your code or deploy directly to GitHub and Netlify with one click.</p> </div> </div> <div class="try-section"> <h2>Try it out!</h2> <p>Edit this starter code or clear the editor to begin your project.</p> <p>Try changing the text below or adding new elements:</p> <div style="margin: 20px 0; padding: 15px; background: #e8f4f8; border-left: 4px solid #3498db;"> <h3 style="margin-top: 0;">Hello World!</h3> <p>This is your live preview. Edit the code on the left to see changes here.</p> <button onclick="alert('It works!')" style="padding: 8px 16px; background: #3498db; color: white; border: none; border-radius: 4px; cursor: pointer;"> Click Me </button> </div> <p>For AI assistance, type your request in the prompt box at the bottom of the editor.</p> <p>Example prompts:</p> <ul> <li>"Create a responsive navigation bar"</li> <li>"Add a dark mode toggle button"</li> <li>"Make a contact form with validation"</li> </ul> </div> <div style="margin-top: 40px; text-align: center; color: #7f8c8d; font-size: 0.9em;"> <p>Built with ❤️ using React by @emjjkk</p> </div> </body> </html>
Generate