-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.qmd
85 lines (75 loc) · 2.61 KB
/
index.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
80
81
82
83
84
85
---
page-layout: full
---
::: banner
{.circular width="1000px" fig-align="center" alt="Profile photo of the author with flowers and a gold and silver painting in the background."}
::: centered
# Layal Christine Lettry
Econometrician and Data Scientist
R enthusiast and Blogger
Based in Switzerland
:::
:::
```{r}
#| echo: false
# Copyright to djnavarro: https://github.com/djnavarro/djnavarro.github.io/blob/main/index.qmd
add_card <- function(src, title, text, url, link_text, img_alt) {
lines <- c(
'<div class="g-col-12 g-col-md-6 g-col-xl-4">',
'<div class="card h-100">',
paste0(
'<a href="',
url,
'"><img src="',
src,
'"',
'alt = "',
img_alt,
'"',
'class="card-img-top"></a>'
),
'<div class="card-body">',
paste0('<h2 class="card-title">', title, '</h2>'),
paste0('<p class="card-text">', text, '</p>'),
'</div>',
'<div class="card-footer">',
paste0('<a href="', url, '" class="btn btn-primary">', link_text, '</a>'),
'</div>',
'</div>',
'</div>'
)
cat(lines, sep="\n")
}
```
::: grid
```{r cards}
#| echo: false
#| results: asis
add_card(
src = "image/rdiscovery_profile.jpg",
title = "rdiscovery Blog",
text = "Explore R with me in my blog \"rdiscovery\"!\n It covers a variety of topics regarding the R utilization and its packages.",
url = "https://rdiscovery.netlify.app",
img_alt = "A superhero cat",
link_text = "rdiscovery.netlify.app"
)
add_card(
src = "image/lclettry-pub_profile.jpg",
title = "My Publications, Contributions and Talks",
text = "Happy to share my publications, contributions and talks with you!",
url = "https://lclettry-pub.netlify.app",
img_alt = "A royal cat",
link_text = "lclettry-pub.netlify.app"
)
add_card(
src = "image/lclettry-pronews_profile.jpg",
title = "My Professional News",
text = "Thrilled to share the highlights of my professional journey with you!",
url = "https://lclettry-pronews.netlify.app",
img_alt = "An abstract cat",
link_text = "lclettry-pronews.netlify.app"
)
```
:::
<!-- verification -->
<a rel="me" style="display:none" href="https://fosstodon.org/@layal">Hidden link used to verify my account on fosstodon.org</a> <a rel="me" style="display:none" href="https://linkedin.com/in/layal-christine-lettry-529b4471/">Hidden link used to verify my account on LinkedIn</a> <a rel="me" style="display:none" href="https://twitter.com/LettryL">Hidden link used to verify my account on Twitter</a> <a rel="me" style="display:none" href="https://github.com/Layalchristine24">Hidden link used to verify my account on GitHub</a>