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' => 'Gallery Image',
'category' => 'Content',
'hidden' => true,
'icon' => 'ph ph-image',
'settings' => [
'image_src' => [
'label' => 'Image source URL',
'type' => 'text',
'value' => 'https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80'
],
'image_alt' => [
'label' => 'Image alternative text',
'type' => 'text',
'value' => 'Rolling hills beneath a cloudy sky'
],
'caption' => [
'label' => 'Caption',
'type' => 'text',
'value' => 'A quiet moment in the landscape'
],
]
];
@@ -0,0 +1,10 @@
<figure class="overflow-hidden rounded-xl bg-slate-100">
<?php if (strlen($block->setting('image_src')) > 0) : ?>
<a class="group block focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-slate-700" href="<?= $block->setting('image_src') ?>" target="_blank" rel="noopener noreferrer" data-gallery-trigger>
<img class="aspect-square w-full object-cover transition duration-300 group-hover:scale-105" src="<?= $block->setting('image_src') ?>" alt="<?= $block->setting('image_alt') ?>" loading="lazy" decoding="async">
</a>
<?php endif; ?>
<?php if (strlen($block->setting('caption')) > 0) : ?>
<figcaption class="px-3 py-2 text-sm text-slate-600"><?= $block->setting('caption') ?></figcaption>
<?php endif; ?>
</figure>