diff --git a/GenderPayGap.sln b/GenderPayGap.sln index 7a719d450..8646d6c13 100644 --- a/GenderPayGap.sln +++ b/GenderPayGap.sln @@ -42,8 +42,6 @@ Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "DocumentationNested", "Docu SlnRelativePath = "Documentation\" EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HoldingPage", "HoldingPage\HoldingPage.csproj", "{FF42BD3D-5B78-4BC7-81A5-A759E7119918}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -68,10 +66,6 @@ Global {ADB4DCF7-1D43-41EF-9FD3-DA4C36D923AB}.Release|Any CPU.Build.0 = Release|Any CPU {81A83AB9-45C8-4F86-873E-052B08604269}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {81A83AB9-45C8-4F86-873E-052B08604269}.Release|Any CPU.ActiveCfg = Debug|Any CPU - {FF42BD3D-5B78-4BC7-81A5-A759E7119918}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FF42BD3D-5B78-4BC7-81A5-A759E7119918}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FF42BD3D-5B78-4BC7-81A5-A759E7119918}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FF42BD3D-5B78-4BC7-81A5-A759E7119918}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/HoldingPage/Controllers/ErrorController.cs b/HoldingPage/Controllers/ErrorController.cs deleted file mode 100644 index c75eff4f4..000000000 --- a/HoldingPage/Controllers/ErrorController.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Net; -using Microsoft.AspNetCore.Mvc; - -namespace HoldingPage.Controllers -{ - [Route("Error")] - public class ErrorController : Controller - { - - [Route("/error/")] - [Route("/error/{errorCode?}")] - public IActionResult Default(int errorCode = 500) - { - SetResponseStatusCodeIfValid(errorCode); - - return View("../Homepage/Index"); - } - - private void SetResponseStatusCodeIfValid(int errorCode) - { - if (errorCode >= 400 && errorCode <= 599 && Enum.IsDefined(typeof(HttpStatusCode), errorCode)) - { - Response.StatusCode = errorCode; - } - else - { - Response.StatusCode = 500; - } - } - - } -} diff --git a/HoldingPage/Controllers/HomepageController.cs b/HoldingPage/Controllers/HomepageController.cs deleted file mode 100644 index 71ba6b72c..000000000 --- a/HoldingPage/Controllers/HomepageController.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Microsoft.AspNetCore.Mvc; - -namespace HoldingPage.Controllers -{ - public class HomepageController : Controller - { - - [HttpGet("/")] - public IActionResult Index() - { - return View("Index"); - } - - [HttpGet("/health-check")] - public IActionResult HealthCheck() - { - return View("Index"); - } - - } -} diff --git a/HoldingPage/HoldingPage.csproj b/HoldingPage/HoldingPage.csproj deleted file mode 100644 index a66bf126e..000000000 --- a/HoldingPage/HoldingPage.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - net8.0 - 12 - enable - disable - - - - - Always - - - - diff --git a/HoldingPage/Program.cs b/HoldingPage/Program.cs deleted file mode 100644 index 24e39f3e1..000000000 --- a/HoldingPage/Program.cs +++ /dev/null @@ -1,67 +0,0 @@ -using Microsoft.AspNetCore.HttpOverrides; - -namespace HoldingPage -{ - public class Program - { - - public static void Main(string[] args) - { - WebApplicationBuilder builder = WebApplication.CreateBuilder(); - - ConfigureServices(builder.Services); - - WebApplication app = builder.Build(); - - ConfigureApp(app); - - app.Run(); - } - - private static void ConfigureServices(IServiceCollection services) - { - services.AddHttpContextAccessor(); - - services.AddControllersWithViews() - .AddControllersAsServices() // Add controllers as services so attribute filters be resolved in contructors. - .AddJsonOptions(options => - { - // By default, ASP.Net's JSON serialiser converts property names to camelCase (because javascript typically uses camelCase) - // But, some of our javascript code uses PascalCase (e.g. the homepage auto-complete) - // These options tell ASP.Net to use the original C# property names, without changing the case - options.JsonSerializerOptions.PropertyNameCaseInsensitive = true; - options.JsonSerializerOptions.PropertyNamingPolicy = null; - }); - - // Configure forwarded headers - this is so that the anti-forgery middleware (see below) is allowed to set a "Secure only" cookie - services.Configure( - options => - { - options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto; - }); - } - - private static void ConfigureApp(WebApplication app) - { - if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("PORT"))) - { - app.Urls.Add($"http://*:{Environment.GetEnvironmentVariable("PORT")}/"); - } - - app.UseForwardedHeaders(); - - app.UseStaticFiles(); - - app.UseExceptionHandler("/error/500"); - app.UseStatusCodePagesWithReExecute("/error/{0}"); - - app.UseRouting(); - - app.UseAuthentication(); - app.UseAuthorization(); - - app.MapControllers(); - } - - } -} diff --git a/HoldingPage/Properties/launchSettings.json b/HoldingPage/Properties/launchSettings.json deleted file mode 100644 index 7f9ca070d..000000000 --- a/HoldingPage/Properties/launchSettings.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:2259", - "sslPort": 44371 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchUrl": "actions-to-close-the-gap", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Local" - }, - "ancmHostingModel": "OutOfProcess" - }, - "GenderPayGap.WebUI": { - "commandName": "Project", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Local" - }, - "applicationUrl": "https://localhost:5001;http://localhost:5000" - } - } -} \ No newline at end of file diff --git a/HoldingPage/Views/GovUkFrontend/GovUkFrontendLayout.cshtml b/HoldingPage/Views/GovUkFrontend/GovUkFrontendLayout.cshtml deleted file mode 100644 index 4e1523ca1..000000000 --- a/HoldingPage/Views/GovUkFrontend/GovUkFrontendLayout.cshtml +++ /dev/null @@ -1,90 +0,0 @@ -@{ - string assetsPath = "/assets/images"; -} - - - - - - @(ViewBag.Title ?? "Gender pay gap service") - - - - - - - - - - - - - - - - - - - - - Skip to main content - - - - - - - - - - - GOV.UK - - - - - - - - Gender pay gap service - - - - - - - - @RenderBody() - - - - - - - - @RenderSection("AfterLoadedCompiledScripts", false) - - \ No newline at end of file diff --git a/HoldingPage/Views/Homepage/Index.cshtml b/HoldingPage/Views/Homepage/Index.cshtml deleted file mode 100644 index 737b9cc55..000000000 --- a/HoldingPage/Views/Homepage/Index.cshtml +++ /dev/null @@ -1,28 +0,0 @@ -@{ - ViewBag.Title = $"Sorry, the service is unavailable - Gender pay gap service - GOV.UK"; - ViewBag.ServiceUnavailable = true; -} - - - - - - Sorry, the service is unavailable - - - - You will be able to use the service from - - - Xpm on XXXday XX February 2025. - - - - - - Contact the Gender Pay Gap team - if your request is urgent. - - - - diff --git a/HoldingPage/Views/_ViewImports.cshtml b/HoldingPage/Views/_ViewImports.cshtml deleted file mode 100644 index 252eec27b..000000000 --- a/HoldingPage/Views/_ViewImports.cshtml +++ /dev/null @@ -1,4 +0,0 @@ -@using System.Web; -@using Microsoft.Extensions.Options; -@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers -@addTagHelper *, GenderPayGap.WebUI \ No newline at end of file diff --git a/HoldingPage/Views/_ViewStart.cshtml b/HoldingPage/Views/_ViewStart.cshtml deleted file mode 100644 index b4e1a1f93..000000000 --- a/HoldingPage/Views/_ViewStart.cshtml +++ /dev/null @@ -1,3 +0,0 @@ -@{ - Layout = "~/Views/GovUkFrontend/GovUkFrontendLayout.cshtml"; -} \ No newline at end of file diff --git a/HoldingPage/wwwroot/assets/fonts/bold-affa96571d-v2.woff b/HoldingPage/wwwroot/assets/fonts/bold-affa96571d-v2.woff deleted file mode 100644 index 48fbcf59c..000000000 Binary files a/HoldingPage/wwwroot/assets/fonts/bold-affa96571d-v2.woff and /dev/null differ diff --git a/HoldingPage/wwwroot/assets/fonts/bold-b542beb274-v2.woff2 b/HoldingPage/wwwroot/assets/fonts/bold-b542beb274-v2.woff2 deleted file mode 100644 index 81fd14985..000000000 Binary files a/HoldingPage/wwwroot/assets/fonts/bold-b542beb274-v2.woff2 and /dev/null differ diff --git a/HoldingPage/wwwroot/assets/fonts/light-94a07e06a1-v2.woff2 b/HoldingPage/wwwroot/assets/fonts/light-94a07e06a1-v2.woff2 deleted file mode 100644 index 1eb101571..000000000 Binary files a/HoldingPage/wwwroot/assets/fonts/light-94a07e06a1-v2.woff2 and /dev/null differ diff --git a/HoldingPage/wwwroot/assets/fonts/light-f591b13f7d-v2.woff b/HoldingPage/wwwroot/assets/fonts/light-f591b13f7d-v2.woff deleted file mode 100644 index 3b26d5ffd..000000000 Binary files a/HoldingPage/wwwroot/assets/fonts/light-f591b13f7d-v2.woff and /dev/null differ diff --git a/HoldingPage/wwwroot/assets/images/favicon.ico b/HoldingPage/wwwroot/assets/images/favicon.ico deleted file mode 100644 index 20129a0bb..000000000 Binary files a/HoldingPage/wwwroot/assets/images/favicon.ico and /dev/null differ diff --git a/HoldingPage/wwwroot/assets/images/govuk-apple-touch-icon-152x152.png b/HoldingPage/wwwroot/assets/images/govuk-apple-touch-icon-152x152.png deleted file mode 100644 index 6d01410fe..000000000 Binary files a/HoldingPage/wwwroot/assets/images/govuk-apple-touch-icon-152x152.png and /dev/null differ diff --git a/HoldingPage/wwwroot/assets/images/govuk-apple-touch-icon-167x167.png b/HoldingPage/wwwroot/assets/images/govuk-apple-touch-icon-167x167.png deleted file mode 100644 index 1fea1e27d..000000000 Binary files a/HoldingPage/wwwroot/assets/images/govuk-apple-touch-icon-167x167.png and /dev/null differ diff --git a/HoldingPage/wwwroot/assets/images/govuk-apple-touch-icon-180x180.png b/HoldingPage/wwwroot/assets/images/govuk-apple-touch-icon-180x180.png deleted file mode 100644 index 7c33beba8..000000000 Binary files a/HoldingPage/wwwroot/assets/images/govuk-apple-touch-icon-180x180.png and /dev/null differ diff --git a/HoldingPage/wwwroot/assets/images/govuk-apple-touch-icon.png b/HoldingPage/wwwroot/assets/images/govuk-apple-touch-icon.png deleted file mode 100644 index c7fd32619..000000000 Binary files a/HoldingPage/wwwroot/assets/images/govuk-apple-touch-icon.png and /dev/null differ diff --git a/HoldingPage/wwwroot/assets/images/govuk-crest-2x.png b/HoldingPage/wwwroot/assets/images/govuk-crest-2x.png deleted file mode 100644 index dd1ac4da5..000000000 Binary files a/HoldingPage/wwwroot/assets/images/govuk-crest-2x.png and /dev/null differ diff --git a/HoldingPage/wwwroot/assets/images/govuk-crest.png b/HoldingPage/wwwroot/assets/images/govuk-crest.png deleted file mode 100644 index a24cc6e0f..000000000 Binary files a/HoldingPage/wwwroot/assets/images/govuk-crest.png and /dev/null differ diff --git a/HoldingPage/wwwroot/assets/images/govuk-logotype-crown.png b/HoldingPage/wwwroot/assets/images/govuk-logotype-crown.png deleted file mode 100644 index a6cdbfd47..000000000 Binary files a/HoldingPage/wwwroot/assets/images/govuk-logotype-crown.png and /dev/null differ diff --git a/HoldingPage/wwwroot/assets/images/govuk-logotype-tudor-crown.png b/HoldingPage/wwwroot/assets/images/govuk-logotype-tudor-crown.png deleted file mode 100644 index 27173ceb7..000000000 Binary files a/HoldingPage/wwwroot/assets/images/govuk-logotype-tudor-crown.png and /dev/null differ diff --git a/HoldingPage/wwwroot/assets/images/govuk-mask-icon.svg b/HoldingPage/wwwroot/assets/images/govuk-mask-icon.svg deleted file mode 100644 index 17e26ecd4..000000000 --- a/HoldingPage/wwwroot/assets/images/govuk-mask-icon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/HoldingPage/wwwroot/assets/images/govuk-opengraph-image.png b/HoldingPage/wwwroot/assets/images/govuk-opengraph-image.png deleted file mode 100644 index 4d0e312ff..000000000 Binary files a/HoldingPage/wwwroot/assets/images/govuk-opengraph-image.png and /dev/null differ diff --git a/HoldingPage/wwwroot/assets/images/search-button-white-and-black.png b/HoldingPage/wwwroot/assets/images/search-button-white-and-black.png deleted file mode 100644 index e17b64c2b..000000000 Binary files a/HoldingPage/wwwroot/assets/images/search-button-white-and-black.png and /dev/null differ
- You will be able to use the service from - - - Xpm on XXXday XX February 2025. - -
- - Contact the Gender Pay Gap team - if your request is urgent. -