feat: add Quarto themes and templates (revealjs, HTML, PDF, Typst)
R-CMD-check / R CMD check (push) Successful in 3m52s
R-CMD-check / R CMD check (push) Successful in 3m52s
Integrate Civilytics Reveal.js slide extension, HTML/PDF/Typst document themes, and _brand.yml into the package under inst/quarto/. Three new helper functions (use_civilytics_revealjs, use_civilytics_theme, use_civilytics_brand) copy assets into a user's Quarto project. Logos are stored once in inst/img/ and distributed at install time.
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
---
|
||||
title: "Quarterly Analysis"
|
||||
subtitle: "A brief look at the numbers."
|
||||
author: "Civilytics Consulting"
|
||||
date: today
|
||||
format: civilytics-reveal-revealjs
|
||||
---
|
||||
|
||||
## Findings at a glance
|
||||
|
||||
::: {.columns}
|
||||
::: {.column width="50%"}
|
||||
|
||||
[Key metric]{.stat-number}
|
||||
|
||||
- Point one
|
||||
- Point two
|
||||
- Point three
|
||||
|
||||
:::
|
||||
::: {.column width="50%"}
|
||||
|
||||
```{r}
|
||||
#| fig-width: 6
|
||||
#| fig-height: 4
|
||||
library(ggplot2)
|
||||
library(civilytics)
|
||||
|
||||
ggplot(mpg, aes(displ, hwy, colour = class)) +
|
||||
geom_point(size = 2.5) +
|
||||
scale_color_civilytics() +
|
||||
theme_civilytics_slide() +
|
||||
labs(title = "Engine Size vs Fuel Economy",
|
||||
x = "Displacement (L)", y = "Highway MPG")
|
||||
```
|
||||
|
||||
:::
|
||||
:::
|
||||
|
||||
## Section divider {.section}
|
||||
|
||||
Big idea goes here.
|
||||
|
||||
## Data table
|
||||
|
||||
| County | Burden (%) | Change |
|
||||
|:-------------|:----------:|-------:|
|
||||
| Dane | 38.2 | +4.1 |
|
||||
| Milwaukee | 52.7 | +7.3 |
|
||||
| Hennepin | 41.5 | +3.9 |
|
||||
|
||||
: Cost-burdened renter share, selected counties.
|
||||
|
||||
## A blockquote slide {.pullquote}
|
||||
|
||||
> Rent has outpaced wages in every county we studied.
|
||||
|
||||
Civilytics Research, 2026
|
||||
|
||||
## Thank you {.thank-you}
|
||||
|
||||
Questions?
|
||||
|
||||
- jared@civilytics.com
|
||||
- civilytics.consulting
|
||||
Reference in New Issue
Block a user