diff --git a/examples/official-site/content/components/code.md b/examples/official-site/content/components/code.md
new file mode 100644
index 000000000..677e403ed
--- /dev/null
+++ b/examples/official-site/content/components/code.md
@@ -0,0 +1,29 @@
+---
+icon: code
+since: 0.19.0
+category: page-layout
+summary: Display source code with syntax highlighting.
+top:
+ - class
+ - id
+row:
+ - name: contents
+ type: TEXT
+ required: true
+ description: A block of code.
+ - name: description
+ type: TEXT
+ description: Description of the snipet of code.
+ - name: description_md
+ type: TEXT
+ description: Rich text in the markdown format. Among others, this allows you to write bold text using `**bold**`,
+ italics using `*italics*`, and links using `[text](https://example.com)`.
+ - name: language
+ type: TEXT
+ description: Set the programming language name.
+ - name: title
+ type: TEXT
+ description: Set the heading level (default level is 1)
+---
+
+Displays one or many blocks of code from a programming language or formated text as XML or JSON.
diff --git a/examples/official-site/content/components/code/examples/01-html-source.md b/examples/official-site/content/components/code/examples/01-html-source.md
new file mode 100644
index 000000000..6ed2e7909
--- /dev/null
+++ b/examples/official-site/content/components/code/examples/01-html-source.md
@@ -0,0 +1,23 @@
+---
+rows:
+ - component: code
+ - title: A HTML5 example
+ language: html
+ description: Here’s the very minimum that an HTML document should contain, assuming it has CSS and JavaScript
+ linked to it.
+ contents: |-
+
+
+
+
+ title
+
+
+
+
+
+
+
+---
+
+Displays a block of HTML code.
diff --git a/examples/official-site/content/components/columns.md b/examples/official-site/content/components/columns.md
new file mode 100644
index 000000000..fbbe4395c
--- /dev/null
+++ b/examples/official-site/content/components/columns.md
@@ -0,0 +1,52 @@
+---
+icon: columns
+since: 0.29.0
+category: page-layout
+summary: Compare plans, features, or options in side-by-side cards.
+row:
+ - name: button_color
+ type: TEXT
+ description: Optional color for the button.
+ - name: button_text
+ type: TEXT
+ description: Text for the button.
+ - name: description
+ type: TEXT
+ description: A brief description of the item.
+ - name: description_md
+ type: TEXT
+ description: A brief description of the item, formatted using markdown.
+ - name: icon
+ type: ICON
+ description: Optional icon to display in a ribbon.
+ - name: icon_color
+ type: TEXT
+ description: Color for the icon in the ribbon.
+ - name: item
+ type: JSON
+ description: A list of bullet points associated with the columns, represented either as text, or as a json
+ object with "icon", "color", and "description" or "description_md" fields.
+ - name: link
+ type: TEXT
+ description: A link associated with the item.
+ - name: size
+ type: INTEGER
+ description: Width on a 12-column grid on larger screens. For three equal columns, return three rows with `size` set to 4.
+ - name: small_text
+ type: TEXT
+ description: Optional small text to display after the value.
+ - name: target
+ type: TEXT
+ description: Optional target for the button. Set to "_blank" to open links in a new tab.
+ - name: title
+ type: TEXT
+ description: The title or label for the item.
+ - name: value
+ type: TEXT
+ description: The value associated with the item.
+ - name: value_color
+ type: TEXT
+ description: Color for the value text.
+---
+
+Use one row per plan, feature, or metric to compare them side by side. For a dashboard of values with trends and progress bars, see [`big_number`](?component=big_number).
diff --git a/examples/official-site/content/components/columns/examples/01-pricing-plans.md b/examples/official-site/content/components/columns/examples/01-pricing-plans.md
new file mode 100644
index 000000000..a13093f93
--- /dev/null
+++ b/examples/official-site/content/components/columns/examples/01-pricing-plans.md
@@ -0,0 +1,52 @@
+---
+rows:
+ - component: columns
+ - title: Start Plan
+ value: €18
+ description: Perfect for testing and small-scale projects
+ item:
+ - 128MB Database
+ - SQLPage hosting
+ - Community support
+ link: https://datapage.app
+ button_text: Start Free Trial
+ small_text: /month
+ - title: Pro Plan
+ value: €40
+ icon: rocket
+ description: For growing projects needing enhanced features
+ item:
+ - icon: database
+ color: blue
+ description: 1GB Database
+ - icon: headset
+ color: green
+ description: Priority Support
+ - icon: world
+ color: purple
+ description: Custom Domain
+ link: https://datapage.app
+ button_text: Start Free Trial
+ button_color: indigo
+ value_color: indigo
+ small_text: /month
+ - title: Enterprise Plan
+ value: €600
+ icon: building-skyscraper
+ description: For large-scale operations with custom needs
+ item:
+ - icon: database-plus
+ description_md: '**Custom Database Scaling**'
+ - icon: shield-lock
+ description_md: '**Enterprise Auth** with Single Sign-On'
+ - icon: headset
+ description_md: '**Monthly** Expert Support time'
+ - icon: file-certificate
+ description_md: '**SLA** with guaranteed uptime'
+ link: mailto:contact@datapage.app
+ button_text: Contact Us
+ small_text: /month
+ target: _blank
+---
+
+Pricing Plans Display
diff --git a/examples/official-site/content/components/columns/examples/02-company-metrics.md b/examples/official-site/content/components/columns/examples/02-company-metrics.md
new file mode 100644
index 000000000..c194d35bb
--- /dev/null
+++ b/examples/official-site/content/components/columns/examples/02-company-metrics.md
@@ -0,0 +1,41 @@
+---
+rows:
+ - component: columns
+ - title: Monthly Active Users
+ value: 10k
+ value_color: blue
+ size: 4
+ description: Total active users this month, showcasing user engagement.
+ item:
+ - icon: target
+ description: 'Target: 12,000'
+ link: '#'
+ button_text: User Activity Overview
+ button_color: info
+ - title: Revenue
+ value: $49k
+ value_color: blue
+ size: 4
+ description: Total revenue generated this month, indicating financial performance.
+ item:
+ - icon: trending-down
+ color: red
+ description: down from $51k last month
+ link: '#'
+ button_text: Financial Dashboard
+ button_color: info
+ - title: Customer Satisfaction
+ value: 94%
+ value_color: blue
+ size: 4
+ description: Percentage of satisfied customers, reflecting service quality.
+ item:
+ - icon: trending-up
+ color: green
+ description: + 2% this month
+ link: '#'
+ button_text: Open Google Ratings
+ button_color: info
+---
+
+Tech Company KPIs Display
diff --git a/examples/official-site/content/components/divider.md b/examples/official-site/content/components/divider.md
new file mode 100644
index 000000000..f68c22c66
--- /dev/null
+++ b/examples/official-site/content/components/divider.md
@@ -0,0 +1,34 @@
+---
+icon: separator
+since: 0.18.0
+category: page-layout
+summary: Separate sections with a horizontal rule.
+top:
+ - name: bold
+ type: BOOLEAN
+ description: Whether the text is bold.
+ - class
+ - name: color
+ type: COLOR
+ description: The name of a color for this span of text.
+ - name: contents
+ type: TEXT
+ description: A text in the divider.
+ - name: italics
+ type: BOOLEAN
+ description: Whether the text is italicized.
+ - name: link
+ type: URL
+ description: URL of the link for the divider text. Available only when contents is present.
+ - name: position
+ type: TEXT
+ description: Position of the text (e.g. left, right).
+ - name: size
+ type: INTEGER
+ description: The size of the divider text, from 1 to 6.
+ - name: underline
+ type: BOOLEAN
+ description: Whether the text is underlined.
+---
+
+Dividers help organize content and make the interface layout clear and uncluttered.
diff --git a/examples/official-site/content/components/divider/examples/01-empty.md b/examples/official-site/content/components/divider/examples/01-empty.md
new file mode 100644
index 000000000..c21749819
--- /dev/null
+++ b/examples/official-site/content/components/divider/examples/01-empty.md
@@ -0,0 +1,6 @@
+---
+rows:
+ - component: divider
+---
+
+An empty divider
diff --git a/examples/official-site/content/components/divider/examples/02-centered.md b/examples/official-site/content/components/divider/examples/02-centered.md
new file mode 100644
index 000000000..382c17827
--- /dev/null
+++ b/examples/official-site/content/components/divider/examples/02-centered.md
@@ -0,0 +1,7 @@
+---
+rows:
+ - component: divider
+ contents: Hello
+---
+
+A divider with centered text
diff --git a/examples/official-site/content/components/divider/examples/03-left.md b/examples/official-site/content/components/divider/examples/03-left.md
new file mode 100644
index 000000000..3ffd03b54
--- /dev/null
+++ b/examples/official-site/content/components/divider/examples/03-left.md
@@ -0,0 +1,8 @@
+---
+rows:
+ - component: divider
+ contents: Hello
+ position: left
+---
+
+A divider with text at left
diff --git a/examples/official-site/content/components/divider/examples/04-colored-link.md b/examples/official-site/content/components/divider/examples/04-colored-link.md
new file mode 100644
index 000000000..7e47ed5f8
--- /dev/null
+++ b/examples/official-site/content/components/divider/examples/04-colored-link.md
@@ -0,0 +1,9 @@
+---
+rows:
+ - component: divider
+ contents: SQLPage components
+ link: /documentation.sql
+ color: blue
+---
+
+A divider with blue text and a link
diff --git a/examples/official-site/content/components/divider/examples/05-text-formatting.md b/examples/official-site/content/components/divider/examples/05-text-formatting.md
new file mode 100644
index 000000000..09176aa3d
--- /dev/null
+++ b/examples/official-site/content/components/divider/examples/05-text-formatting.md
@@ -0,0 +1,13 @@
+---
+rows:
+ - component: divider
+ contents: Important notice
+ position: left
+ color: red
+ size: 5
+ bold: true
+ italics: true
+ underline: true
+---
+
+A divider with bold, italic, and underlined text
diff --git a/examples/official-site/content/components/foldable.md b/examples/official-site/content/components/foldable.md
new file mode 100644
index 000000000..feccb9a1a
--- /dev/null
+++ b/examples/official-site/content/components/foldable.md
@@ -0,0 +1,37 @@
+---
+icon: chevrons-down
+since: 0.29.0
+category: page-layout
+summary: Let readers expand individual sections to see their contents.
+top:
+ - name: class
+ type: TEXT
+ description: CSS class(es) to add to the foldable container. When set at the top level, applies to the
+ entire foldable component.
+ - name: id
+ type: TEXT
+ description: ID attribute added to the container in HTML. Used for targeting through CSS or for scrolling
+ via links. When set at the top level, applies to the entire foldable component.
+row:
+ - name: class
+ type: TEXT
+ description: CSS class(es) to add to individual foldable items.
+ - name: description
+ type: TEXT
+ description: Plain text description of the item, displayed when expanded.
+ - name: description_md
+ type: TEXT
+ description: Markdown description of the item, displayed when expanded.
+ - name: expanded
+ type: BOOLEAN
+ description: If set to TRUE, the foldable item starts in an expanded state. Defaults FALSE
+ - name: id
+ type: TEXT
+ description: ID attribute added to individual foldable items. Used for targeting through CSS or for scrolling
+ via links.
+ - name: title
+ type: TEXT
+ description: Title of the foldable item, displayed on the button.
+---
+
+A foldable list of elements which can be expanded individually.
diff --git a/examples/official-site/content/components/foldable/examples/01-paragraph.md b/examples/official-site/content/components/foldable/examples/01-paragraph.md
new file mode 100644
index 000000000..00f1b1f67
--- /dev/null
+++ b/examples/official-site/content/components/foldable/examples/01-paragraph.md
@@ -0,0 +1,9 @@
+---
+rows:
+ - component: foldable
+ - title: The foldable component
+ description: This is a simple foldable component. It can be used to show and hide content. It is a list
+ of items, each with a title and a description. The description is displayed when the item is expanded.
+---
+
+A single foldable paragraph of text
diff --git a/examples/official-site/content/components/foldable/examples/02-markdown-list.md b/examples/official-site/content/components/foldable/examples/02-markdown-list.md
new file mode 100644
index 000000000..5203e3b5d
--- /dev/null
+++ b/examples/official-site/content/components/foldable/examples/02-markdown-list.md
@@ -0,0 +1,40 @@
+---
+rows:
+ - component: foldable
+ - title: Quick Prototyping
+ description_md: |-
+ Build a functional web app prototype in minutes using just SQL queries:
+
+ - Rapid development
+ - Ideal for MVPs
+ - Great for internal tools
+
+ Learn more about [quick prototyping](/your-first-sql-website/).
+ expanded: true
+ - title: Data Visualization
+ description_md: |-
+ Quickly transform your database into useful insights:
+
+ 1. **Charts**: Line, bar, pie
+ 2. **KPIs**: Appealing visualizations of key metrics
+ 3. **Maps**: Geospatial data
+
+ As simple as:
+
+ ```sql
+ SELECT 'chart' as component;
+ SELECT date as x, revenue as y FROM sales;
+ ```
+ - title: Don't stare, interact!
+ description_md: |-
+ SQLPage is not just a passive *Business Intelligence* tool. With SQLPage, you can act upon user input:
+
+ - *User input collection*: Building a form is just as easy as building a chart.
+ - *Data validation*: Write your own validation rules in SQL.
+ - *Database updates*: `INSERT` and `UPDATE` are first-class citizens.
+ - *File uploads*: Upload `CSV` and other files, store and display them the way you want.
+
+ > Let users interact with your data, not just look at it!
+---
+
+A SQLPage-themed foldable list with Markdown
diff --git a/examples/official-site/content/components/html.md b/examples/official-site/content/components/html.md
new file mode 100644
index 000000000..37f8e419c
--- /dev/null
+++ b/examples/official-site/content/components/html.md
@@ -0,0 +1,29 @@
+---
+icon: html
+since: 0.25.0
+category: page-layout
+summary: Insert your own HTML markup into the page.
+top:
+ - name: html
+ type: TEXT
+ description: Raw HTML content to include in the page. This will not be sanitized or escaped. If you include
+ content from an untrusted source, your page will be vulnerable to cross-site scripting attacks.
+row:
+ - name: html
+ type: TEXT
+ description: Raw HTML content to include in the page. This will not be sanitized or escaped. If you include
+ content from an untrusted source, your page will be vulnerable to cross-site scripting attacks.
+ - name: post_html
+ type: TEXT
+ description: Raw HTML content to include after the text content. This will not be sanitized or escaped.
+ If you include content from an untrusted source, your page will be vulnerable to cross-site scripting
+ attacks.
+ - name: text
+ type: TEXT
+ description: Text content to include in the page. This will be sanitized and escaped. Use this property
+ to include user-generated content that should not contain HTML tags.
+---
+
+Include raw HTML in the output. For advanced users only. Use this component to create complex layouts or to include external content.
+ Be very careful when using this component with user-generated content, as it can lead to security vulnerabilities.
+ Use this component only if you are familiar with the security implications of including raw HTML, and understand the risks of cross-site scripting (XSS) attacks.
diff --git a/examples/official-site/content/components/html/examples/01-html-snippet.md b/examples/official-site/content/components/html/examples/01-html-snippet.md
new file mode 100644
index 000000000..23e4d1be9
--- /dev/null
+++ b/examples/official-site/content/components/html/examples/01-html-snippet.md
@@ -0,0 +1,7 @@
+---
+rows:
+ - component: html
+ html:
This text is safe because it is hardcoded!
+---
+
+Include a simple HTML snippet. In this example, the HTML code is hardcoded in the SQL query, so it is safe. You should never include data that may be manipulated by a user in the HTML content.
diff --git a/examples/official-site/content/components/html/examples/02-multiple-snippets.md b/examples/official-site/content/components/html/examples/02-multiple-snippets.md
new file mode 100644
index 000000000..665dadb70
--- /dev/null
+++ b/examples/official-site/content/components/html/examples/02-multiple-snippets.md
@@ -0,0 +1,12 @@
+---
+rows:
+ - component: html
+ html: '
'
+ - html: '
20%
'
+ - html: '
80%
'
+ - html:
+---
+
+Include multiple html snippets as row-level parameters. Again, be careful what you include in the HTML content. If the data comes from a user, it can be manipulated to include malicious code.
diff --git a/examples/official-site/content/components/html/examples/03-sanitized-text.md b/examples/official-site/content/components/html/examples/03-sanitized-text.md
new file mode 100644
index 000000000..5fb5f835d
--- /dev/null
+++ b/examples/official-site/content/components/html/examples/03-sanitized-text.md
@@ -0,0 +1,9 @@
+---
+rows:
+ - component: html
+ - html: '
The following will be sanitized: '
+ text:
+ post_html: . Phew! That was close!
+---
+
+In order to include user-generated content that should be sanitized, use the `text` property instead of `html`. The `text` property will display the text as-is, without interpreting any HTML tags.
diff --git a/examples/official-site/sqlpage/migrations/29_divider_component.sql b/examples/official-site/sqlpage/migrations/29_divider_component.sql
deleted file mode 100644
index 3acaa4e4b..000000000
--- a/examples/official-site/sqlpage/migrations/29_divider_component.sql
+++ /dev/null
@@ -1,152 +0,0 @@
-INSERT INTO component (name, description, icon, introduced_in_version)
-VALUES (
- 'divider',
- 'Dividers help organize content and make the interface layout clear and uncluttered.',
- 'separator',
- '0.18.0'
- );
-
-INSERT INTO parameter (
- component,
- name,
- description,
- type,
- top_level,
- optional
- )
-VALUES (
- 'divider',
- 'contents',
- 'A text in the divider.',
- 'TEXT',
- TRUE,
- TRUE
- ),
- (
- 'divider',
- 'position',
- 'Position of the text (e.g. left, right).',
- 'TEXT',
- TRUE,
- TRUE
- ),
- (
- 'divider',
- 'color',
- 'The name of a color for this span of text.',
- 'COLOR',
- TRUE,
- TRUE
- ),
- (
- 'divider',
- 'size',
- 'The size of the divider text, from 1 to 6.',
- 'INTEGER',
- TRUE,
- TRUE
- ),
- (
- 'divider',
- 'bold',
- 'Whether the text is bold.',
- 'BOOLEAN',
- TRUE,
- TRUE
- ),
- (
- 'divider',
- 'italics',
- 'Whether the text is italicized.',
- 'BOOLEAN',
- TRUE,
- TRUE
- ),
- (
- 'divider',
- 'underline',
- 'Whether the text is underlined.',
- 'BOOLEAN',
- TRUE,
- TRUE
- ),
- (
- 'divider',
- 'link',
- 'URL of the link for the divider text. Available only when contents is present.',
- 'URL',
- TRUE,
- TRUE
- );
-
--- Insert example(s) for the component
-INSERT INTO example(component, description, properties)
-VALUES
- (
- 'divider',
- 'An empty divider',
- JSON(
- '[
- {
- "component":"divider"
- }
- ]'
- )
- ),
- (
- 'divider',
- 'A divider with centered text',
- JSON(
- '[
- {
- "component":"divider",
- "contents":"Hello"
- }
- ]'
- )
- ),
- (
- 'divider',
- 'A divider with text at left',
- JSON(
- '[
- {
- "component":"divider",
- "contents":"Hello",
- "position":"left"
- }
- ]'
- )
- ),
- (
- 'divider',
- 'A divider with blue text and a link',
- JSON(
- '[
- {
- "component":"divider",
- "contents":"SQLPage components",
- "link":"/documentation.sql",
- "color":"blue"
- }
- ]'
- )
- ),
- (
- 'divider',
- 'A divider with bold, italic, and underlined text',
- JSON(
- '[
- {
- "component":"divider",
- "contents":"Important notice",
- "position":"left",
- "color":"red",
- "size":5,
- "bold":true,
- "italics":true,
- "underline":true
- }
- ]'
- )
- );
\ No newline at end of file
diff --git a/examples/official-site/sqlpage/migrations/35_code_title.sql b/examples/official-site/sqlpage/migrations/35_code_title.sql
deleted file mode 100644
index d6610a065..000000000
--- a/examples/official-site/sqlpage/migrations/35_code_title.sql
+++ /dev/null
@@ -1,61 +0,0 @@
--- Documentation for the code component
-INSERT INTO component (name, description, icon, introduced_in_version) VALUES (
- 'code',
- 'Displays one or many blocks of code from a programming language or formated text as XML or JSON.',
- 'code',
- '0.19.0'
-);
-
-INSERT INTO parameter (component,name,description,type,top_level,optional) VALUES (
- 'code',
- 'title',
- 'Set the heading level (default level is 1)',
- 'TEXT',
- FALSE,
- TRUE
-),(
- 'code',
- 'contents',
- 'A block of code.',
- 'TEXT',
- FALSE,
- FALSE
-),(
- 'code',
- 'description',
- 'Description of the snipet of code.',
- 'TEXT',
- FALSE,
- TRUE
-),(
- 'code',
- 'description_md',
- 'Rich text in the markdown format. Among others, this allows you to write bold text using `**bold**`, italics using `*italics*`, and links using `[text](https://example.com)`.',
- 'TEXT',
- FALSE,
- TRUE
-),(
- 'code',
- 'language',
- 'Set the programming language name.',
- 'TEXT',
- FALSE,
- TRUE
-);
-
--- Insert example(s) for the component
-INSERT INTO example(component, description, properties) VALUES (
- 'code',
- 'Displays a block of HTML code.',
- JSON(
- '[
- {"component":"code"},
- {
- "title":"A HTML5 example",
- "language":"html",
- "description":"Here’s the very minimum that an HTML document should contain, assuming it has CSS and JavaScript linked to it.",
- "contents":"\n\n\t\n\t\t\n\t\ttitle\n\t\t\n\t\t\n\t\n\t\n\t\t\n\t\n"
- }
- ]'
- )
-);
diff --git a/examples/official-site/sqlpage/migrations/46_html.sql b/examples/official-site/sqlpage/migrations/46_html.sql
deleted file mode 100644
index 58168c0d4..000000000
--- a/examples/official-site/sqlpage/migrations/46_html.sql
+++ /dev/null
@@ -1,97 +0,0 @@
--- Documentation for the RSS component
-INSERT INTO
- component (name, description, icon, introduced_in_version)
-VALUES
- (
- 'html',
- 'Include raw HTML in the output. For advanced users only. Use this component to create complex layouts or to include external content.
- Be very careful when using this component with user-generated content, as it can lead to security vulnerabilities.
- Use this component only if you are familiar with the security implications of including raw HTML, and understand the risks of cross-site scripting (XSS) attacks.',
- 'html',
- '0.25.0'
- );
-
-INSERT INTO
- parameter (
- component,
- name,
- description,
- type,
- top_level,
- optional
- )
-VALUES
- (
- 'html',
- 'html',
- 'Raw HTML content to include in the page. This will not be sanitized or escaped. If you include content from an untrusted source, your page will be vulnerable to cross-site scripting attacks.',
- 'TEXT',
- TRUE,
- TRUE
- ),
- (
- 'html',
- 'html',
- 'Raw HTML content to include in the page. This will not be sanitized or escaped. If you include content from an untrusted source, your page will be vulnerable to cross-site scripting attacks.',
- 'TEXT',
- FALSE,
- TRUE
- ),
- (
- 'html',
- 'text',
- 'Text content to include in the page. This will be sanitized and escaped. Use this property to include user-generated content that should not contain HTML tags.',
- 'TEXT',
- FALSE,
- TRUE
- ),
- (
- 'html',
- 'post_html',
- 'Raw HTML content to include after the text content. This will not be sanitized or escaped. If you include content from an untrusted source, your page will be vulnerable to cross-site scripting attacks.',
- 'TEXT',
- FALSE,
- TRUE
- );
-
--- Insert example(s) for the component
-INSERT INTO
- example (component, description, properties)
-VALUES
- (
- 'html',
- 'Include a simple HTML snippet. In this example, the HTML code is hardcoded in the SQL query, so it is safe. You should never include data that may be manipulated by a user in the HTML content.
- ',
- JSON (
- '[{
- "component": "html",
- "html": "
This text is safe because it is hardcoded!
"
- }]'
- )
- ),
- (
- 'html',
- 'Include multiple html snippets as row-level parameters. Again, be careful what you include in the HTML content. If the data comes from a user, it can be manipulated to include malicious code.',
- JSON (
- '[{"component":"html", "html":"
"},
- {"html":"
20%
"},
- {"html":"
80%
"},
- {"html":"
"}
- ]'
- )
- ),
- (
- 'html',
- 'In order to include user-generated content that should be sanitized, use the `text` property instead of `html`. The `text` property will display the text as-is, without interpreting any HTML tags.',
- JSON (
- '
- [
- {"component": "html"},
- {
- "html": "
The following will be sanitized: ",
- "text": "",
- "post_html": ". Phew! That was close!
"
- }
- ]'
- )
- );
\ No newline at end of file
diff --git a/examples/official-site/sqlpage/migrations/51_column.sql b/examples/official-site/sqlpage/migrations/51_column.sql
deleted file mode 100644
index 8785b3955..000000000
--- a/examples/official-site/sqlpage/migrations/51_column.sql
+++ /dev/null
@@ -1,118 +0,0 @@
--- Column Component Documentation
-
--- Component Definition
-INSERT INTO component(name, icon, description, introduced_in_version) VALUES
- ('columns', 'columns', 'Use one row per plan, feature, or metric to compare them side by side. For a dashboard of values with trends and progress bars, see [`big_number`](?component=big_number).', '0.29.0');
-
--- Inserting parameter information for the column component
-INSERT INTO parameter(component, name, description, type, top_level, optional) SELECT 'columns', * FROM (VALUES
- ('title', 'The title or label for the item.', 'TEXT', FALSE, TRUE),
- ('value', 'The value associated with the item.', 'TEXT', FALSE, TRUE),
- ('description', 'A brief description of the item.', 'TEXT', FALSE, TRUE),
- ('description_md', 'A brief description of the item, formatted using markdown.', 'TEXT', FALSE, TRUE),
- ('item', 'A list of bullet points associated with the columns, represented either as text, or as a json object with "icon", "color", and "description" or "description_md" fields.', 'JSON', FALSE, TRUE),
- ('link', 'A link associated with the item.', 'TEXT', FALSE, TRUE),
- ('button_text', 'Text for the button.', 'TEXT', FALSE, TRUE),
- ('button_color', 'Optional color for the button.', 'TEXT', FALSE, TRUE),
- ('target', 'Optional target for the button. Set to "_blank" to open links in a new tab.', 'TEXT', FALSE, TRUE),
- ('value_color', 'Color for the value text.', 'TEXT', FALSE, TRUE),
- ('small_text', 'Optional small text to display after the value.', 'TEXT', FALSE, TRUE),
- ('icon', 'Optional icon to display in a ribbon.', 'ICON', FALSE, TRUE),
- ('icon_color', 'Color for the icon in the ribbon.', 'TEXT', FALSE, TRUE),
- ('size', 'Width on a 12-column grid on larger screens. For three equal columns, return three rows with `size` set to 4.', 'INTEGER', FALSE, TRUE)
-) x;
-
-INSERT INTO example(component, description, properties) VALUES
- ('columns', 'Pricing Plans Display',
- json('[
- {"component":"columns"},
- {
- "title":"Start Plan",
- "value":"€18",
- "description":"Perfect for testing and small-scale projects",
- "item": [
- "128MB Database",
- "SQLPage hosting",
- "Community support"
- ],
- "link":"https://datapage.app",
- "button_text":"Start Free Trial",
- "small_text":"/month"
- },
- {
- "title":"Pro Plan",
- "value":"€40",
- "icon":"rocket",
- "description":"For growing projects needing enhanced features",
- "item": [
- {"icon":"database", "color": "blue", "description":"1GB Database"},
- {"icon":"headset", "color": "green", "description":"Priority Support"},
- {"icon":"world", "color": "purple", "description":"Custom Domain"}
- ],
- "link":"https://datapage.app",
- "button_text":"Start Free Trial",
- "button_color":"indigo",
- "value_color":"indigo",
- "small_text":"/month"
- },
- {
- "title":"Enterprise Plan",
- "value":"€600",
- "icon":"building-skyscraper",
- "description":"For large-scale operations with custom needs",
- "item": [
- {"icon":"database-plus", "description_md":"**Custom Database Scaling**"},
- {"icon":"shield-lock", "description_md":"**Enterprise Auth** with Single Sign-On"},
- {"icon":"headset", "description_md":"**Monthly** Expert Support time"},
- {"icon":"file-certificate", "description_md":"**SLA** with guaranteed uptime"}
- ],
- "link":"mailto:contact@datapage.app",
- "button_text":"Contact Us",
- "small_text":"/month",
- "target":"_blank"
- }
- ]')),
-
- ('columns', 'Tech Company KPIs Display',
- json('[
- {"component":"columns"},
- {
- "title":"Monthly Active Users",
- "value":"10k",
- "value_color":"blue",
- "size": 4,
- "description":"Total active users this month, showcasing user engagement.",
- "item": [
- {"icon": "target", "description":"Target: 12,000"}
- ],
- "link":"#",
- "button_text":"User Activity Overview",
- "button_color":"info"
- },
- {
- "title":"Revenue",
- "value":"$49k",
- "value_color":"blue",
- "size": 4,
- "description":"Total revenue generated this month, indicating financial performance.",
- "item": [
- {"icon":"trending-down", "color": "red", "description":"down from $51k last month" }
- ],
- "link":"#",
- "button_text":"Financial Dashboard",
- "button_color":"info"
- },
- {
- "title":"Customer Satisfaction",
- "value":"94%",
- "value_color":"blue",
- "size": 4,
- "description":"Percentage of satisfied customers, reflecting service quality.",
- "item": [
- {"icon":"trending-up", "color": "green", "description":"+ 2% this month" }
- ],
- "link":"#",
- "button_text": "Open Google Ratings",
- "button_color":"info"
- }
- ]'));
diff --git a/examples/official-site/sqlpage/migrations/52_foldable.sql b/examples/official-site/sqlpage/migrations/52_foldable.sql
deleted file mode 100644
index d70201dfe..000000000
--- a/examples/official-site/sqlpage/migrations/52_foldable.sql
+++ /dev/null
@@ -1,27 +0,0 @@
-INSERT INTO component(name, icon, description, introduced_in_version) VALUES
- ('foldable', 'chevrons-down', 'A foldable list of elements which can be expanded individually.', '0.29.0');
-
-INSERT INTO parameter(component, name, description, type, top_level, optional) SELECT 'foldable', * FROM (VALUES
- ('id', 'ID attribute added to the container in HTML. Used for targeting through CSS or for scrolling via links. When set at the top level, applies to the entire foldable component.', 'TEXT', TRUE, TRUE),
- ('class', 'CSS class(es) to add to the foldable container. When set at the top level, applies to the entire foldable component.', 'TEXT', TRUE, TRUE),
- ('id', 'ID attribute added to individual foldable items. Used for targeting through CSS or for scrolling via links.', 'TEXT', FALSE, TRUE),
- ('class', 'CSS class(es) to add to individual foldable items.', 'TEXT', FALSE, TRUE),
- ('title', 'Title of the foldable item, displayed on the button.', 'TEXT', FALSE, TRUE),
- ('description', 'Plain text description of the item, displayed when expanded.', 'TEXT', FALSE, TRUE),
- ('description_md', 'Markdown description of the item, displayed when expanded.', 'TEXT', FALSE, TRUE),
- ('expanded', 'If set to TRUE, the foldable item starts in an expanded state. Defaults FALSE', 'BOOLEAN', FALSE, TRUE)
-) x;
-
-INSERT INTO example(component, description, properties) VALUES
- ('foldable', 'A single foldable paragraph of text', json('[
- {"component":"foldable"},
- {"title":"The foldable component", "description": "This is a simple foldable component. It can be used to show and hide content. It is a list of items, each with a title and a description. The description is displayed when the item is expanded."},
- ]'));
-
-INSERT INTO example(component, description, properties) VALUES
- ('foldable', 'A SQLPage-themed foldable list with Markdown', json('[
- {"component":"foldable"},
- {"title":"Quick Prototyping", "description_md": "Build a functional web app prototype in minutes using just SQL queries:\n\n- Rapid development\n- Ideal for MVPs\n- Great for internal tools\n\nLearn more about [quick prototyping](/your-first-sql-website/).", "expanded": true},
- {"title":"Data Visualization", "description_md": "Quickly transform your database into useful insights:\n\n1. **Charts**: Line, bar, pie\n2. **KPIs**: Appealing visualizations of key metrics\n3. **Maps**: Geospatial data\n\nAs simple as:\n\n```sql\nSELECT ''chart'' as component;\nSELECT date as x, revenue as y FROM sales;\n```"},
- {"title":"Don''t stare, interact!", "description_md": "SQLPage is not just a passive *Business Intelligence* tool. With SQLPage, you can act upon user input:\n\n- *User input collection*: Building a form is just as easy as building a chart.\n- *Data validation*: Write your own validation rules in SQL.\n- *Database updates*: `INSERT` and `UPDATE` are first-class citizens.\n- *File uploads*: Upload `CSV` and other files, store and display them the way you want.\n\n> Let users interact with your data, not just look at it!"}
- ]'));
\ No newline at end of file
diff --git a/examples/official-site/sqlpage/migrations/82_reference_catalog.sql b/examples/official-site/sqlpage/migrations/82_reference_catalog.sql
index f875ef567..8a3314c50 100644
--- a/examples/official-site/sqlpage/migrations/82_reference_catalog.sql
+++ b/examples/official-site/sqlpage/migrations/82_reference_catalog.sql
@@ -45,12 +45,7 @@ WITH copy(name, category, summary) AS (VALUES
('steps', 'navigation', 'Mark progress through the stages of a task.'),
('tab', 'navigation', 'Switch between related pages using labeled tabs.'),
- ('code', 'page-layout', 'Display source code with syntax highlighting.'),
- ('columns', 'page-layout', 'Compare plans, features, or options in side-by-side cards.'),
- ('divider', 'page-layout', 'Separate sections with a horizontal rule.'),
- ('foldable', 'page-layout', 'Let readers expand individual sections to see their contents.'),
('hero', 'page-layout', 'Introduce a page with a headline, media, and a call to action.'),
- ('html', 'page-layout', 'Insert your own HTML markup into the page.'),
('shell', 'page-layout', 'Set the page layout, navigation, branding, and footer.'),
('cookie', 'http-responses', 'Set a cookie in the visitor''s browser.'),
diff --git a/examples/official-site/sqlpage/migrations/99_shared_id_class_attributes.sql b/examples/official-site/sqlpage/migrations/99_shared_id_class_attributes.sql
index b745958cc..4bfaba4fe 100644
--- a/examples/official-site/sqlpage/migrations/99_shared_id_class_attributes.sql
+++ b/examples/official-site/sqlpage/migrations/99_shared_id_class_attributes.sql
@@ -18,7 +18,6 @@ FROM (VALUES
('breadcrumb', TRUE),
('card', FALSE),
('chart', TRUE),
- ('code', TRUE),
('csv', TRUE),
('datagrid', TRUE),
('datagrid', FALSE),
@@ -53,10 +52,8 @@ FROM (VALUES
('card', TRUE),
('card', FALSE),
('chart', TRUE),
- ('code', TRUE),
('csv', TRUE),
('datagrid', TRUE),
- ('divider', TRUE),
('list', TRUE),
('list', FALSE),
('map', TRUE),