golem icon indicating copy to clipboard operation
golem copied to clipboard

Add logo instructions to docs

Open jl5000 opened this issue 3 years ago • 4 comments

It's not clear to me how to use the infrastructure to add a logo to the app. Please could you add an example to the docs?

jl5000 avatar Feb 14 '22 17:02 jl5000

Hey,

Are you referring to the favicon?

Colin

ColinFay avatar Feb 14 '22 19:02 ColinFay

No, hex logo.

jl5000 avatar Feb 14 '22 19:02 jl5000

I'm really not sure what you are referring to, can you post a reprex / screenshot of what you're trying to do?

ColinFay avatar Feb 15 '22 12:02 ColinFay

I think it's just a case of showing an example of how to add a hex logo to a golem app using the existing infrastructure. Something like:

tags$head(
    favicon(),
    bundle_resources(
      path = app_sys('app/www'),
      app_title = 'package-name'
    ),
    div(img(src="www/logo.png", align="left"),
        style="margin-left: 10px"),
    
    # Add here other external resources
    # for example, you can add shinyalert::useShinyalert() 

  )

This is how I've done it, but I have no idea if it's the way you're supposed to do it.

jl5000 avatar Feb 15 '22 13:02 jl5000