-
Notifications
You must be signed in to change notification settings - Fork 1
/
cards.qmd
79 lines (77 loc) · 1.52 KB
/
cards.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
```{r echo=FALSE, results="asis", message=FALSE, warning=FALSE}
library(bslib)
library(htmltools)
library(glue)
# replacement for card_image to fix images stretching
# FIXME:
c_image <- function(file, href, max_width = "100%") {
div(style = "display: flex; justify-content: center; align-items: center; height: 100%;",
tags$a(
href = href,
img(src = file, style = glue("max-width: {max_width}; height: auto;"))
)
)
}
card_r <- card(
card_header(
class = "bg-dark",
"R Packages"
),
c_image(
file = "assets/Rlogo.svg",
href = "projects.html#r-packages"
)
)
card_python <- card(
card_header(
class = "bg-dark",
"Python Packages"
),
c_image(
file = "assets/Pythonlogo.svg",
href = "projects.html#python-packages"
)
)
card_docker <- card(
card_header(
class = "bg-dark",
"Docker Recipes"
),
c_image(
file = "assets/docker-mark-blue.png",
href = "projects.html#docker-recipes"
)
)
card_comp <- card(
card_header(
class = "bg-dark",
"Research Compendia"
),
c_image(
# from research-compendium.github.io
file = "assets/rc-logo.svg",
href = "projects.html#research-compendia",
max_width = "88%"
)
)
card_wdl <- card(
card_header(
class = "bg-dark",
"WDL Workflows"
),
c_image(
file = "assets/WDLlogo.png",
href = "projects.html#wdls"
)
)
card_nf <- card(
card_header(
class = "bg-dark",
"Nextflow Workflows"
),
c_image(
file = "assets/nf-logo.png",
href = "projects.html#nextflow"
)
)
```