Renders a single artwork card with multi-layer hover system.

artworkCardUI(ns, artwork, artist, hover_depth = 3)

Arguments

ns

Namespace function from parent module

artwork

Single row data.frame with artwork details. Required columns:

  • art_uuid (artwork UUID)

  • art_title (artwork title)

  • created_utc (creation timestamp)

artist

Artist UUID (required for path generation)

hover_depth

Maximum hover depth to enable (1, 2, or 3). Default: 3

Value

Shiny tag with artwork card HTML

Details

Variable naming convention:

  • artist = artist UUID (NOT slug)

  • artwork = artwork UUID (NOT name)

Examples

if (FALSE) { # \dontrun{
# In a renderUI context
output$artwork_grid <- renderUI({
  lapply(artworks, function(art) {
    artworkCardUI(ns, art, artist_uuid, hover_depth = 3)
  })
})
} # }