generated from boboko/starter
multilingual content, change in how we show header categories and homepage hero products
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
@extends('errors.layout')
|
||||
|
||||
@section('error_title', __('storefront.errors.404_title'))
|
||||
@section('error_text', __('storefront.errors.404_text'))
|
||||
@@ -0,0 +1,4 @@
|
||||
@extends('errors.layout')
|
||||
|
||||
@section('error_title', __('storefront.errors.4xx_title'))
|
||||
@section('error_text', __('storefront.errors.4xx_text'))
|
||||
@@ -0,0 +1,4 @@
|
||||
@extends('errors.layout')
|
||||
|
||||
@section('error_title', __('storefront.errors.500_title'))
|
||||
@section('error_text', __('storefront.errors.500_text'))
|
||||
@@ -0,0 +1,4 @@
|
||||
@extends('errors.layout')
|
||||
|
||||
@section('error_title', __('storefront.errors.5xx_title'))
|
||||
@section('error_text', __('storefront.errors.5xx_text'))
|
||||
@@ -0,0 +1,26 @@
|
||||
{{-- Shared by every errors/{code} view: each one only sets title + text. --}}
|
||||
@extends('layouts.app')
|
||||
|
||||
{{-- Block form: the inline @section('title', …) form would escape the
|
||||
already-escaped error_title a second time. --}}
|
||||
@section('title')
|
||||
@yield('error_title')
|
||||
@endsection
|
||||
|
||||
@push('seo')
|
||||
<meta name="robots" content="noindex">
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
|
||||
<section class="flex flex-col items-center justify-center gap-8 px-8 py-24 text-center min-h-[calc(100vh-12rem)] sm:min-h-[calc(100vh-8rem)]">
|
||||
|
||||
<h1 class="font-display text-h1 font-semibold leading-tight">@yield('error_title')</h1>
|
||||
|
||||
<p class="max-w-xl">@yield('error_text')</p>
|
||||
|
||||
<x-ui.button :href="route('home')" class="mt-4">{{ __('storefront.errors.back_home') }}</x-ui.button>
|
||||
|
||||
</section>
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user