feat: Creates 404 page for public portal [CW-2727] (#8293)
Co-authored-by: Sojan Jose <sojan@pepalo.com>
This commit is contained in:
committed by
GitHub
parent
23ea829510
commit
3b84b0fc47
12
app/views/public/api/v1/portals/error/404.html.erb
Normal file
12
app/views/public/api/v1/portals/error/404.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
<div class="max-w-6xl h-full w-full flex-grow flex flex-col items-center justify-center mx-auto py-16 px-4 relative">
|
||||
<div class="text-center mb-12">
|
||||
<span class="text-8xl">🔍</span>
|
||||
</div>
|
||||
<h1 class="text-6xl text-center font-semibold text-slate-800 dark:text-slate-100 leading-relaxed"><%= I18n.t('public_portal.404.title') %></h1>
|
||||
<p class="text-center text-slate-700 dark:text-slate-300 my-1"><%= I18n.t('public_portal.404.description') %></p>
|
||||
<div class="text-center my-8">
|
||||
<a href="/hc/<%= @portal.slug %>/<%= @portal.config['default_locale'] || params[:locale] %>/<%= @theme.present? ? '?theme='+@theme : '' %>" class="text-woot-500 font-semibold underline">
|
||||
<%= I18n.t('public_portal.404.back_to_home') %>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user