Skip to content

Commit b843049

Browse files
committed
add a blog section
1 parent 450e159 commit b843049

File tree

3 files changed

+78
-2
lines changed

3 files changed

+78
-2
lines changed

examples/official-site/blog.sql

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
select 'shell' as component,
2+
'SQLPage' as title,
3+
'database' as icon,
4+
'/' as link,
5+
'en-US' as language,
6+
'Official SQLPage website: write web applications in SQL !' as description,
7+
'blog' as menu_item,
8+
'documentation' as menu_item,
9+
19 as font_size,
10+
'Poppins' as font;
11+
12+
SELECT 'text' AS component,
13+
content AS contents_md
14+
FROM blog_posts
15+
WHERE title = $post;
16+
17+
SELECT 'list' AS component,
18+
'SQLPage blog' AS title;
19+
SELECT title,
20+
description,
21+
icon,
22+
CASE
23+
WHEN external_url IS NOT NULL
24+
THEN external_url
25+
ELSE
26+
'?post=' || title
27+
END AS link
28+
FROM blog_posts;

examples/official-site/index.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ select 'shell' as component,
66
'/' as link,
77
'en-US' as language,
88
'Official SQLPage website: write web applications in SQL !' as description,
9-
'get started' as menu_item,
9+
'blog' as menu_item,
1010
'documentation' as menu_item,
1111
19 as font_size,
1212
'Poppins' as font;
1313

1414
SELECT 'hero' as component,
1515
'SQLPage' as title,
16-
'Open-source *low-code* web application framework.
16+
'Open-source *low-code* web application server.
1717
1818
Create **full websites** writing only simple database queries.' as description_md,
1919
'sqlpage_introduction_video.webm' as video,
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
CREATE TABLE blog_posts (
2+
title TEXT PRIMARY KEY,
3+
description TEXT NOT NULL,
4+
icon TEXT NOT NULL,
5+
external_url TEXT,
6+
content TEXT,
7+
created_at TIMESTAMP NOT NULL
8+
);
9+
10+
INSERT INTO blog_posts (title, description, icon, created_at, content)
11+
VALUES
12+
(
13+
'SQLPage versus No-Code tools',
14+
'What are the advantages and disadvantages of SQLPage compared to No-Code tools?',
15+
'code-minus',
16+
'2023-08-03',
17+
'
18+
**No-Code vs Low-Code: Why Writing an App in SQL Makes Sense** 🚀
19+
=================================================================
20+
21+
So, you''ve got this brilliant app idea that''s been keeping you up at night. You want it to shine, sparkle, and dazzle users. But here''s the catch: you''re not exactly a coding wizard. No worries, the tech world has got you covered with two charming suitors – No-Code and Low-Code platforms. 🎩💻
22+
23+
The Tempting Allure of No-Code
24+
------------------------------
25+
26+
**No-Code tools**, oh sweet simplicity! They sweep you off your feet, promising a land of no syntax-induced headaches. You don''t need to be on first-name terms with SQL or worry about the semi-colon''s mood swings. Plus, you get to play the grand designer, arranging elements like a digital Picasso.
27+
28+
But, hold up, there''s a twist in this love story. As the relationship deepens, you discover the truth – No-Code isn''t that great at handling complex data manipulations. Your app''s smooth moves suddenly stumble, and you realize the sleek exterior is covering up some cracks. When the app grows, maintenance turns into a melodrama, and waving goodbye to version control feels like a heartbreak. 💔
29+
30+
The Charming Proposal of Low-Code
31+
---------------------------------
32+
33+
Now enters the **Low-Code** hero, complete with a dapper suit and a trunk full of powerful tools. With Low-Code, you''re in the driver''s seat, crafting every detail of your app with elegance and precision. You''re not just the designer; you''re the maestro orchestrating a symphony of functionality.
34+
35+
But don''t be fooled by the fairy-tale facade – some Low-Code sweethearts have a hidden agenda. They entice you with their ease and beauty, but as your app grows, you discover they''re trying to lock you in. A switch to something more substantial means starting from scratch, leaving you with a déjà vu of rebuilding your app''s entire world.
36+
37+
The SQLPage Love Story 💘
38+
-------------------------
39+
40+
And then, there''s **SQLPage** – the dashing knight that marries the best of both worlds. Lightweight, easy to self-host, and oh-so-elegant, SQLPage dances with your PostgreSQL database, effortlessly creating captivating web apps. It''s like a matchmaking genius, uniting your SQL skills with stunning visual displays. 🕺💃
41+
42+
But here''s the real showstopper – SQLPage doesn''t force you to learn new tricks. It''s all about _standard_ SQL, your old pal from the database kingdom. No code voodoo, no convoluted syntax – just the language you already know and love. And those worries about slow-loading web pages? Say goodbye to buffering frustration; SQLPage websites are sleek, fast, and utterly mesmerizing.
43+
44+
So, next time you''re torn between No-Code''s enchantment and Low-Code''s embrace, remember the charming SQLPage love story. It''s the fairy-tale ending where you''re in control, your data thrives, and your app''s journey grows without painful rewrites. 👑📊
45+
46+
Give your app the love it deserves – the SQLPage kind of love.💕
47+
'
48+
);

0 commit comments

Comments
 (0)