Value Spring: Tinder for Cancer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 line
2.6KB

  1. screens <- list()
  2. screens[["splash-overlay"]] <- div(
  3. class = "overlay bg-moffitt-grey splash animated", id = "splash-overlay",
  4. div(
  5. class = "splash-body",
  6. h1("Welcome!"),
  7. p("Talking about your cancer treatment options is hard, but we're here to help."),
  8. actionButton("splash_next_screen", "Get Started", class = "btn-bottom-right btn-primary")
  9. )
  10. )
  11. screens[["app-intro"]] <- div(
  12. id = "app-intro",
  13. class = "app-main bg-white animated slideOutRight",
  14. h1(APP_TITLE, class = "app-title text-white bg-moffitt-blue"),
  15. p(class = "help-text text-moffitt-grey",
  16. "Guidance about how to approach the questions goes here."),
  17. div(
  18. id = "test-card-swipe-container",
  19. style = "width: 100%; max-height: 275px; position: relative; height: 100%;",
  20. shinyswiprUI(
  21. "test_card_swipe_ui",
  22. div(class = "swiperCard-header",
  23. h4(class = "card-title text-white bg-moffitt-light-blue",
  24. "Try It Now"
  25. )
  26. ),
  27. div(class = "swiperCard-body",
  28. h4("An Example Question"),
  29. p("Something to think about. Swipe", strong("left"), "if you feel X.",
  30. "Swipe", strong("right"), "if you feel Y.")
  31. )
  32. ),
  33. swipe_help_row_div
  34. ),
  35. shinyjs::hidden(div(
  36. id = "test_swipe_success",
  37. style = "font-size: 1.5em; text-align: center; width: 100%; padding: 50px",
  38. p(icon("thumbs-o-up", class = "fa-3x text-moffitt-green"),
  39. br(),
  40. actionLink("app_intro_next", "Great, let's get started!")
  41. )
  42. ))
  43. )
  44. screens[["app-main"]] <- div(
  45. id = "app-main",
  46. class = "app-main animated",
  47. h1(APP_TITLE, class = "app-title text-white bg-moffitt-blue"),
  48. p(HELP_TEXT, class = "help-text text-moffitt-grey"),
  49. shinyswiprUI(
  50. "card_swipe_ui",
  51. div(class = "swiperCard-header",
  52. h4(class = "card-title text-white bg-moffitt-light-blue",
  53. textOutput("question_category")
  54. )
  55. ),
  56. div(class = "swiperCard-body",
  57. h4(textOutput("question_topic")),
  58. p(textOutput("question_text")),
  59. uiOutput("question_story_link")
  60. )
  61. ),
  62. swipe_help_row_div
  63. )
  64. screens[["app-story"]] <- div(
  65. id = "app-story",
  66. class = "app-story animated fadeOutUp",
  67. div(class = "close-button", actionLink("app_main_hide_story", NULL, icon("times", class = "fa-lg"))),
  68. htmlOutput("question_story")
  69. )
  70. screens[["app-results"]] <- div(
  71. id = "app-results",
  72. class = "app-main app-results bg-white animated slideOutRight",
  73. h1(APP_TITLE, class = "app-title text-white bg-moffitt-blue"),
  74. div(class = "app-results-body",
  75. h2("Results", class = "help-text text-moffitt-grey"),
  76. plotOutput("results_plot", height = "250px")
  77. )
  78. )