refresh theme-one starter blocks and layout

Redesign the master layout and content blocks with responsive styling, accessible navigation, and configurable CTA and quote sections. Add about-me, embedded-code, and FAQ blocks, and update the generated theme assets. Replace Alpine-based locale handling with vanilla JavaScript for locale flags and gallery lightboxes, and remove Alpine and DaisyUI dependencies.
This commit is contained in:
2026-11-25 17:50:12 +01:00
parent 102fbc9464
commit ed8ae3200b
48 changed files with 1166 additions and 2353 deletions
@@ -0,0 +1,25 @@
<?php
return [
'title' => 'Testimonials',
'category' => 'Sections',
'icon' => 'ph ph-chat-centered-quote',
'settings' => [
'heading' => [
'label' => 'Heading',
'type' => 'text',
'value' => 'What our clients say'
],
'intro' => [
'label' => 'Supporting text',
'type' => 'text',
'value' => 'A few words from people we have had the pleasure of working with.'
],
'item_count' => [
'label' => 'Number of testimonials (1–6)',
'type' => 'number',
'value' => '3',
'placeholder' => '3'
],
]
];
@@ -0,0 +1,16 @@
<?php
$itemCount = max(1, min(6, intval($block->setting('item_count'))));
?>
<section class="bg-slate-50 px-4 py-12 sm:py-16">
<div class="mx-auto max-w-7xl">
<div class="mb-10 max-w-3xl">
<h2 class="text-3xl font-semibold tracking-tight text-slate-900 sm:text-4xl"><?= $block->setting('heading') ?></h2>
<p class="mt-4 text-lg leading-7 text-slate-600"><?= $block->setting('intro') ?></p>
</div>
<div class="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
<?php for ($i = 0; $i < $itemCount; $i++): ?>
[block slug="testimonial-item" id="testimonial-item-<?= $i ?>"]
<?php endfor; ?>
</div>
</div>
</section>