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,39 @@
<?php
return [
'title' => 'About Me',
'category' => 'Sections',
'icon' => 'ph ph-user-circle',
'settings' => [
'heading' => [
'label' => 'Heading',
'type' => 'text',
'value' => 'A little about me'
],
'name' => [
'label' => 'Name',
'type' => 'text',
'value' => 'Your name'
],
'role' => [
'label' => 'Role or profession',
'type' => 'text',
'value' => 'Designer and maker'
],
'biography' => [
'label' => 'Biography',
'type' => 'text',
'value' => 'I help people turn good ideas into thoughtful, useful experiences. I believe the best work comes from listening carefully, staying curious, and paying attention to the details.'
],
'image_src' => [
'label' => 'Portrait image URL',
'type' => 'text',
'value' => 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=900&q=80'
],
'image_alt' => [
'label' => 'Image alternative text',
'type' => 'text',
'value' => 'Portrait of a creative professional'
],
]
];
+15
View File
@@ -0,0 +1,15 @@
<section class="bg-slate-50 px-4 py-12 sm:py-16">
<div class="mx-auto grid max-w-6xl gap-10 md:grid-cols-[minmax(0,0.8fr)_minmax(0,1.2fr)] md:items-center">
<?php if (strlen($block->setting('image_src')) > 0) : ?>
<div class="overflow-hidden rounded-2xl bg-slate-200">
<img class="aspect-square h-full w-full object-cover" src="<?= $block->setting('image_src') ?>" alt="<?= $block->setting('image_alt') ?>" loading="lazy" decoding="async">
</div>
<?php endif; ?>
<div>
<h2 class="mb-6 text-3xl font-semibold tracking-tight text-slate-900 sm:text-4xl"><?= $block->setting('heading') ?></h2>
<h3 class="text-xl font-semibold text-slate-900"><?= $block->setting('name') ?></h3>
<p class="mt-1 text-sm font-medium text-slate-500"><?= $block->setting('role') ?></p>
<p class="mt-5 text-base leading-7 text-slate-600"><?= $block->setting('biography') ?></p>
</div>
</div>
</section>