No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

69 líneas
1.5KB

  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: bulma::bulma_document
  28. editor_options:
  29. chunk_output_type: console
  30. ---
  31. ```{r setup, include=FALSE}
  32. knitr::opts_chunk$set(echo = TRUE)
  33. library(bulma)
  34. ```
  35. <a class="button is-primary">
  36. <span class="icon is-small">
  37. `r bulma::fa_icon("r-project", as_html = TRUE)`
  38. </span>
  39. <span>Souce Code</span>
  40. </a>
  41. ## Level
  42. ### Basic
  43. ```r
  44. bulma::bulma_level("Home", "Menu", "Bulma", "Reservations", "Contact")
  45. ```
  46. `r bulma::bulma_level("Home", "Menu", "Bulma", "Reservations", "Contact")`
  47. ### Heading/Number Style
  48. ```r
  49. bulma_level("Tweets" = 3456, Following = 123, Followers = "456K", Likes = 789, style = "header")
  50. ```
  51. `r bulma_level("Tweets" = 3456, Following = 123, Followers = "456K", Likes = 789, style = "header")`
  52. #### Dynamic Level
  53. ```{r}
  54. iris_values <- purrr::map(iris, ~ length(unique(.)))
  55. bulma_level(iris_values, style = "header")
  56. ```