d718c5a372
CI / compile_and_lint (push) Failing after 0s
CI / docker_build (linux/amd64, -linux-amd64-duckdb, duckdb) (push) Failing after 0s
CI / docker_build (linux/arm64, -linux-arm64, minimal) (push) Failing after 2s
CI / docker_build (linux/arm64, -linux-arm64-duckdb, duckdb) (push) Failing after 1s
CI / docker_build (linux/amd64, minimal) (push) Failing after 1s
CI / test (, sqlite, sqlite::memory:) (push) Has been skipped
CI / test (mssql, mssql, mssql://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / test (mysql, mysql, mysql://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / test (oracle, oracle, Driver=Oracle 21 ODBC driver;Dbq=//127.0.0.1:1521/FREEPDB1;Uid=root;Pwd=Password123!) (push) Has been skipped
CI / test (postgres, odbc, Driver=PostgreSQL Unicode;Server=127.0.0.1;Port=5432;Database=sqlpage;UID=root;PWD=Password123!, true) (push) Has been skipped
CI / test (postgres, postgres, postgres://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / playwright (push) Has been skipped
CI / docker_build (linux/arm/v7, -linux-arm-v7, minimal) (push) Failing after 0s
CI / hurl_examples (push) Failing after 8s
deploy website / deploy_official_site (push) Failing after 1s
CI / hurl (${{ matrix.example }}) (push) Has been skipped
CI / docker_push (duckdb) (push) Has been cancelled
CI / docker_push (minimal) (push) Has been cancelled
CI / windows_test (push) Has been cancelled
177 lines
5.6 KiB
SQL
177 lines
5.6 KiB
SQL
-- Hero
|
|
INSERT INTO
|
|
component(name, icon, description)
|
|
VALUES
|
|
(
|
|
'hero',
|
|
'home',
|
|
'Display a large title and description for your page, with an optional large illustrative image. Useful in your home page, for instance.'
|
|
);
|
|
|
|
INSERT INTO
|
|
parameter(
|
|
component,
|
|
name,
|
|
description,
|
|
type,
|
|
top_level,
|
|
optional
|
|
)
|
|
SELECT
|
|
'hero',
|
|
*
|
|
FROM
|
|
(
|
|
VALUES
|
|
-- top level
|
|
(
|
|
'title',
|
|
'The title of your page. Will be shown in very large characters at the top.',
|
|
'TEXT',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
(
|
|
'description',
|
|
'A description of the page. Displayed below the title, in smaller characters and slightly greyed out.',
|
|
'TEXT',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
(
|
|
'description_md',
|
|
'A description of the page. Displayed below the title, in smaller characters and slightly greyed out - formatted using markdown.',
|
|
'TEXT',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
(
|
|
'image',
|
|
'The URL of an image to display next to the page title.',
|
|
'URL',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
(
|
|
'video',
|
|
'The URL of a video to display next to the page title.',
|
|
'URL',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
(
|
|
'link',
|
|
'Creates a large "call to action" button below the description, linking to the specified URL.',
|
|
'URL',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
(
|
|
'link_text',
|
|
'The text to display in the call to action button. Defaults to "Go".',
|
|
'TEXT',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
(
|
|
'poster',
|
|
'URL of the image to be displayed before the video starts. Ignored if no video is present.',
|
|
'URL',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
(
|
|
'nocontrols',
|
|
'Hide the video controls (play, pause, volume, etc.), and autoplay the video.',
|
|
'BOOLEAN',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
('muted', 'Mute the video', 'BOOLEAN', TRUE, TRUE),
|
|
('autoplay', 'Automatically start playing the video', 'BOOLEAN', TRUE, TRUE),
|
|
('loop', 'Loop the video', 'BOOLEAN', TRUE, TRUE),
|
|
(
|
|
'reverse',
|
|
'Reverse the order of the image and text: the image will be on the left, and the text on the right.',
|
|
'BOOLEAN',
|
|
TRUE,
|
|
TRUE
|
|
),
|
|
-- item level
|
|
(
|
|
'title',
|
|
'The name of a single feature section highlighted by this hero.',
|
|
'TEXT',
|
|
FALSE,
|
|
TRUE
|
|
),
|
|
(
|
|
'description',
|
|
'Description of the feature section.',
|
|
'TEXT',
|
|
FALSE,
|
|
TRUE
|
|
),
|
|
(
|
|
'description_md',
|
|
'Description of the feature section - formatted using markdown.',
|
|
'TEXT',
|
|
FALSE,
|
|
TRUE
|
|
),
|
|
(
|
|
'icon',
|
|
'Icon of the feature section.',
|
|
'ICON',
|
|
FALSE,
|
|
TRUE
|
|
),
|
|
(
|
|
'link',
|
|
'An URL to which the user should be taken when they click on the section title.',
|
|
'TEXT',
|
|
FALSE,
|
|
TRUE
|
|
)
|
|
) x;
|
|
|
|
INSERT INTO
|
|
example(component, description, properties)
|
|
VALUES
|
|
(
|
|
'hero',
|
|
'The simplest possible hero section',
|
|
json(
|
|
'[{
|
|
"component":"hero",
|
|
"title": "Welcome",
|
|
"description": "This is a very simple site built with SQLPage."
|
|
}]'
|
|
)
|
|
),
|
|
(
|
|
'hero',
|
|
'A hero with a background image.',
|
|
json(
|
|
'[{
|
|
"component":"hero",
|
|
"title": "SQLPage",
|
|
"description_md": "Documentation for the *SQLPage* low-code web application framework.",
|
|
"image": "https://upload.wikimedia.org/wikipedia/commons/thumb/e/e4/Lac_de_Zoug.jpg/640px-Lac_de_Zoug.jpg",
|
|
"link": "/documentation.sql",
|
|
"link_text": "Read Documentation !"},' || '{"title": "Fast", "description": "Pages load instantly, even on slow mobile networks.", "icon": "car", "color": "red", "link": "/"},' || '{"title": "Beautiful", "description": "Uses pre-defined components that look professional.", "icon": "eye", "color": "green", "link": "/"},' || '{"title": "Easy", "description_md": "You can teach yourself enough SQL to use [**SQLPage**](https://sql-page.com) in a weekend.", "icon": "sofa", "color": "blue", "link": "/"}' || ']'
|
|
)
|
|
),
|
|
(
|
|
'hero',
|
|
'A hero with a video',
|
|
json(
|
|
'[{
|
|
"component":"hero",
|
|
"title": "Databases",
|
|
"reverse": true,
|
|
"description_md": "# “The goal is to turn data into information, and information into insight.”",
|
|
"poster": "https://upload.wikimedia.org/wikipedia/commons/thumb/e/e4/Lac_de_Zoug.jpg/640px-Lac_de_Zoug.jpg",
|
|
"video": "/sqlpage_introduction_video.webm"
|
|
}]')
|
|
); |