diff --git a/src/Build/publish windows.bat b/src/Build/publish windows.bat
deleted file mode 100644
index f984ee1ba..000000000
--- a/src/Build/publish windows.bat
+++ /dev/null
@@ -1,6 +0,0 @@
-;https://docs.microsoft.com/en-us/dotnet/articles/core/deploying/
-cd ..
-dotnet restore
-dotnet publish -c Release /p:AppRuntimeIdentifier=win10-x64
-
-exit
\ No newline at end of file
diff --git a/src/Build/publish.bat b/src/Build/publish.bat
deleted file mode 100644
index e9af4b38c..000000000
--- a/src/Build/publish.bat
+++ /dev/null
@@ -1,9 +0,0 @@
-;https://docs.microsoft.com/en-us/dotnet/articles/core/deploying/
-cd ..
-dotnet restore
-dotnet publish -c Release /p:AppRuntimeIdentifier=win10-x64
-dotnet publish -c Release /p:AppRuntimeIdentifier=osx.10.12-x64
-dotnet publish -c Release /p:AppRuntimeIdentifier=ubuntu.16.10-x64
-dotnet publish -c Release /p:AppRuntimeIdentifier=debian.8-x64
-
-exit
\ No newline at end of file
diff --git a/src/Ombi/ClientApp/app/landingpage/landingpage.component.html b/src/Ombi/ClientApp/app/landingpage/landingpage.component.html
index deb35032e..b14b36abd 100644
--- a/src/Ombi/ClientApp/app/landingpage/landingpage.component.html
+++ b/src/Ombi/ClientApp/app/landingpage/landingpage.component.html
@@ -1,12 +1,22 @@
-
+
+
+
+
+
Notice
+
diff --git a/src/Ombi/ClientApp/app/landingpage/landingpage.component.ts b/src/Ombi/ClientApp/app/landingpage/landingpage.component.ts
index d12de8cdd..5bf482bb8 100644
--- a/src/Ombi/ClientApp/app/landingpage/landingpage.component.ts
+++ b/src/Ombi/ClientApp/app/landingpage/landingpage.component.ts
@@ -29,7 +29,7 @@ export class LandingPageComponent implements OnInit {
this.settingsService.getLandingPage().subscribe(x => this.landingPageSettings = x);
this.requestService.getRequestsCount().subscribe(x => this.requestCount = x);
this.images.getRandomBackground().subscribe(x => {
- this.background = this.sanitizer.bypassSecurityTrustStyle('url(' + x.url + ')');
+ this.background = this.sanitizer.bypassSecurityTrustStyle('linear-gradient(-10deg, transparent 20%, rgba(0,0,0,0.3) 20.1%, rgba(0,0,0,0.3) 80.1%, transparent 80%), url(' + x.url + ')');
});
this.mediaServerStatus = true;
diff --git a/src/Ombi/Config/LandingPageBackground.cs b/src/Ombi/Config/LandingPageBackground.cs
new file mode 100644
index 000000000..869772c41
--- /dev/null
+++ b/src/Ombi/Config/LandingPageBackground.cs
@@ -0,0 +1,10 @@
+namespace Ombi.Config
+{
+ public class LandingPageBackground
+ {
+ public int[] Movies { get; set; }
+ public int[] TvShows { get; set; }
+ }
+
+
+}
\ No newline at end of file
diff --git a/src/Ombi/Controllers/ImagesController.cs b/src/Ombi/Controllers/ImagesController.cs
index d0ec27de9..f1e35ae9f 100644
--- a/src/Ombi/Controllers/ImagesController.cs
+++ b/src/Ombi/Controllers/ImagesController.cs
@@ -5,43 +5,74 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
+using Microsoft.Extensions.Options;
+using Ombi.Config;
namespace Ombi.Controllers
{
[ApiV1]
public class ImagesController : Controller
{
- public ImagesController(IFanartTvApi api, IApplicationConfigRepository config)
+ public ImagesController(IFanartTvApi api, IApplicationConfigRepository config, IOptions options)
{
Api = api;
Config = config;
+ Options = options.Value;
}
private IFanartTvApi Api { get; }
private IApplicationConfigRepository Config { get; }
+ private LandingPageBackground Options { get; }
[HttpGet("background")]
public async Task