This commit is contained in:
parent
a2b8288eaa
commit
a887d01bfd
2 changed files with 27 additions and 22 deletions
42
index.qmd
42
index.qmd
|
|
@ -4,7 +4,7 @@ format:
|
||||||
revealjs:
|
revealjs:
|
||||||
slide-tone: true
|
slide-tone: true
|
||||||
progress: false
|
progress: false
|
||||||
theme: default
|
theme: [default, style.scss]
|
||||||
loop: true
|
loop: true
|
||||||
shuffle: true
|
shuffle: true
|
||||||
transition: zoom
|
transition: zoom
|
||||||
|
|
@ -13,37 +13,35 @@ format:
|
||||||
auto-play-media: true
|
auto-play-media: true
|
||||||
background-transition: convex
|
background-transition: convex
|
||||||
auto-stretch: false
|
auto-stretch: false
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
```{css, echo=FALSE}
|
|
||||||
.reveal h1 {
|
|
||||||
font-size: 100px;
|
|
||||||
font-style: italic;
|
|
||||||
color: greenyellow;
|
|
||||||
font-family: Arial;
|
|
||||||
font-variant: small-caps;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
```{r}
|
```{r}
|
||||||
#| output: asis
|
#| output: asis
|
||||||
img_files <- fs::dir_ls("images", glob = "*")
|
img_files <- fs::dir_ls("images", glob = "*")
|
||||||
back_files <- fs::dir_ls("background", glob = "*")
|
back_files <- fs::dir_ls("background", glob = "*")
|
||||||
quotes_list <- readLines("quotes.txt")
|
quotes_list <- readLines("quotes.txt")
|
||||||
|
|
||||||
|
if (Sys.Date() == "2025-07-10" || TRUE) {
|
||||||
|
img <- "birthday/camille.jpg"
|
||||||
for (img in img_files) {
|
quote <- "Joyeux anniversaire Camille ! 🎁 🍰"
|
||||||
for (back in back_files) {
|
for (back in back_files) {
|
||||||
for (quote in quotes_list) {
|
cat("# ", quote, " {background-image='", back, "' background-repeat='", ifelse(back == "background/miaps.png", "repeat", "no-repeat"), "' background-size='", ifelse(back == "background/miaps.png", "400px", "100%"), "'}", "\n",
|
||||||
cat("# ", quote, " {background-image='", back, "' background-repeat='", ifelse(back == "background/miaps.png", "repeat", "no-repeat"), "' background-size='", ifelse(back == "background/miaps.png", "400px", "100%"), "'}", "\n",
|
glue::glue(""), "{fig-align='center' .r-stretch}\n\n",
|
||||||
glue::glue(""), "{fig-align='center' .r-stretch}\n\n",
|
sep = ""
|
||||||
sep = ""
|
)
|
||||||
)
|
}
|
||||||
|
} else {
|
||||||
|
for (img in img_files) {
|
||||||
|
for (back in back_files) {
|
||||||
|
for (quote in quotes_list) {
|
||||||
|
cat("# ", quote, " {background-image='", back, "' background-repeat='", ifelse(back == "background/miaps.png", "repeat", "no-repeat"), "' background-size='", ifelse(back == "background/miaps.png", "400px", "100%"), "'}", "\n",
|
||||||
|
glue::glue(""), "{fig-align='center' .r-stretch}\n\n",
|
||||||
|
sep = ""
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
7
style.scss
Normal file
7
style.scss
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
/*-- scss:rules --*/
|
||||||
|
.reveal h1 {
|
||||||
|
font-size: 100px;
|
||||||
|
font-style: italic;
|
||||||
|
color: greenyellow;
|
||||||
|
font-family: Arial;
|
||||||
|
font-variant: small-caps; }
|
||||||
Loading…
Add table
Reference in a new issue