diff --git a/examples/official-site/performance.sql b/examples/official-site/performance.sql index 4a9e5834..8587ed63 100644 --- a/examples/official-site/performance.sql +++ b/examples/official-site/performance.sql @@ -1,5 +1,10 @@ select 'dynamic' as component, properties FROM example WHERE component = 'shell' LIMIT 1; +select 'hero' as component, + 'Performance in SQLPage' as title, + 'SQLPage applications are fast, because they are server-side rendered, and begin streaming the page to the browser while the database is still processing the request.' as description, + 'performance.webp' as image; + select 'text' as component, ' # Performance of SQLPage applications diff --git a/examples/official-site/performance.webp b/examples/official-site/performance.webp new file mode 100644 index 00000000..60cebbc6 Binary files /dev/null and b/examples/official-site/performance.webp differ diff --git a/examples/official-site/safety.sql b/examples/official-site/safety.sql index cca3709d..f186392c 100644 --- a/examples/official-site/safety.sql +++ b/examples/official-site/safety.sql @@ -1,9 +1,12 @@ select 'dynamic' as component, properties FROM example WHERE component = 'shell' LIMIT 1; +select 'hero' as component, + 'SQLPage''s security guarantees' as title, + 'SQLPage prevents common web vulnerabilities such as SQL injections and XSS attacks by default.' as description, + 'safety.webp' as image; + select 'text' as component, ' -# SQLPage''s security guarantees - SQLPage is a tool that allows you to create a full website using only SQL queries, and render results straight from the database to the browser. Most programmers, hearing this, will immediately think of the security implications of this model. @@ -18,7 +21,9 @@ SQLPage websites are *server-side rendered*, which means that the SQL queries st where SQLPage is installed. The results of these queries are then rendered to HTML, and sent to the user''s browser. -A malicious user cannot run arbitrary SQL queries on your database, because SQLPage does not expose your database to the internet. +A malicious user cannot run arbitrary SQL queries on your database, because SQLPage +does not expose your entire database to the internet, only the results of +your prepared queries, rendered as web pages. ## Protection against SQL injections diff --git a/examples/official-site/safety.webp b/examples/official-site/safety.webp new file mode 100644 index 00000000..11ea6845 Binary files /dev/null and b/examples/official-site/safety.webp differ diff --git a/examples/official-site/your-first-sql-website/get_started.webp b/examples/official-site/your-first-sql-website/get_started.webp new file mode 100644 index 00000000..9ee1dce3 Binary files /dev/null and b/examples/official-site/your-first-sql-website/get_started.webp differ diff --git a/examples/official-site/your-first-sql-website/get_started_linux.webp b/examples/official-site/your-first-sql-website/get_started_linux.webp new file mode 100644 index 00000000..04f2b605 Binary files /dev/null and b/examples/official-site/your-first-sql-website/get_started_linux.webp differ diff --git a/examples/official-site/your-first-sql-website/get_started_macos.webp b/examples/official-site/your-first-sql-website/get_started_macos.webp new file mode 100644 index 00000000..91feae47 Binary files /dev/null and b/examples/official-site/your-first-sql-website/get_started_macos.webp differ diff --git a/examples/official-site/your-first-sql-website/get_started_windows.webp b/examples/official-site/your-first-sql-website/get_started_windows.webp new file mode 100644 index 00000000..175b4a43 Binary files /dev/null and b/examples/official-site/your-first-sql-website/get_started_windows.webp differ diff --git a/examples/official-site/your-first-sql-website/index.sql b/examples/official-site/your-first-sql-website/index.sql index 5953d501..c43a8836 100644 --- a/examples/official-site/your-first-sql-website/index.sql +++ b/examples/official-site/your-first-sql-website/index.sql @@ -13,7 +13,12 @@ end); SELECT 'hero' as component, 'Your first SQL Website' as title, 'Let''s create your first website in SQL together, from downloading SQLPage to connecting it to your database, to making a web app' as description, - 'https://upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Backlit_keyboard.jpg/1024px-Backlit_keyboard.jpg' as image, + case $os + when 'linux' then 'get_started_linux.webp' + when 'macos' then 'get_started_macos.webp' + when 'windows' then 'get_started_windows.webp' + else 'get_started.webp' + end as image, 'https://github.com/lovasoa/SQLpage/releases'|| case when $os = 'windows' then '/latest/download/sqlpage-windows.zip' when $os = 'linux' then '/latest/download/sqlpage-linux.tgz' diff --git a/examples/official-site/your-first-sql-website/sql.webp b/examples/official-site/your-first-sql-website/sql.webp new file mode 100644 index 00000000..2139578b Binary files /dev/null and b/examples/official-site/your-first-sql-website/sql.webp differ