ubicloud/views/error.erb
Jeremy Evans 750ebdc055 Change from erb_formatter to herb/formatter
Currently, herb/formatter has at least 4 bugs the prevent us from
switching to it (https://github.com/marcoroth/herb/issues 476, 477,
478, and 479). This includes manual fixes for each issue.

herb/formatter also introduces a rubocop violation for the
Layout/AssignmentIndentation cop. This disables that cop.
2025-09-05 14:01:01 -07:00

29 lines
893 B
Text

<% @page_title = @error[:type] %>
<main class="grid min-h-full place-items-center px-6 py-24 sm:py-32 lg:px-8">
<div class="text-center">
<p class="text-base font-semibold text-orange-600"><%= @error[:code] %></p>
<h1 class="mt-4 text-3xl font-bold tracking-tight text-gray-900 sm:text-5xl">
<%= @error[:type] %>
</h1>
<p class="mt-6 text-base leading-7 text-gray-600">
<%= @error[:message] %>
</p>
<div class="mt-10 flex items-center justify-center gap-x-6">
<button
type="button"
class="
back-btn rounded-md bg-orange-600 px-3.5 py-2.5 text-sm
font-semibold text-white shadow-sm hover:bg-orange-700
focus-visible:outline focus-visible:outline-2
focus-visible:outline-offset-2 focus-visible:outline-orange-600
"
>
Go back
</button>
</div>
</div>
</main>