generated from boboko/starter
multilingual content, change in how we show header categories and homepage hero products
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
{{--
|
||||
Store address and phone from Lunar's Store Details (Modules\Core\Store),
|
||||
email from CONTACT_EMAIL until Store Details has an email field too.
|
||||
Each line is left out when its value is empty.
|
||||
Store address, phone and email from Lunar's Store Details
|
||||
(Modules\Core\Store). Each line is left out when its value is empty.
|
||||
--}}
|
||||
@props([
|
||||
'store' => null,
|
||||
'email' => null,
|
||||
])
|
||||
|
||||
@php
|
||||
$address = $store?->translate('address');
|
||||
$phone = $store?->phone;
|
||||
$email = $store?->contact_email;
|
||||
@endphp
|
||||
|
||||
@if (filled($address) || filled($phone) || filled($email))
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('title', __('storefront.nav.contact'))
|
||||
@section('description', 'Επικοινώνησε μαζί μας για οποιαδήποτε απορία ή ιδέα έχεις και θα σου απαντήσουμε το συντομότερο δυνατό.')
|
||||
@section('title', $page->meta_title ?: $page->name)
|
||||
@section('description', $page->meta_description)
|
||||
@section('og_image', $page->og_image)
|
||||
|
||||
{{-- Only on pages with a captcha, not in the global layout. --}}
|
||||
@push('scripts')
|
||||
@@ -21,13 +22,12 @@
|
||||
<h1 class="font-display text-h1 font-semibold leading-tight"
|
||||
data-controller="appear"
|
||||
data-appear-visible-class="is-visible">
|
||||
<span class="text-dance">Επικοινώνησε</span><br>
|
||||
μαζί μας <span class="text-dance [--dance-delay:200ms]">άμεσα</span>
|
||||
<span class="text-dance" data-stoic="pages/contact#heading_first">{{ $page->heading_first }}</span><br>
|
||||
<span data-stoic="pages/contact#heading_second">{{ $page->heading_second }}</span>
|
||||
<span class="text-dance [--dance-delay:200ms]" data-stoic="pages/contact#heading_highlight">{{ $page->heading_highlight }}</span>
|
||||
</h1>
|
||||
|
||||
<p class="max-w-xl ">
|
||||
Έχεις απορία, ιδέα ή θες να μας πεις κάτι; Γράψε μας το μήνυμά σου και θα σου απαντήσουμε το συντομότερο δυνατό.
|
||||
</p>
|
||||
<p class="max-w-xl" data-stoic="pages/contact#intro">{{ $page->intro }}</p>
|
||||
|
||||
<x-ui.status class="max-w-xl" />
|
||||
|
||||
@@ -76,7 +76,7 @@ class="h-captcha min-h-[78px]"
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col justify-center border-t border-black px-8 py-16 lg:border-t-0 lg:px-16">
|
||||
<x-contact-details :store="$store" :email="$contactEmail" />
|
||||
<x-contact-details :store="$store" />
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
@@ -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