-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathui.R
More file actions
31 lines (31 loc) · 1.59 KB
/
ui.R
File metadata and controls
31 lines (31 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
function(request) {
material_page(title = HTML('<span>Sentify</span> <span style="font-size:12px"><a href="http://www.rcharlie.com" target="_blank">by RCharlie</a></span>'),
nav_bar_color = 'black',
font_color = 'white',
background_color = '#828282',
tags$head(tags$link(rel = 'icon', type = 'image/png', href = 'green_music_note.png'),
tags$title('Sentify')),
useShinyjs(),
tags$script(jscode),
tags$style(appCSS),
tags$head(tags$link(rel = 'stylesheet', type = 'text/css', href = 'style.css'),
tags$head(includeScript('www/ga.js')),
tags$head(includeScript('www/hotjar.js'))),
material_row(
material_column(
width = 3,
material_card(
title = '',
depth = 4,
material_text_box('artist_search', "Type an artist name", color = 'black'),
conditionalPanel("input.artist_search !== ''", material_dropdown('select_artist', 'Choose an artist from these matches on Spotify', '', color = '#1ed760')),
uiOutput('select_artist_ui')
)
),
material_column(
width = 9,
uiOutput('artist_plot')
)
)
)
}