Model-config web apps: describe the app in configuration instead of writing code. Built on Polars and DuckDB.
demo_tailwind.html · 6.1 KB · 117 lines
| 1 | <!DOCTYPE html> |
| 2 | <html lang="en" class="h-full"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | <title>DBBasic Framework Comparison</title> |
| 7 | <script src="https://cdn.tailwindcss.com"></script> |
| 8 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> |
| 9 | </head> |
| 10 | <body class="h-full bg-gray-50"> |
| 11 | |
| 12 | <nav class="bg-gray-900"> |
| 13 | <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
| 14 | <div class="flex justify-between h-16"> |
| 15 | <div class="flex"> |
| 16 | <div class="flex-shrink-0 flex items-center"> |
| 17 | <h1 class="text-white text-2xl font-bold">DBBasic</h1> |
| 18 | </div> |
| 19 | <div class="hidden sm:ml-6 sm:flex sm:space-x-8"> |
| 20 | <a href="#" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Dashboard</a><a href="#" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Services</a><a href="#" class="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium">Templates</a> |
| 21 | </div> |
| 22 | </div> |
| 23 | </div> |
| 24 | </div> |
| 25 | </nav> |
| 26 | |
| 27 | <div class="bg-gradient-to-r from-blue-600 to-indigo-600 py-16"> |
| 28 | <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
| 29 | <div class="text-center"> |
| 30 | <h1 class="text-white text-4xl font-bold sm:text-5xl md:text-6xl"> |
| 31 | One Data Structure, Multiple Frameworks |
| 32 | </h1> |
| 33 | <p class="text-white mt-3 max-w-2xl mx-auto text-xl sm:mt-4"> |
| 34 | Write once, render anywhere |
| 35 | </p> |
| 36 | </div> |
| 37 | </div> |
| 38 | </div> |
| 39 | |
| 40 | <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> |
| 41 | |
| 42 | <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4"> |
| 43 | <div> |
| 44 | <div class="bg-white overflow-hidden shadow rounded-lg"> |
| 45 | |
| 46 | <div class="px-6 py-4"> |
| 47 | |
| 48 | |
| 49 | <div class="flex items-center justify-between p-4"> |
| 50 | <i class="bi-speedometer2 text-3xl text-indigo-600"></i> |
| 51 | <div class="text-right"> |
| 52 | <p class="text-2xl font-bold text-gray-900">402M/sec <span class="text-green-600">↑</span></p> |
| 53 | <p class="text-sm text-gray-500">Performance</p> |
| 54 | </div> |
| 55 | </div> |
| 56 | |
| 57 | </div> |
| 58 | |
| 59 | </div> |
| 60 | </div><div> |
| 61 | <div class="bg-white overflow-hidden shadow rounded-lg"> |
| 62 | |
| 63 | <div class="px-6 py-4"> |
| 64 | |
| 65 | |
| 66 | <div class="flex items-center justify-between p-4"> |
| 67 | <i class="bi-layers text-3xl text-indigo-600"></i> |
| 68 | <div class="text-right"> |
| 69 | <p class="text-2xl font-bold text-gray-900">4 </p> |
| 70 | <p class="text-sm text-gray-500">Services</p> |
| 71 | </div> |
| 72 | </div> |
| 73 | |
| 74 | </div> |
| 75 | |
| 76 | </div> |
| 77 | </div><div> |
| 78 | <div class="bg-white overflow-hidden shadow rounded-lg"> |
| 79 | |
| 80 | <div class="px-6 py-4"> |
| 81 | |
| 82 | |
| 83 | <div class="flex items-center justify-between p-4"> |
| 84 | <i class="bi-collection text-3xl text-indigo-600"></i> |
| 85 | <div class="text-right"> |
| 86 | <p class="text-2xl font-bold text-gray-900">25+ </p> |
| 87 | <p class="text-sm text-gray-500">Templates</p> |
| 88 | </div> |
| 89 | </div> |
| 90 | |
| 91 | </div> |
| 92 | |
| 93 | </div> |
| 94 | </div><div> |
| 95 | <div class="bg-white overflow-hidden shadow rounded-lg"> |
| 96 | |
| 97 | <div class="px-6 py-4"> |
| 98 | |
| 99 | |
| 100 | <div class="flex items-center justify-between p-4"> |
| 101 | <i class="bi-check-circle text-3xl text-indigo-600"></i> |
| 102 | <div class="text-right"> |
| 103 | <p class="text-2xl font-bold text-gray-900">99.9% <span class="text-green-600">↑</span></p> |
| 104 | <p class="text-sm text-gray-500">Uptime</p> |
| 105 | </div> |
| 106 | </div> |
| 107 | |
| 108 | </div> |
| 109 | |
| 110 | </div> |
| 111 | </div> |
| 112 | </div> |
| 113 | {'type': 'div', 'class': 'mt-5', 'children': [{'type': 'h2', 'text': 'Features', 'class': 'mb-4'}, {'type': 'grid', 'columns': 3, 'items': [{'type': 'card', 'title': 'Config-Driven', 'description': 'Define entire applications with YAML configuration', 'footer': {'type': 'button', 'text': 'Learn More', 'variant': 'primary'}}, {'type': 'card', 'title': 'AI-Powered', 'description': 'Generate business logic from natural language', 'footer': {'type': 'button', 'text': 'Try It', 'variant': 'success'}}, {'type': 'card', 'title': 'Lightning Fast', 'description': '402M rows/sec with DuckDB backend', 'footer': {'type': 'button', 'text': 'Benchmark', 'variant': 'info'}}]}]}{'type': 'div', 'class': 'mt-5', 'children': [{'type': 'h2', 'text': 'Contact Form', 'class': 'mb-4'}, {'type': 'card', 'body': {'type': 'form', 'fields': [{'type': 'input', 'name': 'name', 'label': 'Your Name', 'placeholder': 'John Doe', 'required': True}, {'type': 'input', 'input_type': 'email', 'name': 'email', 'label': 'Email', 'placeholder': 'john@example.com', 'required': True}, {'type': 'textarea', 'name': 'message', 'label': 'Message', 'rows': 4, 'placeholder': 'Your message here...'}], 'submit': {'text': 'Send Message', 'variant': 'primary'}}}]}{'type': 'div', 'class': 'mt-5 mb-5', 'children': [{'type': 'h2', 'text': 'Service Status', 'class': 'mb-4'}, {'type': 'table', 'headers': ['Service', 'Status', 'Port', 'Uptime'], 'rows': [['Real-time Monitor', {'type': 'badge', 'text': 'Running', 'variant': 'success'}, '8004', '12h 34m'], ['Data Service', {'type': 'badge', 'text': 'Running', 'variant': 'success'}, '8005', '12h 34m'], ['AI Services', {'type': 'badge', 'text': 'Running', 'variant': 'success'}, '8003', '12h 34m'], ['Event Store', {'type': 'badge', 'text': 'Stopped', 'variant': 'danger'}, '8006', '-']]}]} |
| 114 | </div> |
| 115 | |
| 116 | </body> |
| 117 | </html> |