Spaces:
Running
Running
File size: 8,588 Bytes
79ed84e 25bb789 79ed84e 68d874d 79ed84e 68d874d 79ed84e 68d874d 79ed84e 68d874d 79ed84e 68d874d 79ed84e 651dd72 79ed84e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lovable AI Coder - Transform Your Ideas into Code</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
</head>
<body class="bg-gray-50">
<custom-navbar></custom-navbar>
<main class="container mx-auto px-4 py-12">
<!-- Hero Section -->
<section class="text-center mb-20">
<h1 class="text-5xl font-bold text-gray-900 mb-6">Transform Your Ideas <br> Into <span class="text-indigo-600">Working Code</span></h1>
<p class="text-xl text-gray-600 max-w-2xl mx-auto mb-8">Describe your app idea and our AI will generate the complete code for you instantly. Then refine it through conversation.</p>
<div class="flex justify-center gap-4">
<a href="#generate" class="bg-indigo-600 hover:bg-indigo-700 text-white px-6 py-3 rounded-lg font-medium text-lg transition-all">Generate Code</a>
<a href="#how-it-works" class="border border-gray-300 hover:bg-gray-100 text-gray-700 px-6 py-3 rounded-lg font-medium text-lg transition-all">How it Works</a>
</div>
</section>
<!-- Generator Section -->
<section id="generate" class="bg-white rounded-xl shadow-lg p-8 mb-20">
<div class="flex flex-col md:flex-row gap-8">
<div class="w-full md:w-1/2">
<h2 class="text-2xl font-bold text-gray-800 mb-6">Tell us about your app</h2>
<div class="mb-4">
<label for="app-description" class="block text-gray-700 mb-2">Describe your idea:</label>
<textarea id="app-description" rows="6" class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="I want an app that helps people track their daily water intake with reminders and progress charts..."></textarea>
</div>
<button id="generate-btn" class="w-full bg-indigo-600 hover:bg-indigo-700 text-white py-3 rounded-lg font-medium flex items-center justify-center gap-2">
<i data-feather="code"></i>
Generate My App
</button>
</div>
<div class="w-full md:w-1/2">
<div class="bg-gray-900 rounded-lg p-4 h-full flex flex-col">
<div class="flex items-center justify-between mb-4">
<div class="flex gap-4">
<button id="view-code-btn" class="active text-gray-400 hover:text-white text-sm font-medium">Code</button>
<button id="view-preview-btn" class="text-gray-400 hover:text-white text-sm font-medium">Preview</button>
</div>
<div class="flex gap-2 items-center">
<div class="flex gap-2">
<div class="w-3 h-3 rounded-full bg-red-500"></div>
<div class="w-3 h-3 rounded-full bg-yellow-500"></div>
<div class="w-3 h-3 rounded-full bg-green-500"></div>
</div>
<span class="text-gray-400 text-sm">app.js</span>
</div>
</div>
<pre id="code-output" class="text-gray-200 font-mono text-sm overflow-auto flex-1 bg-gray-800 p-4 rounded">// Your generated code will appear here...</pre>
<iframe id="preview-frame" class="hidden w-full h-full bg-white rounded-b-lg"></iframe>
</div>
</div>
</div>
</section>
<!-- Preview Section -->
<section id="preview" class="bg-white rounded-xl shadow-lg p-8 mb-6 hidden">
<h2 class="text-2xl font-bold text-gray-800 mb-6">App Preview</h2>
<div class="border border-gray-300 rounded-lg overflow-hidden h-96">
<iframe id="preview-frame" class="w-full h-full"></iframe>
</div>
</section>
<!-- Chat Section -->
<section id="chat" class="bg-white rounded-xl shadow-lg p-8 mb-20 hidden">
<h2 class="text-2xl font-bold text-gray-800 mb-6">Refine Your App</h2>
<div class="flex flex-col h-96 mb-4 border border-gray-300 rounded-lg overflow-hidden">
<div id="chat-messages" class="flex-1 overflow-y-auto p-4 bg-gray-50">
<div class="flex justify-start mb-4">
<div class="bg-indigo-100 text-gray-800 p-3 rounded-lg max-w-xs md:max-w-md lg:max-w-lg">
<p>Hi! I'm your AI coding assistant. I've generated the initial code for your app. How would you like to modify it?</p>
</div>
</div>
</div>
<div class="p-4 bg-white border-t border-gray-300">
<div class="flex gap-2">
<input type="text" id="chat-input" class="flex-1 px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Ask me to change something...">
<button id="send-chat-btn" class="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-lg">
<i data-feather="send"></i>
</button>
</div>
</div>
</div>
</section>
<!-- How it works -->
<section id="how-it-works" class="mb-20">
<h2 class="text-3xl font-bold text-center text-gray-900 mb-12">How It Works</h2>
<div class="grid md:grid-cols-3 gap-8">
<div class="bg-white p-6 rounded-xl shadow-md text-center">
<div class="bg-indigo-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i data-feather="edit-2" class="text-indigo-600"></i>
</div>
<h3 class="text-xl font-semibold mb-2">Describe Your Idea</h3>
<p class="text-gray-600">Tell us what you want to build in plain English. The more details you provide, the better!</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-md text-center">
<div class="bg-indigo-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i data-feather="code" class="text-indigo-600"></i>
</div>
<h3 class="text-xl font-semibold mb-2">AI Generates Code</h3>
<p class="text-gray-600">Our AI analyzes your requirements and generates production-ready code instantly.</p>
</div>
<div class="bg-white p-6 rounded-xl shadow-md text-center">
<div class="bg-indigo-100 w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4">
<i data-feather="message-square" class="text-indigo-600"></i>
</div>
<h3 class="text-xl font-semibold mb-2">Refine Together</h3>
<p class="text-gray-600">Chat with the AI to make adjustments, add features, or get explanations.</p>
</div>
</div>
</section>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
VANTA.NET({
el: "body",
color: 0x6366f1,
backgroundColor: 0xf9fafb,
points: 12,
maxDistance: 20,
spacing: 15
});
</script>
<script>
// Initialize DeepSeek chat badge
if (typeof DeepSeekChat !== 'undefined') {
new DeepSeekChat({
position: 'right',
style: 'rounded',
prompt: "Hi! I'm your DeepSeek AI assistant. How can I help you with your app today?"
});
}
</script>
</body>
</html> |