Files
2026-04-13 14:31:07 -04:00

74 lines
2.6 KiB
Plaintext

@model maintenance.Services.Pages.ResolvedPage
@{
Layout = null;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MAX - @Model.Content.ErrorName</title>
<script>
(function () {
const storageKey = "maintenance-theme";
const storedTheme = localStorage.getItem(storageKey);
const prefersDark = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
const theme = storedTheme || (prefersDark ? "dark" : "light");
document.documentElement.setAttribute("data-theme", theme);
document.documentElement.style.colorScheme = theme;
})();
</script>
<link rel="stylesheet" href="~/css/max_error.css" />
</head>
<body>
<div class="header">MAX</div>
<div class="center-box-vertically" style="margin-bottom: -300px;"></div>
<div class="box">
<div class="title"><img src="~/stop.gif" alt="" /><h1>@Model.Content.ErrorName</h1></div>
<div class="description">
@if (!string.IsNullOrWhiteSpace(Model.Content.ShortDescription))
{
<h2>@Model.Content.ShortDescription</h2>
}
<h2>@Model.Content.Description</h2>
</div>
@if (Model.Content.ShowInstructions)
{
<div class="instructions">
@if (!string.IsNullOrWhiteSpace(Model.Content.InstructionsHeader))
{
<h2>@Model.Content.InstructionsHeader</h2>
<br />
}
@if (Model.Content.InstructionSteps.Count > 0)
{
<h2>To correct this problem:</h2>
<h4>
<ol>
@foreach (var step in Model.Content.InstructionSteps)
{
<li>@step</li>
}
</ol>
</h4>
}
</div>
}
@if (Model.Content.ShowSupport)
{
<div class="support">
<h2>MAX Support:</h2>
<br />
<h3>Email: <a href="mailto:@Model.Content.SupportEmail">@Model.Content.SupportEmail</a></h3>
<h4>@Model.Content.SupportHours</h4>
<br />
<h3>Phone: @Model.Content.SupportPhone</h3>
<h4>All hours in Eastern Time (ET)</h4>
</div>
}
<div class="code"><h4>(Error Code: @Model.Content.ErrorCode)</h4></div>
</div>
</body>
</html>