Skip to content

Commit edae321

Browse files
ake123TuomasBorman
andauthored
Update sponsors #41 & Add other submission types #42 (#43)
* Add Jeba #36 * Improvements #38 * Improvements #38 * updated improvements * new updates * Add info on Posankka #40 * Add info on Posankka #40 * correction * #41 and #42 * #41 and #42 * add image * up --------- Co-authored-by: Tuomas Borman <60338854+TuomasBorman@users.noreply.github.com> Co-authored-by: Tuomas Borman <tvborm@utu.fi>
1 parent 605e87e commit edae321

File tree

6 files changed

+156
-132
lines changed

6 files changed

+156
-132
lines changed

R/sponsors.R

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
2+
read_sponsors <- function(csv_path) {
3+
read.csv(csv_path, stringsAsFactors = FALSE)
4+
}
5+
6+
render_sponsor_grid <- function(df, ncol = 4, img_prefix = "", show_name = FALSE) {
7+
stopifnot(all(c("image", "website") %in% names(df)))
8+
width <- floor(100 / ncol)
9+
10+
url_join <- function(prefix, path) {
11+
if (is.null(prefix) || prefix == "") return(path)
12+
prefix <- sub("/+$", "", prefix)
13+
path <- sub("^/+", "", path)
14+
paste0(prefix, "/", path)
15+
}
16+
17+
out <- c()
18+
out <- c(out, ":::: {.columns}")
19+
out <- c(out, "::: {.column width=\"10%\"}")
20+
out <- c(out, ":::")
21+
out <- c(out, "::: {.column width=\"90%\"}", "")
22+
out <- c(out, ":::: {.columns}")
23+
24+
for (i in seq_len(nrow(df))) {
25+
img <- url_join(img_prefix, df$image[i])
26+
27+
out <- c(out, sprintf("::: {.column width=\"%s%%\"}", width))
28+
29+
# Use HTML img + CSS class (NO markdown width=)
30+
out <- c(out, sprintf(
31+
"<a href='%s' target='_blank' class='sponsor-link'>%s</a>",
32+
df$website[i],
33+
sprintf("<img src='%s' alt='%s' class='sponsor-logo'>",
34+
img,
35+
if ("name" %in% names(df)) df$name[i] else "Sponsor logo")
36+
))
37+
38+
if (show_name && ("name" %in% names(df)) && nzchar(df$name[i])) {
39+
out <- c(out, sprintf("<div class='sponsor-name'>%s</div>", df$name[i]))
40+
}
41+
42+
out <- c(out, ":::")
43+
}
44+
45+
out <- c(out, "::::", "")
46+
out <- c(out, ":::")
47+
out <- c(out, "::: {.column width=\"10%\"}")
48+
out <- c(out, ":::")
49+
out <- c(out, "::::")
50+
51+
cat(paste(out, collapse = "\n"))
52+
}
53+
54+
55+
render_sponsors_home <- function(csv_path, title = "", ncol = 4) {
56+
df <- read_sponsors(csv_path)
57+
cat(sprintf("# %s\n\n", title))
58+
render_sponsor_grid(df, ncol = ncol)
59+
}
60+
61+
render_sponsors_by_level <- function(
62+
csv_path,
63+
level_order = c("Diamond", "Gold", "Silver", "Bronze", "Supporter"),
64+
ncol_by_level = c(Diamond = 2, Gold = 3, Silver = 5, Bronze = 6, Supporter = 6),
65+
heading = c("bold", "h2"),
66+
img_prefix = ""
67+
) {
68+
heading <- match.arg(heading)
69+
70+
df <- read_sponsors(csv_path)
71+
if (!("level" %in% names(df))) stop("CSV must include a 'level' column.")
72+
73+
df$level <- factor(df$level, levels = level_order)
74+
75+
levels_present <- unique(as.character(df$level))
76+
levels_present <- level_order[level_order %in% levels_present]
77+
78+
for (lvl in levels_present) {
79+
df_lvl <- df[as.character(df$level) == lvl, , drop = FALSE]
80+
if (nrow(df_lvl) == 0) next
81+
82+
if (heading == "h2") {
83+
cat(sprintf("\n## %s\n\n", lvl))
84+
} else {
85+
cat(sprintf("\n**%s**\n\n", lvl))
86+
}
87+
88+
ncol <- unname(ncol_by_level[lvl])
89+
if (is.na(ncol)) ncol <- 4
90+
91+
render_sponsor_grid(df_lvl, ncol = ncol, img_prefix = img_prefix)
92+
cat("\n")
93+
}
94+
}

data/sponsors.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name,level,image,website
2+
Federation of Finnish Learned Societies (TSV),Diamond,images/partners/logo-tsv-en.png,https://tsv.fi/en
3+
Liedon Säästöpankkisäätiö (LSPS),Bronze,images/partners/LSPS_logo_text_green_cmyk.jpg,https://liedonsaastopankkisaatio.fi/en/

index.qmd

Lines changed: 4 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -75,53 +75,7 @@ carousel(
7575

7676
# \ \ \ Partnering with
7777

78-
:::: {.columns}
79-
::: {.column width="10%"}
80-
:::
81-
82-
::: {.column width="80%"}
83-
84-
:::: {.columns}
85-
::: {.column width="30%"}
86-
[![](../images/partners/logo-tsv-en){width=100%}](https://tsv.fi/en){target="_blank"}
87-
:::
88-
89-
::: {.column width="2%"}
90-
:::
91-
92-
::: {.column width="12%"}
93-
[![](images/partners/LSPS_logo_text_green_cmyk.jpg){width=100%}](https://liedonsaastopankkisaatio.fi/en/){target="_blank"}
94-
:::
95-
96-
::: {.column width="1%"}
97-
:::
98-
99-
::: {.column width="24%"}
100-
101-
:::
102-
103-
::: {.column width="1%"}
104-
:::
105-
106-
::: {.column width="24%"}
107-
108-
:::
109-
::::
110-
111-
:::
112-
113-
::: {.column width="10%"}
114-
:::
115-
116-
::::
117-
118-
:::: {.columns}
119-
::: {.column width="10%"}
120-
:::
121-
122-
::: {.column width="80%"}
123-
124-
::: {.column width="10%"}
125-
:::
126-
127-
::::
78+
```{r results="asis", echo=FALSE}
79+
source("R/sponsors.R")
80+
render_sponsors_home("data/sponsors.csv", ncol = 4)
81+
```

pages/partners.qmd

Lines changed: 10 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,16 @@
11
# Partnering with us
22

3-
**Diamond**
4-
5-
:::: {.columns}
6-
::: {.column width="5%"}
7-
:::
8-
9-
::: {.column width="90%"}
10-
11-
:::: {.columns}
12-
::: {.column width="30%"}
13-
[![](../images/partners/logo-tsv-en){width=100%}](https://tsv.fi/en){target="_blank"}
14-
:::
15-
16-
::: {.column width="1%"}
17-
:::
18-
19-
::: {.column width="24%"}
20-
21-
:::
22-
23-
::: {.column width="2%"}
24-
:::
25-
26-
::: {.column width="24%"}
27-
28-
:::
29-
30-
::: {.column width="1%"}
31-
:::
32-
33-
::: {.column width="24%"}
34-
35-
:::
36-
::::
37-
38-
:::
39-
40-
::: {.column width="5%"}
41-
:::
42-
43-
::::
44-
45-
**Bronze**
46-
47-
:::: {.columns}
48-
::: {.column width="5%"}
49-
:::
50-
51-
::: {.column width="90%"}
52-
53-
:::: {.columns}
54-
::: {.column width="12%"}
55-
[![](../images/partners/LSPS_logo_text_green_cmyk.jpg){width=100%}](https://liedonsaastopankkisaatio.fi/en/){target="_blank"}
56-
:::
57-
58-
::: {.column width="1%"}
59-
:::
60-
61-
::: {.column width="24%"}
62-
63-
:::
64-
65-
::: {.column width="2%"}
66-
:::
67-
68-
::: {.column width="24%"}
69-
70-
:::
71-
72-
::: {.column width="1%"}
73-
:::
74-
75-
::: {.column width="24%"}
76-
77-
:::
78-
::::
79-
80-
:::
81-
82-
::: {.column width="5%"}
83-
:::
3+
```{r results="asis", echo=FALSE}
4+
source("../R/sponsors.R")
5+
6+
render_sponsors_by_level(
7+
"../data/sponsors.csv",
8+
ncol_by_level = c(Diamond = 2, Gold = 3, Silver = 5, Bronze = 6, Supporter = 6),
9+
heading = "h2",
10+
img_prefix = ".."
11+
)
12+
```
8413

85-
::::
8614

8715
## About partnering with EuroBioC2026
8816

pages/submissions.qmd

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,30 @@ Around 1.5 hour hands-on interactive workshop illustrating the use of a software
5252
package or workflow, where participants are expected to have the time and
5353
opportunity to follow along and perform analysis themselves.
5454

55+
### Flash talk
56+
57+
Flash talks are very short presentations (5 min or less) that may be submitted
58+
up until the day of the session, granted on a first come, first served basis.
59+
60+
Slides must be either publicly accessible online or uploaded to a shared Google
61+
Drive. Presenters will not be allowed to connect their own laptop. We advise
62+
presenters to keep presentations simple (e.g., avoid animations where possible).
63+
64+
Conference delegates already scheduled to present a short talk or poster are
65+
welcome to submit flashtalks.
66+
67+
### Birds-of-a-feather
68+
69+
Birds-of-a-feather sessions are free-format, organizer-lead interactive
70+
discussions on a topic relevant to the Bioconductor community.
71+
Birds-of-a-feather sessions should be proposed before the beginning of the
72+
conference, by filing an issue in <https://github.com/Bioconductor/EuroBioC2026>.
73+
74+
In the issue, please provide information about the plan and intended outcomes
75+
of the session, as well as the name and contact information of the organizer(s).
76+
You may refer to <https://github.com/Bioconductor/EuroBioC2025/issues> for
77+
examples submitted last year.
78+
5579
## Pre-conference workshops
5680

5781
::: {.callout-important icon=false}

styles.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,24 @@ img.speaker {
7575
height: 200px;
7676
object-fit: cover;
7777
}
78+
79+
.sponsor-link { display: block; text-align: center; }
80+
81+
.sponsor-logo{
82+
display:block;
83+
margin:0 auto;
84+
max-height:200px;
85+
width:auto;
86+
height:auto;
87+
88+
max-width:100%;
89+
}
90+
91+
92+
.sponsor-name {
93+
margin-top: 0.6rem;
94+
text-align: center;
95+
font-size: 0.95rem;
96+
line-height: 1.25;
97+
}
98+

0 commit comments

Comments
 (0)