Skip to content

Commit

Permalink
Merge pull request #35 from CDU-data-science-team/28-add-cdu-branding
Browse files Browse the repository at this point in the history
28 add cdu branding
  • Loading branch information
Zoë Turner authored Sep 27, 2021
2 parents e66a3dc + 4074970 commit 9eda7f3
Show file tree
Hide file tree
Showing 11 changed files with 191 additions and 68 deletions.
6 changes: 3 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ You can install the the development version from [GitHub](https://github.com/) w
devtools::install_github("CDU-data-science-team/nottshcMethods")
```

## Nottinghamshire Healthcare NHS Foundation Trust slides
## Slide and distill post templates

Once the package is installed, {xaringan} presentation slides with Nottinghamshire Healthcare NHS Foundation Trust branding can be access easily using the RStudio IDE, by selecting `File` -\> `R markdown ...` -\> `From Template`.
Once the package is installed, {xaringan} presentation slides with branding and {distill} post templates can be access easily using the RStudio IDE, by selecting `File` -\> `R markdown ...` -\> `From Template`.

```{r, echo = FALSE, out.width="50%"}
```{r, echo = FALSE, out.width="50%", fig.alt="Screenshot of the templates wizard selection list with Nottshc Presentation Slides highlighted"}
knitr::include_graphics("img/screen-capture-templates.png")
```

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ You can install the the development version from
devtools::install_github("CDU-data-science-team/nottshcMethods")
```

## Nottinghamshire Healthcare NHS Foundation Trust slides
## Slide and distill post templates

Once the package is installed, xaringan presentation slides with
Nottinghamshire Healthcare NHS Foundation Trust branding can be access
easily using the RStudio IDE, by selecting `File` -> `R markdown ...`
-> `From Template`.
Once the package is installed, {xaringan} presentation slides with
branding and {distill} post templates can be access easily using the
RStudio IDE, by selecting `File` -> `R markdown ...` ->
`From Template`.

<img src="img/screen-capture-templates.png" width="50%" />
<img src="img/screen-capture-templates.png" title="Screenshot of the templates wizard selection list with Nottshc Presentation Slides highlighted" alt="Screenshot of the templates wizard selection list with Nottshc Presentation Slides highlighted" width="50%" />

## Code of Conduct

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
/*-- LINKS/ANCHORS --*/
a {
color: #005EB8;
border-bottom: 2px solid #005EB8;
line-height: 1.5em;
}

a:hover {
border-bottom: 0px;
a,
a>code {
color: #005EB8;
text-decoration: underline;
}

/*-- HEADINGS --*/
Expand Down Expand Up @@ -140,11 +136,7 @@ blockquote {
/*-- Links/anchors (inverse) --*/
.inverse a {
color: white;
border-bottom: 2px solid white;
}

.inverse a:hover {
border-bottom: none;
text-decoration: underline;
}

/*-- Slide background and text (inverse-white) --*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ library(tidyverse)
### Packages not on CRAN ###
# install.packages("remotes")
# remotes::install_github("mitchelloharawild/icon")
library(icon) # icons need to be loaded to view so run following code if not already done
# icon::download_fontawesome()
# remotes::install_github("mitchelloharawild/icons")
library(icons) # icons need to be loaded to view so run following code if not already done
# icons::download_fontawesome()
# install.packages("devtools")
#devtools::install_github("gadenbuie/xaringanExtra")
Expand Down Expand Up @@ -68,6 +68,7 @@ opts_chunk$set(echo = FALSE,
xaringanExtra::use_logo(
image_url = "https://cdu-data-science-team.github.io/assets/logo/nottshc-cdu-data-science-logo-800.png",
link_url = "https://cdu-data-science-team.github.io/team-blog/",
exclude_class = c("inverse", "hide-logo"),
width = "300px",
height = "200px",
Expand Down Expand Up @@ -164,19 +165,19 @@ An example of using the trailing comment `#<<` to highlight lines:

### Code

````markdown
`r ''````{r tidy=FALSE}
```{r example, tidy=FALSE, eval=FALSE, echo=TRUE}
library(ggplot2)
ggplot(mtcars) +
aes(mpg, disp) +
geom_point() + #<<
geom_smooth() #<<
```
````

---

### Output

```{r tidy=FALSE, eval=FALSE, echo=TRUE}
```{r ref.label="example", eval=TRUE, echo=FALSE}
library(ggplot2)
ggplot(mtcars) +
aes(mpg, disp) +
Expand All @@ -192,7 +193,7 @@ class: inverse-white, hide-logo

The logo can be removed from a slide where the title overruns by using class: hide-logo

.footnote[The **nhsr theme** was designed by [Silvia Canelon](https://silvia.rbind.io) for, and with feedback from, the [NHS-R Community](https://github.com/nhs-r-community), following the [NHS identity guidelines](https://www.england.nhs.uk/nhsidentity/identity-guidelines/).]
.footnote[The **nhsr theme** was designed by [Silvia Canelon](https://silvia.rbind.io) for, and with feedback from, the [NHS-R Community](https://github.com/nhs-r-community), following the [NHS identity guidelines](https://www.england.nhs.uk/nhsidentity/identity-guidelines/). Note that the xaringan share overlaps the footnotes if there are any hyperlinks.]

---
class: inverse
Expand All @@ -201,9 +202,9 @@ name: acknowledgement

# Acknowledgments

Acknowledgements: the professional look of this presentation, using NHS and Nottinghamshire Healthcare NHS Foundation Trust colour branding, exists because of the amazing work of Silvia Canelón, details of the workshops she ran at the [NHS-R Community conference](https://spcanelon.github.io/xaringan-basics-and-beyond/index.html).
Acknowledgements: the professional look of this presentation, using NHS and Nottinghamshire Healthcare NHS Foundation Trust colour branding, exists because of the amazing work of Silvia Canelón, details of the workshops she ran at the [NHS-R Community conference](https://spcanelon.github.io/xaringan-basics-and-beyond/index.html), Milan Wiedemann who created the CDU Data Science logo with the help of the team and Zoë Turner for putting together the slides.

[`r icon::fontawesome("twitter")` @DataScienceNott](https://twitter.com/DataScienceNott)<br/>
[`r icon::fontawesome("github")` Clinical Development Unit Data Science Team](https://github.com/CDU-data-science-team)<br/>
[`r icon::fontawesome("paper-plane")` zoe.turner2@notthshc.nhs.uk](mailto:zoe.turner2@nottshc.nhs.uk)
[`r icons::fontawesome("twitter")` @DataScienceNott](https://twitter.com/DataScienceNott)<br/>
[`r icons::fontawesome("github")` Clinical Development Unit Data Science Team](https://github.com/CDU-data-science-team)<br/>
[`r icons::fontawesome("paper-plane")` cdudatascience@nottshc.nhs.uk](mailto:cdudatascience@nottshc.nhs.uk)

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Nottshc Presentation template
name: CDU Data Science Team Presentation template
description: >
Standard xaringan Nottshc template for presentations
create_dir: TRUE
14 changes: 7 additions & 7 deletions inst/rmarkdown/templates/Nottshc/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ library(tidyverse)
### Packages not on CRAN ###
# install.packages("remotes")
# remotes::install_github("mitchelloharawild/icon")
library(icon) # icons need to be loaded to view so run following code if not already done
# icon::download_fontawesome()
# remotes::install_github("mitchelloharawild/icons")
library(icons) # icons need to be loaded to view so run following code if not already done
# icons::download_fontawesome()
# install.packages("devtools")
#devtools::install_github("gadenbuie/xaringanExtra")
Expand Down Expand Up @@ -213,9 +213,9 @@ name: acknowledgement

# Acknowledgments

Acknowledgements: the professional look of this presentation, using NHS and Nottinghamshire Healthcare NHS Foundation Trust colour branding, exists because of the amazing work of Silvia Canelón, details of the workshops she ran at the [NHS-R Community conference](https://spcanelon.github.io/xaringan-basics-and-beyond/index.html).
Acknowledgements: the professional look of this presentation, using NHS and Nottinghamshire Healthcare NHS Foundation Trust colour branding, exists because of the amazing work of Silvia Canelón, details of the workshops she ran at the [NHS-R Community conference](https://spcanelon.github.io/xaringan-basics-and-beyond/index.html), Milan Wiedemann who created the CDU Data Science logo with the help of the team and Zoë Turner for putting together the slides.

[`r icon::fontawesome("twitter")` @DataScienceNott](https://twitter.com/DataScienceNott)<br/>
[`r icon::fontawesome("github")` Clinical Development Unit Data Science Team](https://github.com/CDU-data-science-team)<br/>
[`r icon::fontawesome("paper-plane")` zoe.turner2@notthshc.nhs.uk](mailto:zoe.turner2@nottshc.nhs.uk)
[`r icons::fontawesome("twitter")` @DataScienceNott](https://twitter.com/DataScienceNott)<br/>
[`r icons::fontawesome("github")` Clinical Development Unit Data Science Team](https://github.com/CDU-data-science-team)<br/>
[`r icons::fontawesome("paper-plane")` cdudatascience@nottshc.nhs.uk](mailto:cdudatascience@nottshc.nhs.uk)

Loading

0 comments on commit 9eda7f3

Please sign in to comment.