Skip to content

Commit ce076d5

Browse files
committed
improve docs and graphics
1 parent 12b3514 commit ce076d5

17 files changed

+510
-175
lines changed

README.md

+8-11
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ SELECT
3131
name as title,
3232
url as link,
3333
CASE type
34-
WHEN 1 THEN 'green'
34+
WHEN 1 THEN 'blue'
3535
ELSE 'red'
3636
END as color,
3737
description, icon, active
@@ -49,9 +49,9 @@ FROM website;
4949
```sql
5050
SELECT
5151
'chart' as component,
52-
'Syracuse' as title, 'area' as type;
53-
SELECT month AS x, SUM(revenue) AS y
54-
FROM income GROUP BY month;
52+
'Quarterly Revenue' as title, 'area' as type;
53+
SELECT quarter AS x, SUM(revenue) AS y
54+
FROM finances GROUP BY quarter
5555
```
5656

5757
<td>
@@ -63,13 +63,8 @@ FROM income GROUP BY month;
6363
<td>
6464

6565
```sql
66-
SELECT
67-
'form' as component,
68-
'User' as title,
69-
'Create new user' as validate;
70-
SELECT
71-
name, type, placeholder, required,
72-
description, min, max
66+
SELECT 'form' as component, 'User' as title, 'Create new user' as validate;
67+
SELECT name, type, placeholder, required, description
7368
FROM user_form;
7469

7570
INSERT INTO user (first_name, last_name, birth_date)
@@ -93,6 +88,8 @@ WHERE $first_name IS NOT NULL;
9388

9489
## How it works
9590

91+
![architecture diagram](./docs/architecture.png)
92+
9693
SQLPage is a [web server](https://en.wikipedia.org/wiki/Web_server) written in
9794
[rust](https://en.wikipedia.org/wiki/Rust_(programming_language))
9895
and distributed as a single executable file.

docs/architecture.png

147 KB
Loading

docs/composite-form-screenshot.png

221 KB
Loading

docs/demo-form.png

16.8 KB
Loading

docs/demo-graph.png

61.8 KB
Loading

docs/example-form-code-screenshot.png

136 KB
Loading
53 KB
Loading

docs/favicon.png

188 KB
Loading

docs/favicon.svg

+219
Loading

docs/sqlpage.gif

215 KB
Loading

docs/sqlpage.mp4

121 KB
Binary file not shown.

examples/official-site/favicon.ico

29.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)