Skip to content

Commit

Permalink
Format file
Browse files Browse the repository at this point in the history
  • Loading branch information
alxlion committed Oct 6, 2024
1 parent 9a1134e commit ae60c34
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions lib/claper_web/templates/error/csrf_error.html.heex
Original file line number Diff line number Diff line change
@@ -1,22 +1,33 @@
<div class="min-h-screen flex items-center justify-center bg-gray-100">
<div class="max-w-3xl w-full p-10">
<div class="text-center">
<h1 class="text-4xl font-bold text-gray-900 mb-2"><%= gettext("CSRF Verification Failed") %></h1>
<p class="text-lg text-gray-700 mb-8"><%= gettext("A required security token was not found or was invalid.") %></p>
<h1 class="text-4xl font-bold text-gray-900 mb-2">
<%= gettext("CSRF Verification Failed") %>
</h1>
<p class="text-lg text-gray-700 mb-8">
<%= gettext("A required security token was not found or was invalid.") %>
</p>
</div>

<div class="space-y-6 text-center">
<p class="text-gray-700"><%= gettext("If you're continually seeing this issue, try the following:") %></p>
<p class="text-gray-700">
<%= gettext("If you're continually seeing this issue, try the following:") %>
</p>
<ol class="list-decimal list-inside space-y-2 text-gray-600">
<li><%= gettext("Clear cookies (at least for Claper domain)") %></li>
<li><%= gettext("Reload the page you're trying to access (don't re-submit data)") %></li>
<li><%= gettext("Try logging in again") %></li>
<li><%= gettext("Ensure the URL does not contain an extra \"/\" anywhere") %></li>
</ol>
<p class="text-gray-700 mt-6"><%= gettext("If the problem persists, please contact support.") %></p>
<p class="text-gray-700 mt-6">
<%= gettext("If the problem persists, please contact support.") %>
</p>
<div class="mt-8">
<%= link gettext("Back to Login"), to: ~p"/users/log_in", class: "text-blue underline font-semibold transition duration-300 ease-in-out" %>
<%= link(gettext("Back to Login"),
to: ~p"/users/log_in",
class: "text-blue underline font-semibold transition duration-300 ease-in-out"
) %>
</div>
</div>
</div>
</div>
</div>

0 comments on commit ae60c34

Please sign in to comment.