Model-config web apps: describe the app in configuration instead of writing code. Built on Polars and DuckDB.
test_tailwind.html · 3.7 KB · 61 lines
| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | <title>DBBasic Template Marketplace</title> |
| 7 | <script src="https://cdn.tailwindcss.com"></script> |
| 8 | </head> |
| 9 | <body class="bg-gray-50"> |
| 10 | |
| 11 | <nav class="bg-white shadow-lg"> |
| 12 | <div class="container mx-auto px-4"> |
| 13 | <div class="flex justify-between items-center py-4"> |
| 14 | <span class="text-xl font-bold">DBBasic</span> |
| 15 | <div class="flex space-x-4"> |
| 16 | <a class="px-3 py-2 text-gray-700 hover:text-gray-900" href="/monitor">Monitor</a> <a class="px-3 py-2 text-gray-700 hover:text-gray-900" href="/data">Data</a> <a class="px-3 py-2 text-gray-700 hover:text-gray-900" href="/templates">Templates</a> |
| 17 | </div> |
| 18 | </div> |
| 19 | </div> |
| 20 | </nav> |
| 21 | <div class="bg-gradient-to-r from-blue-500 to-purple-600 text-white text-center py-16"> |
| 22 | <div class="container mx-auto px-4"> |
| 23 | <h1 class="text-5xl font-bold mb-4">Template Marketplace</h1> |
| 24 | <p class="text-xl">Deploy apps instantly</p> |
| 25 | </div> |
| 26 | </div> |
| 27 | <div class="container mx-auto px-4 my-8"> |
| 28 | <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> |
| 29 | |
| 30 | <div class="bg-white rounded-lg shadow-md hover:shadow-lg transition-shadow p-6"> |
| 31 | <div class="flex justify-between items-start mb-2"> |
| 32 | <h3 class="text-xl font-semibold">Blog</h3> |
| 33 | <span class="bg-blue-500 text-white px-2 py-1 rounded text-sm">CMS</span> |
| 34 | </div> |
| 35 | <p class="text-gray-600 mb-4">Full-featured blog platform</p> |
| 36 | <div class="flex justify-end space-x-2"><button class="bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded" onclick="deployTemplate('Blog')">Deploy</button> <button class="bg-gray-500 hover:bg-gray-600 text-white px-4 py-2 rounded" onclick="previewTemplate('Blog')">Preview</button></div> |
| 37 | </div> |
| 38 | <div class="bg-white rounded-lg shadow-md hover:shadow-lg transition-shadow p-6"> |
| 39 | <div class="flex justify-between items-start mb-2"> |
| 40 | <h3 class="text-xl font-semibold">Shop</h3> |
| 41 | <span class="bg-blue-500 text-white px-2 py-1 rounded text-sm">E-Commerce</span> |
| 42 | </div> |
| 43 | <p class="text-gray-600 mb-4">Online store with payments</p> |
| 44 | <div class="flex justify-end space-x-2"><button class="bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded" onclick="deployTemplate('Shop')">Deploy</button> <button class="bg-gray-500 hover:bg-gray-600 text-white px-4 py-2 rounded" onclick="previewTemplate('Shop')">Preview</button></div> |
| 45 | </div> |
| 46 | <div class="bg-white rounded-lg shadow-md hover:shadow-lg transition-shadow p-6"> |
| 47 | <div class="flex justify-between items-start mb-2"> |
| 48 | <h3 class="text-xl font-semibold">CRM</h3> |
| 49 | <span class="bg-blue-500 text-white px-2 py-1 rounded text-sm">Business</span> |
| 50 | </div> |
| 51 | <p class="text-gray-600 mb-4">Customer relationship manager</p> |
| 52 | <div class="flex justify-end space-x-2"><button class="bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded" onclick="deployTemplate('CRM')">Deploy</button> <button class="bg-gray-500 hover:bg-gray-600 text-white px-4 py-2 rounded" onclick="previewTemplate('CRM')">Preview</button></div> |
| 53 | </div> |
| 54 | </div> |
| 55 | </div> |
| 56 | <script> |
| 57 | function deployTemplate(id) { alert('Deploying: ' + id); } |
| 58 | function previewTemplate(id) { alert('Preview: ' + id); } |
| 59 | </script> |
| 60 | </body> |
| 61 | </html> |