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:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'title' => 'Feature Card',
|
||||
'category' => 'Content',
|
||||
'hidden' => true,
|
||||
'icon' => 'ph ph-cardholder',
|
||||
'settings' => [
|
||||
'symbol' => [
|
||||
'label' => 'Icon or symbol',
|
||||
'type' => 'text',
|
||||
'value' => '✦'
|
||||
],
|
||||
'heading' => [
|
||||
'label' => 'Heading',
|
||||
'type' => 'text',
|
||||
'value' => 'Clear direction'
|
||||
],
|
||||
'description' => [
|
||||
'label' => 'Description',
|
||||
'type' => 'text',
|
||||
'value' => 'Start with a clear plan shaped around your goals and the people you want to reach.'
|
||||
],
|
||||
'link_label' => [
|
||||
'label' => 'Link label',
|
||||
'type' => 'text',
|
||||
'value' => 'Learn more'
|
||||
],
|
||||
'link_url' => [
|
||||
'label' => 'Link URL',
|
||||
'type' => 'text',
|
||||
'value' => '/services'
|
||||
],
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,10 @@
|
||||
<article class="h-full rounded-xl border border-slate-200 bg-white p-6 shadow-sm transition hover:shadow-md">
|
||||
<span class="mb-5 inline-flex h-11 w-11 items-center justify-center rounded-lg bg-slate-100 text-xl text-slate-900" aria-hidden="true"><?= $block->setting('symbol') ?></span>
|
||||
<h3 class="text-xl font-semibold text-slate-900"><?= $block->setting('heading') ?></h3>
|
||||
<p class="mt-3 leading-7 text-slate-600"><?= $block->setting('description') ?></p>
|
||||
<?php if (strlen($block->setting('link_url')) > 0) : ?>
|
||||
<a class="mt-5 inline-flex items-center gap-2 text-sm font-semibold text-slate-900 underline decoration-slate-300 underline-offset-4 hover:decoration-slate-900" href="<?= $block->setting('link_url') ?>">
|
||||
<?= $block->setting('link_label') ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</article>
|
||||
Reference in New Issue
Block a user