askrobots / dbbasic Public

Model-config web apps: describe the app in configuration instead of writing code. Built on Polars and DuckDB.

0 downloads

dbbasic/static/demo_bootstrap.html
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 Add DBBasic crate engine logo and update README 0d628db 1 year, 2 months ago History
demo_bootstrap.html · 4.9 KB · 83 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 Framework Comparison</title>
7 <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
8 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css">
9
10 <style>
11 .card { transition: transform 0.3s; }
12 .card:hover { transform: translateY(-5px); }
13 </style>
14</head>
15<body>
16
17 <nav class="navbar navbar-expand-lg navbar-light bg-light">
18 <div class="container-fluid">
19 <a class="navbar-brand" href="#">DBBasic</a>
20 <div class="navbar-nav ms-auto">
21 <a class="nav-link" href="#">Dashboard</a> <a class="nav-link" href="#">Services</a> <a class="nav-link" href="#">Templates</a>
22 </div>
23 </div>
24 </nav>
25 <div class="bg-primary text-white text-center py-5">
26 <div class="container">
27 <h1 class="display-4">One Data Structure, Multiple Frameworks</h1>
28 <p class="lead">Write once, render anywhere</p>
29 </div>
30 </div><div class="container">
31 <div class="container my-5">
32 <div class="row row-cols-1 row-cols-md-4 g-4">
33 <div class="col">
34 <div class="card h-100">
35 <div class="card-body">
36 <div class="d-flex justify-content-between align-items-start mb-2">
37 <h5 class="card-title"></h5>
38
39 </div>
40 <p class="card-text"></p>
41 </div>
42
43 </div></div> <div class="col">
44 <div class="card h-100">
45 <div class="card-body">
46 <div class="d-flex justify-content-between align-items-start mb-2">
47 <h5 class="card-title"></h5>
48
49 </div>
50 <p class="card-text"></p>
51 </div>
52
53 </div></div> <div class="col">
54 <div class="card h-100">
55 <div class="card-body">
56 <div class="d-flex justify-content-between align-items-start mb-2">
57 <h5 class="card-title"></h5>
58
59 </div>
60 <p class="card-text"></p>
61 </div>
62
63 </div></div> <div class="col">
64 <div class="card h-100">
65 <div class="card-body">
66 <div class="d-flex justify-content-between align-items-start mb-2">
67 <h5 class="card-title"></h5>
68
69 </div>
70 <p class="card-text"></p>
71 </div>
72
73 </div></div>
74 </div>
75 </div>{'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', '-']]}]}</div>
76 <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
77
78 <script>
79 function deployTemplate(id) { alert('Deploying: ' + id); }
80 function previewTemplate(id) { alert('Preview: ' + id); }
81 </script>
82</body>
83</html>