Skip to content

Commit b29dde8

Browse files
committed
Move layout and markup references to Markdown
1 parent 27abe41 commit b29dde8

25 files changed

Lines changed: 417 additions & 463 deletions
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
icon: code
3+
since: 0.19.0
4+
category: page-layout
5+
summary: Display source code with syntax highlighting.
6+
top:
7+
- class
8+
- id
9+
row:
10+
- name: contents
11+
type: TEXT
12+
required: true
13+
description: A block of code.
14+
- name: description
15+
type: TEXT
16+
description: Description of the snipet of code.
17+
- name: description_md
18+
type: TEXT
19+
description: Rich text in the markdown format. Among others, this allows you to write bold text using `**bold**`,
20+
italics using `*italics*`, and links using `[text](https://example.com)`.
21+
- name: language
22+
type: TEXT
23+
description: Set the programming language name.
24+
- name: title
25+
type: TEXT
26+
description: Set the heading level (default level is 1)
27+
---
28+
29+
Displays one or many blocks of code from a programming language or formated text as XML or JSON.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
rows:
3+
- component: code
4+
- title: A HTML5 example
5+
language: html
6+
description: Here’s the very minimum that an HTML document should contain, assuming it has CSS and JavaScript
7+
linked to it.
8+
contents: |-
9+
<!DOCTYPE html>
10+
<html lang="en">
11+
<head>
12+
<meta charset="utf-8">
13+
<title>title</title>
14+
<link rel="stylesheet" href="style.css">
15+
<script src="script.js"></script>
16+
</head>
17+
<body>
18+
<!-- page content -->
19+
</body>
20+
</html>
21+
---
22+
23+
Displays a block of HTML code.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
icon: columns
3+
since: 0.29.0
4+
category: page-layout
5+
summary: Compare plans, features, or options in side-by-side cards.
6+
row:
7+
- name: button_color
8+
type: TEXT
9+
description: Optional color for the button.
10+
- name: button_text
11+
type: TEXT
12+
description: Text for the button.
13+
- name: description
14+
type: TEXT
15+
description: A brief description of the item.
16+
- name: description_md
17+
type: TEXT
18+
description: A brief description of the item, formatted using markdown.
19+
- name: icon
20+
type: ICON
21+
description: Optional icon to display in a ribbon.
22+
- name: icon_color
23+
type: TEXT
24+
description: Color for the icon in the ribbon.
25+
- name: item
26+
type: JSON
27+
description: A list of bullet points associated with the columns, represented either as text, or as a json
28+
object with "icon", "color", and "description" or "description_md" fields.
29+
- name: link
30+
type: TEXT
31+
description: A link associated with the item.
32+
- name: size
33+
type: INTEGER
34+
description: Width on a 12-column grid on larger screens. For three equal columns, return three rows with `size` set to 4.
35+
- name: small_text
36+
type: TEXT
37+
description: Optional small text to display after the value.
38+
- name: target
39+
type: TEXT
40+
description: Optional target for the button. Set to "_blank" to open links in a new tab.
41+
- name: title
42+
type: TEXT
43+
description: The title or label for the item.
44+
- name: value
45+
type: TEXT
46+
description: The value associated with the item.
47+
- name: value_color
48+
type: TEXT
49+
description: Color for the value text.
50+
---
51+
52+
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).
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
rows:
3+
- component: columns
4+
- title: Start Plan
5+
value: €18
6+
description: Perfect for testing and small-scale projects
7+
item:
8+
- 128MB Database
9+
- SQLPage hosting
10+
- Community support
11+
link: https://datapage.app
12+
button_text: Start Free Trial
13+
small_text: /month
14+
- title: Pro Plan
15+
value: €40
16+
icon: rocket
17+
description: For growing projects needing enhanced features
18+
item:
19+
- icon: database
20+
color: blue
21+
description: 1GB Database
22+
- icon: headset
23+
color: green
24+
description: Priority Support
25+
- icon: world
26+
color: purple
27+
description: Custom Domain
28+
link: https://datapage.app
29+
button_text: Start Free Trial
30+
button_color: indigo
31+
value_color: indigo
32+
small_text: /month
33+
- title: Enterprise Plan
34+
value: €600
35+
icon: building-skyscraper
36+
description: For large-scale operations with custom needs
37+
item:
38+
- icon: database-plus
39+
description_md: '**Custom Database Scaling**'
40+
- icon: shield-lock
41+
description_md: '**Enterprise Auth** with Single Sign-On'
42+
- icon: headset
43+
description_md: '**Monthly** Expert Support time'
44+
- icon: file-certificate
45+
description_md: '**SLA** with guaranteed uptime'
46+
link: mailto:contact@datapage.app
47+
button_text: Contact Us
48+
small_text: /month
49+
target: _blank
50+
---
51+
52+
Pricing Plans Display
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
rows:
3+
- component: columns
4+
- title: Monthly Active Users
5+
value: 10k
6+
value_color: blue
7+
size: 4
8+
description: Total active users this month, showcasing user engagement.
9+
item:
10+
- icon: target
11+
description: 'Target: 12,000'
12+
link: '#'
13+
button_text: User Activity Overview
14+
button_color: info
15+
- title: Revenue
16+
value: $49k
17+
value_color: blue
18+
size: 4
19+
description: Total revenue generated this month, indicating financial performance.
20+
item:
21+
- icon: trending-down
22+
color: red
23+
description: down from $51k last month
24+
link: '#'
25+
button_text: Financial Dashboard
26+
button_color: info
27+
- title: Customer Satisfaction
28+
value: 94%
29+
value_color: blue
30+
size: 4
31+
description: Percentage of satisfied customers, reflecting service quality.
32+
item:
33+
- icon: trending-up
34+
color: green
35+
description: + 2% this month
36+
link: '#'
37+
button_text: Open Google Ratings
38+
button_color: info
39+
---
40+
41+
Tech Company KPIs Display
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
icon: separator
3+
since: 0.18.0
4+
category: page-layout
5+
summary: Separate sections with a horizontal rule.
6+
top:
7+
- name: bold
8+
type: BOOLEAN
9+
description: Whether the text is bold.
10+
- class
11+
- name: color
12+
type: COLOR
13+
description: The name of a color for this span of text.
14+
- name: contents
15+
type: TEXT
16+
description: A text in the divider.
17+
- name: italics
18+
type: BOOLEAN
19+
description: Whether the text is italicized.
20+
- name: link
21+
type: URL
22+
description: URL of the link for the divider text. Available only when contents is present.
23+
- name: position
24+
type: TEXT
25+
description: Position of the text (e.g. left, right).
26+
- name: size
27+
type: INTEGER
28+
description: The size of the divider text, from 1 to 6.
29+
- name: underline
30+
type: BOOLEAN
31+
description: Whether the text is underlined.
32+
---
33+
34+
Dividers help organize content and make the interface layout clear and uncluttered.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
rows:
3+
- component: divider
4+
---
5+
6+
An empty divider
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
rows:
3+
- component: divider
4+
contents: Hello
5+
---
6+
7+
A divider with centered text
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
rows:
3+
- component: divider
4+
contents: Hello
5+
position: left
6+
---
7+
8+
A divider with text at left
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
rows:
3+
- component: divider
4+
contents: SQLPage components
5+
link: /documentation.sql
6+
color: blue
7+
---
8+
9+
A divider with blue text and a link

0 commit comments

Comments
 (0)