diff --git a/.gitignore b/.gitignore index cc40328..dc4576f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore appsettings.Development.json -wwwroot # User-specific files *.rsuser diff --git a/Selector.Web/CSS/index.scss b/Selector.Web/CSS/index.scss new file mode 100644 index 0000000..14133fa --- /dev/null +++ b/Selector.Web/CSS/index.scss @@ -0,0 +1,5 @@ +@import "now.scss"; + +body { + background-color: #c6c6c6; +} \ No newline at end of file diff --git a/Selector.Web/CSS/now.scss b/Selector.Web/CSS/now.scss index ff8f550..25e23f7 100644 --- a/Selector.Web/CSS/now.scss +++ b/Selector.Web/CSS/now.scss @@ -1,8 +1,21 @@ .card { background-color: grey; + color: white; + + box-shadow: 4px 4px 2px #5e5e5e; } .now-playing-card { - max-width: 400px; + // max-width: 300px; + + text-shadow: 2px 2px 2px #5e5e5e; + + .cover-art { + box-shadow: 4px 4px 2px #5e5e5e; + } + + img { + margin: 15px; + } } \ No newline at end of file diff --git a/Selector.Web/Hubs/NowPlayingHub.cs b/Selector.Web/Hubs/NowPlayingHub.cs index 35e85e8..6c53ca4 100644 --- a/Selector.Web/Hubs/NowPlayingHub.cs +++ b/Selector.Web/Hubs/NowPlayingHub.cs @@ -23,6 +23,11 @@ namespace Selector.Web.Hubs Cache = cache; } + public async Task OnConnected() + { + await SendNewPlaying(); + } + public async Task SendNewPlaying() { var nowPlaying = await Cache.StringGetAsync(Key.CurrentlyPlaying(Context.UserIdentifier)); diff --git a/Selector.Web/Pages/Now.cshtml b/Selector.Web/Pages/Now.cshtml index 31dbd45..d0e7f86 100644 --- a/Selector.Web/Pages/Now.cshtml +++ b/Selector.Web/Pages/Now.cshtml @@ -6,9 +6,8 @@

Now

-
-

{{ count }}

- +
+
diff --git a/Selector.Web/Pages/Shared/_Layout.cshtml b/Selector.Web/Pages/Shared/_Layout.cshtml index b8d5726..da68f40 100644 --- a/Selector.Web/Pages/Shared/_Layout.cshtml +++ b/Selector.Web/Pages/Shared/_Layout.cshtml @@ -5,27 +5,22 @@ @ViewData["Title"] - Selector +