Skip to content

Commit 28d75d4

Browse files
committed
Better dashboard
1 parent ba4ef9a commit 28d75d4

File tree

4 files changed

+37
-4
lines changed

4 files changed

+37
-4
lines changed

brand/brand-simple/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# brand-simple
22

33

4+
<https://examples.quarto.pub/brand-simple/>
5+
46
This is a simple example of using
57
[**brand.yml**](https://posit-dev.github.io/brand-yml/) across a range
68
of Quarto supported formats.
79

8-
The project is a website with a single document `index.qmd` that is
9-
rendered multiple formats: `html`, `revealjs`, `dashboard`, `typst`.
10+
The project is a website with a homepage, `index.qmd`, that is rendered
11+
to multiple formats: `html`, `revealjs`, and `typst`, and a dashboard,
12+
`dashboard.qmd`.
1013

1114
The brand information stored in `_brand.yml` is:
1215

brand/brand-simple/README.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ format: gfm
77

88
This is a simple example of using [**brand.yml**](https://posit-dev.github.io/brand-yml/) across a range of Quarto supported formats.
99

10-
The project is a website with a single document `index.qmd` that is rendered multiple formats: `html`, `revealjs`, `dashboard`, `typst`.
10+
The project is a website with a homepage, `index.qmd`, that is rendered to multiple formats: `html`, `revealjs`, and `typst`, and a dashboard, `dashboard.qmd`.
1111

1212

1313
The brand information stored in `_brand.yml` is:

brand/brand-simple/dashboard.qmd

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: "Dashboard"
3+
format: dashboard
4+
---
5+
6+
## Row
7+
8+
::: {.valuebox icon="currency-dollar" color="primary"}
9+
Sales
10+
11+
5.6k
12+
:::
13+
14+
::: {.valuebox icon="graph-up" color="primary"}
15+
Change
16+
17+
22%
18+
:::
19+
20+
{{< lipsum 1 >}}
21+
22+
## Row
23+
24+
{{< placeholder 400 100 format=svg >}}

brand/brand-simple/index.qmd

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Brand"
33
format:
44
html:
55
other-links:
6-
- href: index-dashboard.html
6+
- href: dashboard.html
77
icon: speedometer
88
text: Dashboard
99
typst: default
@@ -20,3 +20,9 @@ This is a document themed using [**brand.yml**](https://posit-dev.github.io/bran
2020
## Subheading
2121

2222
{{< lipsum 1 >}}
23+
24+
::: {.content-visible when-format="dashboard"}
25+
26+
27+
28+
:::

0 commit comments

Comments
 (0)