Compare commits
11
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5dc3290cf | ||
|
|
4e4a02c4ed | ||
|
|
e4dccd0205 | ||
|
|
d31b423f2a | ||
|
|
87ff1c477f | ||
|
|
fb239a97cb | ||
|
|
9d7f92ebfc | ||
|
|
fff84f9a43 | ||
|
|
b2f53ea952 | ||
|
|
1e4da2c8cc | ||
|
|
50ec0eebf2 |
No files matched your search
@@ -4,6 +4,8 @@ COMPOSE_PROJECT_NAME=3dealer
|
|||||||
|
|
||||||
APP_NAME=Laravel
|
APP_NAME=Laravel
|
||||||
APP_ENV=local
|
APP_ENV=local
|
||||||
|
# Leave false everywhere except the live site (sends X-Robots-Tag: noindex, nofollow)
|
||||||
|
APP_INDEXABLE=false
|
||||||
APP_KEY=
|
APP_KEY=
|
||||||
APP_DEBUG=true
|
APP_DEBUG=true
|
||||||
APP_URL=http://localhost
|
APP_URL=http://localhost
|
||||||
|
|||||||
@@ -0,0 +1,47 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Catalog;
|
||||||
|
|
||||||
|
use Modules\Core\Catalog\Services\CollectionService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Breadcrumb items for a collection and its ancestors, root first, in the
|
||||||
|
* shape <x-breadcrumb> takes. Home is added by the component itself.
|
||||||
|
*
|
||||||
|
* Interim: the indexed `ancestors` field gives the right ids and order, but
|
||||||
|
* its names are translated once at index time (CollectionIndexer uses
|
||||||
|
* translateAttribute('name') with no locale), so they'd show in the wrong
|
||||||
|
* language on the other locale. Each ancestor is re-read via getById() for a
|
||||||
|
* current-locale name instead. Trees are shallow, so it's one or two extra
|
||||||
|
* index lookups. Drop the re-read once core indexes ancestor names per locale.
|
||||||
|
*/
|
||||||
|
final class CollectionTrail
|
||||||
|
{
|
||||||
|
public function __construct(
|
||||||
|
private readonly CollectionService $collections,
|
||||||
|
) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array<string, mixed> $collection a localized CollectionService document
|
||||||
|
* @param bool $linkLast false when the collection itself is the current page
|
||||||
|
* @return array<int, array{label: string, href?: string}>
|
||||||
|
*/
|
||||||
|
public function for(array $collection, bool $linkLast = true): array
|
||||||
|
{
|
||||||
|
$ancestors = collect($collection['ancestors'] ?? [])
|
||||||
|
->map(fn (array $ancestor) => [
|
||||||
|
// Untranslated collections resolve to a null name, so keep the
|
||||||
|
// index-time name as a fallback.
|
||||||
|
'label' => $this->collections->getById((int) $ancestor['id'])['name'] ?? $ancestor['name'],
|
||||||
|
'href' => route('category.show', ['id' => $ancestor['id']]),
|
||||||
|
]);
|
||||||
|
|
||||||
|
$self = ['label' => $collection['name'] ?? ''];
|
||||||
|
|
||||||
|
if ($linkLast) {
|
||||||
|
$self['href'] = route('category.show', ['id' => $collection['id']]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return [...$ancestors->values()->all(), $self];
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Catalog;
|
||||||
|
|
||||||
|
use Lunar\Base\StandardMediaDefinitions;
|
||||||
|
use Spatie\Image\Enums\Constraint;
|
||||||
|
use Spatie\MediaLibrary\HasMedia;
|
||||||
|
use Spatie\MediaLibrary\MediaCollections\MediaCollection;
|
||||||
|
use Spatie\MediaLibrary\MediaCollections\Models\Media;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* INTERIM — belongs in boboko-core (see the core task in the image
|
||||||
|
* performance discussion). Delete this class and point
|
||||||
|
* config/lunar/media.php back at core's definitions once it lands there.
|
||||||
|
*
|
||||||
|
* Storefront product image sizes for srcset: WebP at fixed widths, the
|
||||||
|
* original's aspect ratio preserved and never upscaled. Replaces Lunar's
|
||||||
|
* square white-padded zoom/large/medium conversions (nothing reads them);
|
||||||
|
* the parent's `small` conversion stays for the admin panel.
|
||||||
|
*/
|
||||||
|
class ProductMediaDefinitions extends StandardMediaDefinitions
|
||||||
|
{
|
||||||
|
/** Conversion name => width in px. Named `w{width}` so the srcset can be built from the name. */
|
||||||
|
public const WIDTHS = [
|
||||||
|
'w160' => 160,
|
||||||
|
'w400' => 400,
|
||||||
|
'w800' => 800,
|
||||||
|
'w1200' => 1200,
|
||||||
|
'w1600' => 1600,
|
||||||
|
];
|
||||||
|
|
||||||
|
protected function registerCollectionConversions(MediaCollection $collection, HasMedia $model): void
|
||||||
|
{
|
||||||
|
$collection->registerMediaConversions(function (Media $media) use ($model) {
|
||||||
|
foreach (self::WIDTHS as $name => $width) {
|
||||||
|
$model->addMediaConversion($name)
|
||||||
|
->width($width, [Constraint::PreserveAspectRatio, Constraint::DoNotUpsize])
|
||||||
|
->format('webp')
|
||||||
|
->quality(80);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Catalog\CollectionTrail;
|
||||||
use App\Catalog\ProductListing;
|
use App\Catalog\ProductListing;
|
||||||
use App\Catalog\ProductListingPage;
|
use App\Catalog\ProductListingPage;
|
||||||
use Illuminate\Http\Response;
|
use Illuminate\Http\Response;
|
||||||
@@ -12,6 +13,7 @@ class CategoryController extends Controller
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private readonly ProductListingPage $listingPage,
|
private readonly ProductListingPage $listingPage,
|
||||||
private readonly CollectionService $collections,
|
private readonly CollectionService $collections,
|
||||||
|
private readonly CollectionTrail $trail,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
public function show(string $locale, int $collection)
|
public function show(string $locale, int $collection)
|
||||||
@@ -27,6 +29,10 @@ public function show(string $locale, int $collection)
|
|||||||
$collectionData['id'],
|
$collectionData['id'],
|
||||||
);
|
);
|
||||||
|
|
||||||
return view('category.show', [...$data, 'collection' => $collectionData]);
|
return view('category.show', [
|
||||||
|
...$data,
|
||||||
|
'collection' => $collectionData,
|
||||||
|
'breadcrumb' => $this->trail->for($collectionData, linkLast: false),
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Models\StoicFaq;
|
||||||
|
use App\Models\StoicFaqSection;
|
||||||
|
use App\Models\StoicPage;
|
||||||
|
use App\Services\Stoic;
|
||||||
|
use App\Support\StorePlaceholders;
|
||||||
|
use Illuminate\Support\Str;
|
||||||
|
use Illuminate\View\View;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FAQ page: pages/faq.md lists the sections, each section lists its FAQs
|
||||||
|
* (both Stoic relations, so the order is the editor's). Answers are markdown
|
||||||
|
* and can use the same store placeholders as the legal pages.
|
||||||
|
*/
|
||||||
|
class FaqController extends Controller
|
||||||
|
{
|
||||||
|
public function index(string $locale, StorePlaceholders $placeholders): View
|
||||||
|
{
|
||||||
|
$page = StoicPage::localized('faq');
|
||||||
|
|
||||||
|
if (! $page) {
|
||||||
|
abort(404);
|
||||||
|
}
|
||||||
|
|
||||||
|
$sections = Stoic::localizedRelation(StoicFaqSection::class, $page->sections, 'faq-sections')
|
||||||
|
->map(function (StoicFaqSection $section) use ($placeholders) {
|
||||||
|
$section->items = Stoic::localizedRelation(StoicFaq::class, $section->faqs, 'faqs')
|
||||||
|
->map(fn (StoicFaq $faq) => $faq->forceFill([
|
||||||
|
'answer' => Str::markdown($placeholders->fill($faq->content ?? '')),
|
||||||
|
]));
|
||||||
|
|
||||||
|
return $section;
|
||||||
|
})
|
||||||
|
->filter(fn (StoicFaqSection $section) => $section->items->isNotEmpty())
|
||||||
|
->values();
|
||||||
|
|
||||||
|
return view('faq', [
|
||||||
|
'page' => $page,
|
||||||
|
'sections' => $sections,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,26 +3,12 @@
|
|||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use App\Models\StoicPage;
|
use App\Models\StoicPage;
|
||||||
use Modules\Core\Store\Services\StoreDetailsService;
|
use App\Support\StorePlaceholders;
|
||||||
|
|
||||||
class LegalPageController extends Controller
|
class LegalPageController extends Controller
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* {placeholder} => StoreDetails column, usable in the Stoic legal page
|
|
||||||
* markdown.
|
|
||||||
*/
|
|
||||||
private const PLACEHOLDERS = [
|
|
||||||
'{store_name}' => 'name',
|
|
||||||
'{store_address}' => 'address',
|
|
||||||
'{store_phone}' => 'phone',
|
|
||||||
'{store_contact_email}' => 'contact_email',
|
|
||||||
'{store_legal_name}' => 'legal_name',
|
|
||||||
'{store_tax_identifier}' => 'tax_identifier',
|
|
||||||
'{store_registration_number}' => 'registration_number',
|
|
||||||
];
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private readonly StoreDetailsService $storeDetails,
|
private readonly StorePlaceholders $placeholders,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
public function terms(string $locale)
|
public function terms(string $locale)
|
||||||
@@ -55,22 +41,7 @@ private function show(string $slug)
|
|||||||
|
|
||||||
return view('legal', [
|
return view('legal', [
|
||||||
'page' => $page,
|
'page' => $page,
|
||||||
'content' => $this->fillPlaceholders($page->content ?? ''),
|
'content' => $this->placeholders->fill($page->content ?? ''),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Swapped in before the markdown is rendered, so values are escaped: the
|
|
||||||
* rendered markdown is printed unescaped. An empty field renders as
|
|
||||||
* nothing rather than leaving the raw placeholder on the page.
|
|
||||||
*/
|
|
||||||
private function fillPlaceholders(string $content): string
|
|
||||||
{
|
|
||||||
$details = $this->storeDetails->current();
|
|
||||||
|
|
||||||
return strtr($content, array_map(
|
|
||||||
fn (string $column) => e((string) ($details->translate($column) ?? '')),
|
|
||||||
self::PLACEHOLDERS,
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Catalog\CollectionTrail;
|
||||||
use App\Catalog\ProductListing;
|
use App\Catalog\ProductListing;
|
||||||
use App\Catalog\ProductListingPage;
|
use App\Catalog\ProductListingPage;
|
||||||
use Illuminate\Http\JsonResponse;
|
use Illuminate\Http\JsonResponse;
|
||||||
@@ -11,6 +12,7 @@
|
|||||||
use Illuminate\Support\Facades\Validator;
|
use Illuminate\Support\Facades\Validator;
|
||||||
use Lunar\Models\Product;
|
use Lunar\Models\Product;
|
||||||
use Lunar\Models\ProductVariant;
|
use Lunar\Models\ProductVariant;
|
||||||
|
use Modules\Core\Catalog\Services\CollectionService;
|
||||||
use Modules\Core\Catalog\Services\ProductService;
|
use Modules\Core\Catalog\Services\ProductService;
|
||||||
use Modules\Core\Review\Models\ProductReview;
|
use Modules\Core\Review\Models\ProductReview;
|
||||||
|
|
||||||
@@ -19,6 +21,8 @@ class ProductController extends Controller
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
private readonly ProductService $products,
|
private readonly ProductService $products,
|
||||||
private readonly ProductListingPage $listingPage,
|
private readonly ProductListingPage $listingPage,
|
||||||
|
private readonly CollectionService $collections,
|
||||||
|
private readonly CollectionTrail $trail,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -44,18 +48,40 @@ public function show(string $locale, int $id)
|
|||||||
|
|
||||||
$product = $this->mergeJustSubmittedReview($product);
|
$product = $this->mergeJustSubmittedReview($product);
|
||||||
|
|
||||||
$collection = $product['collections'][0] ?? null;
|
|
||||||
// dd($product);
|
|
||||||
[$productOptions, $variantsData] = $this->buildOptionPicker($id);
|
[$productOptions, $variantsData] = $this->buildOptionPicker($id);
|
||||||
|
|
||||||
return view('product.show', [
|
return view('product.show', [
|
||||||
'collection' => $collection,
|
'breadcrumb' => [...$this->collectionTrail($product), ['label' => $product['name']]],
|
||||||
'product' => $product,
|
'product' => $product,
|
||||||
'productOptions' => $productOptions,
|
'productOptions' => $productOptions,
|
||||||
'variantsData' => $variantsData,
|
'variantsData' => $variantsData,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The product's first directly-assigned collection with its ancestors, or
|
||||||
|
* the all-products page when it has none. The product document's own
|
||||||
|
* `collections` entries carry neither ancestors nor a current-locale name,
|
||||||
|
* so the collection is re-read from the collection index.
|
||||||
|
*
|
||||||
|
* @return array<int, array{label: string, href?: string}>
|
||||||
|
*/
|
||||||
|
private function collectionTrail(array $product): array
|
||||||
|
{
|
||||||
|
$assigned = $product['collections'][0] ?? null;
|
||||||
|
$collection = $assigned !== null ? $this->collections->getById((int) $assigned['id']) : null;
|
||||||
|
|
||||||
|
if ($collection === null) {
|
||||||
|
return [['label' => __('storefront.nav.products'), 'href' => route('products')]];
|
||||||
|
}
|
||||||
|
|
||||||
|
// Untranslated collections resolve to a null name; the product's own
|
||||||
|
// index-time name is the fallback, same as CollectionTrail's ancestors.
|
||||||
|
$collection['name'] ??= $assigned['name'];
|
||||||
|
|
||||||
|
return $this->trail->for($collection);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* One button/swatch group per product option (a product can have several
|
* One button/swatch group per product option (a product can have several
|
||||||
* — e.g. a custom-photo product with size + style + person-count, each
|
* — e.g. a custom-photo product with size + style + person-count, each
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Middleware;
|
||||||
|
|
||||||
|
use Closure;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sends `X-Robots-Tag: noindex, nofollow` on every Laravel response unless
|
||||||
|
* config('app.indexable') is on. Opt-in rather than tied to APP_ENV, since
|
||||||
|
* staging runs with APP_ENV=production too; only the live site sets
|
||||||
|
* APP_INDEXABLE=true.
|
||||||
|
*
|
||||||
|
* robots.txt deliberately still allows crawling: a Disallow would stop
|
||||||
|
* crawlers from fetching pages at all, so they'd never see this header and
|
||||||
|
* already-indexed URLs would stay in the index.
|
||||||
|
*/
|
||||||
|
class PreventIndexing
|
||||||
|
{
|
||||||
|
public function handle(Request $request, Closure $next): Response
|
||||||
|
{
|
||||||
|
$response = $next($request);
|
||||||
|
|
||||||
|
if (! config('app.indexable')) {
|
||||||
|
$response->headers->set('X-Robots-Tag', 'noindex, nofollow');
|
||||||
|
}
|
||||||
|
|
||||||
|
return $response;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use JacobJoergensen\LaravelPaper\Attributes\ContentPath;
|
||||||
|
use JacobJoergensen\LaravelPaper\Attributes\Driver;
|
||||||
|
use JacobJoergensen\LaravelPaper\Paper;
|
||||||
|
|
||||||
|
// A question and its answer (markdown body), listed by an FAQ section.
|
||||||
|
// Default-locale entries, like StoicPage; Stoic::localizedRelation() layers
|
||||||
|
// the current locale's fields on top.
|
||||||
|
#[Driver("markdown")]
|
||||||
|
#[ContentPath("resources/stoic/content/el/faqs")]
|
||||||
|
class StoicFaq extends Model
|
||||||
|
{
|
||||||
|
use Paper;
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use JacobJoergensen\LaravelPaper\Attributes\ContentPath;
|
||||||
|
use JacobJoergensen\LaravelPaper\Attributes\Driver;
|
||||||
|
use JacobJoergensen\LaravelPaper\Paper;
|
||||||
|
|
||||||
|
// A titled group of FAQs on the FAQ page, ordered by its faqs relation.
|
||||||
|
// Default-locale entries, like StoicPage; Stoic::localizedRelation() layers
|
||||||
|
// the current locale's fields on top.
|
||||||
|
#[Driver("markdown")]
|
||||||
|
#[ContentPath("resources/stoic/content/el/faq-sections")]
|
||||||
|
class StoicFaqSection extends Model
|
||||||
|
{
|
||||||
|
use Paper;
|
||||||
|
}
|
||||||
@@ -179,6 +179,22 @@ public static function hasMany(
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// hasMany() with each entry's current-locale fields layered on top (see
|
||||||
|
// localeOverrides). $folder is both the relation prefix and the content
|
||||||
|
// folder, e.g. "faqs". Refs pointing at deleted entries are dropped.
|
||||||
|
public static function localizedRelation(
|
||||||
|
string $relation,
|
||||||
|
?array $slugs,
|
||||||
|
string $folder,
|
||||||
|
) {
|
||||||
|
return static::hasMany($relation, $slugs ?? [], $folder)
|
||||||
|
->filter()
|
||||||
|
->map(fn($entry) => $entry->forceFill(
|
||||||
|
static::localeOverrides("{$folder}/{$entry->slug}.md"),
|
||||||
|
))
|
||||||
|
->values();
|
||||||
|
}
|
||||||
|
|
||||||
public static function hasOne(
|
public static function hasOne(
|
||||||
string $relation,
|
string $relation,
|
||||||
string $slug,
|
string $slug,
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Support;
|
||||||
|
|
||||||
|
use Modules\Core\Store\Services\StoreDetailsService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {placeholder} => StoreDetails column, usable in Stoic markdown (legal pages,
|
||||||
|
* FAQ answers).
|
||||||
|
*/
|
||||||
|
class StorePlaceholders
|
||||||
|
{
|
||||||
|
private const PLACEHOLDERS = [
|
||||||
|
'{store_name}' => 'name',
|
||||||
|
'{store_address}' => 'address',
|
||||||
|
'{store_phone}' => 'phone',
|
||||||
|
'{store_contact_email}' => 'contact_email',
|
||||||
|
'{store_legal_name}' => 'legal_name',
|
||||||
|
'{store_tax_identifier}' => 'tax_identifier',
|
||||||
|
'{store_registration_number}' => 'registration_number',
|
||||||
|
];
|
||||||
|
|
||||||
|
public function __construct(
|
||||||
|
private readonly StoreDetailsService $storeDetails,
|
||||||
|
) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Swapped in before the markdown is rendered, so values are escaped: the
|
||||||
|
* rendered markdown is printed unescaped. An empty field renders as
|
||||||
|
* nothing rather than leaving the raw placeholder on the page.
|
||||||
|
*/
|
||||||
|
public function fill(string $content): string
|
||||||
|
{
|
||||||
|
$details = $this->storeDetails->current();
|
||||||
|
|
||||||
|
return strtr($content, array_map(
|
||||||
|
fn (string $column) => e((string) ($details->translate($column) ?? '')),
|
||||||
|
self::PLACEHOLDERS,
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -23,6 +23,9 @@
|
|||||||
// public traffic.
|
// public traffic.
|
||||||
$middleware->trustProxies(at: '*');
|
$middleware->trustProxies(at: '*');
|
||||||
|
|
||||||
|
// Global, so error pages and non-`web` routes are covered too.
|
||||||
|
$middleware->append(\App\Http\Middleware\PreventIndexing::class);
|
||||||
|
|
||||||
// Laravel's priority list would otherwise run `auth` before core's
|
// Laravel's priority list would otherwise run `auth` before core's
|
||||||
// `locale` middleware, so the redirects below would build URLs before
|
// `locale` middleware, so the redirects below would build URLs before
|
||||||
// URL::defaults(['locale' => …]) is set, throwing a missing-parameter error.
|
// URL::defaults(['locale' => …]) is set, throwing a missing-parameter error.
|
||||||
|
|||||||
@@ -41,6 +41,19 @@
|
|||||||
|
|
||||||
'debug' => (bool) env('APP_DEBUG', false),
|
'debug' => (bool) env('APP_DEBUG', false),
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Search Engine Indexing
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| Off by default, so every environment (local, staging, ...) sends
|
||||||
|
| `X-Robots-Tag: noindex, nofollow` (App\Http\Middleware\PreventIndexing).
|
||||||
|
| Set APP_INDEXABLE=true on the live site only.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'indexable' => (bool) env('APP_INDEXABLE', false),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Application URL
|
| Application URL
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use App\Catalog\ProductMediaDefinitions;
|
||||||
use Lunar\Base\StandardMediaDefinitions;
|
use Lunar\Base\StandardMediaDefinitions;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
@@ -8,7 +9,7 @@
|
|||||||
'asset' => StandardMediaDefinitions::class,
|
'asset' => StandardMediaDefinitions::class,
|
||||||
'brand' => StandardMediaDefinitions::class,
|
'brand' => StandardMediaDefinitions::class,
|
||||||
'collection' => StandardMediaDefinitions::class,
|
'collection' => StandardMediaDefinitions::class,
|
||||||
'product' => StandardMediaDefinitions::class,
|
'product' => ProductMediaDefinitions::class,
|
||||||
'product-option' => StandardMediaDefinitions::class,
|
'product-option' => StandardMediaDefinitions::class,
|
||||||
'product-option-value' => StandardMediaDefinitions::class,
|
'product-option-value' => StandardMediaDefinitions::class,
|
||||||
],
|
],
|
||||||
|
|||||||
Generated
+2
-2
@@ -20,8 +20,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@boboko/core": {
|
"node_modules/@boboko/core": {
|
||||||
"version": "0.31.1",
|
"version": "0.31.4",
|
||||||
"resolved": "git+https://code.radical-elements.com/boboko/core.git#4900f0505db1f8c93e2b5efa3ef173b8654022c3",
|
"resolved": "git+https://code.radical-elements.com/boboko/core.git#5cce0e95d7b4c86d11ec0aaf3fa515f6e01e65bc",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hotwired/stimulus": "^3.2.2",
|
"@hotwired/stimulus": "^3.2.2",
|
||||||
"leaflet": "^1.9.4"
|
"leaflet": "^1.9.4"
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
google-site-verification: googledd42b61d3393d4d5.html
|
||||||
+35
-8
@@ -34,6 +34,17 @@ @theme {
|
|||||||
BASE
|
BASE
|
||||||
═══════════════════════════════════════════════════════════════════ */
|
═══════════════════════════════════════════════════════════════════ */
|
||||||
@layer base {
|
@layer base {
|
||||||
|
/* Heading scale steps down below `lg`, so a heading keeps one class
|
||||||
|
(text-h2) at every size instead of stepping text-h3 sm:text-h2. */
|
||||||
|
@media (width < 64rem) {
|
||||||
|
:root {
|
||||||
|
--text-h1: 48px;
|
||||||
|
--text-h2: 40px;
|
||||||
|
--text-h3: 30px;
|
||||||
|
--text-h4: 22px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: theme(colors.neutral.200);
|
background-color: theme(colors.neutral.200);
|
||||||
font-family: var(--font-sans);
|
font-family: var(--font-sans);
|
||||||
@@ -456,20 +467,16 @@ @layer components {
|
|||||||
/* Typography for markdown rendered from Stoic legal-page bodies (h1.h6, p, lists,
|
/* Typography for markdown rendered from Stoic legal-page bodies (h1.h6, p, lists,
|
||||||
links, tables) — a plain set of descendant selectors, not expressible as
|
links, tables) — a plain set of descendant selectors, not expressible as
|
||||||
utilities on the wrapper alone since the markup itself is generated by Str::markdown(). */
|
utilities on the wrapper alone since the markup itself is generated by Str::markdown(). */
|
||||||
.legal-content {
|
|
||||||
@apply text-neutral-700;
|
|
||||||
}
|
|
||||||
|
|
||||||
.legal-content > * + * {
|
.legal-content > * + * {
|
||||||
@apply mt-6;
|
@apply mt-6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.legal-content h2 {
|
.legal-content h2 {
|
||||||
@apply font-display text-2xl font-bold text-black;
|
@apply font-display text-2xl font-bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.legal-content h3 {
|
.legal-content h3 {
|
||||||
@apply font-display text-xl font-bold text-black;
|
@apply font-display text-xl font-bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.legal-content ul,
|
.legal-content ul,
|
||||||
@@ -486,11 +493,11 @@ @layer components {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.legal-content a {
|
.legal-content a {
|
||||||
@apply underline hover:text-black;
|
@apply underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.legal-content strong {
|
.legal-content strong {
|
||||||
@apply font-bold text-black;
|
@apply font-bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Wide tables scroll sideways on phones instead of pushing the page wider. */
|
/* Wide tables scroll sideways on phones instead of pushing the page wider. */
|
||||||
@@ -502,6 +509,26 @@ @layer components {
|
|||||||
.legal-content td {
|
.legal-content td {
|
||||||
@apply border border-neutral-300 px-3 py-2;
|
@apply border border-neutral-300 px-3 py-2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* FAQ answers slide open/closed. ::details-content and interpolate-size
|
||||||
|
(animating to height: auto) have no utility; browsers without them just
|
||||||
|
open instantly. User-triggered, so the height change doesn't count
|
||||||
|
toward CLS. */
|
||||||
|
@media (prefers-reduced-motion: no-preference) {
|
||||||
|
.faq-item {
|
||||||
|
interpolate-size: allow-keywords;
|
||||||
|
}
|
||||||
|
|
||||||
|
.faq-item::details-content {
|
||||||
|
block-size: 0;
|
||||||
|
overflow-y: clip;
|
||||||
|
transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
|
||||||
|
}
|
||||||
|
|
||||||
|
.faq-item[open]::details-content {
|
||||||
|
block-size: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes text-dance {
|
@keyframes text-dance {
|
||||||
|
|||||||
+138
-52
@@ -45,11 +45,12 @@ .bbk-confirmation {
|
|||||||
/* Primary CTA — x-ui.button "primary". The offset black block is a
|
/* Primary CTA — x-ui.button "primary". The offset black block is a
|
||||||
box-shadow here rather than .btn-primary's ::before/::after, because the
|
box-shadow here rather than .btn-primary's ::before/::after, because the
|
||||||
module's buttons have no inner <span> to lift the label above a
|
module's buttons have no inner <span> to lift the label above a
|
||||||
positioned ::before. Same look, same easing. No `uppercase`: the module
|
positioned ::before. Same look, same easing. Uppercased here because the
|
||||||
markup can't carry the class strip-accents.js needs for Greek. */
|
module markup can't carry the `uppercase` class; strip-accents.js lists
|
||||||
|
these selectors so Greek still loses its tonos. */
|
||||||
.bbk-cart-checkout,
|
.bbk-cart-checkout,
|
||||||
.bbk-checkout-continue {
|
.bbk-checkout-continue {
|
||||||
@apply border-black bg-neutral-200 px-6 py-3.5 text-base font-bold italic text-black;
|
@apply border-black bg-neutral-200 px-6 py-3.5 text-base font-bold uppercase italic text-black;
|
||||||
box-shadow: 10px 10px 0 var(--color-black);
|
box-shadow: 10px 10px 0 var(--color-black);
|
||||||
transition: box-shadow 0.35s cubic-bezier(0.2, 0.78, 0.12, 0.86);
|
transition: box-shadow 0.35s cubic-bezier(0.2, 0.78, 0.12, 0.86);
|
||||||
}
|
}
|
||||||
@@ -73,9 +74,10 @@ .bbk-checkout-continue:disabled {
|
|||||||
@apply opacity-50;
|
@apply opacity-50;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Secondary button — x-ui.button "secondary", size sm */
|
/* Secondary button — x-ui.button "secondary", size sm. Uppercased like the
|
||||||
|
primary CTA (see strip-accents.js). */
|
||||||
.bbk-cart-coupon-submit {
|
.bbk-cart-coupon-submit {
|
||||||
@apply border-black bg-transparent px-6 py-2 text-sm font-semibold transition-colors hover:bg-black hover:text-neutral-200;
|
@apply border-black bg-transparent px-5 py-2 text-sm font-bold uppercase italic transition-colors hover:bg-black hover:text-neutral-200;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Text inputs — x-ui.input: bottom border only, transparent */
|
/* Text inputs — x-ui.input: bottom border only, transparent */
|
||||||
@@ -138,10 +140,12 @@ .bbk-field-error {
|
|||||||
@apply text-sm;
|
@apply text-sm;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* x-ui.checkbox — square box, brand fill when ticked. Radios in the
|
/* x-ui.checkbox — square box that fills brand green when ticked, with a
|
||||||
shipping/payment cards use the same box (square design, no circles). */
|
black check. Radios in the shipping/payment cards share its look but are
|
||||||
|
round with a round black dot: the one deliberate exception to the
|
||||||
|
project's no-border-radius rule, per the design. */
|
||||||
.bbk-checkbox {
|
.bbk-checkbox {
|
||||||
@apply gap-3;
|
@apply items-center gap-3;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -149,17 +153,27 @@ .bbk-checkbox--stacked {
|
|||||||
@apply mt-0 text-sm;
|
@apply mt-0 text-sm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bbk-checkbox--stacked input {
|
||||||
|
@apply mt-0;
|
||||||
|
}
|
||||||
|
|
||||||
.bbk-checkbox--stacked a,
|
.bbk-checkbox--stacked a,
|
||||||
.bbk-checkout-withdrawal a,
|
.bbk-checkout-withdrawal a,
|
||||||
.bbk-checkout-login-prompt a,
|
.bbk-checkout-login-prompt a,
|
||||||
.bbk-checkout-note a {
|
.bbk-checkout-note a {
|
||||||
@apply underline hover:no-underline;
|
@apply text-black underline hover:no-underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-checkbox input[type="checkbox"],
|
.bbk-checkbox input[type="checkbox"],
|
||||||
.bbk-checkout-shipping-option input[type="radio"],
|
.bbk-checkout-shipping-option input[type="radio"],
|
||||||
.bbk-checkout-payment-option input[type="radio"] {
|
.bbk-checkout-payment-option input[type="radio"] {
|
||||||
@apply relative size-4 shrink-0 cursor-pointer appearance-none border border-current bg-transparent;
|
@apply relative m-0 size-5 shrink-0 cursor-pointer appearance-none border-[1.5px] border-black bg-transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bbk-checkbox input[type="checkbox"]:checked,
|
||||||
|
.bbk-checkout-shipping-option input[type="radio"]:checked,
|
||||||
|
.bbk-checkout-payment-option input[type="radio"]:checked {
|
||||||
|
@apply border-brand bg-brand;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-checkbox input[type="checkbox"]:checked::after,
|
.bbk-checkbox input[type="checkbox"]:checked::after,
|
||||||
@@ -167,8 +181,26 @@ .bbk-checkout-shipping-option input[type="radio"]:checked::after,
|
|||||||
.bbk-checkout-payment-option input[type="radio"]:checked::after {
|
.bbk-checkout-payment-option input[type="radio"]:checked::after {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 2px;
|
inset: 0;
|
||||||
background: var(--color-brand);
|
margin: auto;
|
||||||
|
background: var(--color-black);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bbk-checkbox input[type="checkbox"]:checked::after {
|
||||||
|
@apply size-3.5;
|
||||||
|
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bbk-checkout-shipping-option input[type="radio"],
|
||||||
|
.bbk-checkout-payment-option input[type="radio"],
|
||||||
|
.bbk-checkout-shipping-option input[type="radio"]:checked::after,
|
||||||
|
.bbk-checkout-payment-option input[type="radio"]:checked::after {
|
||||||
|
@apply rounded-full;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bbk-checkout-shipping-option input[type="radio"]:checked::after,
|
||||||
|
.bbk-checkout-payment-option input[type="radio"]:checked::after {
|
||||||
|
@apply size-2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-checkbox input[type="checkbox"]:focus-visible,
|
.bbk-checkbox input[type="checkbox"]:focus-visible,
|
||||||
@@ -180,12 +212,8 @@ .bbk-checkout-payment-option input[type="radio"]:focus-visible {
|
|||||||
/* ═══════════════════════════════════════════════════════════════════
|
/* ═══════════════════════════════════════════════════════════════════
|
||||||
CART DRAWER
|
CART DRAWER
|
||||||
═══════════════════════════════════════════════════════════════════ */
|
═══════════════════════════════════════════════════════════════════ */
|
||||||
.bbk-cart-panel {
|
|
||||||
@apply border-l border-black;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bbk-cart-panel-header {
|
.bbk-cart-panel-header {
|
||||||
@apply px-8 py-6;
|
@apply border-b-0 px-8 py-6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-cart-heading {
|
.bbk-cart-heading {
|
||||||
@@ -198,6 +226,19 @@ .bbk-cart-item-remove {
|
|||||||
@apply text-black transition-opacity hover:bg-transparent hover:text-black hover:opacity-70;
|
@apply text-black transition-opacity hover:bg-transparent hover:text-black hover:opacity-70;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Bin sits centred on the title's row, no negative-margin hit-area trick */
|
||||||
|
.bbk-cart-item-head {
|
||||||
|
@apply items-center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bbk-cart-item-remove {
|
||||||
|
@apply m-0 size-7;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bbk-cart-item-remove-icon {
|
||||||
|
@apply size-6;
|
||||||
|
}
|
||||||
|
|
||||||
.bbk-cart-panel-body {
|
.bbk-cart-panel-body {
|
||||||
@apply p-8;
|
@apply p-8;
|
||||||
}
|
}
|
||||||
@@ -207,12 +248,7 @@ .bbk-cart-error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bbk-cart-items {
|
.bbk-cart-items {
|
||||||
@apply mb-8 gap-6;
|
@apply mb-8 gap-8;
|
||||||
}
|
|
||||||
|
|
||||||
.bbk-cart-item-media img,
|
|
||||||
.bbk-confirmation-line .bbk-cart-item-media img {
|
|
||||||
@apply border border-black;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-cart-item-title {
|
.bbk-cart-item-title {
|
||||||
@@ -235,7 +271,7 @@ .bbk-cart-qty-btn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bbk-cart-qty-input {
|
.bbk-cart-qty-input {
|
||||||
@apply h-8 w-10 bg-transparent font-display font-bold;
|
@apply h-8 w-10 border-x-0 bg-transparent font-display font-bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-cart-qty-btn:focus-visible,
|
.bbk-cart-qty-btn:focus-visible,
|
||||||
@@ -245,7 +281,7 @@ .bbk-cart-qty-input:focus-visible {
|
|||||||
|
|
||||||
/* Summary */
|
/* Summary */
|
||||||
.bbk-cart-summary {
|
.bbk-cart-summary {
|
||||||
@apply gap-3 pt-6;
|
@apply gap-3 border-t-0 pt-6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-cart-coupon {
|
.bbk-cart-coupon {
|
||||||
@@ -285,7 +321,7 @@ .bbk-checkout-page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bbk-checkout-heading {
|
.bbk-checkout-heading {
|
||||||
@apply mb-12 font-display text-h3 font-black tracking-tight sm:text-h2;
|
@apply mb-12 font-display text-h3 leading-[1.25] font-extrabold lg:text-h2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-checkout {
|
.bbk-checkout {
|
||||||
@@ -297,7 +333,7 @@ .bbk-checkout-main {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bbk-checkout-section {
|
.bbk-checkout-section {
|
||||||
@apply gap-8 pb-10;
|
@apply gap-8 border-b-0 pb-10;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-checkout-section-heading,
|
.bbk-checkout-section-heading,
|
||||||
@@ -305,13 +341,16 @@ .bbk-checkout-summary-heading {
|
|||||||
@apply font-display text-h4 font-extrabold;
|
@apply font-display text-h4 font-extrabold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-checkout-note,
|
|
||||||
.bbk-checkout-status,
|
.bbk-checkout-status,
|
||||||
.bbk-checkout-withdrawal,
|
.bbk-checkout-withdrawal,
|
||||||
.bbk-checkout-error {
|
.bbk-checkout-error {
|
||||||
@apply text-sm;
|
@apply text-sm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bbk-checkout-note {
|
||||||
|
@apply text-base;
|
||||||
|
}
|
||||||
|
|
||||||
.bbk-checkout-login-prompt a {
|
.bbk-checkout-login-prompt a {
|
||||||
@apply font-bold;
|
@apply font-bold;
|
||||||
}
|
}
|
||||||
@@ -321,22 +360,28 @@ .bbk-checkout-shipping-fields {
|
|||||||
@apply gap-8;
|
@apply gap-8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Shipping / payment choices — bordered cards that fill black when picked,
|
/* Shipping / payment choices — white cards; the picked one gets a brand
|
||||||
like x-ui.option-buttons' pressed state. */
|
border. Every card carries the 2px border (transparent until picked) so
|
||||||
|
picking one doesn't shift the layout. */
|
||||||
|
.bbk-checkout-shipping-options,
|
||||||
|
.bbk-checkout-payment-options {
|
||||||
|
@apply gap-4;
|
||||||
|
}
|
||||||
|
|
||||||
.bbk-checkout-shipping-option,
|
.bbk-checkout-shipping-option,
|
||||||
.bbk-checkout-payment-option,
|
.bbk-checkout-payment-option,
|
||||||
.bbk-checkout-shipping-confirmed {
|
.bbk-checkout-shipping-confirmed {
|
||||||
@apply gap-4 px-6 py-4;
|
@apply gap-4 px-6 py-5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-checkout-shipping-option,
|
.bbk-checkout-shipping-option,
|
||||||
.bbk-checkout-payment-option {
|
.bbk-checkout-payment-option {
|
||||||
@apply transition-colors;
|
@apply border-2 border-transparent bg-white transition-colors;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-checkout-shipping-option:has(input:checked),
|
.bbk-checkout-shipping-option:has(input:checked),
|
||||||
.bbk-checkout-payment-option:has(input:checked) {
|
.bbk-checkout-payment-option:has(input:checked) {
|
||||||
@apply bg-black text-neutral-200;
|
@apply border-brand;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-checkout-shipping-option-name,
|
.bbk-checkout-shipping-option-name,
|
||||||
@@ -348,10 +393,6 @@ .bbk-checkout-shipping-option-description {
|
|||||||
@apply text-sm;
|
@apply text-sm;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-checkout-shipping-option:has(input:checked) .bbk-checkout-shipping-option-description {
|
|
||||||
@apply text-neutral-400;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bbk-checkout-shipping-option-price {
|
.bbk-checkout-shipping-option-price {
|
||||||
@apply font-display font-bold;
|
@apply font-display font-bold;
|
||||||
}
|
}
|
||||||
@@ -416,7 +457,7 @@ .bbk-checkout-aside {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bbk-checkout-summary {
|
.bbk-checkout-summary {
|
||||||
@apply bg-transparent p-8;
|
@apply border-0 bg-white p-6 lg:p-8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-checkout-summary-heading {
|
.bbk-checkout-summary-heading {
|
||||||
@@ -437,26 +478,38 @@ .bbk-spinner {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ═══════════════════════════════════════════════════════════════════
|
/* ═══════════════════════════════════════════════════════════════════
|
||||||
CONFIRMATION PAGE — same shape as account/orders/show
|
CONFIRMATION PAGE
|
||||||
═══════════════════════════════════════════════════════════════════ */
|
═══════════════════════════════════════════════════════════════════ */
|
||||||
.bbk-confirmation {
|
.bbk-confirmation {
|
||||||
@apply max-w-4xl px-8 py-16 lg:px-16;
|
@apply max-w-4xl px-8 py-16 lg:px-16;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-confirmation-heading {
|
.bbk-confirmation-heading {
|
||||||
@apply mb-12 font-display text-h3 font-black tracking-tight sm:text-h2;
|
@apply mb-12 font-display text-h3 leading-[1.25] font-extrabold lg:text-h2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* "You'll get a confirmation email" — brand-green strip, black icon */
|
||||||
|
.bbk-notice--info {
|
||||||
|
--bbk-notice-color: var(--color-black);
|
||||||
|
@apply items-center gap-2.5 border-0 bg-brand px-4 py-3.5 text-black;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Body copy size and weight (the module sets notices to 14px) */
|
||||||
|
.bbk-notice-text {
|
||||||
|
@apply text-lg leading-[1.389] font-normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-confirmation-meta {
|
.bbk-confirmation-meta {
|
||||||
@apply mb-6 gap-3 border-y border-black py-6;
|
@apply mt-6 mb-12 gap-3 py-6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-confirmation-meta-row {
|
.bbk-confirmation-meta-row {
|
||||||
|
@apply items-baseline;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-confirmation-meta-row dt {
|
.bbk-confirmation-meta-row dt {
|
||||||
@apply text-sm;
|
@apply text-base;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-confirmation-meta-row dd {
|
.bbk-confirmation-meta-row dd {
|
||||||
@@ -467,38 +520,71 @@ .bbk-confirmation .bbk-checkout-note + .bbk-checkout-note {
|
|||||||
@apply mt-2;
|
@apply mt-2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-confirmation-body {
|
.bbk-confirmation-section {
|
||||||
@apply my-12 gap-12;
|
@apply mt-12 border-t-0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bbk-confirmation-section-heading,
|
||||||
|
.bbk-confirmation-bank-transfer-heading {
|
||||||
|
@apply font-display text-h4 font-extrabold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Order summary — white card, like the checkout page's summary column */
|
||||||
|
.bbk-confirmation-section:has(.bbk-confirmation-lines) {
|
||||||
|
@apply bg-white p-6 lg:p-8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bbk-confirmation-section-heading {
|
||||||
|
@apply mb-5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-confirmation-lines {
|
.bbk-confirmation-lines {
|
||||||
@apply gap-6;
|
@apply mb-5 gap-5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bbk-confirmation-line .bbk-cart-item-media img {
|
||||||
|
@apply bg-white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-confirmation-line-name {
|
.bbk-confirmation-line-name {
|
||||||
@apply font-bold;
|
@apply mb-1 font-bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* "× 1" drops to its own muted line under the name */
|
||||||
.bbk-confirmation-line-qty {
|
.bbk-confirmation-line-qty {
|
||||||
@apply font-normal;
|
@apply block text-sm font-normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-confirmation-line-total {
|
.bbk-confirmation-line-total {
|
||||||
@apply font-display font-bold;
|
@apply font-display font-bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-confirmation-lines .bbk-cart-summary {
|
.bbk-confirmation .bbk-cart-summary {
|
||||||
@apply mt-6;
|
@apply pt-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Addresses — two columns */
|
||||||
.bbk-confirmation-addresses {
|
.bbk-confirmation-addresses {
|
||||||
@apply gap-8;
|
@apply gap-12 pt-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-confirmation-address-heading {
|
.bbk-confirmation-address-heading {
|
||||||
@apply mb-3 font-display text-xl font-extrabold;
|
@apply mb-3.5 font-display text-xl font-extrabold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bbk-address-lines {
|
.bbk-address-lines {
|
||||||
@apply text-base text-black;
|
@apply gap-1 text-base text-black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bbk-address-lines > :first-child {
|
||||||
|
@apply font-bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Bank transfer instructions (admin-authored HTML) */
|
||||||
|
.bbk-confirmation-bank-transfer-heading {
|
||||||
|
@apply mb-2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bbk-confirmation-bank-transfer-body {
|
||||||
|
@apply text-base leading-6;
|
||||||
}
|
}
|
||||||
@@ -39,8 +39,13 @@ function processElement(el) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// `.uppercase` plus the cart/checkout module's buttons, which the theme
|
||||||
|
// uppercases in resources/css/checkout.css (the module's markup can't carry
|
||||||
|
// the class).
|
||||||
|
const UPPERCASE_SELECTOR = '.uppercase, .bbk-cart-checkout, .bbk-checkout-continue, .bbk-cart-coupon-submit'
|
||||||
|
|
||||||
function applyToPage() {
|
function applyToPage() {
|
||||||
document.querySelectorAll('.uppercase').forEach(processElement)
|
document.querySelectorAll(UPPERCASE_SELECTOR).forEach(processElement)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Initial pass ──────────────────────────────────────────────────────────────
|
// ── Initial pass ──────────────────────────────────────────────────────────────
|
||||||
@@ -51,8 +56,8 @@ const observer = new MutationObserver(mutations => {
|
|||||||
for (const { addedNodes } of mutations) {
|
for (const { addedNodes } of mutations) {
|
||||||
for (const node of addedNodes) {
|
for (const node of addedNodes) {
|
||||||
if (node.nodeType !== Node.ELEMENT_NODE) continue
|
if (node.nodeType !== Node.ELEMENT_NODE) continue
|
||||||
if (node.classList?.contains('uppercase')) processElement(node)
|
if (node.matches?.(UPPERCASE_SELECTOR)) processElement(node)
|
||||||
node.querySelectorAll?.('.uppercase').forEach(processElement)
|
node.querySelectorAll?.(UPPERCASE_SELECTOR).forEach(processElement)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
name: "Παραγγελίες & πληρωμή"
|
||||||
|
slug: "orders-payment"
|
||||||
|
faqs:
|
||||||
|
- faqs/how-to-order
|
||||||
|
- faqs/payment-methods
|
||||||
|
- faqs/payment-security
|
||||||
|
- faqs/order-confirmation
|
||||||
|
- faqs/cancel-or-change-order
|
||||||
|
---
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
name: "Τα προϊόντα μας"
|
||||||
|
slug: "products"
|
||||||
|
faqs:
|
||||||
|
- faqs/how-products-are-made
|
||||||
|
- faqs/layer-lines-imperfections
|
||||||
|
- faqs/colors-and-photos
|
||||||
|
- faqs/durability-and-use
|
||||||
|
- faqs/product-care
|
||||||
|
- faqs/food-and-kids
|
||||||
|
- faqs/personalised-products
|
||||||
|
---
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
name: "Επιστροφές & εγγύηση"
|
||||||
|
slug: "returns"
|
||||||
|
faqs:
|
||||||
|
- faqs/return-policy
|
||||||
|
- faqs/return-shipping-cost
|
||||||
|
- faqs/refund-time
|
||||||
|
- faqs/non-returnable
|
||||||
|
- faqs/defective-product
|
||||||
|
---
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
name: "Αποστολή & παράδοση"
|
||||||
|
slug: "shipping"
|
||||||
|
faqs:
|
||||||
|
- faqs/preparation-time
|
||||||
|
- faqs/shipping-cost
|
||||||
|
- faqs/shipping-destinations
|
||||||
|
- faqs/delivery-time
|
||||||
|
- faqs/box-now
|
||||||
|
- faqs/order-tracking
|
||||||
|
- faqs/damaged-parcel
|
||||||
|
---
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
name: "Πώς λειτουργεί το BOX NOW;"
|
||||||
|
slug: "box-now"
|
||||||
|
---
|
||||||
|
|
||||||
|
Το BOX NOW είναι αυτόματα lockers σε σημεία σε όλη την Ελλάδα. Διαλέγεις το locker που σε βολεύει στο ταμείο και, όταν φτάσει το δέμα, λαμβάνεις SMS και email με τον κωδικό για να το παραλάβεις, όποια ώρα θες.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: "Μπορώ να ακυρώσω ή να αλλάξω την παραγγελία μου;"
|
||||||
|
slug: "cancel-or-change-order"
|
||||||
|
---
|
||||||
|
|
||||||
|
Γράψε μας το συντομότερο στο [{store_contact_email}](mailto:{store_contact_email}) με τον αριθμό της παραγγελίας σου.
|
||||||
|
|
||||||
|
Αν η εκτύπωση δεν έχει ξεκινήσει ακόμα, την ακυρώνουμε ή την αλλάζουμε και σου επιστρέφουμε τα χρήματα. Αν έχει ήδη ξεκινήσει, ισχύει η κανονική πολιτική επιστροφών.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
name: "Το προϊόν θα είναι ακριβώς ίδιο με τη φωτογραφία;"
|
||||||
|
slug: "colors-and-photos"
|
||||||
|
---
|
||||||
|
|
||||||
|
Πολύ κοντά, αλλά όχι πάντα πανομοιότυπο. Η απόχρωση μπορεί να διαφέρει λίγο ανάλογα με την οθόνη σου και την παρτίδα του υλικού. Επειδή κάθε κομμάτι εκτυπώνεται ξεχωριστά, μπορεί να υπάρχουν και μικρές διαφορές στο φινίρισμα.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
name: "Τι κάνω αν το προϊόν φτάσει χαλασμένο;"
|
||||||
|
slug: "damaged-parcel"
|
||||||
|
---
|
||||||
|
|
||||||
|
Λυπούμαστε! Στείλε μας το συντομότερο στο [{store_contact_email}](mailto:{store_contact_email}) τον αριθμό της παραγγελίας και φωτογραφίες του προϊόντος και της συσκευασίας. Θα το εξετάσουμε και θα βρούμε λύση, σύμφωνα με τον νόμο.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: "Τι ισχύει αν το προϊόν έχει ελάττωμα;"
|
||||||
|
slug: "defective-product"
|
||||||
|
---
|
||||||
|
|
||||||
|
Όλα τα προϊόντα καλύπτονται από τη νόμιμη εγγύηση των 2 ετών. Αν κάτι δεν είναι όπως πρέπει, γράψε μας στο [{store_contact_email}](mailto:{store_contact_email}) με τον αριθμό της παραγγελίας και φωτογραφίες, και θα το επισκευάσουμε, θα το αντικαταστήσουμε ή θα σου επιστρέψουμε τα χρήματα.
|
||||||
|
|
||||||
|
Οι γραμμές στρώσεων και οι μικρές διαφορές της 3D εκτύπωσης δεν θεωρούνται ελάττωμα.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
name: "Πότε θα φτάσει η παραγγελία μου;"
|
||||||
|
slug: "delivery-time"
|
||||||
|
---
|
||||||
|
|
||||||
|
Ο συνολικός χρόνος είναι ο χρόνος προετοιμασίας (2 έως 7 εργάσιμες) συν τον χρόνο της μεταφορικής. Η μεταφορά διαρκεί συνήθως 1 έως 3 εργάσιμες για την ηπειρωτική Ελλάδα και λίγο περισσότερο για νησιά και Κύπρο.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: "Πόσο αντέχουν τα προϊόντα;"
|
||||||
|
slug: "durability-and-use"
|
||||||
|
---
|
||||||
|
|
||||||
|
Όλα τα προϊόντα είναι σχεδιασμένα και κατασκευασμένα είτε για διακόσμηση είτε για χρήση σε λογικά, ρεαλιστικά πλαίσια, εκτός αν η περιγραφή του προϊόντος λέει κάτι διαφορετικό.
|
||||||
|
|
||||||
|
Υπερβολική ισχύς, υψηλότατες θερμοκρασίες και αποσυναρμολόγηση μπορεί να προκαλέσουν ζημιά στο προϊόν, για την οποία δεν ευθύνεται το 3Dealer.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: "Είναι κατάλληλα για τρόφιμα ή για μικρά παιδιά;"
|
||||||
|
slug: "food-and-kids"
|
||||||
|
---
|
||||||
|
|
||||||
|
Εκτός αν αναφέρεται διαφορετικά στην περιγραφή, τα προϊόντα δεν προορίζονται για επαφή με τρόφιμα ή ποτά.
|
||||||
|
|
||||||
|
Δεν είναι παιχνίδια και κάποια έχουν μικρά κομμάτια. Κράτα τα μακριά από μικρά παιδιά και κατοικίδια.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
name: "Πώς φτιάχνονται τα προϊόντα;"
|
||||||
|
slug: "how-products-are-made"
|
||||||
|
---
|
||||||
|
|
||||||
|
Όλα τα προϊόντα κατασκευάζονται με τρισδιάστατη εκτύπωση σε ειδικούς εκτυπωτές πλαστικού υλικού. Δεν έχουμε έτοιμο απόθεμα: κάθε κομμάτι εκτυπώνεται και προετοιμάζεται αφού παραγγείλεις, εδώ στην Ελλάδα.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: "Χρειάζεται να φτιάξω λογαριασμό για να παραγγείλω;"
|
||||||
|
slug: "how-to-order"
|
||||||
|
---
|
||||||
|
|
||||||
|
Όχι. Μπορείς να ολοκληρώσεις την παραγγελία σου και ως επισκέπτης, μόνο με το email σου.
|
||||||
|
|
||||||
|
Αν θέλεις λογαριασμό, δεν χρειάζεσαι κωδικό. Βάζεις το email σου, σου στέλνουμε έναν κωδικό σύνδεσης και μπαίνεις. Από τον λογαριασμό σου βλέπεις τις παραγγελίες σου, την πορεία της αποστολής και τα αγαπημένα σου.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: "Γιατί βλέπω γραμμές ή μικρές ατέλειες στο προϊόν;"
|
||||||
|
slug: "layer-lines-imperfections"
|
||||||
|
---
|
||||||
|
|
||||||
|
Τα προϊόντα πιθανώς να έχουν εμφανείς γραμμές ένωσης, στρώσεις εκτύπωσης υλικού και μικρές ατέλειες. Είναι φυσιολογικό για το αποτέλεσμα αυτής της δημιουργικής διαδικασίας, γιατί ο εκτυπωτής χτίζει το αντικείμενο στρώση στρώση.
|
||||||
|
|
||||||
|
Αυτά τα χαρακτηριστικά δεν θεωρούνται ελάττωμα. Κάνουν όμως κάθε κομμάτι λίγο μοναδικό.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: "Υπάρχουν προϊόντα που δεν επιστρέφονται;"
|
||||||
|
slug: "non-returnable"
|
||||||
|
---
|
||||||
|
|
||||||
|
Ναι. Τα προϊόντα που φτιάχνονται με βάση τις δικές σου προδιαγραφές ή είναι προσωποποιημένα, π.χ. με το όνομά σου ή με δικό σου σχέδιο, δεν επιστρέφονται, όπως προβλέπει ο νόμος.
|
||||||
|
|
||||||
|
Το ότι ένα προϊόν εκτυπώνεται μετά την παραγγελία δεν το κάνει από μόνο του μη επιστρέψιμο.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: "Πώς ξέρω ότι η παραγγελία μου ολοκληρώθηκε;"
|
||||||
|
slug: "order-confirmation"
|
||||||
|
---
|
||||||
|
|
||||||
|
Μόλις ολοκληρωθεί η παραγγελία, σου στέλνουμε email επιβεβαίωσης με όλα τα στοιχεία της. Αν δεν το βλέπεις, έλεγξε και τα spam ή γράψε μας στο [{store_contact_email}](mailto:{store_contact_email}).
|
||||||
|
|
||||||
|
Αν πληρώσεις με τραπεζική κατάθεση, η παραγγελία σου μπαίνει σε παραγωγή μόλις λάβουμε την πληρωμή.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
name: "Πώς παρακολουθώ την αποστολή μου;"
|
||||||
|
slug: "order-tracking"
|
||||||
|
---
|
||||||
|
|
||||||
|
Όταν η παραγγελία σου φύγει, σου στέλνουμε email με τον αριθμό αποστολής. Αν έχεις λογαριασμό, θα βρεις και την πορεία της αποστολής στη σελίδα της παραγγελίας, στον λογαριασμό σου.
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
name: "Ποιους τρόπους πληρωμής δέχεστε;"
|
||||||
|
slug: "payment-methods"
|
||||||
|
---
|
||||||
|
|
||||||
|
Μπορείς να πληρώσεις με:
|
||||||
|
|
||||||
|
* Πιστωτική ή χρεωστική κάρτα
|
||||||
|
* PayPal
|
||||||
|
* IRIS
|
||||||
|
* Τραπεζική κατάθεση
|
||||||
|
|
||||||
|
Δεν δεχόμαστε πληρωμή με αντικαταβολή.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
name: "Είναι ασφαλής η πληρωμή;"
|
||||||
|
slug: "payment-security"
|
||||||
|
---
|
||||||
|
|
||||||
|
Ναι. Οι πληρωμές γίνονται μέσω πιστοποιημένων παρόχων πληρωμών. Τα στοιχεία της κάρτας σου δεν περνούν από εμάς και δεν τα αποθηκεύουμε ποτέ.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: "Μπορώ να παραγγείλω κάτι προσωποποιημένο;"
|
||||||
|
slug: "personalised-products"
|
||||||
|
---
|
||||||
|
|
||||||
|
Σε όσα προϊόντα το επιτρέπουν, θα βρεις τις επιλογές προσωποποίησης στη σελίδα του προϊόντος, πριν το βάλεις στο καλάθι.
|
||||||
|
|
||||||
|
Έχεις μια ιδέα για κάτι που δεν βλέπεις στο κατάστημα; Γράψε μας στο [{store_contact_email}](mailto:{store_contact_email}) και θα σου πούμε αν γίνεται.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: "Σε πόσο καιρό ετοιμάζεται η παραγγελία μου;"
|
||||||
|
slug: "preparation-time"
|
||||||
|
---
|
||||||
|
|
||||||
|
Όλα τα προϊόντα εκτυπώνονται και προετοιμάζονται κατά παραγγελία. Ο χρόνος προετοιμασίας κυμαίνεται μεταξύ 2 και 7 εργάσιμων ημερών, ανάλογα με το προϊόν και τον όγκο των παραγγελιών.
|
||||||
|
|
||||||
|
Σε περιόδους με πολλή ζήτηση, π.χ. πριν τις γιορτές, μπορεί να χρειαστεί λίγο παραπάνω. Αν υπάρξει σημαντική καθυστέρηση, θα σε ενημερώσουμε.
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
name: "Πώς φροντίζω το προϊόν μου;"
|
||||||
|
slug: "product-care"
|
||||||
|
---
|
||||||
|
|
||||||
|
Λίγα πράγματα αρκούν για να κρατήσει χρόνια:
|
||||||
|
|
||||||
|
* Κράτα το μακριά από πηγές θερμότητας, π.χ. καλοριφέρ, φούρνο ή αυτοκίνητο στον ήλιο το καλοκαίρι. Το πλαστικό μπορεί να παραμορφωθεί.
|
||||||
|
* Απόφυγε τον ήλιο για πολλές ώρες κάθε μέρα, γιατί τα χρώματα μπορεί να ξεθωριάσουν.
|
||||||
|
* Καθάρισέ το με ένα μαλακό, στεγνό ή ελαφρώς βρεγμένο πανί. Όχι διαλυτικά, οινόπνευμα ή πλυντήριο πιάτων.
|
||||||
|
* Μην το λυγίζεις και μην το ανοίγεις με δύναμη.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
name: "Πότε θα πάρω πίσω τα χρήματά μου;"
|
||||||
|
slug: "refund-time"
|
||||||
|
---
|
||||||
|
|
||||||
|
Μέσα σε 14 ημέρες από τη στιγμή που μας ενημέρωσες για την επιστροφή, με τον ίδιο τρόπο που πλήρωσες. Επιστρέφουμε την αξία του προϊόντος και τα αρχικά βασικά μεταφορικά.
|
||||||
|
|
||||||
|
Μπορεί να περιμένουμε να παραλάβουμε το προϊόν, ή να μας δείξεις ότι το έστειλες, πριν κάνουμε την επιστροφή χρημάτων.
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
name: "Μπορώ να επιστρέψω ένα προϊόν;"
|
||||||
|
slug: "return-policy"
|
||||||
|
---
|
||||||
|
|
||||||
|
Ναι. Έχεις 14 ημερολογιακές ημέρες από την ημέρα που παρέλαβες το προϊόν για να υπαναχωρήσεις από την αγορά, χωρίς να χρειάζεται να μας πεις τον λόγο.
|
||||||
|
|
||||||
|
Στείλε μας email στο [{store_contact_email}](mailto:{store_contact_email}) με τον αριθμό της παραγγελίας σου. Μετά, έχεις άλλες 14 ημέρες για να μας στείλεις το προϊόν, σε καλή κατάσταση και αν γίνεται στη συσκευασία του.
|
||||||
|
|
||||||
|
Δες όλες τις λεπτομέρειες στην πολιτική [Αποστολών & Επιστροφών](/el/shipping-returns).
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
name: "Ποιος πληρώνει τα μεταφορικά της επιστροφής;"
|
||||||
|
slug: "return-shipping-cost"
|
||||||
|
---
|
||||||
|
|
||||||
|
Τα έξοδα αποστολής για την επιστροφή τα πληρώνεις εσύ. Αν όμως το προϊόν είναι ελαττωματικό ή σου στείλαμε λάθος προϊόν, τα αναλαμβάνουμε εμείς.
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
name: "Πόσο κοστίζουν τα μεταφορικά;"
|
||||||
|
slug: "shipping-cost"
|
||||||
|
---
|
||||||
|
|
||||||
|
Η τιμή είναι ίδια για όλη την Ελλάδα, όποια πόλη ή νησί κι αν είναι:
|
||||||
|
|
||||||
|
* **BOX NOW:** 4 €
|
||||||
|
* **ΕΛΤΑ Courier:** 5 €
|
||||||
|
|
||||||
|
Για αποστολές στην Κύπρο, το κόστος εμφανίζεται στο ταμείο πριν πληρώσεις.
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
name: "Σε ποιες χώρες στέλνετε;"
|
||||||
|
slug: "shipping-destinations"
|
||||||
|
---
|
||||||
|
|
||||||
|
Στέλνουμε σε όλη την Ελλάδα και στην Κύπρο.
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
name: "Συχνές ερωτήσεις"
|
||||||
|
slug: "faq"
|
||||||
|
meta_title: "Συχνές ερωτήσεις"
|
||||||
|
meta_description: "Όλα όσα θες να ξέρεις για παραγγελίες, πληρωμές, μεταφορικά, επιστροφές και τα 3D εκτυπωμένα προϊόντα μας."
|
||||||
|
og_image: ""
|
||||||
|
image: "faq-hand-pointing.png"
|
||||||
|
image_alt: ""
|
||||||
|
heading: "Συχνές ερωτήσεις"
|
||||||
|
intro: "Δεν βρήκες την απάντηση; [Γράψε μας](/el/contact)."
|
||||||
|
sections:
|
||||||
|
- faq-sections/orders-payment
|
||||||
|
- faq-sections/products
|
||||||
|
- faq-sections/shipping
|
||||||
|
- faq-sections/returns
|
||||||
|
---
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
name: "Orders & payment"
|
||||||
|
---
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
name: "Our products"
|
||||||
|
---
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
name: "Returns & guarantee"
|
||||||
|
---
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
name: "Shipping & delivery"
|
||||||
|
---
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
name: "How does BOX NOW work?"
|
||||||
|
---
|
||||||
|
|
||||||
|
BOX NOW is a network of self-service lockers across Greece. You pick the locker that suits you at checkout and, once your parcel arrives, you get an SMS and email with the code to collect it, at any time.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
name: "Can I cancel or change my order?"
|
||||||
|
---
|
||||||
|
|
||||||
|
Write to us as soon as possible at [{store_contact_email}](mailto:{store_contact_email}) with your order number.
|
||||||
|
|
||||||
|
If printing hasn't started yet, we cancel or change it and refund you. If it has already started, our normal return policy applies.
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
name: "Will my product look exactly like the photo?"
|
||||||
|
---
|
||||||
|
|
||||||
|
Very close, but not always identical. The shade can vary slightly depending on your screen and the material batch. Since every piece is printed individually, small differences in finish are also possible.
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
name: "What if my product arrives damaged?"
|
||||||
|
---
|
||||||
|
|
||||||
|
We're sorry! Send us your order number and photos of the product and its packaging as soon as possible at [{store_contact_email}](mailto:{store_contact_email}). We'll look into it and find a solution, as the law provides.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
name: "What if my product is defective?"
|
||||||
|
---
|
||||||
|
|
||||||
|
Every product is covered by the 2-year legal guarantee. If something isn't right, write to us at [{store_contact_email}](mailto:{store_contact_email}) with your order number and photos, and we'll repair it, replace it or refund you.
|
||||||
|
|
||||||
|
Layer lines and the small variations of 3D printing aren't considered defects.
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
name: "When will my order arrive?"
|
||||||
|
---
|
||||||
|
|
||||||
|
Total time is the preparation time (2 to 7 business days) plus the courier's delivery time. Delivery usually takes 1 to 3 business days on the Greek mainland, and a little longer for the islands and Cyprus.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
name: "How durable are the products?"
|
||||||
|
---
|
||||||
|
|
||||||
|
Every product is designed and made either for decoration or for normal, realistic use, unless its description says otherwise.
|
||||||
|
|
||||||
|
Excessive force, very high temperatures and taking the product apart can damage it, and 3Dealer isn't responsible for that damage.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
name: "Are they safe for food or small children?"
|
||||||
|
---
|
||||||
|
|
||||||
|
Unless the description says otherwise, products aren't meant to come into contact with food or drinks.
|
||||||
|
|
||||||
|
They aren't toys and some have small parts. Keep them away from small children and pets.
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
name: "How are your products made?"
|
||||||
|
---
|
||||||
|
|
||||||
|
Every product is made with 3D printing, on dedicated plastic printers. We don't keep ready-made stock: each piece is printed and finished after you order, here in Greece.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
name: "Do I need an account to order?"
|
||||||
|
---
|
||||||
|
|
||||||
|
No. You can check out as a guest with just your email.
|
||||||
|
|
||||||
|
If you want an account, there's no password. Enter your email, we send you a login code and you're in. From your account you can see your orders, track shipments and keep your favorites.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
name: "Why can I see lines or small imperfections?"
|
||||||
|
---
|
||||||
|
|
||||||
|
Products may show visible seams, print layers and small imperfections. That's normal for this creative process, since the printer builds each object layer by layer.
|
||||||
|
|
||||||
|
These marks aren't considered defects. They do make every piece a little unique.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
name: "Are there products I can't return?"
|
||||||
|
---
|
||||||
|
|
||||||
|
Yes. Products made to your own specifications or personalised, e.g. with your name or your own design, can't be returned, as the law provides.
|
||||||
|
|
||||||
|
A product being printed after you order doesn't, on its own, make it non-returnable.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
name: "How do I know my order went through?"
|
||||||
|
---
|
||||||
|
|
||||||
|
Once your order is placed, we email you a confirmation with all its details. If you can't find it, check your spam folder or write to us at [{store_contact_email}](mailto:{store_contact_email}).
|
||||||
|
|
||||||
|
If you pay by bank transfer, your order goes into production once we receive the payment.
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
name: "How do I track my shipment?"
|
||||||
|
---
|
||||||
|
|
||||||
|
When your order ships, we email you its tracking number. If you have an account, you can also follow the shipment on the order's page in your account.
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
name: "Which payment methods do you accept?"
|
||||||
|
---
|
||||||
|
|
||||||
|
You can pay with:
|
||||||
|
|
||||||
|
* Credit or debit card
|
||||||
|
* PayPal
|
||||||
|
* IRIS
|
||||||
|
* Bank transfer
|
||||||
|
|
||||||
|
We don't accept cash on delivery.
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
name: "Is paying online safe?"
|
||||||
|
---
|
||||||
|
|
||||||
|
Yes. Payments go through certified payment providers. Your card details never pass through us and we never store them.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
name: "Can I order something personalised?"
|
||||||
|
---
|
||||||
|
|
||||||
|
Products that can be personalised show their options on the product page, before you add them to your cart.
|
||||||
|
|
||||||
|
Got an idea for something you don't see in the shop? Write to us at [{store_contact_email}](mailto:{store_contact_email}) and we'll tell you if we can make it.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
name: "How long does it take to prepare my order?"
|
||||||
|
---
|
||||||
|
|
||||||
|
Every product is printed and prepared to order. Preparation takes 2 to 7 business days, depending on the product and how many orders we have.
|
||||||
|
|
||||||
|
In busy periods, e.g. before the holidays, it may take a little longer. If there's a significant delay, we'll let you know.
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
name: "How do I take care of my product?"
|
||||||
|
---
|
||||||
|
|
||||||
|
A few simple things keep it going for years:
|
||||||
|
|
||||||
|
* Keep it away from heat, e.g. radiators, ovens or a car parked in the summer sun. The plastic can warp.
|
||||||
|
* Avoid hours of direct sunlight every day, as colors can fade.
|
||||||
|
* Clean it with a soft, dry or slightly damp cloth. No solvents, alcohol or dishwasher.
|
||||||
|
* Don't bend it or force it open.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
name: "When will I get my money back?"
|
||||||
|
---
|
||||||
|
|
||||||
|
Within 14 days of telling us about your return, using the same method you paid with. We refund the product price and the original standard shipping cost.
|
||||||
|
|
||||||
|
We may wait until we receive the product, or until you show us you've sent it, before refunding.
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
name: "Can I return a product?"
|
||||||
|
---
|
||||||
|
|
||||||
|
Yes. You have 14 calendar days from the day you received your product to withdraw from the purchase, without giving us a reason.
|
||||||
|
|
||||||
|
Email us at [{store_contact_email}](mailto:{store_contact_email}) with your order number. You then have another 14 days to send the product back, in good condition and ideally in its packaging.
|
||||||
|
|
||||||
|
See all the details in our [Shipping & Returns](/en/shipping-returns) policy.
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
name: "Who pays for return shipping?"
|
||||||
|
---
|
||||||
|
|
||||||
|
You pay the shipping cost to return a product. If the product is defective or we sent you the wrong item, we cover it.
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
name: "How much is shipping?"
|
||||||
|
---
|
||||||
|
|
||||||
|
The price is the same anywhere in Greece, mainland or islands:
|
||||||
|
|
||||||
|
* **BOX NOW:** €4
|
||||||
|
* **ELTA Courier:** €5
|
||||||
|
|
||||||
|
For shipping to Cyprus, the cost is shown at checkout before you pay.
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
name: "Which countries do you ship to?"
|
||||||
|
---
|
||||||
|
|
||||||
|
We ship anywhere in Greece and to Cyprus.
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
name: "FAQ"
|
||||||
|
meta_title: "Frequently asked questions"
|
||||||
|
meta_description: "Everything you want to know about orders, payment, shipping, returns and our 3D printed products."
|
||||||
|
heading: "Frequently asked questions"
|
||||||
|
intro: "Can't find your answer? [Write to us](/en/contact)."
|
||||||
|
---
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 180 KiB |
@@ -191,6 +191,49 @@ schemas:
|
|||||||
label: Body
|
label: Body
|
||||||
ui: markdown
|
ui: markdown
|
||||||
translatable: true
|
translatable: true
|
||||||
|
- name: faq
|
||||||
|
label: FAQ Page
|
||||||
|
file: pages/faq.md
|
||||||
|
fields:
|
||||||
|
- name: name
|
||||||
|
label: Name
|
||||||
|
ui: string
|
||||||
|
translatable: true
|
||||||
|
- name: slug
|
||||||
|
label: Slug
|
||||||
|
ui: slug
|
||||||
|
- name: meta_title
|
||||||
|
label: Meta Title
|
||||||
|
ui: string
|
||||||
|
translatable: true
|
||||||
|
- name: meta_description
|
||||||
|
label: Meta Description
|
||||||
|
ui: string
|
||||||
|
translatable: true
|
||||||
|
- name: og_image
|
||||||
|
label: Og Image
|
||||||
|
ui: image
|
||||||
|
- name: image
|
||||||
|
label: "Image (left column)"
|
||||||
|
ui: image
|
||||||
|
- name: image_alt
|
||||||
|
label: "Image description (for screen readers, leave empty if decorative)"
|
||||||
|
ui: string
|
||||||
|
translatable: true
|
||||||
|
- name: heading
|
||||||
|
label: Heading
|
||||||
|
ui: string
|
||||||
|
translatable: true
|
||||||
|
- name: intro
|
||||||
|
label: "Intro (paragraph under the heading, markdown links allowed)"
|
||||||
|
ui: text
|
||||||
|
translatable: true
|
||||||
|
- name: sections
|
||||||
|
label: "Sections (in display order, each one groups its questions)"
|
||||||
|
ui: relation
|
||||||
|
schema: faq-sections
|
||||||
|
multiple: true
|
||||||
|
display_field: name
|
||||||
- name: settings
|
- name: settings
|
||||||
label: Settings
|
label: Settings
|
||||||
type: singleton
|
type: singleton
|
||||||
@@ -213,3 +256,35 @@ schemas:
|
|||||||
- name: tiktok_url
|
- name: tiktok_url
|
||||||
label: TikTok URL
|
label: TikTok URL
|
||||||
ui: string
|
ui: string
|
||||||
|
- name: faq-sections
|
||||||
|
label: FAQ Sections
|
||||||
|
translatable: true
|
||||||
|
fields:
|
||||||
|
- name: name
|
||||||
|
label: "Section title"
|
||||||
|
ui: string
|
||||||
|
translatable: true
|
||||||
|
- name: slug
|
||||||
|
label: "Slug (also the #anchor in the page URL)"
|
||||||
|
ui: slug
|
||||||
|
- name: faqs
|
||||||
|
label: "Questions (in display order)"
|
||||||
|
ui: relation
|
||||||
|
schema: faqs
|
||||||
|
multiple: true
|
||||||
|
display_field: name
|
||||||
|
- name: faqs
|
||||||
|
label: FAQs
|
||||||
|
translatable: true
|
||||||
|
fields:
|
||||||
|
- name: name
|
||||||
|
label: Question
|
||||||
|
ui: string
|
||||||
|
translatable: true
|
||||||
|
- name: slug
|
||||||
|
label: "Slug (also the #anchor in the page URL)"
|
||||||
|
ui: slug
|
||||||
|
- name: body
|
||||||
|
label: Answer
|
||||||
|
ui: markdown
|
||||||
|
translatable: true
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
<div class="flex max-w-2xl flex-col gap-12">
|
<div class="flex max-w-2xl flex-col gap-12">
|
||||||
|
|
||||||
<div class="flex flex-col gap-6">
|
<div class="flex flex-col gap-6">
|
||||||
<h1 class="font-display text-h3 font-black tracking-tight sm:text-h2">
|
<h1 class="font-display text-h2 font-black tracking-tight">
|
||||||
{{ __('storefront.auth.enter_code') }}
|
{{ __('storefront.auth.enter_code') }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<div class="flex max-w-2xl flex-col gap-12">
|
<div class="flex max-w-2xl flex-col gap-12">
|
||||||
|
|
||||||
<div class="flex flex-col gap-6">
|
<div class="flex flex-col gap-6">
|
||||||
<h1 class="font-display text-h3 font-black tracking-tight sm:text-h2">
|
<h1 class="font-display text-h2 font-black tracking-tight">
|
||||||
{{ __('storefront.account.email_change_heading') }}
|
{{ __('storefront.account.email_change_heading') }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<div class="flex max-w-4xl flex-col gap-12">
|
<div class="flex max-w-4xl flex-col gap-12">
|
||||||
|
|
||||||
<h1 class="font-display text-h3 font-black tracking-tight sm:text-h2">
|
<h1 class="font-display text-h2 font-black tracking-tight">
|
||||||
{{ __('storefront.account.nav_orders') }}
|
{{ __('storefront.account.nav_orders') }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
{{ __('storefront.orders.back') }}
|
{{ __('storefront.orders.back') }}
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<h1 class="font-display text-h3 font-black tracking-tight sm:text-h2">
|
<h1 class="font-display text-h2 font-black tracking-tight">
|
||||||
{{ __('storefront.orders.order_title', ['number' => $orderReference]) }}
|
{{ __('storefront.orders.order_title', ['number' => $orderReference]) }}
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<div class="flex max-w-2xl flex-col gap-16">
|
<div class="flex max-w-2xl flex-col gap-16">
|
||||||
|
|
||||||
<div class="flex flex-col gap-6">
|
<div class="flex flex-col gap-6">
|
||||||
<h1 class="font-display text-h3 font-black tracking-tight sm:text-h2">
|
<h1 class="font-display text-h2 font-black tracking-tight">
|
||||||
{{ __('storefront.account.nav_profile') }}
|
{{ __('storefront.account.nav_profile') }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<div class="flex flex-col gap-12">
|
<div class="flex flex-col gap-12">
|
||||||
|
|
||||||
<h1 class="font-display text-h3 font-black tracking-tight sm:text-h2">
|
<h1 class="font-display text-h2 font-black tracking-tight">
|
||||||
{{ __('storefront.account.nav_wishlist') }}
|
{{ __('storefront.account.nav_wishlist') }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<section class="mx-auto max-w-2xl px-4 py-20 sm:px-8 sm:py-32">
|
<section class="mx-auto max-w-2xl px-5 py-20 sm:px-8 sm:py-32">
|
||||||
|
|
||||||
<h1 class="mb-6 font-display text-h3 font-black tracking-tight sm:text-h2">
|
<h1 class="mb-6 font-display text-h2 font-black tracking-tight">
|
||||||
{{ __('storefront.auth.enter_code') }}
|
{{ __('storefront.auth.enter_code') }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
|||||||
@@ -13,9 +13,9 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<section class="mx-auto max-w-2xl px-4 py-20 sm:px-8 sm:py-32">
|
<section class="mx-auto max-w-2xl px-5 py-20 sm:px-8 sm:py-32">
|
||||||
|
|
||||||
<h1 class="mb-6 font-display text-h3 font-black tracking-tight sm:text-h2">
|
<h1 class="mb-6 font-display text-h2 font-black tracking-tight">
|
||||||
{{ __('storefront.auth.login') }}
|
{{ __('storefront.auth.login') }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
|||||||
@@ -15,15 +15,12 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
{{-- <div class="max-w-5xl mx-auto pt-26 pb-12"> --}}
|
{{-- <div class="max-w-5xl mx-auto pt-26 pb-12"> --}}
|
||||||
<div class="max-w-7xl mx-auto px-4 sm:px-8 pt-12 pb-12 lg:pt-26">
|
<div class="max-w-7xl mx-auto px-5 sm:px-8 pt-12 pb-12 lg:pt-26">
|
||||||
|
|
||||||
<div class="flex items-end justify-between gap-x-6 gap-y-3 flex-wrap mb-10 lg:mb-16">
|
<div class="flex items-end justify-between gap-x-6 gap-y-3 flex-wrap mb-10 lg:mb-16">
|
||||||
<h1 class="font-medium text-h3 lg:text-h2">{{ $collection['name'] }}</h1>
|
<h1 class="font-medium text-h2">{{ $collection['name'] }}</h1>
|
||||||
|
|
||||||
<x-breadcrumb :items="[
|
<x-breadcrumb :items="$breadcrumb" />
|
||||||
['label' => __('storefront.nav.home'), 'href' => route('home')],
|
|
||||||
['label' => $collection['name']],
|
|
||||||
]" />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{-- Everything that reflects sort / filter / page state lives in this
|
{{-- Everything that reflects sort / filter / page state lives in this
|
||||||
|
|||||||
@@ -2,15 +2,42 @@
|
|||||||
|
|
||||||
{{--
|
{{--
|
||||||
$items: array of ['label' => string, 'href' => string|null]
|
$items: array of ['label' => string, 'href' => string|null]
|
||||||
|
Home is always prepended here, so pages pass only their own trail.
|
||||||
Last item is the current page — no link, no href needed.
|
Last item is the current page — no link, no href needed.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
<x-breadcrumb :items="[
|
<x-breadcrumb :items="[
|
||||||
['label' => 'Jackets', 'href' => '/category/jackets'],
|
['label' => 'Jackets', 'href' => route('category.show', ['id' => 12])],
|
||||||
['label' => 'Leather Jacket'],
|
['label' => 'Leather Jacket'],
|
||||||
]" />
|
]" />
|
||||||
|
|
||||||
|
Also pushes matching BreadcrumbList JSON-LD to the layout's `seo` stack.
|
||||||
--}}
|
--}}
|
||||||
|
|
||||||
|
@php
|
||||||
|
// Untranslated collection names can arrive empty; skip them rather than
|
||||||
|
// render an empty crumb.
|
||||||
|
$items = array_values(array_filter([
|
||||||
|
['label' => __('storefront.nav.home'), 'href' => route('home')],
|
||||||
|
...$items,
|
||||||
|
], fn ($item) => filled($item['label'] ?? null)));
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@push('seo')
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{!! json_encode([
|
||||||
|
'@@context' => 'https://schema.org', {{-- @@ escapes Blade's @context directive --}}
|
||||||
|
'@type' => 'BreadcrumbList',
|
||||||
|
'itemListElement' => collect($items)->map(fn ($item, $index) => array_filter([
|
||||||
|
'@type' => 'ListItem',
|
||||||
|
'position' => $index + 1,
|
||||||
|
'name' => $item['label'],
|
||||||
|
'item' => $item['href'] ?? null,
|
||||||
|
], fn ($value) => $value !== null))->values()->all(),
|
||||||
|
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG) !!}
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
|
|
||||||
<nav aria-label="Breadcrumb">
|
<nav aria-label="Breadcrumb">
|
||||||
<ol {{ $attributes->merge(['class' => 'flex items-center flex-wrap gap-1 text-base text-black']) }}>
|
<ol {{ $attributes->merge(['class' => 'flex items-center flex-wrap gap-1 text-base text-black']) }}>
|
||||||
@foreach ($items as $index => $item)
|
@foreach ($items as $index => $item)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<footer class="border-t border-black">
|
<footer class="border-t border-black">
|
||||||
<div class="max-w-7xl mx-auto px-4 py-12 flex flex-col items-center gap-10 sm:px-8 lg:px-10 lg:py-20 lg:gap-16">
|
<div class="max-w-7xl mx-auto px-5 py-12 flex flex-col items-center gap-10 sm:px-8 lg:px-10 lg:py-20 lg:gap-16">
|
||||||
|
|
||||||
{{-- Logo --}}
|
{{-- Logo --}}
|
||||||
<a href="{{ url('/'.app()->getLocale()) }}" class="shrink-0">
|
<a href="{{ url('/'.app()->getLocale()) }}" class="shrink-0">
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
<ul class="flex flex-wrap justify-center items-center gap-x-8 gap-y-3 font-semibold uppercase">
|
<ul class="flex flex-wrap justify-center items-center gap-x-8 gap-y-3 font-semibold uppercase">
|
||||||
<li><a href="{{ route('contact') }}" class="underline-slide [--slide-h:5px] font-extrabold italic">{{ __('storefront.nav.contact') }}</a></li>
|
<li><a href="{{ route('contact') }}" class="underline-slide [--slide-h:5px] font-extrabold italic">{{ __('storefront.nav.contact') }}</a></li>
|
||||||
<li><a href="{{ route('legal.shipping-returns') }}" class="underline-slide [--slide-h:5px] font-extrabold italic">{{ __('storefront.footer.shipping_returns') }}</a></li>
|
<li><a href="{{ route('legal.shipping-returns') }}" class="underline-slide [--slide-h:5px] font-extrabold italic">{{ __('storefront.footer.shipping_returns') }}</a></li>
|
||||||
|
<li><a href="{{ route('faq') }}" class="underline-slide [--slide-h:5px] font-extrabold italic">{{ __('storefront.nav.faq') }}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<header class="sticky top-0 z-50 h-20 bg-neutral-200 border-b border-black lg:h-26">
|
{{-- No bottom border on the mobile homepage, so the header runs straight into the hero. --}}
|
||||||
<div class="flex items-center gap-4 px-4 max-lg:h-full sm:px-8 lg:gap-14 lg:px-10">
|
<header @class(['sticky top-0 z-50 h-20 bg-neutral-200 border-b border-black lg:h-26', 'max-lg:border-b-0' => request()->routeIs('home')])>
|
||||||
|
<div class="flex items-center gap-4 px-5 max-lg:h-full sm:px-8 lg:gap-14 lg:px-10">
|
||||||
|
|
||||||
{{-- Logo --}}
|
{{-- Logo --}}
|
||||||
<a href="{{ url('/'.app()->getLocale()) }}" class="shrink-0 lg:py-4">
|
<a href="{{ url('/'.app()->getLocale()) }}" class="shrink-0 lg:py-4">
|
||||||
@@ -26,6 +27,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{-- FAQ --}}
|
||||||
|
<a href="{{ route('faq') }}" class="nav-link uppercase inline-flex items-center gap-1 relative font-display font-extrabold italic text-black no-underline"><span>{{ __('storefront.nav.faq') }}</span></a>
|
||||||
|
|
||||||
{{-- Contact --}}
|
{{-- Contact --}}
|
||||||
<a href="{{ route('contact') }}" class="nav-link uppercase inline-flex items-center gap-1 relative font-display font-extrabold italic text-black no-underline"><span>{{ __('storefront.nav.contact') }}</span></a>
|
<a href="{{ route('contact') }}" class="nav-link uppercase inline-flex items-center gap-1 relative font-display font-extrabold italic text-black no-underline"><span>{{ __('storefront.nav.contact') }}</span></a>
|
||||||
|
|
||||||
@@ -119,9 +123,9 @@ class="burger flex h-10 w-10.5 shrink-0 flex-col items-center justify-center gap
|
|||||||
id="mobile-nav"
|
id="mobile-nav"
|
||||||
popover
|
popover
|
||||||
aria-label="{{ __('storefront.nav.menu') }}"
|
aria-label="{{ __('storefront.nav.menu') }}"
|
||||||
class="mobile-menu fixed inset-x-0 top-20 bottom-auto m-0 max-h-[calc(100dvh-5rem)] w-full max-w-none overflow-y-auto border-0 border-b border-black bg-neutral-200 p-0 text-black"
|
class="mobile-menu fixed inset-x-0 top-20 bottom-auto m-0 max-h-[calc(100dvh-5rem)] w-full max-w-none overflow-y-auto border-0 bg-neutral-200 p-0 text-black"
|
||||||
>
|
>
|
||||||
<div class="flex flex-col gap-8 px-4 py-6 sm:px-8">
|
<div class="flex flex-col gap-8 px-5 py-6 sm:px-8">
|
||||||
|
|
||||||
<ul class="flex flex-col gap-5 font-display font-extrabold italic">
|
<ul class="flex flex-col gap-5 font-display font-extrabold italic">
|
||||||
<li class="flex flex-col gap-4">
|
<li class="flex flex-col gap-4">
|
||||||
@@ -143,6 +147,16 @@ class="mobile-menu fixed inset-x-0 top-20 bottom-auto m-0 max-h-[calc(100dvh-5re
|
|||||||
</ul>
|
</ul>
|
||||||
@endif
|
@endif
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a
|
||||||
|
href="{{ route('faq') }}"
|
||||||
|
@class(['nav-link uppercase flex items-center justify-between gap-4', 'is-active' => request()->routeIs('faq')])
|
||||||
|
@if (request()->routeIs('faq')) aria-current="page" @endif
|
||||||
|
>
|
||||||
|
<span>{{ __('storefront.nav.faq') }}</span>
|
||||||
|
<x-ui.icon name="arrow-right" :size="22" />
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
href="{{ route('contact') }}"
|
href="{{ route('contact') }}"
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
<section {{ $attributes }}>
|
<section {{ $attributes }}>
|
||||||
<div class="grid grid-cols-1 lg:grid-cols-2">
|
<div class="grid grid-cols-1 lg:grid-cols-2">
|
||||||
<div class="flex flex-col justify-center gap-8 px-4 py-12 sm:px-8 lg:py-16 lg:px-16 items-center">
|
<div class="flex flex-col justify-center gap-8 px-5 py-12 sm:px-8 lg:py-16 lg:px-16 items-center">
|
||||||
<h2
|
<h2
|
||||||
class="text-h3 sm:text-h2 lg:text-h1 leading-[1.3] max-w-xl text-center"
|
class="text-h1 leading-[1.3] max-w-xl text-center"
|
||||||
aria-label="Γράψου στο newsletter μας"
|
aria-label="Γράψου στο newsletter μας"
|
||||||
data-controller="appear"
|
data-controller="appear"
|
||||||
data-appear-visible-class="is-visible"
|
data-appear-visible-class="is-visible"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<section {{ $attributes }}>
|
<section {{ $attributes }}>
|
||||||
<div class="max-w-3xl bg-brand mx-auto px-6 py-12 sm:px-16 sm:py-16 flex flex-col items-center text-center gap-8 border-1">
|
<div class="max-w-3xl bg-brand mx-auto px-6 py-12 sm:px-16 sm:py-16 flex flex-col items-center text-center gap-8 border-1">
|
||||||
<p class="text-h4 sm:text-h3 leading-snug">Γράψου στο newsletter για <span class="font-extrabold italic">5% έκπτωση</span> στην πρώτη σου παραγγελία</p>
|
<p class="text-h3 leading-snug">Γράψου στο newsletter για <span class="font-extrabold italic">5% έκπτωση</span> στην πρώτη σου παραγγελία</p>
|
||||||
|
|
||||||
<form method="POST" action="#" class="w-full flex flex-col gap-5">
|
<form method="POST" action="#" class="w-full flex flex-col gap-5">
|
||||||
@csrf
|
@csrf
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class="fixed w-full inset-x-0 top-0 bottom-auto m-0 border-0 bg-transparent p-0"
|
|||||||
method="get"
|
method="get"
|
||||||
action="{{ route('search') }}"
|
action="{{ route('search') }}"
|
||||||
data-nav-search-target="form"
|
data-nav-search-target="form"
|
||||||
class="flex h-[var(--search-overlay-h)] items-center gap-4 bg-brand px-4 sm:px-8 lg:gap-6 lg:px-10"
|
class="flex h-[var(--search-overlay-h)] items-center gap-4 bg-brand px-5 sm:px-8 lg:gap-6 lg:px-10"
|
||||||
>
|
>
|
||||||
<label id="search-overlay-label" for="search-overlay-input" class="sr-only">{{ __('storefront.shop.search_label') }}</label>
|
<label id="search-overlay-label" for="search-overlay-input" class="sr-only">{{ __('storefront.shop.search_label') }}</label>
|
||||||
<input
|
<input
|
||||||
|
|||||||
@@ -34,6 +34,8 @@
|
|||||||
|
|
||||||
'arrow-down' => '<path fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M12 5V19M12 19L6 13M12 19L18 13"/>',
|
'arrow-down' => '<path fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M12 5V19M12 19L6 13M12 19L18 13"/>',
|
||||||
|
|
||||||
|
'chevron-down' => '<path fill="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="M6 9L12 15L18 9"/>',
|
||||||
|
|
||||||
'facebook' => '<path d="M14 13.5H16.5L17.5 9.5H14V7.5C14 6.47062 14 5.5 16 5.5H17.5V2.1401C17.1743 2.09685 15.943 2 14.6429 2C11.9284 2 10 3.65686 10 6.69971V9.5H7V13.5H10V22H14V13.5Z"/>',
|
'facebook' => '<path d="M14 13.5H16.5L17.5 9.5H14V7.5C14 6.47062 14 5.5 16 5.5H17.5V2.1401C17.1743 2.09685 15.943 2 14.6429 2C11.9284 2 10 3.65686 10 6.69971V9.5H7V13.5H10V22H14V13.5Z"/>',
|
||||||
|
|
||||||
'tiktok' => '<path d="M16 8.24537V15.5C16 19.0899 13.0899 22 9.5 22C5.91015 22 3 19.0899 3 15.5C3 11.9101 5.91015 9 9.5 9C10.0163 9 10.5185 9.06019 11 9.17393V12.3368C10.5454 12.1208 10.0368 12 9.5 12C7.567 12 6 13.567 6 15.5C6 17.433 7.567 19 9.5 19C11.433 19 13 17.433 13 15.5V2H16C16 4.76142 18.2386 7 21 7V10C19.1081 10 17.3696 9.34328 16 8.24537Z"/>',
|
'tiktok' => '<path d="M16 8.24537V15.5C16 19.0899 13.0899 22 9.5 22C5.91015 22 3 19.0899 3 15.5C3 11.9101 5.91015 9 9.5 9C10.0163 9 10.5185 9.06019 11 9.17393V12.3368C10.5454 12.1208 10.0368 12 9.5 12C7.567 12 6 13.567 6 15.5C6 17.433 7.567 19 9.5 19C11.433 19 13 17.433 13 15.5V2H16C16 4.76142 18.2386 7 21 7V10C19.1081 10 17.3696 9.34328 16 8.24537Z"/>',
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
src="{{ $image }}"
|
src="{{ $image }}"
|
||||||
alt="{{ $name }}"
|
alt="{{ $name }}"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
class="w-full h-auto block"
|
class="w-full h-auto block {{ $soldOut ? 'opacity-50' : '' }}"
|
||||||
>
|
>
|
||||||
@else
|
@else
|
||||||
<div class="w-full aspect-square bg-neutral-300 flex items-center justify-center text-neutral-500 text-sm">
|
<div class="w-full aspect-square bg-neutral-300 flex items-center justify-center text-neutral-500 text-sm">
|
||||||
|
|||||||
@@ -13,13 +13,13 @@
|
|||||||
|
|
||||||
<section class="grid grid-cols-1 lg:grid-cols-2 lg:divide-x lg:divide-black lg:min-h-[calc(100vh-102px)]">
|
<section class="grid grid-cols-1 lg:grid-cols-2 lg:divide-x lg:divide-black lg:min-h-[calc(100vh-102px)]">
|
||||||
|
|
||||||
<div class="flex flex-col justify-center gap-10 px-4 py-12 sm:px-8 lg:py-16 lg:px-16">
|
<div class="flex flex-col justify-center gap-10 px-5 py-12 sm:px-8 lg:py-16 lg:px-16">
|
||||||
|
|
||||||
<svg viewBox="0 0 135 124" class="rotating-star text-brand w-24 h-24 lg:w-40 lg:h-40" aria-hidden="true" fill="currentColor">
|
<svg viewBox="0 0 135 124" class="rotating-star text-brand w-24 h-24 lg:w-40 lg:h-40" aria-hidden="true" fill="currentColor">
|
||||||
<path d="m88.4 0 4 28.9 29.7-5.2-14.3 25.7L135 62l-27.2 12.6 14.3 25.7-29.7-5.2-4 28.9-20.9-21.1L46.6 124l-4-28.9-29.7 5.2 14.3-25.7L0 62l27.2-12.6-14.3-25.7 29.7 5.2 4-28.9 20.9 21.1L88.4 0z"/>
|
<path d="m88.4 0 4 28.9 29.7-5.2-14.3 25.7L135 62l-27.2 12.6 14.3 25.7-29.7-5.2-4 28.9-20.9-21.1L46.6 124l-4-28.9-29.7 5.2 14.3-25.7L0 62l27.2-12.6-14.3-25.7 29.7 5.2 4-28.9 20.9 21.1L88.4 0z"/>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
||||||
<h1 class="font-display text-h3 sm:text-h2 lg:text-h1 font-semibold leading-tight"
|
<h1 class="font-display text-h1 font-semibold leading-tight"
|
||||||
data-controller="appear"
|
data-controller="appear"
|
||||||
data-appear-visible-class="is-visible">
|
data-appear-visible-class="is-visible">
|
||||||
<span class="text-dance" data-stoic="pages/contact#heading_first">{{ $page->heading_first }}</span><br>
|
<span class="text-dance" data-stoic="pages/contact#heading_first">{{ $page->heading_first }}</span><br>
|
||||||
@@ -54,6 +54,15 @@
|
|||||||
:aria-describedby="$errors->has('message') ? 'contact-message-error' : null">{{ old('message') }}</x-ui.textarea>
|
:aria-describedby="$errors->has('message') ? 'contact-message-error' : null">{{ old('message') }}</x-ui.textarea>
|
||||||
</x-ui.field>
|
</x-ui.field>
|
||||||
|
|
||||||
|
{{-- Art. 13 notice, not a consent checkbox: the basis is answering
|
||||||
|
the enquiry. Unescaped: the label holds the link (Language Lines,
|
||||||
|
staff only). --}}
|
||||||
|
<p class="text-sm text-neutral-500 [&_a]:underline [&_a:hover]:no-underline">
|
||||||
|
{!! __('storefront.contact.privacy_notice', [
|
||||||
|
'privacy' => route('legal.privacy'),
|
||||||
|
]) !!}
|
||||||
|
</p>
|
||||||
|
|
||||||
{{-- hCaptcha checkbox, verified by App\Rules\HCaptcha (see auth/login). --}}
|
{{-- hCaptcha checkbox, verified by App\Rules\HCaptcha (see auth/login). --}}
|
||||||
<x-ui.field for="contact-captcha" :error="$errors->first('h-captcha-response')">
|
<x-ui.field for="contact-captcha" :error="$errors->first('h-captcha-response')">
|
||||||
<div
|
<div
|
||||||
@@ -75,7 +84,7 @@ class="h-captcha min-h-[78px]"
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-col justify-center border-t border-black px-4 py-12 sm:px-8 lg:border-t-0 lg:py-16 lg:px-16">
|
<div class="flex flex-col justify-center border-t border-black px-5 py-12 sm:px-8 lg:border-t-0 lg:py-16 lg:px-16">
|
||||||
<x-contact-details :store="$store" />
|
<x-contact-details :store="$store" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -13,9 +13,9 @@
|
|||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
<section class="flex flex-col items-center justify-center gap-8 px-4 py-16 text-center sm:px-8 lg:py-24 min-h-[calc(100vh-12rem)] sm:min-h-[calc(100vh-8rem)]">
|
<section class="flex flex-col items-center justify-center gap-8 px-5 py-16 text-center sm:px-8 lg:py-24 min-h-[calc(100vh-12rem)] sm:min-h-[calc(100vh-8rem)]">
|
||||||
|
|
||||||
<h1 class="font-display text-h3 sm:text-h2 lg:text-h1 font-semibold leading-tight">@yield('error_title')</h1>
|
<h1 class="font-display text-h1 font-semibold leading-tight">@yield('error_title')</h1>
|
||||||
|
|
||||||
<p class="max-w-xl">@yield('error_text')</p>
|
<p class="max-w-xl">@yield('error_text')</p>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,94 @@
|
|||||||
|
@extends('layouts.app')
|
||||||
|
|
||||||
|
@section('title', $page->meta_title ?: $page->name)
|
||||||
|
@section('description', $page->meta_description)
|
||||||
|
@section('og_image', $page->og_image)
|
||||||
|
|
||||||
|
{{-- FAQPage structured data, this page only (not on product pages, where the
|
||||||
|
same answers would repeat). --}}
|
||||||
|
@if ($sections->isNotEmpty())
|
||||||
|
@push('seo')
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{!! json_encode([
|
||||||
|
'@@context' => 'https://schema.org', {{-- @@ escapes Blade's @context directive --}}
|
||||||
|
'@type' => 'FAQPage',
|
||||||
|
'mainEntity' => $sections->flatMap->items->map(fn ($faq) => [
|
||||||
|
'@type' => 'Question',
|
||||||
|
'name' => $faq->name,
|
||||||
|
'acceptedAnswer' => [
|
||||||
|
'@type' => 'Answer',
|
||||||
|
'text' => trim(strip_tags($faq->answer)),
|
||||||
|
],
|
||||||
|
])->all(),
|
||||||
|
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG) !!}
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
|
||||||
|
@php $number = 0; @endphp
|
||||||
|
|
||||||
|
<section class="grid grid-cols-1 lg:grid-cols-[2fr_3fr]">
|
||||||
|
|
||||||
|
{{-- Photo: left column on desktop (sticky while the questions scroll),
|
||||||
|
after the questions on mobile so the answers come first. --}}
|
||||||
|
<div class="order-last border-t border-black px-5 py-12 sm:px-8 lg:order-none lg:border-t-0 lg:border-r lg:p-10" data-stoic="pages/faq#image">
|
||||||
|
@if (! empty($page->image))
|
||||||
|
<x-ui.stoic-image
|
||||||
|
src="{{ $page->image }}"
|
||||||
|
preset="large"
|
||||||
|
sizes="(min-width: 1024px) 40vw, 100vw"
|
||||||
|
:alt="$page->image_alt ?? ''"
|
||||||
|
:aria-hidden="blank($page->image_alt) ? 'true' : null"
|
||||||
|
loading="eager"
|
||||||
|
fetchpriority="high"
|
||||||
|
:preload="true"
|
||||||
|
class="w-full h-auto lg:sticky lg:top-42"
|
||||||
|
/>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex flex-col gap-10 px-5 py-12 sm:px-8 lg:py-16 lg:px-10">
|
||||||
|
|
||||||
|
<div class="flex flex-col gap-6">
|
||||||
|
<h1 class="font-display text-h2 font-extrabold leading-tight" data-stoic="pages/faq#heading">
|
||||||
|
{{ $page->heading ?: $page->name }}
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
@if (filled($page->intro))
|
||||||
|
{{-- Inline markdown, so the editor can add links. --}}
|
||||||
|
<p class="max-w-xl [&_a]:underline" data-stoic="pages/faq#intro">{!! Str::inlineMarkdown($page->intro) !!}</p>
|
||||||
|
@endif
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@foreach ($sections as $section)
|
||||||
|
<section id="{{ $section->slug }}" class="flex flex-col scroll-mt-28" aria-labelledby="{{ $section->slug }}-heading">
|
||||||
|
{{-- <h2 id="{{ $section->slug }}-heading" class="mb-2 font-display text-h4 font-extrabold" data-stoic="faq-sections/{{ $section->slug }}#name"> --}}
|
||||||
|
<h2 id="{{ $section->slug }}-heading" class="mb-2 font-display text-sm font-semibold uppercase" data-stoic="faq-sections/{{ $section->slug }}#name">
|
||||||
|
{{ $section->name }}
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
@foreach ($section->items as $faq)
|
||||||
|
@php $number++; @endphp
|
||||||
|
|
||||||
|
<details id="{{ $faq->slug }}" class="faq-item group scroll-mt-28">
|
||||||
|
<summary class="flex cursor-pointer list-none items-center gap-4 border-b border-transparent py-4 font-display text-2xl font-bold group-open:border-black [&::-webkit-details-marker]:hidden">
|
||||||
|
<span class="w-8 shrink-0 tabular-nums" aria-hidden="true">{{ str_pad($number, 2, '0', STR_PAD_LEFT) }}</span>
|
||||||
|
<span class="flex-1" data-stoic="faqs/{{ $faq->slug }}#name">{{ $faq->name }}</span>
|
||||||
|
<x-ui.icon name="chevron-down" size="40" class="transition-transform duration-300 group-open:rotate-180" />
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
<div class="legal-content pt-4 pb-6 pl-12" data-stoic="faqs/{{ $faq->slug }}#body">
|
||||||
|
{!! $faq->answer !!}
|
||||||
|
</div>
|
||||||
|
</details>
|
||||||
|
@endforeach
|
||||||
|
</section>
|
||||||
|
@endforeach
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
@endsection
|
||||||
Loaded 100 of 110 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user