Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

64 lines
1.4KB

  1. ---
  2. title: "Layout Tests"
  3. subtitle: "Testing Bulma Layout Elements"
  4. author:
  5. - name: First Author
  6. url: https://rstudio.com
  7. extra:
  8. - "First Affiliation"
  9. - "@tweeter345"
  10. - name: Second Author
  11. url: https://duckduckgo.com
  12. extra:
  13. - "Second Affiliation"
  14. - "Very Cool Guy"
  15. date: '`r strftime(Sys.time(), "%A, %B %e, %Y")`'
  16. bulma:
  17. hero: ["primary"]
  18. hero_body: "has-text-left"
  19. hero_button: ["primary", "outlined", "inverted"]
  20. hero_links:
  21. - name: Github
  22. url: https://github.com/gerkelab
  23. icon: '`r bulma::fa_icon("github")`'
  24. - name: Home
  25. url: https://gerkelab.com
  26. icon: '`r bulma::fa_icon("home")`'
  27. output:
  28. bulma::bulma_document:
  29. toc: yes
  30. editor_options:
  31. chunk_output_type: console
  32. ---
  33. ```{r setup, include=FALSE}
  34. knitr::opts_chunk$set(echo = TRUE)
  35. library(bulma)
  36. ```
  37. ## Level
  38. ### Basic
  39. ```r
  40. bulma::bulma_level("Home", "Menu", "Bulma", "Reservations", "Contact")
  41. ```
  42. `r bulma::bulma_level("Home", "Menu", "Bulma", "Reservations", "Contact")`
  43. ### Heading/Number Style
  44. ```r
  45. bulma_level("Tweets" = 3456, Following = 123, Followers = "456K", Likes = 789, type = "header")
  46. ```
  47. `r bulma_level("Tweets" = 3456, Following = 123, Followers = "456K", Likes = 789, type = "header")`
  48. #### Dynamic Level
  49. ```{r}
  50. iris_values <- purrr::map(iris, ~ length(unique(.)))
  51. bulma_level(iris_values, type = "header")
  52. ```